-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bugfix * add theme editor * PS-599 add watch command * PS-600 fix session expiration
- Loading branch information
Showing
269 changed files
with
17,133 additions
and
41,334 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
/node_modules | ||
Dockerfile | ||
/README.md | ||
.dockerignore | ||
/index.html | ||
.idea |
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,47 @@ | ||
module.exports = { | ||
root: true, | ||
env: {browser: true, es2020: true}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh', 'unused-imports'], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': ['warn'], | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'unused-imports/no-unused-imports-ts': 'error', | ||
'unused-imports/no-unused-vars-ts': [ | ||
'error', | ||
{ | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
}, | ||
], | ||
'@typescript-eslint/ban-types': [ | ||
'error', | ||
{ | ||
types: { | ||
'{}': false, | ||
}, | ||
extendDefaults: true, | ||
}, | ||
], | ||
'react/react-in-jsx-scope': 'off', | ||
'no-empty-pattern': 'off', | ||
'no-undef': 'off', | ||
'react/prop-types': 'off', | ||
'react/display-name': 'off', | ||
'react/no-unescaped-entities': 'off', | ||
'no-irregular-whitespace': 'off', | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{allowConstantExport: true}, | ||
], | ||
}, | ||
}; |
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,44 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
/index.html | ||
# Logs | ||
logs | ||
*.log | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,3 @@ | ||
module.exports = { | ||
...require('../../.prettierrc'), | ||
}; |
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,43 @@ | ||
ARG BASE_TAG=latest | ||
ARG REGISTRY_NAMESPACE | ||
FROM ${REGISTRY_NAMESPACE}nodejs-base:${BASE_TAG} as client-build | ||
|
||
COPY --chown=node:node package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./ | ||
COPY --chown=node:node ./lib/js ./lib/js | ||
COPY --chown=node:node ./dashboard/client ./dashboard/client | ||
|
||
USER node | ||
|
||
WORKDIR /srv/workspace/dashboard/client | ||
|
||
RUN pnpm install \ | ||
&& mv index.tpl.html index.html | ||
|
||
RUN pnpm build | ||
|
||
############ | ||
|
||
FROM nginx:1.17.6-alpine as client-nginx | ||
|
||
COPY --from=client-build /srv/workspace/dashboard/client/dist /var/app | ||
COPY ./dashboard/client/docker/nginx/conf.d /etc/nginx/conf.d | ||
|
||
RUN apk add --no-cache libstdc++ \ | ||
&& apk add --virtual .build \ | ||
wget \ | ||
&& mkdir -p /var/docker \ | ||
&& wget -q -O /var/docker/generate-env https://github.com/alchemy-fr/config-compiler/releases/download/v2.2.1/generate-env-alpine \ | ||
&& chmod +x /var/docker/generate-env \ | ||
&& apk del .build \ | ||
&& rm /etc/nginx/conf.d/default.conf | ||
|
||
EXPOSE 80 | ||
|
||
ARG SENTRY_RELEASE | ||
ENV SENTRY_RELEASE=${SENTRY_RELEASE} | ||
|
||
COPY ./dashboard/client/config-compiler.js /var/app/ | ||
|
||
WORKDIR /var/app | ||
|
||
CMD ["/bin/sh", "-c", "/var/docker/generate-env ./ && nginx -g 'daemon off;'"] |
File renamed without changes.
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,40 @@ | ||
(function (config, env) { | ||
const whiteList = [ | ||
'DATABOX_API_URL', | ||
'DATABOX_CLIENT_URL', | ||
'DEV_MODE', | ||
'DISPLAY_SERVICES_MENU', | ||
'ELASTICHQ_URL', | ||
'EXPOSE_API_URL', | ||
'EXPOSE_CLIENT_URL', | ||
'KEYCLOAK_URL', | ||
'MAILHOG_URL', | ||
'MATOMO_URL', | ||
'NOTIFY_API_URL', | ||
'PGADMIN_URL', | ||
'PHPMYADMIN_URL', | ||
'RABBITMQ_CONSOLE_URL', | ||
'REPORT_API_URL', | ||
'SAML2_URL', | ||
'SAML_URL', | ||
'STACK_NAME', | ||
'STACK_VERSION', | ||
'TRAEFIK_CONSOLE_URL', | ||
'UPLOADER_API_URL', | ||
'UPLOADER_CLIENT_URL', | ||
'ZIPPY_URL', | ||
]; | ||
|
||
const e = {}; | ||
|
||
Object.entries(env).forEach(([key, value]) => { | ||
if (whiteList.includes(key)) { | ||
e[key] = value; | ||
} | ||
}); | ||
|
||
return { | ||
locales: config.available_locales, | ||
env: e, | ||
}; | ||
}); |
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,17 @@ | ||
server { | ||
listen 80; | ||
|
||
server_name _; | ||
server_tokens off; | ||
|
||
add_header X-Content-Type-Options "nosniff"; | ||
add_header X-Frame-Options "deny"; | ||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; | ||
|
||
root /var/app; | ||
index index.html; | ||
|
||
location / { | ||
try_files $uri /index.html =404; | ||
} | ||
} |
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,19 @@ | ||
## Compression. | ||
gzip on; | ||
gzip_buffers 16 8k; | ||
gzip_comp_level 1; | ||
gzip_http_version 1.1; | ||
gzip_min_length 10; | ||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/x-icon application/vnd.ms-fontobject font/opentype application/x-font-ttf; | ||
gzip_vary on; | ||
gzip_proxied any; # Compression for all requests. | ||
## No need for regexps. See | ||
## http://wiki.nginx.org/NginxHttpGzipModule#gzip_disable | ||
gzip_disable msie6; | ||
|
||
## Serve already compressed files directly, bypassing on-the-fly | ||
## compression. | ||
## | ||
# Usually you don't make much use of this. It's better to just | ||
# enable gzip_static on the locations you need it. | ||
# gzip_static on; |
Oops, something went wrong.