create-young-proj 2.0.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +39 -0
- package/README.md +7 -1
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
- package/src/index.ts +6 -1
- package/template-electron-win7/.vscode/extensions.json +5 -0
- package/template-electron-win7/.vscode/settings.json +49 -0
- package/template-electron-win7/README.md +65 -0
- package/template-electron-win7/RELEASE_NOTES.md +11 -0
- package/template-electron-win7/_gitignore +27 -0
- package/template-electron-win7/dev-app-update.yml +2 -0
- package/template-electron-win7/electron/config/0.local.config.ts +13 -0
- package/template-electron-win7/electron/config/1.dev.config.ts +13 -0
- package/template-electron-win7/electron/config/2.test.config.ts +13 -0
- package/template-electron-win7/electron/config/3.wtest.config.ts +13 -0
- package/template-electron-win7/electron/config/4.online.config.ts +13 -0
- package/template-electron-win7/electron/config.ts +13 -0
- package/template-electron-win7/electron/electron-env.d.ts +58 -0
- package/template-electron-win7/electron/main.ts +318 -0
- package/template-electron-win7/electron/preload.ts +23 -0
- package/template-electron-win7/electron/update.ts +78 -0
- package/template-electron-win7/electron-builder.yaml +67 -0
- package/template-electron-win7/env/.env +1 -0
- package/template-electron-win7/env/.env.development +9 -0
- package/template-electron-win7/env/.env.production +9 -0
- package/template-electron-win7/eslint.config.mjs +33 -0
- package/template-electron-win7/index.html +16 -0
- package/template-electron-win7/package.json +71 -0
- package/template-electron-win7/public/icon.ico +0 -0
- package/template-electron-win7/scripts/afterPack.mjs +36 -0
- package/template-electron-win7/scripts/build.mjs +55 -0
- package/template-electron-win7/src/App.vue +23 -0
- package/template-electron-win7/src/auto-imports.d.ts +305 -0
- package/template-electron-win7/src/components/UpdateDialog.vue +166 -0
- package/template-electron-win7/src/components.d.ts +18 -0
- package/template-electron-win7/src/layouts/blank.vue +11 -0
- package/template-electron-win7/src/layouts/default.vue +13 -0
- package/template-electron-win7/src/main.ts +36 -0
- package/template-electron-win7/src/modules/1-router.ts +72 -0
- package/template-electron-win7/src/modules/2-pinia.ts +13 -0
- package/template-electron-win7/src/styles/variables.scss +8 -0
- package/template-electron-win7/src/types/global.d.ts +0 -0
- package/template-electron-win7/src/utils/env.ts +4 -0
- package/template-electron-win7/src/utils/ls.ts +118 -0
- package/template-electron-win7/src/views/[...all_404].vue +539 -0
- package/template-electron-win7/src/views/index.vue +34 -0
- package/template-electron-win7/src/vite-env.d.ts +27 -0
- package/template-electron-win7/tsconfig.json +29 -0
- package/template-electron-win7/tsconfig.node.json +11 -0
- package/template-electron-win7/uno.config.ts +32 -0
- package/template-electron-win7/vite.config.ts +78 -0
- package/template-electron-win7/yarn.lock +5964 -0
- package/template-nuxt-admin/error.vue +3 -3
- package/template-nuxt-admin/nuxt.config.ts +20 -7
- package/template-nuxt-admin/package.json +5 -3
- package/template-nuxt-admin/yarn.lock +3438 -2586
- package/template-nuxt-website/app.vue +45 -1
- package/template-nuxt-website/layouts/default.vue +18 -16
- package/template-nuxt-website/layouts/home.vue +14 -12
- package/template-nuxt-website/layouts/tabbar.vue +18 -16
- package/template-nuxt-website/nuxt.config.ts +20 -5
- package/template-nuxt-website/package.json +2 -1
- package/template-nuxt-website/yarn.lock +4677 -3598
@@ -0,0 +1,539 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: zhangyang
|
3
|
+
* @Date: 2024-07-31 17:19:49
|
4
|
+
* @LastEditTime: 2024-07-31 17:44:06
|
5
|
+
* @Description:
|
6
|
+
* @LastEditors: zhangyang
|
7
|
+
* Copyright (c) 2024 to current by BluesYoung-web, All Rights Reserved.
|
8
|
+
-->
|
9
|
+
<route lang="yaml">
|
10
|
+
meta:
|
11
|
+
auth: false
|
12
|
+
title: 页面不存在
|
13
|
+
layout: 'blank'
|
14
|
+
</route>
|
15
|
+
|
16
|
+
<script lang="ts" setup>
|
17
|
+
withDefaults(defineProps<{ tips?: string }>(), {
|
18
|
+
tips: '页面不存在......',
|
19
|
+
})
|
20
|
+
const router = useRouter()
|
21
|
+
const goBack = () => router.back()
|
22
|
+
</script>
|
23
|
+
|
24
|
+
<template>
|
25
|
+
<div>
|
26
|
+
<div class="g-container">
|
27
|
+
<div class="rail">
|
28
|
+
<div class="stamp four">
|
29
|
+
4
|
30
|
+
</div>
|
31
|
+
<div class="stamp zero">
|
32
|
+
0
|
33
|
+
</div>
|
34
|
+
<div class="stamp four">
|
35
|
+
4
|
36
|
+
</div>
|
37
|
+
<div class="stamp zero">
|
38
|
+
0
|
39
|
+
</div>
|
40
|
+
<div class="stamp four">
|
41
|
+
4
|
42
|
+
</div>
|
43
|
+
<div class="stamp zero">
|
44
|
+
0
|
45
|
+
</div>
|
46
|
+
<div class="stamp four">
|
47
|
+
4
|
48
|
+
</div>
|
49
|
+
<div class="stamp zero">
|
50
|
+
0
|
51
|
+
</div>
|
52
|
+
<div class="stamp four">
|
53
|
+
4
|
54
|
+
</div>
|
55
|
+
<div class="stamp zero">
|
56
|
+
0
|
57
|
+
</div>
|
58
|
+
<div class="stamp four">
|
59
|
+
4
|
60
|
+
</div>
|
61
|
+
<div class="stamp zero">
|
62
|
+
0
|
63
|
+
</div>
|
64
|
+
<div class="stamp four">
|
65
|
+
4
|
66
|
+
</div>
|
67
|
+
<div class="stamp zero">
|
68
|
+
0
|
69
|
+
</div>
|
70
|
+
<div class="stamp four">
|
71
|
+
4
|
72
|
+
</div>
|
73
|
+
<div class="stamp zero">
|
74
|
+
0
|
75
|
+
</div>
|
76
|
+
<div class="stamp four">
|
77
|
+
4
|
78
|
+
</div>
|
79
|
+
<div class="stamp zero">
|
80
|
+
0
|
81
|
+
</div>
|
82
|
+
<div class="stamp four">
|
83
|
+
4
|
84
|
+
</div>
|
85
|
+
<div class="stamp zero">
|
86
|
+
0
|
87
|
+
</div>
|
88
|
+
</div>
|
89
|
+
<div class="world">
|
90
|
+
<div class="forward">
|
91
|
+
<div class="box">
|
92
|
+
<div class="wall" />
|
93
|
+
<div class="wall" />
|
94
|
+
<div class="wall" />
|
95
|
+
<div class="wall" />
|
96
|
+
<div class="wall" />
|
97
|
+
<div class="wall" />
|
98
|
+
</div>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
<div class="bullshit">
|
103
|
+
<div class="bullshit__oops">
|
104
|
+
似乎出了什么问题!
|
105
|
+
</div>
|
106
|
+
<div class="bullshit__headline">
|
107
|
+
{{ tips }}
|
108
|
+
</div>
|
109
|
+
<div class="bullshit__info">
|
110
|
+
请仔细检查链接是否正确,点击按钮可返回上页
|
111
|
+
</div>
|
112
|
+
<a class="bullshit__return-home" @click.prevent="goBack">返回上个页面</a>
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
</template>
|
116
|
+
|
117
|
+
<style lang="scss" scoped>
|
118
|
+
body {
|
119
|
+
background: #fff;
|
120
|
+
height: 100vh;
|
121
|
+
overflow: hidden;
|
122
|
+
display: flex;
|
123
|
+
flex-wrap: wrap;
|
124
|
+
font-family: "Anton", sans-serif;
|
125
|
+
align-items: flex-start;
|
126
|
+
perspective: 1000px;
|
127
|
+
}
|
128
|
+
body > a {
|
129
|
+
opacity: 0;
|
130
|
+
position: fixed;
|
131
|
+
bottom: -100px;
|
132
|
+
left: -100px;
|
133
|
+
}
|
134
|
+
|
135
|
+
div {
|
136
|
+
transform-style: preserve-3d;
|
137
|
+
}
|
138
|
+
|
139
|
+
.g-container {
|
140
|
+
display: flex;
|
141
|
+
width: 100vw;
|
142
|
+
height: 30vh;
|
143
|
+
justify-content: center;
|
144
|
+
align-items: center;
|
145
|
+
/* perspective: 1000px; */
|
146
|
+
}
|
147
|
+
|
148
|
+
.rail {
|
149
|
+
position: absolute;
|
150
|
+
width: 100%;
|
151
|
+
height: 100%;
|
152
|
+
display: flex;
|
153
|
+
justify-content: center;
|
154
|
+
align-items: center;
|
155
|
+
transform: rotateX(-30deg) rotateY(-30deg);
|
156
|
+
}
|
157
|
+
.rail .stamp {
|
158
|
+
position: absolute;
|
159
|
+
width: 200px;
|
160
|
+
height: 200px;
|
161
|
+
display: flex;
|
162
|
+
justify-content: center;
|
163
|
+
align-items: center;
|
164
|
+
background: #333;
|
165
|
+
color: #fff;
|
166
|
+
font-size: 7rem;
|
167
|
+
}
|
168
|
+
.rail .stamp:nth-child(1) {
|
169
|
+
-webkit-animation: stampSlide 40000ms -2300ms linear infinite;
|
170
|
+
animation: stampSlide 40000ms -2300ms linear infinite;
|
171
|
+
}
|
172
|
+
.rail .stamp:nth-child(2) {
|
173
|
+
-webkit-animation: stampSlide 40000ms -4300ms linear infinite;
|
174
|
+
animation: stampSlide 40000ms -4300ms linear infinite;
|
175
|
+
}
|
176
|
+
.rail .stamp:nth-child(3) {
|
177
|
+
-webkit-animation: stampSlide 40000ms -6300ms linear infinite;
|
178
|
+
animation: stampSlide 40000ms -6300ms linear infinite;
|
179
|
+
}
|
180
|
+
.rail .stamp:nth-child(4) {
|
181
|
+
-webkit-animation: stampSlide 40000ms -8300ms linear infinite;
|
182
|
+
animation: stampSlide 40000ms -8300ms linear infinite;
|
183
|
+
}
|
184
|
+
.rail .stamp:nth-child(5) {
|
185
|
+
-webkit-animation: stampSlide 40000ms -10300ms linear infinite;
|
186
|
+
animation: stampSlide 40000ms -10300ms linear infinite;
|
187
|
+
}
|
188
|
+
.rail .stamp:nth-child(6) {
|
189
|
+
-webkit-animation: stampSlide 40000ms -12300ms linear infinite;
|
190
|
+
animation: stampSlide 40000ms -12300ms linear infinite;
|
191
|
+
}
|
192
|
+
.rail .stamp:nth-child(7) {
|
193
|
+
-webkit-animation: stampSlide 40000ms -14300ms linear infinite;
|
194
|
+
animation: stampSlide 40000ms -14300ms linear infinite;
|
195
|
+
}
|
196
|
+
.rail .stamp:nth-child(8) {
|
197
|
+
-webkit-animation: stampSlide 40000ms -16300ms linear infinite;
|
198
|
+
animation: stampSlide 40000ms -16300ms linear infinite;
|
199
|
+
}
|
200
|
+
.rail .stamp:nth-child(9) {
|
201
|
+
-webkit-animation: stampSlide 40000ms -18300ms linear infinite;
|
202
|
+
animation: stampSlide 40000ms -18300ms linear infinite;
|
203
|
+
}
|
204
|
+
.rail .stamp:nth-child(10) {
|
205
|
+
-webkit-animation: stampSlide 40000ms -20300ms linear infinite;
|
206
|
+
animation: stampSlide 40000ms -20300ms linear infinite;
|
207
|
+
}
|
208
|
+
.rail .stamp:nth-child(11) {
|
209
|
+
-webkit-animation: stampSlide 40000ms -22300ms linear infinite;
|
210
|
+
animation: stampSlide 40000ms -22300ms linear infinite;
|
211
|
+
}
|
212
|
+
.rail .stamp:nth-child(12) {
|
213
|
+
-webkit-animation: stampSlide 40000ms -24300ms linear infinite;
|
214
|
+
animation: stampSlide 40000ms -24300ms linear infinite;
|
215
|
+
}
|
216
|
+
.rail .stamp:nth-child(13) {
|
217
|
+
-webkit-animation: stampSlide 40000ms -26300ms linear infinite;
|
218
|
+
animation: stampSlide 40000ms -26300ms linear infinite;
|
219
|
+
}
|
220
|
+
.rail .stamp:nth-child(14) {
|
221
|
+
-webkit-animation: stampSlide 40000ms -28300ms linear infinite;
|
222
|
+
animation: stampSlide 40000ms -28300ms linear infinite;
|
223
|
+
}
|
224
|
+
.rail .stamp:nth-child(15) {
|
225
|
+
-webkit-animation: stampSlide 40000ms -30300ms linear infinite;
|
226
|
+
animation: stampSlide 40000ms -30300ms linear infinite;
|
227
|
+
}
|
228
|
+
.rail .stamp:nth-child(16) {
|
229
|
+
-webkit-animation: stampSlide 40000ms -32300ms linear infinite;
|
230
|
+
animation: stampSlide 40000ms -32300ms linear infinite;
|
231
|
+
}
|
232
|
+
.rail .stamp:nth-child(17) {
|
233
|
+
-webkit-animation: stampSlide 40000ms -34300ms linear infinite;
|
234
|
+
animation: stampSlide 40000ms -34300ms linear infinite;
|
235
|
+
}
|
236
|
+
.rail .stamp:nth-child(18) {
|
237
|
+
-webkit-animation: stampSlide 40000ms -36300ms linear infinite;
|
238
|
+
animation: stampSlide 40000ms -36300ms linear infinite;
|
239
|
+
}
|
240
|
+
.rail .stamp:nth-child(19) {
|
241
|
+
-webkit-animation: stampSlide 40000ms -38300ms linear infinite;
|
242
|
+
animation: stampSlide 40000ms -38300ms linear infinite;
|
243
|
+
}
|
244
|
+
.rail .stamp:nth-child(20) {
|
245
|
+
-webkit-animation: stampSlide 40000ms -40300ms linear infinite;
|
246
|
+
animation: stampSlide 40000ms -40300ms linear infinite;
|
247
|
+
}
|
248
|
+
|
249
|
+
@-webkit-keyframes stampSlide {
|
250
|
+
0% {
|
251
|
+
transform: rotateX(90deg) rotateZ(-90deg) translateZ(-200px) translateY(130px);
|
252
|
+
}
|
253
|
+
100% {
|
254
|
+
transform: rotateX(90deg) rotateZ(-90deg) translateZ(-200px) translateY(-3870px);
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
@keyframes stampSlide {
|
259
|
+
0% {
|
260
|
+
transform: rotateX(90deg) rotateZ(-90deg) translateZ(-200px) translateY(130px);
|
261
|
+
}
|
262
|
+
100% {
|
263
|
+
transform: rotateX(90deg) rotateZ(-90deg) translateZ(-200px) translateY(-3870px);
|
264
|
+
}
|
265
|
+
}
|
266
|
+
.world {
|
267
|
+
transform: rotateX(-30deg) rotateY(-30deg);
|
268
|
+
}
|
269
|
+
.world .forward {
|
270
|
+
position: absolute;
|
271
|
+
-webkit-animation: slide 2000ms linear infinite;
|
272
|
+
animation: slide 2000ms linear infinite;
|
273
|
+
}
|
274
|
+
.world .box {
|
275
|
+
width: 200px;
|
276
|
+
height: 200px;
|
277
|
+
transform-origin: 100% 100%;
|
278
|
+
-webkit-animation: roll 2000ms cubic-bezier(1, 0.01, 1, 1) infinite;
|
279
|
+
animation: roll 2000ms cubic-bezier(1, 0.01, 1, 1) infinite;
|
280
|
+
}
|
281
|
+
.world .box .wall {
|
282
|
+
position: absolute;
|
283
|
+
width: 200px;
|
284
|
+
height: 200px;
|
285
|
+
background: rgba(0, 0, 0, 0.5);
|
286
|
+
border: 1px solid #fafafa;
|
287
|
+
box-sizing: border-box;
|
288
|
+
}
|
289
|
+
.world .box .wall::before {
|
290
|
+
content: "";
|
291
|
+
position: absolute;
|
292
|
+
width: 100%;
|
293
|
+
height: 100%;
|
294
|
+
display: flex;
|
295
|
+
justify-content: center;
|
296
|
+
align-items: center;
|
297
|
+
color: #fff;
|
298
|
+
font-size: 7rem;
|
299
|
+
}
|
300
|
+
.world .box .wall:nth-child(1) {
|
301
|
+
transform: translateZ(100px);
|
302
|
+
}
|
303
|
+
.world .box .wall:nth-child(2) {
|
304
|
+
transform: rotateX(180deg) translateZ(100px);
|
305
|
+
}
|
306
|
+
.world .box .wall:nth-child(3) {
|
307
|
+
transform: rotateX(90deg) translateZ(100px);
|
308
|
+
}
|
309
|
+
.world .box .wall:nth-child(3)::before {
|
310
|
+
transform: rotateX(180deg) rotateZ(90deg) translateZ(-1px);
|
311
|
+
-webkit-animation: zeroFour 4000ms -2000ms linear infinite;
|
312
|
+
animation: zeroFour 4000ms -2000ms linear infinite;
|
313
|
+
}
|
314
|
+
.world .box .wall:nth-child(4) {
|
315
|
+
transform: rotateX(-90deg) translateZ(100px);
|
316
|
+
}
|
317
|
+
.world .box .wall:nth-child(4)::before {
|
318
|
+
transform: rotateX(180deg) rotateZ(-90deg) translateZ(-1px);
|
319
|
+
-webkit-animation: zeroFour 4000ms -2000ms linear infinite;
|
320
|
+
animation: zeroFour 4000ms -2000ms linear infinite;
|
321
|
+
}
|
322
|
+
.world .box .wall:nth-child(5) {
|
323
|
+
transform: rotateY(90deg) translateZ(100px);
|
324
|
+
}
|
325
|
+
.world .box .wall:nth-child(5)::before {
|
326
|
+
transform: rotateX(180deg) translateZ(-1px);
|
327
|
+
-webkit-animation: zeroFour 4000ms linear infinite;
|
328
|
+
animation: zeroFour 4000ms linear infinite;
|
329
|
+
}
|
330
|
+
.world .box .wall:nth-child(6) {
|
331
|
+
transform: rotateY(-90deg) translateZ(100px);
|
332
|
+
}
|
333
|
+
.world .box .wall:nth-child(6)::before {
|
334
|
+
transform: rotateX(180deg) rotateZ(180deg) translateZ(-1px);
|
335
|
+
-webkit-animation: zeroFour 4000ms linear infinite;
|
336
|
+
animation: zeroFour 4000ms linear infinite;
|
337
|
+
}
|
338
|
+
|
339
|
+
@-webkit-keyframes zeroFour {
|
340
|
+
0% {
|
341
|
+
content: "4";
|
342
|
+
}
|
343
|
+
100% {
|
344
|
+
content: "0";
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
@keyframes zeroFour {
|
349
|
+
0% {
|
350
|
+
content: "4";
|
351
|
+
}
|
352
|
+
100% {
|
353
|
+
content: "0";
|
354
|
+
}
|
355
|
+
}
|
356
|
+
@-webkit-keyframes roll {
|
357
|
+
0% {
|
358
|
+
transform: rotateZ(0deg);
|
359
|
+
}
|
360
|
+
85% {
|
361
|
+
transform: rotateZ(90deg);
|
362
|
+
}
|
363
|
+
87% {
|
364
|
+
transform: rotateZ(88deg);
|
365
|
+
}
|
366
|
+
90% {
|
367
|
+
transform: rotateZ(90deg);
|
368
|
+
}
|
369
|
+
100% {
|
370
|
+
transform: rotateZ(90deg);
|
371
|
+
}
|
372
|
+
}
|
373
|
+
@keyframes roll {
|
374
|
+
0% {
|
375
|
+
transform: rotateZ(0deg);
|
376
|
+
}
|
377
|
+
85% {
|
378
|
+
transform: rotateZ(90deg);
|
379
|
+
}
|
380
|
+
87% {
|
381
|
+
transform: rotateZ(88deg);
|
382
|
+
}
|
383
|
+
90% {
|
384
|
+
transform: rotateZ(90deg);
|
385
|
+
}
|
386
|
+
100% {
|
387
|
+
transform: rotateZ(90deg);
|
388
|
+
}
|
389
|
+
}
|
390
|
+
@-webkit-keyframes slide {
|
391
|
+
0% {
|
392
|
+
transform: translateX(0);
|
393
|
+
}
|
394
|
+
100% {
|
395
|
+
transform: translateX(-200px);
|
396
|
+
}
|
397
|
+
}
|
398
|
+
@keyframes slide {
|
399
|
+
0% {
|
400
|
+
transform: translateX(0);
|
401
|
+
}
|
402
|
+
100% {
|
403
|
+
transform: translateX(-200px);
|
404
|
+
}
|
405
|
+
}
|
406
|
+
footer {
|
407
|
+
position: fixed;
|
408
|
+
left: 0;
|
409
|
+
right: 0;
|
410
|
+
bottom: 0;
|
411
|
+
height: 32px;
|
412
|
+
color: #666;
|
413
|
+
font-size: 12px;
|
414
|
+
text-align: center;
|
415
|
+
}
|
416
|
+
.g-goto {
|
417
|
+
width: 100vw;
|
418
|
+
padding: 12px 0;
|
419
|
+
}
|
420
|
+
.g-goto p {
|
421
|
+
font-size: 14px;
|
422
|
+
text-align: center;
|
423
|
+
color: #999;
|
424
|
+
padding: 0 12px;
|
425
|
+
margin-bottom: 24px;
|
426
|
+
}
|
427
|
+
.g-btn-box {
|
428
|
+
/* width: 600px; */
|
429
|
+
display: flex;
|
430
|
+
flex-wrap: wrap;
|
431
|
+
margin: 0 auto;
|
432
|
+
justify-content: center;
|
433
|
+
}
|
434
|
+
.svg-border-animation {
|
435
|
+
position: relative;
|
436
|
+
width: 80px;
|
437
|
+
height: 32px;
|
438
|
+
margin: 12px;
|
439
|
+
}
|
440
|
+
|
441
|
+
.hover-text {
|
442
|
+
position: absolute;
|
443
|
+
line-height: 32px;
|
444
|
+
width: 80px;
|
445
|
+
top: 0;
|
446
|
+
color: #333;
|
447
|
+
font-size: 14px;
|
448
|
+
text-align: center;
|
449
|
+
cursor: pointer;
|
450
|
+
transition: all .4s;
|
451
|
+
}
|
452
|
+
|
453
|
+
.hover-text:active {
|
454
|
+
background: #3F51B50b;
|
455
|
+
}
|
456
|
+
|
457
|
+
.shape {
|
458
|
+
fill: transparent;
|
459
|
+
stroke-width: 2px;
|
460
|
+
stroke: #333;
|
461
|
+
stroke-dasharray: 30 150;
|
462
|
+
stroke-dashoffset: 42;
|
463
|
+
}
|
464
|
+
|
465
|
+
.svg-border-animation:hover .hover-text {
|
466
|
+
transition: 0.4s;
|
467
|
+
color: #3F51B5;
|
468
|
+
}
|
469
|
+
|
470
|
+
.svg-border-animation:hover .shape {
|
471
|
+
animation: draw 0.4s linear forwards;
|
472
|
+
}
|
473
|
+
|
474
|
+
@keyframes draw {
|
475
|
+
0% {
|
476
|
+
stroke-dasharray: 30 150;
|
477
|
+
stroke-dashoffset: 42;
|
478
|
+
stroke-width: 2px;
|
479
|
+
}
|
480
|
+
100% {
|
481
|
+
stroke-dasharray: 224;
|
482
|
+
stroke-dashoffset: 0;
|
483
|
+
stroke-width: 2px;
|
484
|
+
stroke: #3F51B5;
|
485
|
+
}
|
486
|
+
}
|
487
|
+
|
488
|
+
.bullshit {
|
489
|
+
@apply relative float-left ml-10 top-50 w-300px overflow-hidden;
|
490
|
+
@media (min-width: 768px) {
|
491
|
+
@apply float-right -top-32 mr-52;
|
492
|
+
}
|
493
|
+
|
494
|
+
&__oops {
|
495
|
+
@apply text-3xl font-bold opacity-0 mb-4;
|
496
|
+
color: #1482f0;
|
497
|
+
animation-name: slideUp;
|
498
|
+
animation-duration: 0.5s;
|
499
|
+
animation-fill-mode: forwards;
|
500
|
+
}
|
501
|
+
&__headline {
|
502
|
+
@apply text-xl font-bold opacity-0 mb-2;
|
503
|
+
color: #222;
|
504
|
+
animation-name: slideUp;
|
505
|
+
animation-duration: 0.5s;
|
506
|
+
animation-delay: 0.1s;
|
507
|
+
animation-fill-mode: forwards;
|
508
|
+
}
|
509
|
+
&__info {
|
510
|
+
@apply text-sm opacity-0 mb-6;
|
511
|
+
color: grey;
|
512
|
+
animation-name: slideUp;
|
513
|
+
animation-duration: 0.5s;
|
514
|
+
animation-delay: 0.2s;
|
515
|
+
animation-fill-mode: forwards;
|
516
|
+
}
|
517
|
+
&__return-home {
|
518
|
+
@apply block float-left w-28 h-10 rounded-3xl text-center font-bold opacity-0 cursor-pointer;
|
519
|
+
background: #1482f0;
|
520
|
+
color: #ffffff;
|
521
|
+
font-size: 14px;
|
522
|
+
line-height: 36px;
|
523
|
+
animation-name: slideUp;
|
524
|
+
animation-duration: 0.5s;
|
525
|
+
animation-delay: 0.3s;
|
526
|
+
animation-fill-mode: forwards;
|
527
|
+
}
|
528
|
+
@keyframes slideUp {
|
529
|
+
0% {
|
530
|
+
transform: translateY(60px);
|
531
|
+
opacity: 0;
|
532
|
+
}
|
533
|
+
100% {
|
534
|
+
transform: translateY(0);
|
535
|
+
opacity: 1;
|
536
|
+
}
|
537
|
+
}
|
538
|
+
}
|
539
|
+
</style>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: zhangyang
|
3
|
+
* @Date: 2024-07-31 16:18:11
|
4
|
+
* @LastEditTime: 2024-08-19 17:55:48
|
5
|
+
* @Description:
|
6
|
+
* @LastEditors: zhangyang
|
7
|
+
* Copyright (c) 2024 to current by BluesYoung-web, All Rights Reserved.
|
8
|
+
-->
|
9
|
+
<script lang="ts" setup>
|
10
|
+
function click() {
|
11
|
+
ElMessage.success('hello world')
|
12
|
+
|
13
|
+
window.ipcRenderer.send('newMessage', 'hello world')
|
14
|
+
|
15
|
+
const NOTIFICATION_TITLE = '通知(渲染进程)'
|
16
|
+
const NOTIFICATION_BODY = 'Notification from the Renderer process. Click to log to console.'
|
17
|
+
const CLICK_MESSAGE = 'Notification clicked'
|
18
|
+
|
19
|
+
new Notification(NOTIFICATION_TITLE, { body: NOTIFICATION_BODY }).onclick
|
20
|
+
= () => console.log(CLICK_MESSAGE)
|
21
|
+
}
|
22
|
+
</script>
|
23
|
+
|
24
|
+
<template>
|
25
|
+
<div class="h-100vh flex justify-center items-center">
|
26
|
+
<ElButton type="primary" size="large" @click="click">
|
27
|
+
点我
|
28
|
+
</ElButton>
|
29
|
+
|
30
|
+
<RouterLink to="./a">
|
31
|
+
go 404
|
32
|
+
</RouterLink>
|
33
|
+
</div>
|
34
|
+
</template>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/*
|
2
|
+
* @Author: zhangyang
|
3
|
+
* @Date: 2024-07-31 09:14:09
|
4
|
+
* @LastEditTime: 2024-07-31 16:54:19
|
5
|
+
* @Description:
|
6
|
+
* @LastEditors: zhangyang
|
7
|
+
* Copyright (c) 2024 to current by BluesYoung-web, All Rights Reserved.
|
8
|
+
*/
|
9
|
+
/// <reference types="vite/client" />
|
10
|
+
/// <reference types="vite-plugin-pages/client" />
|
11
|
+
/// <reference types="vite-plugin-vue-layouts/client" />
|
12
|
+
/// <reference types="@vueuse/shared" />
|
13
|
+
|
14
|
+
import type { App } from 'vue'
|
15
|
+
|
16
|
+
declare global {
|
17
|
+
/**
|
18
|
+
* 配置环境变量的声明,方便使用vite的环境变量时得到代码提示
|
19
|
+
* 对应.env或.env.x文件中定义的属性名,注意vite要求自定义属性的前缀必须为VITE_xxxx
|
20
|
+
*/
|
21
|
+
interface ImportMetaEnv {
|
22
|
+
readonly VITE_APP_TITLE: string // app标题
|
23
|
+
readonly VITE_BASE_URL: string // 基础请求
|
24
|
+
}
|
25
|
+
|
26
|
+
type UserModule = (ctx: App, ...args: any[]) => void
|
27
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"target": "ES2020",
|
4
|
+
"jsx": "preserve",
|
5
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
6
|
+
"useDefineForClassFields": true,
|
7
|
+
"module": "ESNext",
|
8
|
+
|
9
|
+
/* Bundler mode */
|
10
|
+
"moduleResolution": "bundler",
|
11
|
+
"paths": {
|
12
|
+
"@/*": ["./src/*"]
|
13
|
+
},
|
14
|
+
"resolveJsonModule": true,
|
15
|
+
"types": ["element-plus/global"],
|
16
|
+
"allowImportingTsExtensions": true,
|
17
|
+
|
18
|
+
/* Linting */
|
19
|
+
"strict": true,
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
21
|
+
"noUnusedLocals": true,
|
22
|
+
"noUnusedParameters": true,
|
23
|
+
"noEmit": true,
|
24
|
+
"isolatedModules": true,
|
25
|
+
"skipLibCheck": true
|
26
|
+
},
|
27
|
+
"references": [{ "path": "./tsconfig.node.json" }],
|
28
|
+
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "electron"]
|
29
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* @Author: zhangyang
|
3
|
+
* @Date: 2022-06-15 08:59:22
|
4
|
+
* @LastEditTime: 2024-07-31 17:07:54
|
5
|
+
* @Description:
|
6
|
+
*/
|
7
|
+
import {
|
8
|
+
defineConfig,
|
9
|
+
presetAttributify,
|
10
|
+
presetIcons,
|
11
|
+
presetTypography,
|
12
|
+
presetUno,
|
13
|
+
transformerDirectives,
|
14
|
+
transformerVariantGroup,
|
15
|
+
} from 'unocss'
|
16
|
+
|
17
|
+
export default defineConfig({
|
18
|
+
shortcuts: [],
|
19
|
+
presets: [
|
20
|
+
presetUno(),
|
21
|
+
presetAttributify(),
|
22
|
+
presetIcons({
|
23
|
+
scale: 1.2,
|
24
|
+
}),
|
25
|
+
presetTypography(),
|
26
|
+
],
|
27
|
+
transformers: [
|
28
|
+
// 不加 enforce 会有 bug
|
29
|
+
transformerDirectives({ enforce: 'pre' }),
|
30
|
+
transformerVariantGroup(),
|
31
|
+
],
|
32
|
+
})
|