Commit Graph

615 Commits

Author SHA1 Message Date
zpencer 851a674d9b
grpc-zpages: link channelz.js with angular compiler (#306)
Rather than importing the script with a <script> tag, use angular's
build system to import the script. This makes our HTML consistent
internally and externally, and is probably the way to go if we want to
use the library in unit tests.
2018-08-08 08:57:09 -07:00
zpencer a9fa4c674b
grpc-zpages: gen_channelz_pb.sh should accept a git sha param (#307)
If no param is specified, we pull from the latest grpc/grpc-protos
2018-07-24 15:50:56 -07:00
zpencer 19a1330ec7
grpc-zpages: remove stray script tag from index.html (#305) 2018-07-24 15:11:31 -07:00
zpencer 093bc7ce17
grpc-zpages: codegen docker should output files as current uid (#303)
Change the output files to the user's UID and GID.
2018-07-24 15:04:46 -07:00
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
zpencer 1cfd55313e
Merge pull request #295 from grpc/buildscript-more-forgiving
channelz: make build script more forgiving when files not present
2018-07-10 09:01:38 -07:00
Spencer Fang 43f0e17ae3 channelz: make build script more forgiving when files not present 2018-07-10 08:25:38 -07:00
zpencer fb1860b60b
Merge pull request #292 from zpencer/fix-pkg-security-vuln-2
Update remaining pkgs in packages.json
2018-06-07 17:07:11 -07:00
Spencer Fang 3f23f88257 Update remaining pkgs in packages.json 2018-06-07 17:03:18 -07:00
zpencer b747617344
Merge pull request #291 from zpencer/fix-pkg-security-vuln
channelz: update packages security patched versions of pkgs
2018-06-07 16:44:34 -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
zpencer b808b9cbe1
Merge pull request #290 from zpencer/zpages
Add zpages gateway and webapp
2018-06-07 15:33:26 -07:00
Spencer Fang 901ae93ee8 Add zpages gateway and webapp 2018-06-07 12:58:52 -07:00
Nathaniel Manista 615a02d81c Merge pull request #289 from nathanielmanistaatgoogle/async-python
Async Python initial document.
2016-09-12 09:36:02 -07:00
Nathaniel Manista 1212d21440 Async Python initial document 2016-09-12 16:08:51 +00:00
Jayant Kolhe 15e2616ed0 Merge pull request #288 from nicolasnoble/master
Initial creation of the gevents experiment.
2016-09-09 15:33:16 -07:00
Nicolas Noble 13b46ef00c Initial creation of the gevents experiment. 2016-09-09 15:30:18 -07:00
Nicolas Noble a09842d874 Merge pull request #287 from grpc/fresh_start
Update README.md to explain the purpose of the new repository.
2016-09-08 19:43:47 -07:00
Nicolas Noble fe063441ec Addressing comments. 2016-09-08 16:26:39 -07:00
Nicolas Noble 74e8575e5b Update README.md 2016-09-08 16:11:48 -07:00
Tim Emiola 4ff6570813 Merge pull request #280 from stanley-cheung/sayonara
doc and examples have been moved to various grpc repo
2015-08-27 17:08:24 -07:00
Stanley Cheung 0bfb3755ca goodbye grpc-common, doc and examples have been moved to various grpc-* repo 2015-08-27 16:34:56 -07:00
Abhishek Kumar 209d047db8 Merge pull request #278 from yang-g/async_doc
Add sync and async doc in README for helloworld
2015-08-27 13:14:59 -07:00
yang-g 2add980668 Resolve comments 2015-08-27 13:03:49 -07:00
yang-g 0c63351381 sync and async doc 2015-08-26 16:31:38 -07:00
Craig Tiller bcd57fc78d Merge pull request #276 from yang-g/master
Update c++ examples to API changes.
2015-08-26 14:36:43 -07:00
yang-g 654828fbd0 update doc 2015-08-25 15:24:42 -07:00
yang-g de36eb69be fix route_guide 2015-08-25 15:16:44 -07:00
yang-g d36da04a55 fix helloworld 2015-08-25 15:15:35 -07:00
Louis Ryan b323aa406b Merge pull request #263 from grpc/http2-proto-spec-encoding
Added definition for Message-Accept-Encoding
2015-07-21 10:27:30 -07:00
Michael Lumish 94390e2647 Merge pull request #264 from jcanizales/update-to-0.6
Update ObjC samples to v0.6
2015-07-20 08:55:46 -07:00
David G. Quintas 336513875f Changes from PR comments. 2015-07-17 18:16:04 -07:00
Jorge Canizales 54f4d53ea1 Update Objective-C documentation to v0.6 2015-07-17 18:06:35 -07:00
Jorge Canizales 7cb1ad9634 Advance required gRPC of the samples to 0.6 2015-07-17 18:06:35 -07:00
Jorge Canizales 540f9e9e76 Remove unnecessary whitespace and an unused header 2015-07-17 18:06:35 -07:00
Jorge Canizales 788180b578 Delete unused targets and inexistent files from Hello World project 2015-07-17 18:06:35 -07:00
Jorge Canizales 161b51e916 Update route_guide to v0.6 2015-07-17 18:06:35 -07:00
Jorge Canizales 1748bf2dfe Update AuthSample to v0.6 2015-07-17 18:06:35 -07:00
David G. Quintas 0ff9221a3b Added definition for Message-Accept-Encoding 2015-07-17 17:40:18 -07:00
Nathaniel Manista 6fb1b537b1 Merge pull request #260 from soltanmm/guide
Add documentation for Python auth support.
2015-07-17 08:08:30 -07:00
Masood Malekghassemi 836a9d0c20 Add documentation for Python auth support 2015-07-15 16:07:52 -07:00