build(ui):增加前端配套文件。
This commit is contained in:
parent
3dfecaee79
commit
5c26c8b817
21
.editorconfig
Normal file
21
.editorconfig
Normal file
|
@ -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
|
Binary file not shown.
2
license_ui/bunfig.toml
Normal file
2
license_ui/bunfig.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[install]
|
||||
registry = "https://registry.npmmirror.com"
|
|
@ -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"
|
||||
}
|
||||
|
|
19
license_ui/postcss.config.js
Normal file
19
license_ui/postcss.config.js
Normal file
|
@ -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: {},
|
||||
},
|
||||
};
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user