mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
c0f85c2733
* fix: project by id loads project from view and from eventstore * fix: correct search key for role * feat(auth): my user changes * fix: improve error handling in change converters * fix: log-id * feat(translations): event type translations * feat: localized translations * fix(translations): correct yaml format * chore: example * fix: remove unused code * correct checkSSL in sql * chore(modules): update * chore: refactor interceptors * fix: improvments * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/en.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/en.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/en.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/en.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/en.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/de.yaml Co-authored-by: Florian Forster <florian@caos.ch> * Update internal/static/i18n/en.yaml Co-authored-by: Florian Forster <florian@caos.ch> * chore(translations): start with upper case on Code * chore(middleware): move funcs * add message to grpc web generation * translation in mgmt and fixes * fix authoptions * fix console statik Co-authored-by: Florian Forster <florian@caos.ch> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
52 lines
1.7 KiB
Bash
Executable File
52 lines
1.7 KiB
Bash
Executable File
#! /bin/sh
|
|
|
|
set -eux
|
|
|
|
GEN_PATH=src/app/proto/generated
|
|
|
|
echo "Remove old files"
|
|
rm -rf $GEN_PATH
|
|
|
|
echo "Create folders"
|
|
mkdir -p $GEN_PATH
|
|
|
|
echo "Download additional protofiles"
|
|
wget -P tmp/validate https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v0.4.0/validate/validate.proto
|
|
wget -P tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/annotations.proto
|
|
wget -P tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/openapiv2.proto
|
|
|
|
echo "Generate grpc"
|
|
|
|
protoc \
|
|
-I=/usr/local/include \
|
|
-I=../pkg/message \
|
|
-I=../pkg/management/api/proto \
|
|
-I=../pkg/auth/api/proto \
|
|
-I=../pkg/admin/api/proto \
|
|
-I=../internal/protoc/protoc-gen-authoption \
|
|
-I=node_modules/google-proto-files \
|
|
-I=tmp \
|
|
--js_out=import_style=commonjs,binary:$GEN_PATH \
|
|
--grpc-web_out=import_style=commonjs+dts,mode=grpcweb:$GEN_PATH \
|
|
../pkg/message/*.proto \
|
|
../pkg/management/api/proto/*.proto \
|
|
../pkg/admin/api/proto/*.proto \
|
|
../pkg/auth/api/proto/*.proto
|
|
|
|
echo "Generate annotations js file (compatibility)"
|
|
|
|
mkdir -p $GEN_PATH/google/api/
|
|
touch $GEN_PATH/google/api/annotations_pb.js
|
|
echo "export {}" > $GEN_PATH/google/api/annotations_pb.d.ts
|
|
|
|
mkdir -p $GEN_PATH/validate
|
|
touch $GEN_PATH/validate/validate_pb.js
|
|
echo "export {}" > $GEN_PATH/validate/validate_pb.d.ts
|
|
|
|
mkdir -p $GEN_PATH/protoc-gen-swagger/options
|
|
touch $GEN_PATH/protoc-gen-swagger/options/annotations_pb.js
|
|
echo "export {}" > $GEN_PATH/protoc-gen-swagger/options/annotations_pb.d.ts
|
|
|
|
mkdir -p $GEN_PATH/authoption
|
|
touch $GEN_PATH/authoption/options_pb.js
|
|
echo "export {}" > $GEN_PATH/authoption/options_pb.d.ts |