create-bubbles 0.1.3 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/template-react-rsbuild-biome/biome.json +26 -4
- package/template-react-rsbuild-biome/package.json +24 -24
- package/template-react-rsbuild-biome/src/App.tsx +1 -0
- package/template-react-rsbuild-biome/src/pages/home/index.tsx +1 -1
- package/template-react-rsbuild-biome/src/types/auto-import.d.ts +40 -30
- package/template-react-rsbuild-biome/src/utils/request/core/index.ts +1 -1
- package/template-react-rsbuild-biome/uno.config.ts +2 -2
- package/template-vue-rsbuild-biome/biome.json +33 -5
- package/template-vue-vite-biome/biome.json +7 -2
- package/template-vue-vite-eslint/.env +4 -2
- package/template-vue-vite-eslint/.env.development +2 -1
- package/template-vue-vite-eslint/.vscode/settings.json +8 -0
- package/template-vue-vite-eslint/eslint.config.js +7 -2
- package/template-vue-vite-eslint/package.json +32 -26
- package/template-vue-vite-eslint/src/api/index.ts +12 -0
- package/template-vue-vite-eslint/src/assets/icon/computer-data.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/cpu.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/data-search.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/home.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/knowledge-graph.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/robot.svg +3 -0
- package/template-vue-vite-eslint/src/assets/image/.gitkeep +0 -0
- package/template-vue-vite-eslint/src/components/Icon/svg-icon.vue +2 -2
- package/template-vue-vite-eslint/src/hooks/chart/lib.ts +57 -0
- package/template-vue-vite-eslint/src/hooks/chart/useEcharts.ts +65 -0
- package/template-vue-vite-eslint/src/layout/default/header/index.vue +12 -0
- package/template-vue-vite-eslint/src/layout/default/index.vue +53 -1
- package/template-vue-vite-eslint/src/main.ts +1 -0
- package/template-vue-vite-eslint/src/router/interface.ts +9 -0
- package/template-vue-vite-eslint/src/router/modules/example.ts +21 -0
- package/template-vue-vite-eslint/src/router/modules/index.ts +14 -9
- package/template-vue-vite-eslint/src/styles/element-plus-variables.css +1 -2
- package/template-vue-vite-eslint/src/styles/index.scss +2 -0
- package/template-vue-vite-eslint/src/styles/plus-pro-components-variables.css +3 -0
- package/template-vue-vite-eslint/src/types/auto-import.d.ts +78 -0
- package/template-vue-vite-eslint/src/types/components.d.ts +22 -0
- package/template-vue-vite-eslint/src/types/index.d.ts +1 -0
- package/template-vue-vite-eslint/src/utils/env.ts +5 -4
- package/template-vue-vite-eslint/src/utils/request/core/index.ts +19 -5
- package/template-vue-vite-eslint/src/utils/request/index.ts +4 -1
- package/template-vue-vite-eslint/src/views/example/echart/config.ts +1794 -0
- package/template-vue-vite-eslint/src/views/example/echart/index.vue +22 -0
- package/template-vue-vite-eslint/src/views/example/h-full.vue +24 -0
- package/template-vue-vite-eslint/src/views/example/tree-chart.vue +94 -0
- package/template-vue-vite-eslint/src/views/home/index.vue +3 -2
- package/template-vue-vite-eslint/tsconfig.json +1 -1
- package/template-vue-vite-eslint/uno.config.ts +6 -2
- package/template-vue-vite-eslint/vite.config.ts +13 -4
- package/template-vue-vite-eslint/.gitlab-ci.yml +0 -84
- package/template-vue-vite-eslint/src/views/model/index.vue +0 -7
- /package/dist/{index.js → index.mjs} +0 -0
- /package/template-vue-vite-eslint/src/assets/icon/{vue.svg → logo.svg} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-bubbles",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "bubbles plant",
|
|
6
6
|
"bin": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"funding": "https://github.com/435012357/bubblesjs",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^24.3.0",
|
|
30
|
-
"tsdown": "^0.
|
|
30
|
+
"tsdown": "^0.18.3"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@clack/prompts": "^0.11.0",
|
|
@@ -17,7 +17,11 @@
|
|
|
17
17
|
"useNumberNamespace": "off",
|
|
18
18
|
"useNodejsImportProtocol": "off",
|
|
19
19
|
"noNonNullAssertion": "off",
|
|
20
|
-
"noUnusedTemplateLiteral": "off"
|
|
20
|
+
"noUnusedTemplateLiteral": "off",
|
|
21
|
+
"useConst": {
|
|
22
|
+
"level": "warn",
|
|
23
|
+
"fix": "unsafe"
|
|
24
|
+
}
|
|
21
25
|
},
|
|
22
26
|
"complexity": {
|
|
23
27
|
"noUselessTypeConstraint": "off",
|
|
@@ -28,9 +32,21 @@
|
|
|
28
32
|
"useExhaustiveDependencies": "off",
|
|
29
33
|
"useHookAtTopLevel": "off",
|
|
30
34
|
"noUnusedFunctionParameters": "off",
|
|
31
|
-
"noUnusedVariables": "off"
|
|
35
|
+
"noUnusedVariables": "off",
|
|
36
|
+
"useUniqueElementIds": "off",
|
|
37
|
+
"useParseIntRadix": "off"
|
|
38
|
+
},
|
|
39
|
+
"security": {
|
|
40
|
+
"noDangerouslySetInnerHtml": "off"
|
|
32
41
|
},
|
|
33
42
|
"suspicious": {
|
|
43
|
+
"noConsole": {
|
|
44
|
+
"level": "warn",
|
|
45
|
+
"options": {
|
|
46
|
+
"allow": ["warn", "error"]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"noDebugger": "warn",
|
|
34
50
|
"noGlobalIsNan": "off",
|
|
35
51
|
"noGlobalIsFinite": "off",
|
|
36
52
|
"noExplicitAny": "off",
|
|
@@ -53,9 +69,15 @@
|
|
|
53
69
|
"noStaticElementInteractions": "off",
|
|
54
70
|
"useAriaPropsSupportedByRole": "off",
|
|
55
71
|
"useAriaPropsForRole": "off",
|
|
56
|
-
"useValidAnchor": "off"
|
|
72
|
+
"useValidAnchor": "off",
|
|
73
|
+
"useMediaCaption": "off"
|
|
57
74
|
},
|
|
58
|
-
"nursery":
|
|
75
|
+
"nursery": {
|
|
76
|
+
"useSortedClasses": {
|
|
77
|
+
"level": "warn",
|
|
78
|
+
"fix": "safe"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
59
81
|
}
|
|
60
82
|
},
|
|
61
83
|
"css": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "react-rsbuild-biomejs",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "rsbuild dev --env-mode development",
|
|
7
7
|
"dev:prod": "rsbuild dev --env-mode production",
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
"reinstall": "rimraf pnpm-lock.yaml && rimraf node_modules && pnpm install"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@alova/adapter-axios": "^2.0.
|
|
16
|
-
"@ant-design/icons
|
|
17
|
-
"ahooks": "^3.9.
|
|
18
|
-
"alova": "^3.
|
|
19
|
-
"antd": "^
|
|
20
|
-
"dayjs": "^1.11.
|
|
21
|
-
"react": "^19.2.
|
|
22
|
-
"react-dom": "^19.2.
|
|
23
|
-
"react-router": "^7.
|
|
24
|
-
"zustand": "^5.0.
|
|
15
|
+
"@alova/adapter-axios": "^2.0.17",
|
|
16
|
+
"@ant-design/icons": "~6.1.0",
|
|
17
|
+
"ahooks": "^3.9.6",
|
|
18
|
+
"alova": "^3.4.1",
|
|
19
|
+
"antd": "^6.1.0",
|
|
20
|
+
"dayjs": "^1.11.19",
|
|
21
|
+
"react": "^19.2.3",
|
|
22
|
+
"react-dom": "^19.2.3",
|
|
23
|
+
"react-router": "^7.10.1",
|
|
24
|
+
"zustand": "^5.0.9"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@biomejs/biome": "^2.
|
|
28
|
-
"@commitlint/config-conventional": "^20.
|
|
29
|
-
"@rsbuild/core": "^1.
|
|
30
|
-
"@rsbuild/plugin-react": "^1.4.
|
|
27
|
+
"@biomejs/biome": "^2.3.8",
|
|
28
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
29
|
+
"@rsbuild/core": "^1.6.14",
|
|
30
|
+
"@rsbuild/plugin-react": "^1.4.2",
|
|
31
31
|
"@rsbuild/plugin-sass": "^1.4.0",
|
|
32
|
-
"@rsbuild/plugin-svgr": "^1.2.
|
|
33
|
-
"@types/react": "^19.2.
|
|
34
|
-
"@types/react-dom": "^19.2.
|
|
35
|
-
"@unocss/postcss": "^66.5.
|
|
36
|
-
"lefthook": "^
|
|
37
|
-
"prettier": "^3.
|
|
32
|
+
"@rsbuild/plugin-svgr": "^1.2.3",
|
|
33
|
+
"@types/react": "^19.2.7",
|
|
34
|
+
"@types/react-dom": "^19.2.3",
|
|
35
|
+
"@unocss/postcss": "^66.5.10",
|
|
36
|
+
"lefthook": "^2.0.11",
|
|
37
|
+
"prettier": "^3.7.4",
|
|
38
38
|
"typescript": "^5.9.3",
|
|
39
|
-
"unocss": "^66.5.
|
|
40
|
-
"unplugin-auto-import": "^20.
|
|
39
|
+
"unocss": "^66.5.10",
|
|
40
|
+
"unplugin-auto-import": "^20.3.0"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -6,34 +6,44 @@
|
|
|
6
6
|
// biome-ignore lint: disable
|
|
7
7
|
export {}
|
|
8
8
|
declare global {
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
9
|
+
const Activity: typeof import('react').Activity
|
|
10
|
+
const Fragment: typeof import('react').Fragment
|
|
11
|
+
const Suspense: typeof import('react').Suspense
|
|
12
|
+
const cache: typeof import('react').cache
|
|
13
|
+
const cacheSignal: typeof import('react').cacheSignal
|
|
14
|
+
const createContext: typeof import('react').createContext
|
|
15
|
+
const createRef: typeof import('react').createRef
|
|
16
|
+
const forwardRef: typeof import('react').forwardRef
|
|
17
|
+
const lazy: typeof import('react').lazy
|
|
18
|
+
const memo: typeof import('react').memo
|
|
19
|
+
const startTransition: typeof import('react').startTransition
|
|
20
|
+
const use: typeof import('react').use
|
|
21
|
+
const useActionState: typeof import('react').useActionState
|
|
22
|
+
const useCallback: typeof import('react').useCallback
|
|
23
|
+
const useContext: typeof import('react').useContext
|
|
24
|
+
const useDebugValue: typeof import('react').useDebugValue
|
|
25
|
+
const useDeferredValue: typeof import('react').useDeferredValue
|
|
26
|
+
const useEffect: typeof import('react').useEffect
|
|
27
|
+
const useEffectEvent: typeof import('react').useEffectEvent
|
|
28
|
+
const useHref: typeof import('react-router').useHref
|
|
29
|
+
const useId: typeof import('react').useId
|
|
30
|
+
const useImperativeHandle: typeof import('react').useImperativeHandle
|
|
31
|
+
const useInRouterContext: typeof import('react-router').useInRouterContext
|
|
32
|
+
const useInsertionEffect: typeof import('react').useInsertionEffect
|
|
33
|
+
const useLayoutEffect: typeof import('react').useLayoutEffect
|
|
34
|
+
const useLocation: typeof import('react-router').useLocation
|
|
35
|
+
const useMemo: typeof import('react').useMemo
|
|
36
|
+
const useNavigate: typeof import('react-router').useNavigate
|
|
37
|
+
const useNavigationType: typeof import('react-router').useNavigationType
|
|
38
|
+
const useOptimistic: typeof import('react').useOptimistic
|
|
39
|
+
const useOutlet: typeof import('react-router').useOutlet
|
|
40
|
+
const useOutletContext: typeof import('react-router').useOutletContext
|
|
41
|
+
const useParams: typeof import('react-router').useParams
|
|
42
|
+
const useReducer: typeof import('react').useReducer
|
|
43
|
+
const useRef: typeof import('react').useRef
|
|
44
|
+
const useResolvedPath: typeof import('react-router').useResolvedPath
|
|
45
|
+
const useRoutes: typeof import('react-router').useRoutes
|
|
46
|
+
const useState: typeof import('react').useState
|
|
47
|
+
const useSyncExternalStore: typeof import('react').useSyncExternalStore
|
|
48
|
+
const useTransition: typeof import('react').useTransition
|
|
39
49
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type AlovaGenerics, type AlovaOptions, createAlova } from 'alova'
|
|
2
|
-
import { deepMergeObject, isReadableStream } from './utils'
|
|
3
2
|
import adapterFetch from 'alova/fetch'
|
|
3
|
+
import { deepMergeObject, isReadableStream } from './utils'
|
|
4
4
|
|
|
5
5
|
interface statusMap {
|
|
6
6
|
success?: number
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineConfig,
|
|
1
|
+
import { defineConfig, presetWind4 } from 'unocss'
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
4
|
content: {
|
|
5
5
|
filesystem: ['./src/**/*.{html,js,ts,jsx,tsx}'],
|
|
6
6
|
},
|
|
7
|
-
presets: [
|
|
7
|
+
presets: [presetWind4()],
|
|
8
8
|
})
|
|
@@ -17,7 +17,11 @@
|
|
|
17
17
|
"useNumberNamespace": "off",
|
|
18
18
|
"useNodejsImportProtocol": "off",
|
|
19
19
|
"noNonNullAssertion": "off",
|
|
20
|
-
"noUnusedTemplateLiteral": "off"
|
|
20
|
+
"noUnusedTemplateLiteral": "off",
|
|
21
|
+
"useConst": {
|
|
22
|
+
"level": "warn",
|
|
23
|
+
"fix": "unsafe"
|
|
24
|
+
}
|
|
21
25
|
},
|
|
22
26
|
"complexity": {
|
|
23
27
|
"noUselessTypeConstraint": "off",
|
|
@@ -28,7 +32,12 @@
|
|
|
28
32
|
"useExhaustiveDependencies": "off",
|
|
29
33
|
"useHookAtTopLevel": "off",
|
|
30
34
|
"noUnusedFunctionParameters": "off",
|
|
31
|
-
"noUnusedVariables": "off"
|
|
35
|
+
"noUnusedVariables": "off",
|
|
36
|
+
"useUniqueElementIds": "off",
|
|
37
|
+
"useParseIntRadix": "off"
|
|
38
|
+
},
|
|
39
|
+
"security": {
|
|
40
|
+
"noDangerouslySetInnerHtml": "off"
|
|
32
41
|
},
|
|
33
42
|
"suspicious": {
|
|
34
43
|
"noGlobalIsNan": "off",
|
|
@@ -53,9 +62,15 @@
|
|
|
53
62
|
"noStaticElementInteractions": "off",
|
|
54
63
|
"useAriaPropsSupportedByRole": "off",
|
|
55
64
|
"useAriaPropsForRole": "off",
|
|
56
|
-
"useValidAnchor": "off"
|
|
65
|
+
"useValidAnchor": "off",
|
|
66
|
+
"useMediaCaption": "off"
|
|
57
67
|
},
|
|
58
|
-
"nursery":
|
|
68
|
+
"nursery": {
|
|
69
|
+
"useSortedClasses": {
|
|
70
|
+
"level": "warn",
|
|
71
|
+
"fix": "safe"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
59
74
|
}
|
|
60
75
|
},
|
|
61
76
|
"css": {
|
|
@@ -74,7 +89,20 @@
|
|
|
74
89
|
"enabled": true,
|
|
75
90
|
"actions": {
|
|
76
91
|
"source": {
|
|
77
|
-
"organizeImports":
|
|
92
|
+
"organizeImports": {
|
|
93
|
+
"level": "on",
|
|
94
|
+
"options": {
|
|
95
|
+
"identifierOrder": "natural",
|
|
96
|
+
"groups": [
|
|
97
|
+
[":NODE:", ":BUN:"],
|
|
98
|
+
":BLANK_LINE:",
|
|
99
|
+
["react", "react-dom/**", "react-dom", "react-router", "react-router-dom"],
|
|
100
|
+
["vue", "vue-router"],
|
|
101
|
+
":BLANK_LINE:",
|
|
102
|
+
["@/**", "**"]
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
78
106
|
}
|
|
79
107
|
}
|
|
80
108
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
3
|
"files": {
|
|
4
4
|
"ignoreUnknown": true,
|
|
5
|
-
"includes": ["**", "!public/**/*", "!node_modules/**/*", "!dist/**/*"
|
|
5
|
+
"includes": ["**", "!public/**/*", "!node_modules/**/*", "!dist/**/*"]
|
|
6
6
|
},
|
|
7
7
|
"formatter": {
|
|
8
8
|
"enabled": true,
|
|
@@ -65,7 +65,12 @@
|
|
|
65
65
|
"useValidAnchor": "off",
|
|
66
66
|
"useMediaCaption": "off"
|
|
67
67
|
},
|
|
68
|
-
"nursery":
|
|
68
|
+
"nursery": {
|
|
69
|
+
"useSortedClasses": {
|
|
70
|
+
"level": "warn",
|
|
71
|
+
"fix": "safe"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
69
74
|
}
|
|
70
75
|
},
|
|
71
76
|
"css": {
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
# 后端
|
|
2
|
+
VITE_API_URL = 'http://localhost:8080'
|
|
@@ -7,7 +7,9 @@ export default antfu({
|
|
|
7
7
|
},
|
|
8
8
|
vue: true,
|
|
9
9
|
unocss: true,
|
|
10
|
-
},
|
|
10
|
+
},
|
|
11
|
+
// import rules
|
|
12
|
+
{
|
|
11
13
|
rules: {
|
|
12
14
|
'perfectionist/sort-imports': [ // 配置导入排序
|
|
13
15
|
'error',
|
|
@@ -60,5 +62,8 @@ export default antfu({
|
|
|
60
62
|
},
|
|
61
63
|
],
|
|
62
64
|
},
|
|
63
|
-
|
|
65
|
+
}, {
|
|
66
|
+
rules: {
|
|
67
|
+
'n/prefer-global/process': 'off',
|
|
68
|
+
},
|
|
64
69
|
})
|
|
@@ -1,52 +1,58 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "bubbles-project",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"scripts": {
|
|
7
|
-
"dev": "vite",
|
|
7
|
+
"dev": "vite --mode development",
|
|
8
8
|
"build": "vue-tsc -b && vite build",
|
|
9
9
|
"preview": "vite preview",
|
|
10
10
|
"lint": "eslint",
|
|
11
11
|
"lint:fix": "eslint --fix"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@alova/adapter-axios": "^2.0.
|
|
14
|
+
"@alova/adapter-axios": "^2.0.17",
|
|
15
15
|
"@element-plus/icons-vue": "^2.3.2",
|
|
16
|
-
"@
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
16
|
+
"@unocss/preset-wind3": "^66.5.10",
|
|
17
|
+
"@vue-flow/core": "^1.48.0",
|
|
18
|
+
"alova": "^3.4.1",
|
|
19
|
+
"axios": "^1.13.2",
|
|
20
|
+
"dayjs": "^1.11.19",
|
|
20
21
|
"echarts": "^6.0.0",
|
|
21
|
-
"element-plus": "^2.
|
|
22
|
+
"element-plus": "^2.12.0",
|
|
23
|
+
"nanoid": "^5.1.6",
|
|
22
24
|
"nprogress": "^0.2.0",
|
|
23
|
-
"pinia": "^3.0.
|
|
24
|
-
"pinia-plugin-persistedstate": "^4.
|
|
25
|
+
"pinia": "^3.0.4",
|
|
26
|
+
"pinia-plugin-persistedstate": "^4.7.1",
|
|
25
27
|
"plus-pro-components": "^0.1.30",
|
|
26
|
-
"radashi": "^12.7.
|
|
27
|
-
"vue": "^3.5.
|
|
28
|
-
"vue-
|
|
28
|
+
"radashi": "^12.7.1",
|
|
29
|
+
"vue": "^3.5.25",
|
|
30
|
+
"vue-draggable-plus": "^0.6.0",
|
|
31
|
+
"vue-router": "^4.6.4",
|
|
32
|
+
"vue3-blocks-tree": "^0.6.2"
|
|
29
33
|
},
|
|
30
34
|
"devDependencies": {
|
|
31
|
-
"@antfu/eslint-config": "^6.
|
|
32
|
-
"@biomejs/biome": "^2.
|
|
33
|
-
"@commitlint/cli": "^20.
|
|
34
|
-
"@commitlint/config-conventional": "^20.
|
|
35
|
+
"@antfu/eslint-config": "^6.7.1",
|
|
36
|
+
"@biomejs/biome": "^2.3.9",
|
|
37
|
+
"@commitlint/cli": "^20.2.0",
|
|
38
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
35
39
|
"@plus-pro-components/resolver": "^0.0.3",
|
|
40
|
+
"@types/node": "^24.10.4",
|
|
36
41
|
"@types/nprogress": "^0.2.3",
|
|
37
|
-
"@unocss/eslint-plugin": "^66.5.
|
|
38
|
-
"@
|
|
42
|
+
"@unocss/eslint-plugin": "^66.5.10",
|
|
43
|
+
"@unocss/preset-attributify": "^66.5.10",
|
|
44
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
39
45
|
"@vue/tsconfig": "^0.8.1",
|
|
40
|
-
"eslint": "9.
|
|
41
|
-
"eslint-plugin-format": "^1.0
|
|
46
|
+
"eslint": "9.39.2",
|
|
47
|
+
"eslint-plugin-format": "^1.1.0",
|
|
42
48
|
"fast-glob": "^3.3.3",
|
|
43
|
-
"lefthook": "^2.0.
|
|
44
|
-
"sass": "^1.
|
|
49
|
+
"lefthook": "^2.0.12",
|
|
50
|
+
"sass": "^1.97.0",
|
|
45
51
|
"typescript": "~5.9.3",
|
|
46
|
-
"unocss": "66.5.
|
|
47
|
-
"unplugin-auto-import": "^20.
|
|
52
|
+
"unocss": "66.5.10",
|
|
53
|
+
"unplugin-auto-import": "^20.3.0",
|
|
48
54
|
"unplugin-vue-components": "^30.0.0",
|
|
49
|
-
"vite": "
|
|
55
|
+
"vite": "8.0.0-beta.2",
|
|
50
56
|
"vite-plugin-inspect": "^11.3.3",
|
|
51
57
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
52
58
|
"vue-tsc": "^3.1.1"
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 15C14.2761 15 14.5 15.2239 14.5 15.5C14.5 15.7761 14.2761 16 14 16H4C3.72386 16 3.5 15.7761 3.5 15.5C3.5 15.2239 3.72386 15 4 15H14ZM15 2C15.5523 2 16 2.44772 16 3V13C16 13.5523 15.5523 14 15 14H3C2.44772 14 2 13.5523 2 13V3C2 2.44772 2.44772 2 3 2H15ZM5.5 7C5.22386 7 5 7.22386 5 7.5V11.5C5 11.7761 5.22386 12 5.5 12C5.77614 12 6 11.7761 6 11.5V7.5C6 7.22386 5.77614 7 5.5 7ZM9 4C8.72386 4 8.5 4.22386 8.5 4.5V11.5C8.5 11.7761 8.72386 12 9 12C9.27614 12 9.5 11.7761 9.5 11.5V4.5C9.5 4.22386 9.27614 4 9 4ZM12.5 6C12.2239 6 12 6.22386 12 6.5V11.5C12 11.7761 12.2239 12 12.5 12C12.7761 12 13 11.7761 13 11.5V6.5C13 6.22386 12.7761 6 12.5 6Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 1.5C12.2761 1.5 12.5 1.72386 12.5 2V3H13L13.2041 3.01074C14.2128 3.113 15 3.96435 15 5V5.5H16C16.2761 5.5 16.5 5.72386 16.5 6C16.5 6.27614 16.2761 6.5 16 6.5H15V8.5H16C16.2761 8.5 16.5 8.72386 16.5 9C16.5 9.27614 16.2761 9.5 16 9.5H15V11.5H16C16.2761 11.5 16.5 11.7239 16.5 12C16.5 12.2761 16.2761 12.5 16 12.5H15V13L14.9893 13.2041C14.8938 14.1457 14.1457 14.8938 13.2041 14.9893L13 15H12.5V16C12.5 16.2761 12.2761 16.5 12 16.5C11.7239 16.5 11.5 16.2761 11.5 16V15H9.5V16C9.5 16.2761 9.27614 16.5 9 16.5C8.72386 16.5 8.5 16.2761 8.5 16V15H6.5V16C6.5 16.2761 6.27614 16.5 6 16.5C5.72386 16.5 5.5 16.2761 5.5 16V15H5C3.96435 15 3.113 14.2128 3.01074 13.2041L3 13V12.5H2C1.72386 12.5 1.5 12.2761 1.5 12C1.5 11.7239 1.72386 11.5 2 11.5H3V9.5H2C1.72386 9.5 1.5 9.27614 1.5 9C1.5 8.72386 1.72386 8.5 2 8.5H3V6.5H2C1.72386 6.5 1.5 6.27614 1.5 6C1.5 5.72386 1.72386 5.5 2 5.5H3V5C3 3.89543 3.89543 3 5 3H5.5V2C5.5 1.72386 5.72386 1.5 6 1.5C6.27614 1.5 6.5 1.72386 6.5 2V3H8.5V2C8.5 1.72386 8.72386 1.5 9 1.5C9.27614 1.5 9.5 1.72386 9.5 2V3H11.5V2C11.5 1.72386 11.7239 1.5 12 1.5ZM5 13H13V5H5V13ZM12 12H6V6H12V12Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 1C14.5523 1 15 1.44772 15 2V16C15 16.5523 14.5523 17 14 17H4C3.44772 17 3 16.5523 3 16V2C3 1.44772 3.44772 1 4 1H14ZM6.5 13C6.22386 13 6 13.2239 6 13.5C6 13.7761 6.22386 14 6.5 14H9.5C9.77614 14 10 13.7761 10 13.5C10 13.2239 9.77614 13 9.5 13H6.5ZM6.5 11C6.22386 11 6 11.2239 6 11.5C6 11.7761 6.22386 12 6.5 12H11.5C11.7761 12 12 11.7761 12 11.5C12 11.2239 11.7761 11 11.5 11H6.5ZM9 3C7.34315 3 6 4.34315 6 6C6 7.65685 7.34315 9 9 9C9.64777 9 10.246 8.79244 10.7363 8.44336L11.1465 8.85352C11.3417 9.04878 11.6583 9.04878 11.8535 8.85352C12.0488 8.65825 12.0488 8.34175 11.8535 8.14648L11.4434 7.73633C11.7924 7.24598 12 6.64777 12 6C12 4.34315 10.6569 3 9 3ZM9 4C10.1046 4 11 4.89543 11 6C11 7.10457 10.1046 8 9 8C7.89543 8 7 7.10457 7 6C7 4.89543 7.89543 4 9 4Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8.34912 1.55823C8.72361 1.23724 9.27639 1.23724 9.65088 1.55823L15.5981 6.65588C15.8493 6.87118 15.9784 7.1972 15.9419 7.526L15.0991 15.11C15.0429 15.6164 14.6145 15.9996 14.105 15.9996H3.89502C3.38553 15.9996 2.95714 15.6164 2.90088 15.11L2.05811 7.526C2.02157 7.1972 2.15067 6.87118 2.40186 6.65588L8.34912 1.55823ZM9.00049 9.99963C7.89603 9.99963 7.00066 10.8952 7.00049 11.9996V13.9996C7.00049 14.5519 7.4482 14.9996 8.00049 14.9996H10.0005C10.5526 14.9994 11.0005 14.5518 11.0005 13.9996V11.9996C11.0003 10.8953 10.1048 9.99985 9.00049 9.99963Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.48824 2.05228L8.5193 2.7155C8.8533 2.75975 9.19159 2.75975 9.5256 2.7155C12.0632 2.31773 13.594 2.0968 14.5567 2.00817C14.7401 1.98739 14.9259 2.00636 15.1015 2.06384C15.2771 2.12132 15.4386 2.21598 15.5752 2.3415C15.7117 2.46702 15.8203 2.62053 15.8935 2.79178C15.9667 2.96303 16.003 3.14809 15.9998 3.33461V13.6349C16.0032 13.9512 15.895 14.2584 15.6946 14.5015C15.4942 14.7446 15.2147 14.9076 14.9062 14.9613L9.61289 15.9337C9.20926 16.0221 8.79158 16.0221 8.38796 15.9337L3.09461 14.9613C2.78958 14.9001 2.51455 14.735 2.31545 14.4936C2.11635 14.2522 2.00522 13.9491 2.00062 13.6349V3.37871C1.99475 3.18736 2.03072 2.99705 2.10597 2.82134C2.18121 2.64564 2.29388 2.48887 2.43594 2.3622C2.578 2.23553 2.74596 2.14208 2.92784 2.08851C3.10973 2.03494 3.30108 2.02257 3.48824 2.05228ZM6.20038 4.88157H5.9381C5.41764 4.88688 4.91998 5.09816 4.55194 5.47007C4.1839 5.84198 3.97482 6.34487 3.96956 6.87081V7.04764C3.97786 7.6195 4.20636 8.1656 4.60656 8.57001C5.00676 8.97443 5.54717 9.20533 6.11309 9.21371C6.3528 9.2167 6.59071 9.17159 6.81305 9.08098L7.81934 10.6284C7.62667 10.8916 7.50178 11.1992 7.45593 11.5233C7.41007 11.8474 7.44468 12.178 7.55665 12.4853C7.63534 12.685 7.75352 12.8665 7.90396 13.0185C8.0544 13.1705 8.23394 13.2899 8.4316 13.3694C8.69194 13.4901 8.97787 13.5436 9.2637 13.525C9.54953 13.5064 9.82632 13.4163 10.0692 13.2629C10.3121 13.1095 10.5135 12.8975 10.6552 12.6461C10.797 12.3946 10.8747 12.1114 10.8815 11.8221C10.8815 11.5566 10.8378 11.4243 10.8378 11.2475L12.3691 9.96555C12.5774 10.0519 12.8002 10.097 13.0254 10.0983C13.2458 10.0965 13.4621 10.0378 13.6537 9.92758C13.8452 9.81741 14.0057 9.6595 14.1197 9.46891C14.2338 9.27831 14.2977 9.06138 14.3052 8.83877C14.3128 8.61617 14.2639 8.39531 14.163 8.19724C14.047 7.96921 13.8633 7.78357 13.6377 7.66634C13.442 7.56159 13.2229 7.50985 13.0016 7.51617C12.7802 7.52249 12.5643 7.58664 12.3749 7.70238C12.1854 7.81812 12.0288 7.9815 11.9204 8.17658C11.8121 8.37167 11.7555 8.5918 11.7564 8.81553C11.7493 8.94964 11.764 9.08402 11.8001 9.21329L10.2688 10.4952C9.96271 10.2354 9.57496 10.0943 9.1752 10.0974C8.99573 10.0835 8.81558 10.1137 8.65024 10.1857L7.64394 8.63828C8.04027 8.22312 8.26016 7.66775 8.25661 7.09091C8.2703 6.80809 8.22745 6.52537 8.13063 6.25965C8.03381 5.99393 7.885 5.75065 7.69308 5.54433C7.50116 5.338 7.27008 5.17287 7.01361 5.05879C6.75715 4.9447 6.48057 4.884 6.20038 4.88032V4.88157Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M3.29882 13.5027C3.00221 13.3267 2.75358 13.0628 2.57958 12.7393C2.40559 12.4158 2.3128 12.0449 2.31117 11.6663V11.6521C2.30974 10.5331 2.52957 9.42786 2.95459 8.41714C3.37961 7.40643 3.99908 6.51578 4.76775 5.81025C4.77576 5.80337 4.78112 5.79327 4.78273 5.78204C4.78434 5.77081 4.78207 5.75932 4.77639 5.74993L3.56262 3.56489C3.53466 3.515 3.51907 3.45755 3.51746 3.39852C3.51584 3.3395 3.52828 3.28107 3.55346 3.22933C3.57864 3.17758 3.61565 3.13442 3.66062 3.10435C3.70559 3.07427 3.75688 3.05838 3.80914 3.05833C3.84744 3.06099 3.88472 3.07328 3.91827 3.09431C3.95182 3.11533 3.98079 3.14457 4.00306 3.17987L5.21997 5.36846C5.22284 5.37372 5.22663 5.37827 5.23109 5.38185C5.23556 5.38543 5.24062 5.38795 5.24596 5.38928C5.25131 5.3906 5.25684 5.3907 5.26222 5.38956C5.2676 5.38842 5.27272 5.38607 5.27728 5.38265C6.36825 4.56114 7.64996 4.12278 8.96098 4.12278C10.272 4.12278 11.5537 4.56114 12.6447 5.38265C12.654 5.38932 12.6652 5.39157 12.6759 5.38891C12.6867 5.38625 12.696 5.3789 12.702 5.36846L13.9322 3.16035C13.9508 3.12319 13.9758 3.09066 14.0058 3.06475C14.0358 3.03884 14.0701 3.02008 14.1067 3.00962C14.1433 2.99916 14.1814 2.9972 14.2187 3.00388C14.256 3.01056 14.2917 3.02573 14.3236 3.04847C14.3556 3.07121 14.3831 3.10105 14.4045 3.13617C14.426 3.17129 14.4409 3.21096 14.4483 3.25279C14.4558 3.29461 14.4556 3.3377 14.4479 3.37946C14.4401 3.42122 14.425 3.46076 14.4033 3.49569L13.1471 5.74904C13.1412 5.75825 13.1387 5.76973 13.1401 5.78102C13.1416 5.79231 13.1469 5.80249 13.155 5.80937C13.9242 6.51476 14.5442 7.40543 14.9698 8.4163C15.3954 9.42716 15.6157 10.5327 15.6147 11.6521V11.6663C15.614 12.045 15.5217 12.4162 15.3478 12.7399C15.1738 13.0636 14.9249 13.3273 14.6278 13.5027C12.8734 14.5084 10.9305 15.0217 8.96333 14.9993C6.9962 15.0217 5.05322 14.5084 3.29882 13.5027ZM4.39797 10.8945C4.35462 11.1361 4.39779 11.3872 4.51802 11.5929C4.63825 11.7986 4.82573 11.9421 5.03939 11.9919C6.11009 12.2328 7.19745 12.367 8.28893 12.3929C8.26269 12.2673 8.26181 12.1366 8.28635 12.0106C8.31088 11.8846 8.36021 11.7664 8.43067 11.6649C8.50113 11.5634 8.59092 11.4811 8.69337 11.4241C8.79582 11.3671 8.90831 11.3369 9.0225 11.3357C9.13668 11.3346 9.24964 11.3625 9.35298 11.4174C9.45632 11.4723 9.5474 11.5527 9.61947 11.6528C9.69153 11.7529 9.74273 11.8701 9.76927 11.9956C9.79581 12.1211 9.79701 12.2517 9.77277 12.3778C10.7967 12.3314 11.8154 12.1883 12.8182 11.9502C12.9251 11.9257 13.0265 11.8775 13.1168 11.8084C13.207 11.7392 13.2842 11.6505 13.3438 11.5473C13.4034 11.4442 13.4443 11.3286 13.4641 11.2075C13.4838 11.0863 13.4821 10.9619 13.4589 10.8415C13.4358 10.7211 13.3917 10.6071 13.3292 10.5062C13.2667 10.4052 13.1871 10.3193 13.095 10.2534C13.0029 10.1875 12.9001 10.1429 12.7926 10.1223C12.6851 10.1017 12.575 10.1054 12.4688 10.1333C11.2788 10.4137 10.0659 10.5508 8.85028 10.5423C7.68368 10.5482 6.51943 10.4234 5.37463 10.1697C5.16092 10.1207 4.93875 10.1695 4.75684 10.3054C4.57493 10.4413 4.44813 10.6531 4.40425 10.8945H4.39797ZM15.7764 10.3232C15.665 9.44932 15.6281 8.73339 16.0347 8.66863C16.4414 8.60387 16.8615 9.25858 16.9729 10.1324C17.0844 11.0063 16.841 11.7683 16.4336 11.834C16.4166 11.8354 16.3995 11.8354 16.3825 11.834C16.0143 11.8384 15.8856 11.1597 15.7796 10.3232H15.7764ZM1.56297 11.834C1.15628 11.7639 0.920752 10.9992 1.02439 10.1289C1.12802 9.25858 1.55511 8.59944 1.9618 8.66508C2.36848 8.73073 2.33158 9.45021 2.22088 10.324C2.11411 11.1597 1.98535 11.8384 1.614 11.8393C1.59689 11.8389 1.57984 11.8371 1.56297 11.834Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
File without changes
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
defineProps<{
|
|
3
|
-
|
|
3
|
+
icon: string
|
|
4
4
|
}>()
|
|
5
5
|
const attrs = useAttrs()
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
8
|
<template>
|
|
9
9
|
<svg class="svg-icon" aria-hidden="true" v-bind="attrs">
|
|
10
|
-
<use :href="`#icon-${
|
|
10
|
+
<use :href="`#icon-${icon}`" />
|
|
11
11
|
</svg>
|
|
12
12
|
</template>
|
|
13
13
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BarChart,
|
|
3
|
+
GraphChart,
|
|
4
|
+
LineChart,
|
|
5
|
+
MapChart,
|
|
6
|
+
PictorialBarChart,
|
|
7
|
+
PieChart,
|
|
8
|
+
RadarChart,
|
|
9
|
+
} from 'echarts/charts'
|
|
10
|
+
import {
|
|
11
|
+
AriaComponent,
|
|
12
|
+
CalendarComponent,
|
|
13
|
+
DataZoomComponent,
|
|
14
|
+
GraphicComponent,
|
|
15
|
+
GridComponent,
|
|
16
|
+
LegendComponent,
|
|
17
|
+
ParallelComponent,
|
|
18
|
+
PolarComponent,
|
|
19
|
+
RadarComponent,
|
|
20
|
+
TimelineComponent,
|
|
21
|
+
TitleComponent,
|
|
22
|
+
ToolboxComponent,
|
|
23
|
+
TooltipComponent,
|
|
24
|
+
VisualMapComponent,
|
|
25
|
+
} from 'echarts/components'
|
|
26
|
+
import * as echarts from 'echarts/core'
|
|
27
|
+
// TODO 如果想换成SVG渲染,就导出SVGRenderer,
|
|
28
|
+
// 并且放到 echarts.use 里,注释掉 CanvasRenderer
|
|
29
|
+
import { /* SVGRenderer */ CanvasRenderer } from 'echarts/renderers'
|
|
30
|
+
|
|
31
|
+
echarts.use([
|
|
32
|
+
LegendComponent,
|
|
33
|
+
TitleComponent,
|
|
34
|
+
TooltipComponent,
|
|
35
|
+
GridComponent,
|
|
36
|
+
PolarComponent,
|
|
37
|
+
AriaComponent,
|
|
38
|
+
ParallelComponent,
|
|
39
|
+
BarChart,
|
|
40
|
+
LineChart,
|
|
41
|
+
PieChart,
|
|
42
|
+
MapChart,
|
|
43
|
+
RadarChart,
|
|
44
|
+
GraphChart,
|
|
45
|
+
// TODO 因为要兼容Online图表自适应打印,所以改成 CanvasRenderer,可能会模糊
|
|
46
|
+
CanvasRenderer,
|
|
47
|
+
PictorialBarChart,
|
|
48
|
+
RadarComponent,
|
|
49
|
+
ToolboxComponent,
|
|
50
|
+
DataZoomComponent,
|
|
51
|
+
VisualMapComponent,
|
|
52
|
+
TimelineComponent,
|
|
53
|
+
CalendarComponent,
|
|
54
|
+
GraphicComponent,
|
|
55
|
+
])
|
|
56
|
+
|
|
57
|
+
export default echarts
|