add login and folder UI

This commit is contained in:
OxSaitama 2023-04-19 15:01:23 +02:00
commit 0fd3063f59
5 changed files with 190 additions and 61 deletions

View File

@ -5,7 +5,6 @@ orbs:
helm: circleci/helm@2.0.1
jobs:
build-push-docker-image:
docker:
- image: cimg/base:stable
@ -24,8 +23,11 @@ jobs:
- run: docker build --tag rg.fr-par.scw.cloud/lecoffre/front:$TAG .
- run: docker push rg.fr-par.scw.cloud/lecoffre/front:$TAG
deploy-docker-image:
parameters:
env:
type: string
default: ""
docker:
- image: cimg/base:stable
environment:
@ -39,16 +41,15 @@ jobs:
name: Deploy
command: >
helm upgrade
lecoffre-front devops/ -i -f devops/values.yaml
lecoffre-front devops/ -i -f devops/<<parameters.env>>.values.yaml
-n lecoffre
--create-namespace
--set lecoffreFront.image.repository='rg.fr-par.scw.cloud/lecoffre/front'
--set lecoffreFront.image.tag=$TAG
workflows:
version: 2
build-and-register:
build-and-deploy-stg:
jobs:
- build-push-docker-image:
filters:
@ -57,6 +58,7 @@ workflows:
branches:
ignore: /.*/
- deploy-docker-image:
env: stg
requires:
- build-push-docker-image
context:
@ -67,3 +69,41 @@ workflows:
branches:
ignore: /.*/
build-and-deploy-ppd:
jobs:
- build-push-docker-image:
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- deploy-docker-image:
env: ppd
requires:
- build-push-docker-image
context:
- production
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
# build-and-deploy-prod:
# jobs:
# - build-push-docker-image:
# filters:
# tags:
# only: /^v.*/
# branches:
# ignore: /.*/
# - deploy-docker-image:
# requires:
# - build-push-docker-image
# context:
# - production
# filters:
# tags:
# only: /^v.*/
# branches:
# ignore: /.*/

44
devops/ppd.values.yaml Normal file
View File

@ -0,0 +1,44 @@
dockerPullSecret: secret/data/lecoffre-front-ppd/config/dockerpullsecret
namespace: lecoffre
lecoffreFront:
serviceAccountName: lecoffre-front-sa
command: "'sh', '-c', '. /vault/secrets/envs && npm run start'"
vault:
role : custom_lecoffre-front_injector_rol
server: https://vault-ppd.smart-chain.fr
annotations:
vault.hashicorp.com/agent-pre-populate-only: "true"
vault.hashicorp.com/agent-inject: "true"
vault.hashicorp.com/agent-inject-secret-envs: secret/data/lecoffre-front-ppd/config/envs
vault.hashicorp.com/role: custom_lecoffre-front_injector_rol
vault.hashicorp.com/agent-inject-template-envs: |
{{ with secret "secret/data/lecoffre-front-ppd/config/envs" }}
{{ range $k, $v := .Data.data }}
export {{ $k }}="{{ $v }}"
{{ end }}
{{ end }}
imagePullSecrets:
- name: docker-pull-secret
image:
pullPolicy: Always
repository: "rg.fr-par.scw.cloud/lecoffre/front"
resources:
requests:
cpu: 200m
memory: 1Gi
limits:
memory: 2Gi
ingress:
host: app.ppd.lecoffre.smart-chain.fr
tls:
hosts:
- app.ppd.lecoffre.smart-chain.fr
secretName: app-tls
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"

44
devops/stg.values.yaml Normal file
View File

@ -0,0 +1,44 @@
dockerPullSecret: secret/data/lecoffre-front-stg/config/dockerpullsecret
namespace: lecoffre
lecoffreFront:
serviceAccountName: lecoffre-front-sa
command: "'sh', '-c', '. /vault/secrets/envs && npm run start'"
vault:
role : custom_lecoffre-front_injector_rol
server: https://vault-stg.smart-chain.fr
annotations:
vault.hashicorp.com/agent-pre-populate-only: "true"
vault.hashicorp.com/agent-inject: "true"
vault.hashicorp.com/agent-inject-secret-envs: secret/data/lecoffre-front-stg/config/envs
vault.hashicorp.com/role: custom_lecoffre-front_injector_rol
vault.hashicorp.com/agent-inject-template-envs: |
{{ with secret "secret/data/lecoffre-front-stg/config/envs" }}
{{ range $k, $v := .Data.data }}
export {{ $k }}="{{ $v }}"
{{ end }}
{{ end }}
imagePullSecrets:
- name: docker-pull-secret
image:
pullPolicy: Always
repository: "rg.fr-par.scw.cloud/lecoffre/front"
resources:
requests:
cpu: 200m
memory: 1Gi
limits:
memory: 2Gi
ingress:
host: app.stg.lecoffre.smart-chain.fr
tls:
hosts:
- app.stg.lecoffre.smart-chain.fr
secretName: app-tls
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"

View File

@ -33,3 +33,5 @@
"typescript": "4.9.5"
}
}

View File

@ -1,7 +1,6 @@
import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button";
import Form from "@Front/Components/DesignSystem/Form";
import InputField from "@Front/Components/DesignSystem/Form/Elements/InputField";
import Select, { IOption } from "@Front/Components/DesignSystem/Select";
import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography";
import BackArrow from "@Front/Components/Elements/BackArrow";
import DefaultNotaryDashboard, { IDashBoardFolder } from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard";