-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
27 changed files
with
2,869 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_ENTE_ENDPOINT = http://localhost:8080 |
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,37 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/strict-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"plugin:react/jsx-runtime", | ||
], | ||
plugins: ["@typescript-eslint", "react-refresh"], | ||
parserOptions: { project: true }, | ||
parser: "@typescript-eslint/parser", | ||
ignorePatterns: [".eslintrc.cjs", "vite.config.ts", "dist"], | ||
settings: { react: { version: "18.2" } }, | ||
rules: { | ||
/* Allow numbers to be used in template literals */ | ||
"@typescript-eslint/restrict-template-expressions": [ | ||
"error", | ||
{ | ||
allowNumber: true, | ||
}, | ||
], | ||
/* Allow void expressions as the entire body of an arrow function */ | ||
"@typescript-eslint/no-confusing-void-expression": [ | ||
"error", | ||
{ | ||
ignoreArrowShorthand: true, | ||
}, | ||
], | ||
"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,17 @@ | ||
# Node | ||
node_modules/ | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
# Editors | ||
.vscode/ | ||
|
||
# Local env files | ||
.env*.local | ||
|
||
# tsc | ||
*.tsbuildinfo | ||
|
||
# Vite | ||
dist |
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,8 @@ | ||
{ | ||
"tabWidth": 4, | ||
"proseWrap": "always", | ||
"plugins": [ | ||
"prettier-plugin-organize-imports", | ||
"prettier-plugin-packagejson" | ||
] | ||
} |
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 @@ | ||
## Staff dashboard | ||
|
||
Web app for staff members to help with support and other administration. | ||
|
||
### Development | ||
|
||
Use `yarn dev` to run a local dev server with hot reload. | ||
|
||
> [!TIP] | ||
> | ||
> See [web/docs/new.md](../../web/docs/new.md) for help in setting up your | ||
> editor to do the formatting and linting. You can also run the formatter and | ||
> linter manually using `yarn lint`, and `yarn lint-fix` to fix them. These | ||
> commands automatically run on every PR. | ||
### Deployment | ||
|
||
The app gets redeployed whenever a PR is merged into main. See | ||
[web/docs/deploy.md](../../web/docs/deploy.md) for more details. |
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,35 @@ | ||
{ | ||
"name": "staff", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "tsc && vite build", | ||
"dev": "vite", | ||
"lint": "yarn prettier --check --log-level warn . && yarn eslint && yarn tsc", | ||
"lint-fix": "yarn prettier --write --log-level warn . && yarn eslint --fix && yarn tsc", | ||
"preview": "vite preview" | ||
}, | ||
"dependencies": { | ||
"react": "^18", | ||
"react-dom": "^18", | ||
"zod": "^3" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18", | ||
"@types/react-dom": "^18", | ||
"@typescript-eslint/eslint-plugin": "^7", | ||
"@typescript-eslint/parser": "^7", | ||
"@vitejs/plugin-react": "^4.2", | ||
"eslint": "^8", | ||
"eslint-plugin-react": "^7.34", | ||
"eslint-plugin-react-hooks": "^4.6", | ||
"eslint-plugin-react-refresh": "^0.4.7", | ||
"prettier": "^3", | ||
"prettier-plugin-organize-imports": "^3.2", | ||
"prettier-plugin-packagejson": "^2.5", | ||
"typescript": "^5", | ||
"vite": "^5.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,48 @@ | ||
{ | ||
/* TSConfig file used for typechecking the files in src/. | ||
* | ||
* The base configuration was generated using `yarn create vite`. This was | ||
* already almost the same as the `tsconfig-typecheck.json` we use | ||
* elsewhere, with one or two differences. | ||
* | ||
* For more details about the flags vite cares about, see | ||
* https://vitejs.dev/guide/features.html#typescript-compiler-options | ||
*/ | ||
"compilerOptions": { | ||
"target": "ES2020", | ||
"useDefineForClassFields": true, | ||
"lib": ["ES2020", "DOM", "DOM.Iterable"], | ||
"module": "esnext", | ||
"skipLibCheck": true, | ||
|
||
/* Bundler mode. */ | ||
"moduleResolution": "bundler", | ||
"allowImportingTsExtensions": true, | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
|
||
/* Linting. */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true, | ||
|
||
/* | ||
* On top of the generated configuration, we've mostly added additional | ||
* strictness checks. | ||
*/ | ||
|
||
/* Require the `type` modifier when importing types. */ | ||
"verbatimModuleSyntax": true, | ||
|
||
/* Stricter than strict. */ | ||
"noImplicitReturns": true, | ||
/* e.g. makes array indexing returns undefined. */ | ||
"noUncheckedIndexedAccess": true, | ||
"exactOptionalPropertyTypes": true | ||
}, | ||
"include": ["src"], | ||
"references": [{ "path": "./tsconfig.node.json" }] | ||
} |
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,15 @@ | ||
{ | ||
/* TSConfig file used for typechecking vite's config file itself. | ||
* | ||
* These are vite defaults, generated using `yarn create vite`. | ||
*/ | ||
"compilerOptions": { | ||
"composite": true, | ||
"skipLibCheck": true, | ||
"module": "ESNext", | ||
"moduleResolution": "bundler", | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true | ||
}, | ||
"include": ["vite.config.ts"] | ||
} |
File renamed without changes.
Oops, something went wrong.