-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
422 changed files
with
119,113 additions
and
130 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules/ | ||
data/ | ||
src/services/metrics/ |
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 @@ | ||
# ignore file used by VSCode | ||
src/services/report/**/fonts/**/*.js | ||
data/ |
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,12 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
es2021: true, | ||
node: true, | ||
}, | ||
extends: ['airbnb-base'], | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
}, | ||
}; |
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,45 @@ | ||
name: Build and Deploy SDK documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- '.github/workflows/sdk-doc.yml' | ||
- 'src/sdk/**' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build-and-deploy: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node ⚙️ | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
|
||
- name: Install dependencies ⚙️ | ||
run: npm ci --prefix src/sdk | ||
|
||
- name: Build documentation 🔧 | ||
run: npm run build:docs --prefix src/sdk | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: src/sdk/docs | ||
branch: sdk-docs |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit ${1} |
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,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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 @@ | ||
lts/hydrogen |
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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
// ESLint support | ||
"dbaeumer.vscode-eslint", | ||
// npm import autocompletion | ||
"christian-kohler.npm-intellisense", | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"christian-kohler.npm-intellisense", | ||
"Orta.vscode-jest", | ||
"streetsidesoftware.code-spell-checker", | ||
"vivaxy.vscode-conventional-commits", | ||
"ms-azuretools.vscode-docker", | ||
"mikestead.dotenv", | ||
"streetsidesoftware.code-spell-checker-french", | ||
"prisma.prisma", | ||
"vue.volar", | ||
"vue.vscode-typescript-vue-plugin" | ||
] | ||
} |
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,31 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"localRoot": "${workspaceFolder}/src/services/mail", | ||
"name": "mail: Debug", | ||
"port": 9231, | ||
"remoteRoot": "/mail", | ||
"request": "attach", | ||
"type": "node" | ||
}, | ||
{ | ||
"localRoot": "${workspaceFolder}/src/services/report", | ||
"name": "report: Debug", | ||
"port": 9230, | ||
"remoteRoot": "/report", | ||
"request": "attach", | ||
"type": "node" | ||
}, | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "vue: chrome", | ||
"url": "http://localhost:6006", | ||
"webRoot": "${workspaceFolder}/src", | ||
}, | ||
] | ||
} |
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 |
---|---|---|
@@ -1,7 +1,30 @@ | ||
{ | ||
"eslint.workingDirectories": [], | ||
"eslint.validate": [ | ||
"javascript", | ||
"typescript" | ||
] | ||
"cSpell.words": [ | ||
"ezreeport", | ||
"fastify", | ||
"highlightjs", | ||
"prisma", | ||
"stackoverflow", | ||
"Toggleable", | ||
"vega", | ||
"vuedraggable", | ||
"vuetify" | ||
], | ||
"conventionalCommits.scopes": [ | ||
"report", | ||
"mail", | ||
"tests", | ||
"sdk", | ||
"vue" | ||
], | ||
"eslint.workingDirectories": [ | ||
{ | ||
"mode": "auto" | ||
} | ||
], | ||
"files.associations": { | ||
".env": "dotenv", | ||
".env.defaults": "dotenv" | ||
}, | ||
"typescript.tsdk": "./src/services/report/node_modules/typescript/lib" | ||
} |
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,50 @@ | ||
FROM node:18.17.0-alpine3.18 as sdk-builder | ||
|
||
WORKDIR /usr/build/sdk | ||
|
||
ENV NODE_ENV=production | ||
|
||
RUN apk update \ | ||
&& apk upgrade -U -a | ||
|
||
COPY ./src/sdk/package*.json ./ | ||
RUN npm ci --omit=dev | ||
COPY ./src/sdk ./ | ||
|
||
RUN npm run build:web && npm run build:types | ||
|
||
# ---- | ||
|
||
FROM node:18.17.0-alpine3.18 as vue-builder | ||
ARG AUTH_TOKEN="changeme" | ||
ARG REPORT_API="http://localhost:8080/" | ||
ARG LOGO_URL="https://ezmesure.couperin.org/" | ||
|
||
WORKDIR /usr/build/vue | ||
|
||
COPY --from=sdk-builder /usr/build/sdk ../sdk | ||
|
||
RUN apk update \ | ||
&& apk upgrade -U -a | ||
|
||
# We need devDeps as Storybook is in it | ||
COPY ./src/vue/package*.json ./ | ||
RUN npm ci | ||
COPY ./src/vue ./ | ||
|
||
ENV VITE_AUTH_TOKEN=${AUTH_TOKEN} \ | ||
VITE_REPORT_API=${REPORT_API} \ | ||
VITE_NAMESPACES_LOGO_URL=${LOGO_URL} | ||
|
||
RUN npm run build:docs | ||
|
||
# ---- | ||
|
||
FROM nginx:stable-alpine | ||
|
||
WORKDIR /usr/share/nginx/html | ||
|
||
COPY ./config/vue-ngnix.types /etc/nginx/mime.types | ||
COPY --from=vue-builder /usr/build/vue/storybook-static ./ | ||
|
||
EXPOSE 80 |
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.