Skip to content

Commit

Permalink
Merge branch 'eclipse-xpanse:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
WangLiNaruto authored May 16, 2024
2 parents 4cf0446 + 1bddc3e commit 372cb30
Show file tree
Hide file tree
Showing 55 changed files with 7,217 additions and 16,262 deletions.
14 changes: 7 additions & 7 deletions .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
REACT_APP_XPANSE_API_URL='http://localhost:8080'
REACT_APP_ZITADEL_SCOPE='openid profile urn:zitadel:iam:org:projects:roles urn:zitadel:iam:user:metadata'
REACT_APP_ZITADEL_REDIRECT_URI='/authentication/callback'
REACT_APP_ZITADEL_SILENT_REDIRECT_URI='/authentication/silent-callback'
REACT_APP_ZITADEL_AUTHORITY_URL='http://localhost:8081'
REACT_APP_ZITADEL_CLIENT_ID=''
REACT_APP_AUTH_USE_SERVICE_WORKER_ONLY=false
VITE_APP_XPANSE_API_URL='http://localhost:8080'
VITE_APP_ZITADEL_SCOPE='openid profile urn:zitadel:iam:org:projects:roles urn:zitadel:iam:user:metadata'
VITE_APP_ZITADEL_REDIRECT_URI='/authentication/callback'
VITE_APP_ZITADEL_SILENT_REDIRECT_URI='/authentication/silent-callback'
VITE_APP_ZITADEL_AUTHORITY_URL='http://localhost:8081'
VITE_APP_ZITADEL_CLIENT_ID=''
VITE_APP_AUTH_USE_SERVICE_WORKER_ONLY=false
4 changes: 2 additions & 2 deletions .env.zitadel-testbed
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_ZITADEL_AUTHORITY_URL='https://iam.xpanse.site'
REACT_APP_ZITADEL_CLIENT_ID=221692308037369859@eclipse-xpanse
VITE_APP_ZITADEL_AUTHORITY_URL='https://iam.xpanse.site'
VITE_APP_ZITADEL_CLIENT_ID=221692308037369859@eclipse-xpanse
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ node_modules
.history
*.db
build
*.zip
*.zip
dist
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build
dist
public/OidcServiceWorker.js
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM nginx:1.26.0-alpine
WORKDIR /usr/share/nginx/html
RUN apk add --no-cache bash envsubst
COPY docker/nginx-entrypoint.sh /
COPY build/ /usr/share/nginx/html
COPY dist/ /usr/share/nginx/html
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf

EXPOSE 3000
Expand Down
2 changes: 1 addition & 1 deletion docker/nginx-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# the script reads all available environment vars with names starting with REACT_APP_ and adds them to the
# inject.js file as a JS object.
WWW_DIR=/usr/share/nginx/html
ENV_PREFIX=REACT_APP_
ENV_PREFIX=VITE_APP_
INJECT_FILE_PATH="${WWW_DIR}/inject.js"
rm -f ${INJECT_FILE_PATH}
echo "window.injectedEnv = {" >> "${INJECT_FILE_PATH}"
Expand Down
4 changes: 2 additions & 2 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<meta content="#000000" name="theme-color" />
<meta content="Xpanse" name="description" />
<title>xpanse</title>
<script src="%PUBLIC_URL%/inject.js"></script>
<script src="/inject.js"></script>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="src/index.tsx"></script>
</body>
</html>
Loading

0 comments on commit 372cb30

Please sign in to comment.