@varlet/cli 2.0.0-alpha.1665387432577 → 2.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "2.0.0-alpha.1665387432577",
3
+ "version": "2.0.0",
4
4
  "description": "cli of varlet",
5
5
  "bin": {
6
6
  "varlet-cli": "./lib/index.js"
@@ -32,10 +32,10 @@
32
32
  "@babel/helper-plugin-utils": "^7.14.5",
33
33
  "@babel/preset-env": "^7.14.8",
34
34
  "@babel/preset-typescript": "^7.14.5",
35
- "@varlet/icons": "2.0.0-alpha.1665387432577",
36
- "@varlet/markdown-vite-plugin": "2.0.0-alpha.1665387432577",
37
- "@varlet/shared": "2.0.0-alpha.1665387432577",
38
- "@varlet/touch-emulator": "2.0.0-alpha.1665387432577",
35
+ "@varlet/icons": "2.0.0",
36
+ "@varlet/markdown-vite-plugin": "2.0.0",
37
+ "@varlet/shared": "2.0.0",
38
+ "@varlet/touch-emulator": "2.0.0",
39
39
  "@vitejs/plugin-vue": "3.0.1",
40
40
  "@vitejs/plugin-vue-jsx": "2.0.0",
41
41
  "@vue/babel-plugin-jsx": "1.1.1",
@@ -80,7 +80,7 @@
80
80
  "@types/semver": "^7.3.9"
81
81
  },
82
82
  "peerDependencies": {
83
- "@varlet/touch-emulator": "2.0.0-alpha.1665387432577",
83
+ "@varlet/touch-emulator": "2.0.0",
84
84
  "@vue/runtime-core": "3.2.16",
85
85
  "@vue/test-utils": "^2.0.2",
86
86
  "clipboard": "^2.0.6",
@@ -50,10 +50,16 @@ const handleSidebarChange = (menu: Menu) => {
50
50
  }
51
51
 
52
52
  const confirmClose = () => {
53
- if (!window.confirm('The code will no longer be saved after closing. Are you sure you want to close?')) {
53
+ const key = 'VARLET_UI_PLAYGROUND_HAS_BEEN_CLOSED'
54
+
55
+ if (
56
+ !localStorage.getItem(key) &&
57
+ !window.confirm('The code will no longer be saved after closing. Are you sure you want to close?')
58
+ ) {
54
59
  return
55
60
  }
56
61
 
62
+ localStorage.setItem(key, 'true')
57
63
  context.showPlayground = false
58
64
  }
59
65
 
@@ -152,7 +152,7 @@ module.exports = {
152
152
  },
153
153
  versions: null,
154
154
  github: 'https://github.com/varletjs/varlet',
155
- playground: 'https://varlet-ui-playground-git-dev-varletjs.vercel.app',
155
+ playground: 'https://varlet.gitee.io/varlet-ui-playground',
156
156
  darkMode: true,
157
157
  },
158
158
  clipboard: {