-
Notifications
You must be signed in to change notification settings - Fork 0
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
282 changed files
with
11,498 additions
and
6,795 deletions.
There are no files selected for viewing
Empty file.
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,19 @@ | ||
# 应用配置面板 | ||
VITE_APP_SETTING = false | ||
# 页面标题 | ||
VITE_APP_TITLE = 页面标题(test) | ||
# 接口请求地址,会设置到 axios 的 baseURL 参数上 | ||
VITE_APP_API_BASEURL = / | ||
# 调试工具,可设置 eruda 或 vconsole,如果不需要开启则留空 | ||
VITE_APP_DEBUG_TOOL = | ||
# 是否禁用开发者工具,可防止被调试 | ||
VITE_APP_DISABLE_DEVTOOL = false | ||
|
||
# 是否在打包时启用 Mock | ||
VITE_BUILD_MOCK = true | ||
# 是否在打包时生成 sourcemap | ||
VITE_BUILD_SOURCEMAP = true | ||
# 是否在打包时开启压缩,支持 gzip 和 brotli | ||
VITE_BUILD_COMPRESS = | ||
# 是否在打包后生成存档,支持 zip 和 tar | ||
VITE_BUILD_ARCHIVE = |
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 |
---|---|---|
@@ -1 +1 @@ | ||
20 | ||
22 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
shamefully-hoist=true | ||
strict-peer-dependencies=false | ||
engine-strict=true | ||
verify-deps-before-run=prompt |
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,16 @@ | ||
{ | ||
"$schema": "https://shadcn-vue.com/schema.json", | ||
"style": "default", | ||
"typescript": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "src/assets/index.css", | ||
"baseColor": "neutral", | ||
"cssVariables": true | ||
}, | ||
"framework": "vite", | ||
"aliases": { | ||
"components": "@/ui/shadcn", | ||
"utils": "@/utils" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ export default antfu( | |
ignores: [ | ||
'public', | ||
'dist*', | ||
'src/ui/shadcn/ui', | ||
], | ||
}, | ||
{ | ||
|
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,204 @@ | ||
<style> | ||
@keyframes rainbow { | ||
0% { --rainbow-color: #00a98e; } | ||
1.25% { --rainbow-color: #00a996; } | ||
2.5% { --rainbow-color: #00a99f; } | ||
3.75% { --rainbow-color: #00a9a7; } | ||
5% { --rainbow-color: #00a9b0; } | ||
6.25% { --rainbow-color: #00a9b8; } | ||
7.5% { --rainbow-color: #00a9c0; } | ||
8.75% { --rainbow-color: #00a8c7; } | ||
10% { --rainbow-color: #00a8cf; } | ||
11.25% { --rainbow-color: #00a7d5; } | ||
12.5% { --rainbow-color: #00a6dc; } | ||
13.75% { --rainbow-color: #00a6e2; } | ||
15% { --rainbow-color: #00a4e7; } | ||
16.25% { --rainbow-color: #00a3ec; } | ||
17.5% { --rainbow-color: #00a2f1; } | ||
18.75% { --rainbow-color: #00a0f4; } | ||
20% { --rainbow-color: #009ff7; } | ||
21.25% { --rainbow-color: #009dfa; } | ||
22.5% { --rainbow-color: #009bfc; } | ||
23.75% { --rainbow-color: #0098fd; } | ||
25% { --rainbow-color: #0096fd; } | ||
26.25% { --rainbow-color: #0093fd; } | ||
27.5% { --rainbow-color: #2e90fc; } | ||
28.75% { --rainbow-color: #4d8dfa; } | ||
30% { --rainbow-color: #638af8; } | ||
31.25% { --rainbow-color: #7587f5; } | ||
32.5% { --rainbow-color: #8583f1; } | ||
33.75% { --rainbow-color: #9280ed; } | ||
35% { --rainbow-color: #9f7ce9; } | ||
36.25% { --rainbow-color: #aa78e3; } | ||
37.5% { --rainbow-color: #b574dd; } | ||
38.75% { --rainbow-color: #be71d7; } | ||
40% { --rainbow-color: #c76dd1; } | ||
41.25% { --rainbow-color: #cf69c9; } | ||
42.5% { --rainbow-color: #d566c2; } | ||
43.75% { --rainbow-color: #dc63ba; } | ||
45% { --rainbow-color: #e160b3; } | ||
46.25% { --rainbow-color: #e65eab; } | ||
47.5% { --rainbow-color: #e95ca2; } | ||
48.75% { --rainbow-color: #ed5a9a; } | ||
50% { --rainbow-color: #ef5992; } | ||
51.25% { --rainbow-color: #f15989; } | ||
52.5% { --rainbow-color: #f25981; } | ||
53.75% { --rainbow-color: #f25a79; } | ||
55% { --rainbow-color: #f25c71; } | ||
56.25% { --rainbow-color: #f15e69; } | ||
57.5% { --rainbow-color: #ef6061; } | ||
58.75% { --rainbow-color: #ed635a; } | ||
60% { --rainbow-color: #eb6552; } | ||
61.25% { --rainbow-color: #e8694b; } | ||
62.5% { --rainbow-color: #e46c44; } | ||
63.75% { --rainbow-color: #e06f3d; } | ||
65% { --rainbow-color: #db7336; } | ||
66.25% { --rainbow-color: #d77630; } | ||
67.5% { --rainbow-color: #d17a2a; } | ||
68.75% { --rainbow-color: #cc7d24; } | ||
70% { --rainbow-color: #c6811e; } | ||
71.25% { --rainbow-color: #bf8418; } | ||
72.5% { --rainbow-color: #b98713; } | ||
73.75% { --rainbow-color: #b28a0f; } | ||
75% { --rainbow-color: #ab8d0c; } | ||
76.25% { --rainbow-color: #a3900b; } | ||
77.5% { --rainbow-color: #9c920d; } | ||
78.75% { --rainbow-color: #949510; } | ||
80% { --rainbow-color: #8b9715; } | ||
81.25% { --rainbow-color: #83991b; } | ||
82.5% { --rainbow-color: #7a9b21; } | ||
83.75% { --rainbow-color: #719d27; } | ||
85% { --rainbow-color: #679e2e; } | ||
86.25% { --rainbow-color: #5da035; } | ||
87.5% { --rainbow-color: #51a13c; } | ||
88.75% { --rainbow-color: #44a244; } | ||
90% { --rainbow-color: #34a44b; } | ||
91.25% { --rainbow-color: #1ba553; } | ||
92.5% { --rainbow-color: #00a65b; } | ||
93.75% { --rainbow-color: #00a663; } | ||
95% { --rainbow-color: #00a76c; } | ||
96.25% { --rainbow-color: #00a874; } | ||
97.5% { --rainbow-color: #00a87d; } | ||
98.75% { --rainbow-color: #00a985; } | ||
100% { --rainbow-color: #00a98e; } | ||
} | ||
|
||
:root { | ||
--rainbow-color: #00a98e; | ||
animation: rainbow 20s linear infinite; | ||
} | ||
|
||
.loading-container { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
z-index: 10000; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
color: var(--rainbow-color); | ||
user-select: none; | ||
background-color: snow; | ||
} | ||
|
||
.loading-container *::before, | ||
.loading-container *::after { | ||
box-sizing: content-box; | ||
} | ||
|
||
.loading-container .loading { | ||
display: flex; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
justify-content: center; | ||
width: 40px; | ||
height: 40px; | ||
} | ||
|
||
.loading-container .loading .square { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 20px; | ||
height: 20px; | ||
} | ||
|
||
.loading-container .loading .square::before { | ||
width: 10px; | ||
height: 10px; | ||
content: ""; | ||
border: 3px solid var(--rainbow-color); | ||
border-radius: 15%; | ||
animation: square-to-dot-animation 2s linear infinite; | ||
} | ||
|
||
.loading-container .loading .square:nth-child(1)::before { | ||
animation-delay: calc(150ms * 1); | ||
} | ||
|
||
.loading-container .loading .square:nth-child(2)::before { | ||
animation-delay: calc(150ms * 2); | ||
} | ||
|
||
.loading-container .loading .square:nth-child(3)::before { | ||
animation-delay: calc(150ms * 3); | ||
} | ||
|
||
.loading-container .loading .square:nth-child(4)::before { | ||
animation-delay: calc(150ms * 4); | ||
} | ||
|
||
@keyframes square-to-dot-animation { | ||
15%, | ||
25% { | ||
width: 0; | ||
height: 0; | ||
margin: 5px; | ||
border-width: 5px; | ||
border-radius: 100%; | ||
} | ||
|
||
40% { | ||
width: 10px; | ||
height: 10px; | ||
margin: initial; | ||
border-width: 3px; | ||
border-radius: 15%; | ||
} | ||
} | ||
|
||
.loading-container .name { | ||
position: relative; | ||
margin-top: 20px; | ||
font-size: 24px; | ||
line-height: 1.5; | ||
} | ||
|
||
.loading-container .tips { | ||
position: relative; | ||
margin-top: 10px; | ||
font-size: 16px; | ||
opacity: 0.5; | ||
line-height: 1.5; | ||
} | ||
|
||
.loading-container .tips::after { | ||
position: absolute; | ||
padding-left: 5px; | ||
content: "…"; | ||
} | ||
</style> | ||
|
||
<div class="loading-container"> | ||
<div class="loading"> | ||
<div class="square"></div> | ||
<div class="square"></div> | ||
<div class="square"></div> | ||
<div class="square"></div> | ||
</div> | ||
<div class="name">%VITE_APP_TITLE%</div> | ||
<div class="tips">载入中</div> | ||
</div> |
Oops, something went wrong.