Commit Graph

14 Commits

Author SHA1 Message Date
zpencer 9f728cd3e1
gprc-zpages: do not output uglified js when building (#304)
This makes the output easier to use, and there's not a real need for
uglified js in this tool. This also eliminates the hash appended to
the output filenames.
2018-07-24 14:58:11 -07:00
zpencer e47ab0e246
channelz: add code gen scripts for OSS (#302)
Build a self contained channelz.js from a channelz.proto.

Running buildscripts/channelz_codgen.sh will produce a
web/channelzui/src/assets/channelz.js that reflects the SHA
specified in the scripts.

The script fetches grpc/grpc-web to get the prereq docker image, does
some additional setup, and then runs the code gen script.
2018-07-24 08:28:00 -07:00
zpencer 03051b1928
channelz: use closure styled imports in typescript, avoid having standalone js files (#301)
We can modify the internal version of main.ts to use
goog.require to load any internal Any packed messages, and call
registerProtoAnyToStringFn.

This is simpler than keeping standalone .js files that are all
loaded together in the browser via <script src="...">.

goog.require appears to be a noop in OSS if we load the .js file with a <script> tag.
This will make imports easier.
2018-07-20 16:19:22 -07:00
zpencer 6ac114da18
channelz: allow grpc address to be overridden, and make builds less noisy (#300) 2018-07-17 18:25:18 -07:00
zpencer 4e0cc508ff
channelz: add initial docker configs (#297)
- Add dockers for envoy, static assets www server, docker-compose
  config generator script. We use `network_mode: host` so that the
  loopback addresses within the docker resolve to the host.
- Update build script and angular.json so that copmilation outputs go
  directly into the static assets docker directory.
- Update README.md
- remove CORS
- the grpc web host should be window.location.origin, ie the envoy
  reverse proxy port
2018-07-13 14:56:19 -07:00
zpencer 6de5b03512
channelz: remove stray proto file (#299) 2018-07-11 17:01:53 -07:00
zpencer dfbf06f5f8
channelz: remove stray BUILD file (#298) 2018-07-11 17:01:45 -07:00
zpencer 10dc637d72
channelz: use grpc web for angular app (#296)
The grpc-web generated library is loaded in the html page via a
<script src="...">, and from the angular app's point of view, the
proto variable is just an arbitrary external javascript handle.

The envoy proxy host+port is controlled by environment.ts
and environment.prod.ts. This may change if it proves problematic
when integrating with envoy.

The binary protos must be manually turned into human friendly strings,
because js protos can not be dumped as JSONs.
2018-07-11 12:59:35 -07:00
zpencer ac46dc6016
channelz: add back angular build CLI tool (#293)
This is required for the 'ng build' command to be available, which
is how angular apps are built on the CLI.

Previously I was too aggressive in pruning packages to fix the security
audit findings and removed this package.
2018-07-10 09:03:41 -07:00
zpencer 9986ff8603
channelz: add channelz grpc web library and support code (#294) 2018-07-10 09:02:01 -07:00
Spencer Fang 43f0e17ae3 channelz: make build script more forgiving when files not present 2018-07-10 08:25:38 -07:00
Spencer Fang 3f23f88257 Update remaining pkgs in packages.json 2018-06-07 17:03:18 -07:00
Spencer Fang d39c3e8e41 channelz: update packages security patched versions of pkgs
Updated some direct dependencies and removed some unused ones.
`npm audit` now shows zero findings.
2018-06-07 16:42:34 -07:00
Spencer Fang 901ae93ee8 Add zpages gateway and webapp 2018-06-07 12:58:52 -07:00