@kevairy/template 0.1.1 → 0.1.3

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.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/template/.agents/skills/kevairy-ui/SKILL.md +36 -0
  3. package/template/.agents/skills/kevairy-ui/agents/openai.yaml +4 -0
  4. package/template/.agents/skills/kevairy-ui/references/component-catalog.md +45 -0
  5. package/template/.env +4 -0
  6. package/template/.prettierignore +2 -0
  7. package/template/AGENTS.md +15 -0
  8. package/template/_gitignore +4 -0
  9. package/template/package.json +11 -1
  10. package/template/scripts/gen-offline-icons.mjs +84 -0
  11. package/template/src/components/core/forms/art-wang-editor/index.vue +0 -5
  12. package/template/src/components/core/layouts/art-guide/index.vue +123 -0
  13. package/template/src/components/core/layouts/art-header-bar/index.vue +26 -26
  14. package/template/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue +17 -1
  15. package/template/src/components/core/layouts/art-screen-lock/index.vue +325 -0
  16. package/template/src/components/core/layouts/art-settings-panel/widget/SettingActions.vue +0 -1
  17. package/template/src/components/core/media/art-cutter-img/index.vue +0 -1
  18. package/template/src/components/core/media/art-video-player/index.vue +0 -10
  19. package/template/src/components/core/views/login/AuthTopBar.vue +56 -6
  20. package/template/src/components/core/views/login/LoginLeftView.vue +24 -42
  21. package/template/src/config/index.ts +4 -1
  22. package/template/src/config/modules/component.ts +14 -0
  23. package/template/src/config/modules/guide.ts +122 -0
  24. package/template/src/config/modules/headerBar.ts +4 -0
  25. package/template/src/config/setting.ts +2 -2
  26. package/template/src/hooks/core/useGuide.ts +116 -0
  27. package/template/src/hooks/core/useHeaderBar.ts +6 -0
  28. package/template/src/locales/index.ts +0 -1
  29. package/template/src/locales/langs/en.json +66 -5
  30. package/template/src/locales/langs/zh.json +66 -5
  31. package/template/src/main.ts +3 -0
  32. package/template/src/store/modules/lock.ts +125 -0
  33. package/template/src/store/modules/setting.ts +8 -15
  34. package/template/src/store/modules/user.ts +3 -0
  35. package/template/src/types/config/index.ts +4 -0
  36. package/template/src/types/import/components.d.ts +2 -0
  37. package/template/src/utils/http/index.ts +3 -1
  38. package/template/src/utils/socket/index.ts +27 -2
  39. package/template/src/utils/sys/mittBus.ts +5 -0
  40. package/template/src/utils/ui/iconify-loader.ts +32 -18
  41. package/template/src/utils/ui/offline-icons.json +77 -0
  42. package/template/src/views/auth/login/index.vue +4 -4
  43. package/template/src/views/auth/login/style.css +74 -14
  44. package/template/src/views/examples/search-table/index.vue +2 -3
  45. package/template/tests/e2e/auth.spec.ts +52 -2
  46. package/template/tests/e2e/helpers/guide.ts +9 -0
  47. package/template/tests/e2e/search-table.spec.ts +11 -1
  48. package/template/vite.config.ts +5 -7
@@ -0,0 +1,325 @@
1
+ <!-- 锁屏 -->
2
+ <template>
3
+ <Transition name="screen-lock-fade">
4
+ <div v-if="lockStore.isLocked" class="screen-lock">
5
+ <!-- 实时时钟 -->
6
+ <div class="screen-lock__clock">
7
+ <div class="screen-lock__time">{{ currentTime }}</div>
8
+ <div class="screen-lock__date">{{ currentDate }}</div>
9
+ </div>
10
+
11
+ <!-- 解锁面板 -->
12
+ <div class="screen-lock__panel">
13
+ <ElAvatar
14
+ :size="72"
15
+ :src="userInfo.avatar || AppConfig.assets.defaultAvatar"
16
+ class="screen-lock__avatar"
17
+ />
18
+ <div class="screen-lock__name">{{ userInfo.userName || 'User' }}</div>
19
+
20
+ <!-- 已设置密码:输入密码解锁 -->
21
+ <template v-if="lockStore.hasPassword">
22
+ <p class="screen-lock__title">{{ $t('lockScreen.locked') }}</p>
23
+ <ElInput
24
+ v-model="password"
25
+ type="password"
26
+ size="large"
27
+ show-password
28
+ :placeholder="$t('lockScreen.passwordPlaceholder')"
29
+ @keyup.enter="handleUnlock"
30
+ />
31
+ <p v-if="errorText" class="screen-lock__error">{{ errorText }}</p>
32
+ <ElButton
33
+ type="primary"
34
+ size="large"
35
+ class="screen-lock__btn"
36
+ :loading="loading"
37
+ v-ripple
38
+ @click="handleUnlock"
39
+ >
40
+ {{ $t('lockScreen.unlock') }}
41
+ </ElButton>
42
+ <p class="screen-lock__hint">{{ $t('lockScreen.enterToUnlock') }}</p>
43
+ </template>
44
+
45
+ <!-- 未设置密码:首次设置独立锁屏密码 -->
46
+ <template v-else>
47
+ <p class="screen-lock__title">{{ $t('lockScreen.setPasswordTitle') }}</p>
48
+ <p class="screen-lock__tip">{{ $t('lockScreen.setPasswordTip') }}</p>
49
+ <ElInput
50
+ v-model="password"
51
+ type="password"
52
+ size="large"
53
+ show-password
54
+ :placeholder="$t('lockScreen.newPasswordPlaceholder')"
55
+ />
56
+ <ElInput
57
+ v-model="confirmPassword"
58
+ type="password"
59
+ size="large"
60
+ show-password
61
+ class="screen-lock__confirm"
62
+ :placeholder="$t('lockScreen.confirmPasswordPlaceholder')"
63
+ @keyup.enter="handleSetPassword"
64
+ />
65
+ <p v-if="errorText" class="screen-lock__error">{{ errorText }}</p>
66
+ <ElButton
67
+ type="primary"
68
+ size="large"
69
+ class="screen-lock__btn"
70
+ :loading="loading"
71
+ v-ripple
72
+ @click="handleSetPassword"
73
+ >
74
+ {{ $t('lockScreen.confirm') }}
75
+ </ElButton>
76
+ </template>
77
+
78
+ <!-- 切换账号 -->
79
+ <div class="screen-lock__switch" @click="handleSwitchAccount">
80
+ <ArtSvgIcon icon="ri:logout-box-r-line" />
81
+ <span>{{ $t('lockScreen.switchAccount') }}</span>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ </Transition>
86
+ </template>
87
+
88
+ <script setup lang="ts">
89
+ import { useI18n } from 'vue-i18n'
90
+ import { ElMessage } from 'element-plus'
91
+ import { useNow } from '@vueuse/core'
92
+ import { useLockStore } from '@/store/modules/lock'
93
+ import { useUserStore } from '@/store/modules/user'
94
+ import { signOut } from '@/services/auth'
95
+ import { mittBus } from '@/utils/sys'
96
+ import AppConfig from '@/config'
97
+
98
+ defineOptions({ name: 'ArtScreenLock' })
99
+
100
+ const { t, locale } = useI18n()
101
+ const lockStore = useLockStore()
102
+ const userStore = useUserStore()
103
+
104
+ const userInfo = computed(() => userStore.getUserInfo)
105
+
106
+ const password = ref('')
107
+ const confirmPassword = ref('')
108
+ const errorText = ref('')
109
+ const loading = ref(false)
110
+
111
+ // 实时时钟
112
+ const now = useNow()
113
+ const currentTime = computed(() =>
114
+ now.value.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hour12: false })
115
+ )
116
+ const currentDate = computed(() =>
117
+ now.value.toLocaleDateString(locale.value, {
118
+ year: 'numeric',
119
+ month: 'long',
120
+ day: 'numeric',
121
+ weekday: 'long'
122
+ })
123
+ )
124
+
125
+ /** 顶栏触发锁屏:清空输入并进入锁定态 */
126
+ const handleLock = (): void => {
127
+ password.value = ''
128
+ confirmPassword.value = ''
129
+ errorText.value = ''
130
+ lockStore.lock()
131
+ }
132
+
133
+ /** 校验密码并解锁 */
134
+ const handleUnlock = async (): Promise<void> => {
135
+ if (!password.value) {
136
+ errorText.value = t('lockScreen.passwordRequired')
137
+ return
138
+ }
139
+ loading.value = true
140
+ try {
141
+ const matched = await lockStore.verifyPassword(password.value)
142
+ if (matched) {
143
+ lockStore.unlock()
144
+ password.value = ''
145
+ errorText.value = ''
146
+ ElMessage.success(t('lockScreen.unlockSuccess'))
147
+ } else {
148
+ errorText.value = t('lockScreen.wrongPassword')
149
+ password.value = ''
150
+ }
151
+ } finally {
152
+ loading.value = false
153
+ }
154
+ }
155
+
156
+ /** 首次设置锁屏密码,成功后直接进入系统 */
157
+ const handleSetPassword = async (): Promise<void> => {
158
+ if (!password.value) {
159
+ errorText.value = t('lockScreen.passwordRequired')
160
+ return
161
+ }
162
+ if (password.value !== confirmPassword.value) {
163
+ errorText.value = t('lockScreen.passwordMismatch')
164
+ return
165
+ }
166
+ loading.value = true
167
+ try {
168
+ await lockStore.setPassword(password.value)
169
+ lockStore.unlock()
170
+ password.value = ''
171
+ confirmPassword.value = ''
172
+ errorText.value = ''
173
+ ElMessage.success(t('lockScreen.setSuccess'))
174
+ } finally {
175
+ loading.value = false
176
+ }
177
+ }
178
+
179
+ /** 切换账号:解除锁定并退出登录 */
180
+ const handleSwitchAccount = async (): Promise<void> => {
181
+ lockStore.unlock()
182
+ await signOut()
183
+ }
184
+
185
+ onMounted(() => {
186
+ mittBus.on('openLockScreen', handleLock)
187
+ })
188
+
189
+ onUnmounted(() => {
190
+ mittBus.off('openLockScreen', handleLock)
191
+ })
192
+ </script>
193
+
194
+ <style scoped>
195
+ .screen-lock {
196
+ position: fixed;
197
+ inset: 0;
198
+ z-index: 3000;
199
+ display: flex;
200
+ flex-direction: column;
201
+ gap: 40px;
202
+ align-items: center;
203
+ justify-content: center;
204
+ background: linear-gradient(135deg, rgb(15 23 42 / 92%), rgb(30 41 59 / 88%));
205
+ backdrop-filter: blur(12px);
206
+ }
207
+
208
+ .screen-lock__clock {
209
+ color: #fff;
210
+ text-align: center;
211
+ }
212
+
213
+ .screen-lock__time {
214
+ font-size: 72px;
215
+ font-weight: 200;
216
+ line-height: 1;
217
+ letter-spacing: 2px;
218
+ }
219
+
220
+ .screen-lock__date {
221
+ margin-top: 12px;
222
+ font-size: 16px;
223
+ opacity: 0.8;
224
+ }
225
+
226
+ .screen-lock__panel {
227
+ display: flex;
228
+ flex-direction: column;
229
+ align-items: center;
230
+ width: 320px;
231
+ padding: 32px 28px;
232
+ background: rgb(255 255 255 / 10%);
233
+ border: 1px solid rgb(255 255 255 / 18%);
234
+ border-radius: 16px;
235
+ box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
236
+ }
237
+
238
+ .screen-lock__avatar {
239
+ border: 2px solid rgb(255 255 255 / 60%);
240
+ }
241
+
242
+ .screen-lock__name {
243
+ margin-top: 12px;
244
+ font-size: 16px;
245
+ font-weight: 500;
246
+ color: #fff;
247
+ }
248
+
249
+ .screen-lock__title {
250
+ margin: 16px 0 4px;
251
+ font-size: 15px;
252
+ font-weight: 500;
253
+ color: #fff;
254
+ }
255
+
256
+ .screen-lock__tip {
257
+ margin-bottom: 16px;
258
+ font-size: 12px;
259
+ line-height: 1.5;
260
+ color: rgb(255 255 255 / 70%);
261
+ text-align: center;
262
+ }
263
+
264
+ .screen-lock__panel :deep(.el-input) {
265
+ width: 100%;
266
+ }
267
+
268
+ .screen-lock__confirm {
269
+ margin-top: 12px;
270
+ }
271
+
272
+ .screen-lock__error {
273
+ width: 100%;
274
+ margin-top: 8px;
275
+ font-size: 12px;
276
+ color: #fca5a5;
277
+ text-align: left;
278
+ }
279
+
280
+ .screen-lock__btn {
281
+ width: 100%;
282
+ margin-top: 16px;
283
+ }
284
+
285
+ .screen-lock__hint {
286
+ margin-top: 12px;
287
+ font-size: 12px;
288
+ color: rgb(255 255 255 / 55%);
289
+ }
290
+
291
+ .screen-lock__switch {
292
+ display: flex;
293
+ gap: 6px;
294
+ align-items: center;
295
+ margin-top: 20px;
296
+ font-size: 13px;
297
+ color: rgb(255 255 255 / 75%);
298
+ cursor: pointer;
299
+ transition: color 0.2s;
300
+ }
301
+
302
+ .screen-lock__switch:hover {
303
+ color: #fff;
304
+ }
305
+
306
+ .screen-lock-fade-enter-active,
307
+ .screen-lock-fade-leave-active {
308
+ transition: opacity 0.3s ease;
309
+ }
310
+
311
+ .screen-lock-fade-enter-from,
312
+ .screen-lock-fade-leave-to {
313
+ opacity: 0;
314
+ }
315
+
316
+ @media screen and (width <= 640px) {
317
+ .screen-lock__time {
318
+ font-size: 56px;
319
+ }
320
+
321
+ .screen-lock__panel {
322
+ width: calc(100% - 48px);
323
+ }
324
+ }
325
+ </style>
@@ -77,7 +77,6 @@
77
77
  { comment: '是否显示工作台标签', key: 'showWorkTab' },
78
78
  { comment: '是否显示语言切换', key: 'showLanguage' },
79
79
  { comment: '是否显示进度条', key: 'showNprogress' },
80
- { comment: '是否显示设置引导', key: 'showSettingGuide' },
81
80
  { comment: '是否显示节日文本', key: 'showFestivalText' },
82
81
  { comment: '是否显示水印', key: 'watermarkVisible' },
83
82
  { comment: '是否自动关闭', key: 'autoClose' },
@@ -243,7 +243,6 @@
243
243
 
244
244
  // 下载图片
245
245
  function downloadImg() {
246
- console.log('下载图片')
247
246
  const a = document.createElement('a')
248
247
  a.href = temImgPath.value
249
248
  a.download = 'image.png'
@@ -86,16 +86,6 @@
86
86
  }
87
87
  })
88
88
 
89
- // 播放事件监听器
90
- playerInstance.value.on('play', () => {
91
- console.log('Video is playing')
92
- })
93
-
94
- // 暂停事件监听器
95
- playerInstance.value.on('pause', () => {
96
- console.log('Video is paused')
97
- })
98
-
99
89
  // 错误事件监听器
100
90
  playerInstance.value.on('error', (error) => {
101
91
  console.error('Error occurred:', error)
@@ -1,14 +1,12 @@
1
1
  <!-- 授权页右上角组件 -->
2
2
  <template>
3
- <div
4
- class="absolute w-full flex-cb top-4.5 z-10 flex-c !justify-end max-[1180px]:!justify-between"
5
- >
6
- <div class="flex-cc !hidden max-[1180px]:!flex ml-2 max-sm:ml-6">
3
+ <div class="auth-top-bar">
4
+ <div class="auth-top-brand">
7
5
  <ArtLogo class="icon" size="46" />
8
- <h1 class="text-xl ont-mediumf ml-2">{{ AppConfig.systemInfo.name }}</h1>
6
+ <h1>{{ AppConfig.systemInfo.name }}</h1>
9
7
  </div>
10
8
 
11
- <div class="flex-cc gap-1.5 mr-2 max-sm:mr-5">
9
+ <div class="auth-top-actions">
12
10
  <div class="color-picker-expandable relative flex-c max-sm:!hidden">
13
11
  <div
14
12
  class="color-dots absolute right-0 rounded-full flex-c gap-2 rounded-5 px-2.5 py-2 pr-9 pl-2.5 opacity-0"
@@ -105,6 +103,36 @@
105
103
  </script>
106
104
 
107
105
  <style scoped>
106
+ .auth-top-bar {
107
+ position: absolute;
108
+ top: 18px;
109
+ z-index: 10;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: flex-end;
113
+ width: 100%;
114
+ }
115
+
116
+ .auth-top-brand {
117
+ display: none;
118
+ align-items: center;
119
+ margin-left: 8px;
120
+ }
121
+
122
+ .auth-top-brand h1 {
123
+ margin-left: 8px;
124
+ font-size: 20px;
125
+ font-weight: 500;
126
+ }
127
+
128
+ .auth-top-actions {
129
+ display: flex;
130
+ gap: 6px;
131
+ align-items: center;
132
+ justify-content: center;
133
+ margin-right: 8px;
134
+ }
135
+
108
136
  .color-dots {
109
137
  pointer-events: none;
110
138
  box-shadow: 0 2px 12px var(--art-gray-300);
@@ -146,4 +174,26 @@
146
174
  .color-picker-expandable:hover .palette-btn :deep(.art-svg-icon) {
147
175
  color: v-bind(color);
148
176
  }
177
+
178
+ /* stylelint-disable-next-line media-feature-range-notation -- Support legacy Chromium. */
179
+ @media (max-width: 1180px) {
180
+ .auth-top-bar {
181
+ justify-content: space-between;
182
+ }
183
+
184
+ .auth-top-brand {
185
+ display: flex;
186
+ }
187
+ }
188
+
189
+ /* stylelint-disable-next-line media-feature-range-notation -- Support legacy Chromium. */
190
+ @media (max-width: 639px) {
191
+ .auth-top-brand {
192
+ margin-left: 24px;
193
+ }
194
+
195
+ .auth-top-actions {
196
+ margin-right: 20px;
197
+ }
198
+ }
149
199
  </style>
@@ -86,13 +86,6 @@
86
86
  $primary-light-7: var(--el-color-primary-light-7);
87
87
  $primary-light-8: var(--el-color-primary-light-8);
88
88
  $primary-light-9: var(--el-color-primary-light-9);
89
- $primary-base: var(--el-color-primary);
90
- $main-bg: var(--default-box-color);
91
-
92
- // 混合颜色函数
93
- $bg-mix-light-9: color-mix(in srgb, $primary-light-9 100%, $main-bg);
94
- $bg-mix-light-8: color-mix(in srgb, $primary-light-8 80%, $main-bg);
95
- $bg-mix-light-7: color-mix(in srgb, $primary-light-7 80%, $main-bg);
96
89
 
97
90
  .login-left-view {
98
91
  position: relative;
@@ -101,7 +94,7 @@
101
94
  height: 100%;
102
95
  padding: 15px;
103
96
  overflow: hidden;
104
- background-color: $bg-mix-light-9;
97
+ background-color: $primary-light-9;
105
98
 
106
99
  .logo {
107
100
  position: relative;
@@ -327,7 +320,7 @@
327
320
  left: 16%;
328
321
  width: 60px;
329
322
  height: 60px;
330
- background-color: $bg-mix-light-8;
323
+ background-color: $primary-light-8;
331
324
 
332
325
  &.animate-fade-in-left {
333
326
  animation-name: fadeInLeftRotated;
@@ -351,7 +344,7 @@
351
344
  width: 50px;
352
345
  height: 50px;
353
346
  cursor: pointer;
354
- background: $bg-mix-light-7;
347
+ background: $primary-light-7;
355
348
  border-radius: 50%;
356
349
  transition: all 0.3s;
357
350
 
@@ -396,7 +389,7 @@
396
389
  right: -120px;
397
390
  width: 360px;
398
391
  height: 360px;
399
- background-color: $bg-mix-light-8;
392
+ background-color: $primary-light-8;
400
393
  border-radius: 50%;
401
394
  }
402
395
 
@@ -445,7 +438,7 @@
445
438
  z-index: 2;
446
439
  width: 50px;
447
440
  height: 50px;
448
- background-color: rgb(from $primary-base r g b / 30%);
441
+ background-color: var(--el-color-primary-light-7);
449
442
  }
450
443
 
451
444
  &.square-pink {
@@ -454,7 +447,7 @@
454
447
  z-index: 1;
455
448
  width: 70px;
456
449
  height: 70px;
457
- background-color: rgb(from $primary-base r g b / 15%);
450
+ background-color: var(--el-color-primary-light-8);
458
451
  }
459
452
 
460
453
  &.square-purple {
@@ -463,7 +456,7 @@
463
456
  z-index: 3;
464
457
  width: 32px;
465
458
  height: 32px;
466
- background-color: rgb(from $primary-base r g b / 45%);
459
+ background-color: var(--el-color-primary-light-6);
467
460
  }
468
461
  }
469
462
 
@@ -484,7 +477,8 @@
484
477
  }
485
478
  }
486
479
 
487
- @media only screen and (width <= 1600px) {
480
+ /* stylelint-disable-next-line media-feature-range-notation -- Support legacy Chromium. */
481
+ @media only screen and (max-width: 1600px) {
488
482
  width: 60vw;
489
483
 
490
484
  .text-wrap {
@@ -492,39 +486,27 @@
492
486
  }
493
487
  }
494
488
 
495
- @media only screen and (width <= 1180px) {
496
- width: auto;
497
- height: auto;
498
- padding: 0;
499
- // 隐藏背景和其他内容,只保留 logo
500
- background: transparent;
501
-
502
- .left-img,
503
- .text-wrap,
504
- .geometric-decorations {
505
- display: none;
506
- }
507
-
508
- .logo {
509
- display: none;
510
- }
489
+ /* stylelint-disable-next-line media-feature-range-notation -- Support legacy Chromium. */
490
+ @media only screen and (max-width: 1180px) {
491
+ display: none;
511
492
  }
512
493
  }
513
494
 
514
495
  // 暗色主题
515
496
  .dark .login-left-view {
516
- background-color: color-mix(in srgb, $primary-light-9 60%, #070707);
497
+ background-color: var(--el-bg-color-page, #070707);
517
498
 
518
- @media only screen and (width <= 1180px) {
519
- background: transparent;
499
+ /* stylelint-disable-next-line media-feature-range-notation -- Support legacy Chromium. */
500
+ @media only screen and (max-width: 1180px) {
501
+ display: none;
520
502
  }
521
503
 
522
504
  .geometric-decorations {
523
505
  // 月亮效果
524
506
  .circle-top-right {
525
- background-color: $bg-mix-light-8;
507
+ background-color: $primary-light-8;
526
508
  box-shadow: 0 0 25px #333 inset;
527
- rotate: -48deg;
509
+ transform: rotate(-48deg);
528
510
  transition: all 0.3s ease-in-out 0.1s;
529
511
 
530
512
  &::before {
@@ -534,7 +516,7 @@
534
516
  width: 50px;
535
517
  height: 50px;
536
518
  content: '';
537
- background-color: $bg-mix-light-9;
519
+ background-color: $primary-light-9;
538
520
  border-radius: 50%;
539
521
  transition: all 0.3s ease-in-out;
540
522
  }
@@ -554,12 +536,12 @@
554
536
  }
555
537
 
556
538
  .bg-bubble {
557
- background-color: $bg-mix-light-9;
539
+ background-color: $primary-light-9;
558
540
  }
559
541
 
560
542
  // 其他元素颜色调整
561
543
  .square-rotated {
562
- background-color: $bg-mix-light-9;
544
+ background-color: $primary-light-9;
563
545
  }
564
546
 
565
547
  .circle-small,
@@ -582,15 +564,15 @@
582
564
  box-shadow: none;
583
565
 
584
566
  &.square-blue {
585
- background-color: rgb(from $primary-base r g b / 18%);
567
+ background-color: var(--el-color-primary-light-8);
586
568
  }
587
569
 
588
570
  &.square-pink {
589
- background-color: rgb(from $primary-base r g b / 10%);
571
+ background-color: var(--el-color-primary-light-9);
590
572
  }
591
573
 
592
574
  &.square-purple {
593
- background-color: rgb(from $primary-base r g b / 20%);
575
+ background-color: var(--el-color-primary-light-7);
594
576
  }
595
577
  }
596
578
 
@@ -63,8 +63,11 @@ const appConfig: SystemConfig = {
63
63
  globalSearch: false,
64
64
  notification: false,
65
65
  chat: false,
66
- watermark: false,
66
+ // 水印功能常驻启用:组件始终挂载,显示/隐藏由设置面板“全局水印”开关(watermarkVisible)控制
67
+ watermark: true,
67
68
  festivalEffects: false,
69
+ screenLock: true,
70
+ guide: true,
68
71
  examples: true
69
72
  },
70
73
  storage: {
@@ -61,6 +61,20 @@ export const globalComponentsConfig: GlobalComponentConfig[] = [
61
61
  () => import('@/components/core/others/art-watermark/index.vue')
62
62
  ),
63
63
  enabled: AppConfig.features.watermark
64
+ },
65
+ {
66
+ name: '锁屏',
67
+ key: 'screen-lock',
68
+ component: defineAsyncComponent(
69
+ () => import('@/components/core/layouts/art-screen-lock/index.vue')
70
+ ),
71
+ enabled: AppConfig.features.screenLock
72
+ },
73
+ {
74
+ name: '新手引导',
75
+ key: 'guide',
76
+ component: defineAsyncComponent(() => import('@/components/core/layouts/art-guide/index.vue')),
77
+ enabled: AppConfig.features.guide
64
78
  }
65
79
  ]
66
80