@varlet/cli 2.12.0-alpha.1687974059976 → 2.12.0-alpha.1688105697429
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.
|
@@ -141,6 +141,14 @@ export default defineConfig({
|
|
|
141
141
|
link: 'https://github.com/varletjs/varlet/graphs/contributors',
|
|
142
142
|
image: 'https://contrib.rocks/image?repo=varletjs/varlet',
|
|
143
143
|
},
|
|
144
|
+
sponsors: {
|
|
145
|
+
label: {
|
|
146
|
+
'zh-CN': '赞助者',
|
|
147
|
+
'en-US': 'Sponsors',
|
|
148
|
+
},
|
|
149
|
+
link: 'https://cdn.jsdelivr.net/gh/varletjs/varlet-static/sponsorkit/sponsors.svg',
|
|
150
|
+
image: 'https://cdn.jsdelivr.net/gh/varletjs/varlet-static/sponsorkit/sponsors.svg',
|
|
151
|
+
},
|
|
144
152
|
license: {
|
|
145
153
|
'zh-CN': '组件库基于 MIT 协议,您可以自由的使用和分享',
|
|
146
154
|
'en-US': 'Released under the MIT License, You can use and share freely.',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "2.12.0-alpha.
|
|
3
|
+
"version": "2.12.0-alpha.1688105697429",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "cli of varlet",
|
|
6
6
|
"bin": {
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"vite": "4.3.5",
|
|
71
71
|
"vue": "3.3.4",
|
|
72
72
|
"webfont": "^9.0.0",
|
|
73
|
-
"@varlet/
|
|
74
|
-
"@varlet/
|
|
73
|
+
"@varlet/vite-plugins": "2.12.0-alpha.1688105697429",
|
|
74
|
+
"@varlet/shared": "2.12.0-alpha.1688105697429"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/babel__core": "^7.20.1",
|
|
@@ -85,8 +85,9 @@
|
|
|
85
85
|
"@types/node": "^18.7.20",
|
|
86
86
|
"@types/semver": "^7.3.9",
|
|
87
87
|
"@types/sharp": "0.31.1",
|
|
88
|
-
"
|
|
89
|
-
"@varlet/
|
|
88
|
+
"rimraf": "^5.0.1",
|
|
89
|
+
"@varlet/touch-emulator": "2.12.0-alpha.1688105697429",
|
|
90
|
+
"@varlet/icons": "2.12.0-alpha.1688105697429"
|
|
90
91
|
},
|
|
91
92
|
"peerDependencies": {
|
|
92
93
|
"@vue/runtime-core": "3.3.4",
|
|
@@ -96,11 +97,11 @@
|
|
|
96
97
|
"lodash-es": "^4.17.21",
|
|
97
98
|
"vue": "3.3.4",
|
|
98
99
|
"vue-router": "4.2.0",
|
|
99
|
-
"@varlet/
|
|
100
|
-
"@varlet/
|
|
100
|
+
"@varlet/touch-emulator": "2.12.0-alpha.1688105697429",
|
|
101
|
+
"@varlet/icons": "2.12.0-alpha.1688105697429"
|
|
101
102
|
},
|
|
102
103
|
"scripts": {
|
|
103
104
|
"dev": "tsc --watch",
|
|
104
|
-
"build": "tsc"
|
|
105
|
+
"build": "rimraf ./lib && tsc"
|
|
105
106
|
}
|
|
106
107
|
}
|
|
@@ -42,7 +42,7 @@ const setCurrentTheme = (theme: Theme) => {
|
|
|
42
42
|
const toggleTheme = () => {
|
|
43
43
|
setCurrentTheme(currentTheme.value === 'darkTheme' ? 'lightTheme' : 'darkTheme')
|
|
44
44
|
window.postMessage(getThemeMessage(), '*')
|
|
45
|
-
|
|
45
|
+
; (document.getElementById('mobile') as HTMLIFrameElement)?.contentWindow!.postMessage(getThemeMessage(), '*')
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
const setLocale = () => {
|
|
@@ -79,30 +79,24 @@ watch(() => route.path, setLocale, { immediate: true })
|
|
|
79
79
|
<div class="varlet-doc-index__layout">
|
|
80
80
|
<div class="varlet-doc-index__logo-container">
|
|
81
81
|
<div class="varlet-doc-index__logo-background-mask"></div>
|
|
82
|
-
<animation-box class="varlet-doc-index__logo"/>
|
|
82
|
+
<animation-box class="varlet-doc-index__logo" />
|
|
83
83
|
</div>
|
|
84
84
|
|
|
85
85
|
<div class="varlet-doc-index__title">{{ title }}</div>
|
|
86
86
|
<div class="varlet-doc-index__description">{{ indexPage.description[language] }}</div>
|
|
87
87
|
<div class="varlet-doc-index__link-button-group">
|
|
88
88
|
<var-button class="varlet-doc-index__link-button" text outline @click="goGithub">
|
|
89
|
-
<var-icon name="github" size="24px"/>
|
|
89
|
+
<var-icon name="github" size="24px" />
|
|
90
90
|
</var-button>
|
|
91
91
|
<var-button class="varlet-doc-index__link-button" text outline v-if="darkMode" @click="toggleTheme">
|
|
92
|
-
<var-icon size="24px" :name="currentTheme === 'lightTheme' ? 'white-balance-sunny' : 'weather-night'"/>
|
|
92
|
+
<var-icon size="24px" :name="currentTheme === 'lightTheme' ? 'white-balance-sunny' : 'weather-night'" />
|
|
93
93
|
</var-button>
|
|
94
|
-
<var-button
|
|
95
|
-
|
|
96
|
-
text
|
|
97
|
-
outline
|
|
98
|
-
v-if="languages"
|
|
99
|
-
@click="toggleLanguages"
|
|
100
|
-
>
|
|
101
|
-
<var-icon name="translate" size="24px"/>
|
|
94
|
+
<var-button class="varlet-doc-index__link-button" text outline v-if="languages" @click="toggleLanguages">
|
|
95
|
+
<var-icon name="translate" size="24px" />
|
|
102
96
|
</var-button>
|
|
103
97
|
<var-button class="varlet-doc-index__link-button" type="primary" style="line-height: 1.2" @click="getStar">
|
|
104
98
|
<span class="varlet-doc-index__link-button-text">{{ indexPage.started[language] }}</span>
|
|
105
|
-
<var-icon style="transform: rotate(-90deg)" name="arrow-down" size="24px"/>
|
|
99
|
+
<var-icon style="transform: rotate(-90deg)" name="arrow-down" size="24px" />
|
|
106
100
|
</var-button>
|
|
107
101
|
</div>
|
|
108
102
|
|
|
@@ -121,6 +115,14 @@ watch(() => route.path, setLocale, { immediate: true })
|
|
|
121
115
|
</a>
|
|
122
116
|
</div>
|
|
123
117
|
|
|
118
|
+
<div class="varlet-doc-index__contributors" v-if="indexPage.sponsors">
|
|
119
|
+
<div class="varlet-doc-index__contributors-title">{{ indexPage.sponsors.label[language] }}</div>
|
|
120
|
+
|
|
121
|
+
<a class="varlet-doc-index__contributors-link" :href="indexPage.sponsors.link">
|
|
122
|
+
<img class="varlet-doc-index__contributors-image" :src="indexPage.sponsors.image">
|
|
123
|
+
</a>
|
|
124
|
+
</div>
|
|
125
|
+
|
|
124
126
|
<div class="varlet-doc-index__footer">
|
|
125
127
|
<div class="varlet-doc-index__license">{{ indexPage.license[language] }}</div>
|
|
126
128
|
<div class="varlet-doc-index__copyright">{{ indexPage.copyright[language] }}</div>
|