-
Notifications
You must be signed in to change notification settings - Fork 11
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
58 changed files
with
5,139 additions
and
5,824 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,2 +1 @@ | ||
package-lock.json -diff | ||
* -text |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
/secrets.txt | ||
|
||
# JetBrains IDE files | ||
/.idea/ | ||
.idea/ | ||
|
||
# Local Docker volumes | ||
/volumes/ | ||
|
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 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,2 @@ | ||
/node_modules/ | ||
/dist/ |
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 |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{ | ||
"spec": "src/test/**/*.ts", | ||
"spec": "src/test/**/*.test.ts", | ||
"extension": ["ts", "js"], | ||
"loader": "ts-node/esm" | ||
"require": [ | ||
"ts-node/register/transpile-only", | ||
"jsdom-global/register.js", | ||
"./src/test/jquery.register.js" | ||
], | ||
"ts-node": { | ||
"transpileOnly": 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:22-alpine as build | ||
FROM node:22.5.1-alpine as build | ||
|
||
WORKDIR /app | ||
COPY . . | ||
|
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,14 @@ | ||
FROM node:22.5.1-alpine AS build | ||
|
||
ENV NODE_ENV=development | ||
|
||
RUN apk add --no-cache git bash \ | ||
&& npm update -g npm | ||
|
||
WORKDIR /app/ui | ||
COPY . . | ||
|
||
EXPOSE 8000 | ||
|
||
ENTRYPOINT ["/bin/bash", "-c"] | ||
CMD ["./start.sh"] |
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,8 +1,9 @@ | ||
import { defineConfig } from 'cypress' | ||
import {defineConfig} from 'cypress'; | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
setupNodeEvents(on, config) {}, | ||
baseUrl: 'http://localhost:8000', | ||
}, | ||
}) | ||
e2e: { | ||
setupNodeEvents(_on, _config) { | ||
}, | ||
baseUrl: 'http://localhost:8000', | ||
}, | ||
}); |
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,158 @@ | ||
import globals from 'globals'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import path from 'node:path'; | ||
import {fileURLToPath} from 'node:url'; | ||
import js from '@eslint/js'; | ||
import {FlatCompat} from '@eslint/eslintrc'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
}); | ||
|
||
const sharedConfig = { | ||
ignores: [ | ||
'node_modules/**', | ||
'dist/**', | ||
], | ||
languageOptions: { | ||
globals: globals.browser, | ||
ecmaVersion: 2018, | ||
sourceType: 'module', | ||
parser: tsParser, | ||
}, | ||
rules: { | ||
'array-bracket-spacing': 'error', | ||
'comma-spacing': 'error', | ||
'eqeqeq': ['error', 'always', {'null': 'ignore'}], | ||
'key-spacing': 'error', | ||
'keyword-spacing': 'error', | ||
'no-duplicate-imports': 'off', | ||
'no-multi-spaces': 'error', | ||
'no-multiple-empty-lines': 'error', | ||
'no-trailing-spaces': 'error', | ||
'no-var': 'error', | ||
'object-curly-spacing': 'error', | ||
'object-shorthand': 'off', | ||
'prefer-arrow-callback': 'error', | ||
'prefer-const': 'error', | ||
|
||
quotes: ['error', 'single', { | ||
avoidEscape: true, | ||
}], | ||
|
||
semi: 'error', | ||
'space-before-blocks': 'error', | ||
'space-in-parens': 'error', | ||
'space-infix-ops': 'error', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
|
||
'@typescript-eslint/no-unused-vars': ['error', { | ||
vars: 'all', | ||
varsIgnorePattern: '^_', | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
caughtErrors: 'all', | ||
caughtErrorsIgnorePattern: '^_', | ||
}], | ||
|
||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
|
||
// TODO enable this. It is disabled because we haven't gotten to fixing its issues. | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
} | ||
}; | ||
|
||
const baseConfigs = compat.extends( | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/eslint-recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
).map((config) => ({ | ||
...config, | ||
ignores: sharedConfig.ignores, | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
})); | ||
|
||
export default [ | ||
{ | ||
ignores: ['dist/**'], | ||
}, | ||
...baseConfigs.map((config) => ({ | ||
...config, | ||
ignores: [ | ||
...sharedConfig.ignores, | ||
'src/**', | ||
'cypress/**', | ||
], | ||
languageOptions: { | ||
...config.languageOptions, | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
...config.rules, | ||
...sharedConfig.rules, | ||
} | ||
})), | ||
...baseConfigs.map((config) => ({ | ||
...config, | ||
files: ['src/**/*.ts', 'src/**/*.js'], | ||
ignores: [ | ||
...sharedConfig.ignores, | ||
'src/test/**', | ||
], | ||
languageOptions: { | ||
...config.languageOptions, | ||
globals: { | ||
...globals.browser, | ||
}, | ||
}, | ||
rules: { | ||
...config.rules, | ||
...sharedConfig.rules, | ||
} | ||
})), | ||
...baseConfigs.map((config) => ({ | ||
...config, | ||
files: ['src/test/**/*.ts', 'src/test/**/*.js'], | ||
languageOptions: { | ||
...config.languageOptions, | ||
globals: { | ||
...globals.mocha, | ||
}, | ||
}, | ||
})), | ||
{ | ||
...sharedConfig, | ||
files: ['src/**/*.ts', 'src/**/*.js'], | ||
languageOptions: { | ||
...sharedConfig.languageOptions, | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
}, | ||
}, | ||
{ | ||
...sharedConfig, | ||
files: ['src/test/**/*.ts', 'src/test/**/*.js'], | ||
languageOptions: { | ||
...sharedConfig.languageOptions, | ||
parserOptions: { | ||
project: './tsconfig.test.json', | ||
}, | ||
globals: { | ||
...globals.mocha, | ||
}, | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.