@opentiny/vue-docs 3.26.5 → 3.26.7
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/env/.env.saas +1 -1
- package/package.json +9 -9
- package/src/components/demo.vue +3 -1
- package/src/main.js +1 -4
- package/src/menus.js +2 -1
- package/src/tools/docsearch.js +5 -0
- package/tailwind.config.cjs +1 -0
- package/vite.extend.ts +0 -3
package/env/.env.saas
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.26.
|
|
4
|
+
"version": "3.26.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@docsearch/css": "^3.8.0",
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"@opentiny/utils": "~3.26.0",
|
|
31
31
|
"@opentiny/vue": "~3.26.0",
|
|
32
32
|
"@opentiny/vue-common": "~3.26.0",
|
|
33
|
-
"@opentiny/vue-design-saas": "~3.26.0",
|
|
34
33
|
"@opentiny/vue-design-aurora": "~3.26.0",
|
|
34
|
+
"@opentiny/vue-design-saas": "~3.26.0",
|
|
35
35
|
"@opentiny/vue-design-smb": "~3.26.0",
|
|
36
|
-
"@opentiny/vue-flowchart": "~3.26.0",
|
|
37
|
-
"@opentiny/vue-hooks": "~3.26.0",
|
|
38
36
|
"@opentiny/vue-directive": "~3.26.0",
|
|
39
|
-
"@opentiny/vue-
|
|
40
|
-
"@opentiny/vue-
|
|
37
|
+
"@opentiny/vue-hooks": "~3.26.0",
|
|
38
|
+
"@opentiny/vue-flowchart": "~3.26.0",
|
|
41
39
|
"@opentiny/vue-huicharts": "~3.26.0",
|
|
40
|
+
"@opentiny/vue-icon-multicolor": "~3.26.0",
|
|
41
|
+
"@opentiny/vue-icon": "~3.26.0",
|
|
42
42
|
"@opentiny/vue-locale": "~3.26.0",
|
|
43
|
-
"@opentiny/vue-modal": "~3.26.0",
|
|
44
43
|
"@opentiny/vue-icon-saas": "~3.26.0",
|
|
44
|
+
"@opentiny/vue-modal": "~3.26.0",
|
|
45
|
+
"@opentiny/vue-renderless": "~3.26.0",
|
|
45
46
|
"@opentiny/vue-theme": "~3.26.0",
|
|
46
|
-
"@opentiny/vue-theme-saas": "~3.26.2"
|
|
47
|
-
"@opentiny/vue-renderless": "~3.26.0"
|
|
47
|
+
"@opentiny/vue-theme-saas": "~3.26.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@playwright/test": "~1.49.0",
|
package/src/components/demo.vue
CHANGED
|
@@ -184,7 +184,9 @@ const getDemoCodeFn = async (demo, forceUpdate?: boolean) => {
|
|
|
184
184
|
const demoName = apiModeFn.getDemoName(`${getWebdocPath(cmpId)}/${fileName}`)
|
|
185
185
|
let code = ''
|
|
186
186
|
|
|
187
|
-
const path = isMobileFirst.value
|
|
187
|
+
const path = isMobileFirst.value
|
|
188
|
+
? `@demos/mobile-first/app/${demoName.replace('mobile-first/', '')}`
|
|
189
|
+
: `${staticDemoPath}/${demoName}`
|
|
188
190
|
code = await fetchDemosFile(path)
|
|
189
191
|
.then((code) => {
|
|
190
192
|
return code
|
package/src/main.js
CHANGED
package/src/menus.js
CHANGED
|
@@ -27,7 +27,8 @@ function genMenus() {
|
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
// 使用指南只在DEV下生效
|
|
30
|
-
const
|
|
30
|
+
const isShowDoc = import.meta.env.DEV || import.meta.env.VITE_TINY_THEME === 'saas'
|
|
31
|
+
const docOptions = isShowDoc
|
|
31
32
|
? docMenus.map((menu) => ({
|
|
32
33
|
...menu,
|
|
33
34
|
label: `${appData.lang === 'zhCN' ? menu.label : menu.labelEn}${getChildrenStr(menu)}`,
|
package/src/tools/docsearch.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const OPEN_TINY_URL = 'https://opentiny.design'
|
|
2
|
+
const isSaas = import.meta.env.VITE_TINY_THEME === 'saas'
|
|
2
3
|
|
|
3
4
|
export const doSearchEverySite = () => {
|
|
4
5
|
window.handleGlobalSearchData = (resolve) => {
|
|
@@ -7,6 +8,10 @@ export const doSearchEverySite = () => {
|
|
|
7
8
|
data.content = data.content.replaceAll(OPEN_TINY_URL, window.location.origin)
|
|
8
9
|
}
|
|
9
10
|
|
|
11
|
+
if (isSaas) {
|
|
12
|
+
data.content = data.content.replaceAll('/tiny-vue/', '/tiny-vue-saas/')
|
|
13
|
+
}
|
|
14
|
+
|
|
10
15
|
resolve(data)
|
|
11
16
|
}
|
|
12
17
|
}
|
package/tailwind.config.cjs
CHANGED
package/vite.extend.ts
CHANGED