Compare commits

..

No commits in common. "develop" and "main" have entirely different histories.

14 changed files with 4342 additions and 5257 deletions

View File

@ -1,9 +1,7 @@
;;; Directory Local Variables -*- no-byte-compile: t -*- ;;; Directory Local Variables -*- no-byte-compile: t -*-
;;; For more information see (info "(emacs) Directory Variables") ;;; For more information see (info "(emacs) Directory Variables")
((js-json-mode . ((js-indent-level . 2) ((less-css-mode . ((css-indent-offset . 2)))
(tab-width . 2)))
(less-css-mode . ((css-indent-offset . 2)))
(typescript-mode . ((typescript-indent-level . 2))) (typescript-mode . ((typescript-indent-level . 2)))
(web-mode . ((web-mode-code-indent-offset . 2) (web-mode . ((web-mode-code-indent-offset . 2)
(web-mode-attr-indent-offset . 2) (web-mode-attr-indent-offset . 2)

2
.envrc
View File

@ -1,2 +0,0 @@
use flake
dotenv

2
.gitignore vendored
View File

@ -30,5 +30,3 @@ coverage
*.tsbuildinfo *.tsbuildinfo
*.production *.production
/.yarn/ /.yarn/
/.env
/.direnv/

13
.prettierrc.json Normal file
View File

@ -0,0 +1,13 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": true,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"quoteProps": "as-needed",
"printWidth": 100,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": true,
"arrowParens": "always"
}

View File

@ -1,9 +0,0 @@
semi = true
tabWidth = 2
useTabs = false
singleQuote = true
printWidth = 100
trailingComma = "es5"
bracketSpacing = true
bracketSameLine = true
endOfLine = "lf"

3
.yarnrc.yml Normal file
View File

@ -0,0 +1,3 @@
enableMessageNames: false
nodeLinker: node-modules

View File

@ -1,61 +0,0 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1722813957,
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@ -1,21 +0,0 @@
{
description = "Frontend for GéJDR";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachSystem ["x86_64-linux" "x86_64-darwin"] (system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShell = with pkgs; mkShell {
buildInputs = [
nodejs_20
nodePackages."@volar/vue-language-server" # LSP server
];
};
});
}

5107
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,13 +7,13 @@
"dev": "vite", "dev": "vite",
"build": "run-p type-check \"build-only {@}\" --", "build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview", "preview": "vite preview",
"test:unit": "vitest -c vitest.config.ci.ts", "test:unit": "vitest",
"test:unit:local": "vitest -c vitest.config.local.ts --ui",
"build-only": "vite build", "build-only": "vite build",
"type-check": "vue-tsc --build --force", "type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore", "lint": "yarn lint:eslint && yarn lint:oxlint",
"format": "prettier --write src/", "lint:eslint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format-check": "prettier --check src/" "lint:oxlint": "oxlint -D perf",
"format": "prettier --write src/"
}, },
"dependencies": { "dependencies": {
"@fontsource/poppins": "^5.0.8", "@fontsource/poppins": "^5.0.8",
@ -23,28 +23,29 @@
"pinia": "^2.1.7", "pinia": "^2.1.7",
"pocketbase": "^0.21.1", "pocketbase": "^0.21.1",
"rxjs": "^7.8.1", "rxjs": "^7.8.1",
"vue": "^3.4.29", "vue": "^3.4.19",
"vue-router": "^4.3.3" "vue-router": "^4.2.5"
}, },
"devDependencies": { "devDependencies": {
"@rushstack/eslint-patch": "^1.8.0", "@rushstack/eslint-patch": "^1.7.2",
"@tsconfig/node20": "^20.1.4", "@tsconfig/node20": "^20.1.2",
"@types/jsdom": "^21.1.7", "@types/jsdom": "^21.1.6",
"@types/node": "^20.14.5", "@types/node": "^20.11.17",
"@vitejs/plugin-vue": "^5.0.5", "@vitejs/plugin-vue": "^5.0.4",
"@vitest/ui": "^1.6.0",
"@vue/eslint-config-prettier": "^9.0.0", "@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0", "@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.6", "@vue/test-utils": "^2.4.4",
"@vue/tsconfig": "^0.5.1", "@vue/tsconfig": "^0.5.1",
"eslint": "^8.57.0", "eslint": "^8.56.0",
"eslint-plugin-vue": "^9.23.1", "eslint-plugin-vue": "^9.21.1",
"jsdom": "^24.1.0", "jsdom": "^24.0.0",
"npm-run-all2": "^6.2.0", "npm-run-all2": "^6.1.2",
"oxlint": "^0.2.8",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"typescript": "~5.4.0", "typescript": "~5.3.3",
"vite": "^5.3.1", "vite": "^5.1.1",
"vitest": "^1.6.0", "vitest": "^1.2.2",
"vue-tsc": "^2.0.21" "vue-tsc": "^1.8.27"
} },
"packageManager": "yarn@4.1.0"
} }

View File

@ -1,14 +0,0 @@
import { fileURLToPath } from 'node:url';
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config';
import viteConfig from './vite.config';
export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url)),
},
})
);

View File

@ -1,14 +0,0 @@
import { fileURLToPath } from 'node:url';
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config';
import viteConfig from './vite.config';
export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/**'],
root: fileURLToPath(new URL('./', import.meta.url)),
},
})
);

14
vitest.config.ts Normal file
View File

@ -0,0 +1,14 @@
import { fileURLToPath } from 'node:url'
import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
import viteConfig from './vite.config'
export default mergeConfig(
viteConfig,
defineConfig({
test: {
environment: 'jsdom',
exclude: [...configDefaults.exclude, 'e2e/*'],
root: fileURLToPath(new URL('./', import.meta.url))
}
})
)

4286
yarn.lock Normal file

File diff suppressed because it is too large Load Diff