Skip to content

Commit 88a3975

Browse files
committed
docs(site): optimize the overall theme logic of the official website
1 parent aaf5d4f commit 88a3975

28 files changed

+42
-1193
lines changed

examples/docs/newsrc/pc.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,14 @@
9696
</div>
9797
</div>
9898
</tiny-floatbar>
99-
<!-- 切换主题 -->
100-
<tiny-dropdown class="!fixed bottom20 right140" :show-icon="false" @item-click="changeTheme" :disabled="isSaasMode">
99+
<!-- 切换主题 暂时先屏蔽,等后续其他主题验收完成再放出此功能 -->
100+
<tiny-dropdown
101+
v-if="false"
102+
class="!fixed bottom20 right140"
103+
:show-icon="false"
104+
@item-click="changeTheme"
105+
:disabled="isSaasMode"
106+
>
101107
<span title="切换主题">
102108
<SvgTheme></SvgTheme>
103109
</span>
@@ -152,7 +158,6 @@ import {
152158
import { iconStarActive, iconSelect } from '@opentiny/vue-icon'
153159
import Loading from '@opentiny/vue-loading'
154160
import designSmbConfig from '@opentiny/vue-design-smb'
155-
import designAuroraConfig from '@opentiny/vue-design-aurora'
156161
import designSaasConfig from '@opentiny/vue-design-saas'
157162
import { menuData, demoStr, demoVue, mds, demos } from './resourcePc.js'
158163
import { useTheme, useModeCtx } from './uses'
@@ -194,7 +199,7 @@ export default {
194199
currMd: hooks.computed(() => mds[`${modeState.pathName}.cn.md`]),
195200
demoLoading: false
196201
})
197-
// hui chart 新增图表类型,新增图表的 api 和原有图表的api 区分开。
202+
// hui chart 新增图表类型,新增图表的 api 和原有图表的api 区分开。
198203
const huiNewChart = ['chart-process']
199204
const fn = {
200205
// 菜单搜索:忽略大小写
@@ -258,9 +263,10 @@ export default {
258263
modeFn.pushToUrl()
259264
}
260265
266+
// 默认全部使用designSmbConfig,后续验收完毕再调整
261267
const designConfigMap = {
262268
'tiny-smb-theme': designSmbConfig,
263-
'tiny-aurora-theme': designAuroraConfig
269+
'tiny-aurora-theme': designSmbConfig
264270
}
265271
266272
const lastThemeKey = localStorage.getItem('tinyThemeToolkey')

examples/docs/newsrc/uses/useTheme.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import TinyThemeTool from '@opentiny/vue-theme/theme-tool'
2-
import { tinyAuroraTheme, tinySmbTheme, tinyInfinityTheme } from '@opentiny/vue-theme/theme'
32
import { hooks } from '@opentiny/vue-common'
43
import { Notify } from '@opentiny/vue'
54

@@ -21,9 +20,9 @@ export function useTheme({ readCacheImmediate = true } = {}) {
2120
const lastThemeKey = localStorage.getItem('tinyThemeToolkey')
2221

2322
const THEME_MAP = {
24-
'tiny-aurora-theme': tinyAuroraTheme,
25-
'tiny-smb-theme': tinySmbTheme,
26-
'tiny-infinity-theme': tinyInfinityTheme
23+
'tiny-aurora-theme': null,
24+
'tiny-smb-theme': null,
25+
'tiny-infinity-theme': null
2726
}
2827

2928
const changeTheme = ({ vm }) => {

examples/docs/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
"type": "module",
44
"version": "1.0.8",
55
"description": "",
6-
"keywords": [],
76
"author": "",
87
"license": "ISC",
8+
"keywords": [],
9+
"files": [
10+
"resources"
11+
],
912
"dependencies": {
1013
"@opentiny/vue": "workspace:~",
1114
"@opentiny/vue-common": "workspace:~",
15+
"@opentiny/vue-design-aurora": "workspace:~",
16+
"@opentiny/vue-design-saas": "workspace:~",
17+
"@opentiny/vue-design-smb": "workspace:~",
1218
"@opentiny/vue-icon": "workspace:~",
1319
"@opentiny/vue-theme-mobile": "workspace:~",
1420
"@opentiny/vue-theme-saas": "workspace:~",
15-
"@opentiny/vue-design-aurora": "workspace:~",
16-
"@opentiny/vue-design-smb": "workspace:~",
17-
"@opentiny/vue-design-saas": "workspace:~",
1821
"sortablejs": "1.15.0"
1922
},
2023
"devDependencies": {
2124
"@playwright/test": "~1.42.0"
22-
},
23-
"files": [
24-
"resources"
25-
]
26-
}
25+
}
26+
}

examples/sites/demos/pc/app/color/auxiliary-color-composition-api.vue

Lines changed: 0 additions & 40 deletions
This file was deleted.

examples/sites/demos/pc/app/color/auxiliary-color.spec.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/sites/demos/pc/app/color/auxiliary-color.vue

Lines changed: 0 additions & 47 deletions
This file was deleted.

examples/sites/demos/pc/app/color/main-color-composition-api.vue

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/sites/demos/pc/app/color/main-color.spec.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/sites/demos/pc/app/color/main-color.vue

Lines changed: 0 additions & 53 deletions
This file was deleted.

examples/sites/demos/pc/app/color/neutral-color-composition-api.vue

Lines changed: 0 additions & 74 deletions
This file was deleted.

examples/sites/demos/pc/app/color/neutral-color.spec.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)