diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1edbf53 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +spaces_around_operators = true +max_line_length = 100 + +[*.rs] +indent_size = 4 +indent_style = space +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +charset = utf-8 +spaces_around_operators = true diff --git a/license_ui/bun.lockb b/license_ui/bun.lockb index 8576f74..72e4ca7 100755 Binary files a/license_ui/bun.lockb and b/license_ui/bun.lockb differ diff --git a/license_ui/bunfig.toml b/license_ui/bunfig.toml new file mode 100644 index 0000000..107f2f0 --- /dev/null +++ b/license_ui/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://registry.npmmirror.com" diff --git a/license_ui/package.json b/license_ui/package.json index 0b158fe..ad9341b 100644 --- a/license_ui/package.json +++ b/license_ui/package.json @@ -10,10 +10,21 @@ "preview": "vite preview" }, "dependencies": { + "@mantine/core": "^7.7.1", + "@mantine/dates": "^7.7.1", + "@mantine/form": "^7.7.1", + "@mantine/hooks": "^7.7.1", + "@mantine/modals": "^7.7.1", + "clsx": "^2.0.0", + "dayjs": "^1.11.10", + "events": "^3.3.0", + "ramda": "^0.29.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependencies": { + "@types/events": "^3.0.1", + "@types/ramda": "^0.29.6", "@types/react": "^18.2.66", "@types/react-dom": "^18.2.22", "@typescript-eslint/eslint-plugin": "^7.2.0", @@ -22,6 +33,19 @@ "eslint": "^8.57.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.6", + "cssnano": "^6.0.2", + "lost": "^9.0.2", + "postcss": "^8.4.35", + "postcss-advanced-variables": "^3.0.1", + "postcss-color-mod-function": "^3.0.3", + "postcss-custom-properties": "^13.3.3", + "postcss-import": "^15.1.0", + "postcss-preset-env": "^9.2.0", + "postcss-preset-mantine": "^1.13.0", + "postcss-scss": "^4.0.9", + "postcss-simple-vars": "^7.0.1", + "postcss-utilities": "^0.8.4", + "precss": "^4.0.0", "typescript": "^5.2.2", "vite": "^5.2.0" } diff --git a/license_ui/postcss.config.js b/license_ui/postcss.config.js new file mode 100644 index 0000000..af555d1 --- /dev/null +++ b/license_ui/postcss.config.js @@ -0,0 +1,19 @@ +// eslint-disable-next-line no-undef +export default { + // syntax: "postcss-scss", + plugins: { + "postcss-import": {}, + "postcss-advanced-variables": {}, + "postcss-custom-properties": {}, + "postcss-color-mod-function": {}, + "postcss-utilities": { + centerMethod: "flexbox", + }, + "postcss-preset-mantine": {}, + "postcss-simple-vars": {}, + "postcss-preset-env": { + stage: 2, + }, + // cssnano: {}, + }, +}; diff --git a/license_ui/tsconfig.json b/license_ui/tsconfig.json index a7fc6fb..0d31d6b 100644 --- a/license_ui/tsconfig.json +++ b/license_ui/tsconfig.json @@ -2,10 +2,13 @@ "compilerOptions": { "target": "ES2020", "useDefineForClassFields": true, - "lib": ["ES2020", "DOM", "DOM.Iterable"], + "lib": [ + "ES2020", + "DOM", + "DOM.Iterable" + ], "module": "ESNext", "skipLibCheck": true, - /* Bundler mode */ "moduleResolution": "bundler", "allowImportingTsExtensions": true, @@ -13,13 +16,25 @@ "isolatedModules": true, "noEmit": true, "jsx": "react-jsx", - /* Linting */ "strict": true, "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "noFallthroughCasesInSwitch": true, + /* Path aliases */ + "baseUrl": "./", + "paths": { + "@/*": [ + "src/*" + ], + } }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] -} + "include": [ + "src" + ], + "references": [ + { + "path": "./tsconfig.node.json" + } + ] +} \ No newline at end of file