@opentiny/vue-docs 2.2.15 → 2.2.17
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.innersaas +2 -1
- package/env/.env.saasopen +2 -1
- package/env/.env.saasprod +2 -1
- package/package.json +12 -12
- package/playground/App.vue +3 -22
package/env/.env.innersaas
CHANGED
|
@@ -5,4 +5,5 @@ VITE_TINY_THEME='saas'
|
|
|
5
5
|
# 官网应用类型:pc / mobile / mobile-first
|
|
6
6
|
VITE_APP_MODE='pc'
|
|
7
7
|
VITE_APP_BUILD_BASE_URL=https://test-static-resource.obs.cn-north-7.ulanqab.huawei.com/tiny-vue-saas/${staticReleaseVersion}/
|
|
8
|
-
VITE_PLAYGROUND_URL=/vue-saas-playground
|
|
8
|
+
VITE_PLAYGROUND_URL=/vue-saas-playground
|
|
9
|
+
VITE_PLAYGROUND_VERIOSN=${playgroudVersion}
|
package/env/.env.saasopen
CHANGED
package/env/.env.saasprod
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@unocss/reset": "0.38.2",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"marked": "^4.3.0",
|
|
17
17
|
"sortablejs": "1.15.0",
|
|
18
18
|
"@opentiny/vue-repl": "^1.1.0",
|
|
19
|
-
"@opentiny/vue": "~3.13.0-alpha.
|
|
20
|
-
"@opentiny/vue-icon": "~3.13.0-alpha.
|
|
21
|
-
"@opentiny/vue-
|
|
22
|
-
"@opentiny/vue-design-
|
|
23
|
-
"@opentiny/vue-
|
|
24
|
-
"@opentiny/vue-design-
|
|
25
|
-
"@opentiny/vue-
|
|
26
|
-
"@opentiny/vue-theme-mobile": "~3.13.0-alpha.
|
|
27
|
-
"@opentiny/vue-
|
|
28
|
-
"@opentiny/vue-
|
|
29
|
-
"@opentiny/vue-
|
|
19
|
+
"@opentiny/vue": "~3.13.0-alpha.1",
|
|
20
|
+
"@opentiny/vue-icon-saas": "~3.13.0-alpha.1",
|
|
21
|
+
"@opentiny/vue-common": "~3.13.0-alpha.1",
|
|
22
|
+
"@opentiny/vue-design-saas": "~3.13.0-alpha.1",
|
|
23
|
+
"@opentiny/vue-icon": "~3.13.0-alpha.1",
|
|
24
|
+
"@opentiny/vue-design-aurora": "~3.13.0-alpha.1",
|
|
25
|
+
"@opentiny/vue-theme": "~3.13.0-alpha.1",
|
|
26
|
+
"@opentiny/vue-theme-mobile": "~3.13.0-alpha.1",
|
|
27
|
+
"@opentiny/vue-design-smb": "~3.13.0-alpha.1",
|
|
28
|
+
"@opentiny/vue-vite-import": "~1.1.5",
|
|
29
|
+
"@opentiny/vue-theme-saas": "~3.13.0-alpha.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/markdown-it": "^12.2.3",
|
package/playground/App.vue
CHANGED
|
@@ -32,23 +32,8 @@ const versions = ['3.13', '3.12', '3.11', '3.10', '3.9', '3.8']
|
|
|
32
32
|
const latestVersion = isPreview ? versions[0] : localStorage.getItem(VERSION) || versions[0]
|
|
33
33
|
const cdnHost = localStorage.getItem('setting-cdn')
|
|
34
34
|
const getRuntime = (version) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
return `${cdnHost}/@opentiny/vue@${version}/runtime/`
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const changeImportSuffix = (imports, verison) => {
|
|
42
|
-
const newImports = {}
|
|
43
|
-
Object.keys(imports).forEach((key) => {
|
|
44
|
-
const url = imports[key]
|
|
45
|
-
if (url.startsWith(getRuntime(verison))) {
|
|
46
|
-
newImports[key] = url.replace('.mjs', '.js')
|
|
47
|
-
} else {
|
|
48
|
-
newImports[key] = url
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
return newImports
|
|
35
|
+
const useVersion = import.meta.env.VITE_PLAYGROUND_VERIOSN || version
|
|
36
|
+
return `${cdnHost}/@opentiny/vue@${useVersion}/runtime/`
|
|
52
37
|
}
|
|
53
38
|
|
|
54
39
|
const createImportMap = (version) => {
|
|
@@ -67,10 +52,9 @@ const createImportMap = (version) => {
|
|
|
67
52
|
}
|
|
68
53
|
if (isSaas) {
|
|
69
54
|
imports['@opentiny/vue-icon'] = `${getRuntime(version)}tiny-vue-icon-saas.mjs`
|
|
70
|
-
imports[`@opentiny/vue-design-saas`] = `${getRuntime(version)}tiny-vue-design-saas.js`
|
|
71
55
|
}
|
|
72
56
|
return {
|
|
73
|
-
imports
|
|
57
|
+
imports
|
|
74
58
|
}
|
|
75
59
|
}
|
|
76
60
|
|
|
@@ -78,9 +62,6 @@ const getTinyTheme = (version) => {
|
|
|
78
62
|
if (isMobileFirst) {
|
|
79
63
|
return `${getRuntime(version)}tailwind.css`
|
|
80
64
|
}
|
|
81
|
-
if (isSaas) {
|
|
82
|
-
return `${getRuntime(version)}index.css`
|
|
83
|
-
}
|
|
84
65
|
let theme = tinyTheme
|
|
85
66
|
if (!['smb', 'default', 'aurora', 'saas'].includes(theme)) {
|
|
86
67
|
theme = 'default'
|