-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor structure of project * moves the Edit submenu into a top level Menu * add sticky topbar * integrate mui tabs and react-router-dom * finish add edit form * add tag interface * fix theme background colors * decouple connection data and connection status * list page ui mostly done * some linting * added eslint in my editor * refactor channelID to connectionID * add view connection page * poc for native menu * Grpc api ts proto (#46) * generate via ts-proto * add grpc-js dep * fix tsc error * regenerate to pick up proto changes Co-authored-by: Travis Groth <[email protected]> Co-authored-by: wasaga <> * hook up form and view page to backend * update to match selector * manage page updated to work with backend and deletion methods * connect/disconnect * fix stale event listeners and nulls for backend * some work on the system menu tray * connections and system tray updated * search * import/export * import order * better search * toast message instead of basic alert * duplicate functionality * get context menu working with menubar * fix discard and no connections issues * add more time to toast * cleanup some listeners * deletion and export fixes * cleanup redirectTo listener * code review Co-authored-by: Travis Groth <[email protected]>
- Loading branch information
1 parent
0753def
commit 747f81f
Showing
52 changed files
with
10,425 additions
and
774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
_protoc_version="3.14.0" | ||
_protoc_path="/tmp/pomerium-protoc/protoc-$_protoc_version" | ||
_protoc_3pp_path="/tmp/pomerium-protoc-3pp" | ||
|
||
_os="linux" | ||
if [ "$(uname -s)" == "Darwin" ]; then | ||
_os="osx" | ||
fi | ||
|
||
# fetch_zip dir name url | ||
download() { | ||
local dst="$1/$2" | ||
if [ -d "$dst" ]; then | ||
return | ||
fi | ||
|
||
echo downloading "$2" | ||
local archive | ||
archive="$(mktemp)" | ||
curl -L -o "$archive" "$3" | ||
mkdir -p "$dst" | ||
tar xzf "$archive" -C "$dst" --strip-components=1 | ||
rm "$archive" | ||
} | ||
|
||
download $_protoc_3pp_path protoc-gen-validate https://github.com/envoyproxy/protoc-gen-validate/tarball/v0.6.1 | ||
download $_protoc_3pp_path data-plane-api https://github.com/envoyproxy/data-plane-api/tarball/main | ||
download $_protoc_3pp_path xds https://github.com/cncf/xds/tarball/main | ||
download $_protoc_3pp_path googleapis https://github.com/googleapis/googleapis/tarball/master | ||
|
||
mkdir -p "$_protoc_path" "$_protoc_3pp_path" | ||
if [ ! -f "$_protoc_path/bin/protoc" ]; then | ||
echo "downloading protoc" | ||
curl -L \ | ||
-o protoc.zip \ | ||
"https://github.com/protocolbuffers/protobuf/releases/download/v$_protoc_version/protoc-$_protoc_version-$_os-x86_64.zip" | ||
unzip -o -d "$_protoc_path" protoc.zip | ||
rm protoc.zip | ||
fi | ||
|
||
if [ ! -x "$GOPATH/bin/protoc-gen-validate" ]; then | ||
echo "installing protoc-gen-validate" | ||
pushd $(pwd) | ||
cd "$_protoc_3pp_path/protoc-gen-validate" && make build | ||
popd | ||
fi | ||
|
||
exec "$_protoc_path/bin/protoc" \ | ||
-I "$_protoc_3pp_path/data-plane-api" \ | ||
-I "$_protoc_3pp_path/udpa" \ | ||
-I "$_protoc_3pp_path/xds" \ | ||
-I "$_protoc_3pp_path/protoc-gen-validate" \ | ||
-I "$_protoc_3pp_path/googleapis" \ | ||
--experimental_allow_proto3_optional \ | ||
--plugin="protoc-gen-go=$_dir/protoc-gen-go" \ | ||
--plugin="protoc-gen-validate=$_dir/protoc-gen-validate" \ | ||
--plugin="node_modules/ts-proto/protoc-gen-ts_proto" \ | ||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../pomerium/pkg/grpc/cli/api.proto |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.