create-weapp-vite 2.0.77 → 2.0.79
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/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-6A45YX6O.js → src-BjkgG3qb.js} +7 -7
- package/package.json +2 -2
- package/templates/default/.vscode/settings.json +69 -0
- package/templates/default/package.json +2 -2
- package/templates/default/src/components/HelloWorld/HelloWorld.ts +4 -2
- package/templates/default/src/pages/index/index.ts +4 -2
- package/templates/default/src/pages/layouts/index.ts +3 -2
- package/templates/lib/.vscode/settings.json +69 -0
- package/templates/lib/package.json +3 -3
- package/templates/lib/src/components/HelloWorld/HelloWorld.ts +4 -2
- package/templates/lib/src/pages/index/index.ts +4 -2
- package/templates/lib/src/pages/layouts/index.ts +3 -2
- package/templates/tailwindcss/.vscode/settings.json +69 -0
- package/templates/tailwindcss/package.json +2 -2
- package/templates/tailwindcss/src/components/HelloWorld/HelloWorld.ts +4 -2
- package/templates/tailwindcss/src/pages/index/index.ts +4 -3
- package/templates/tailwindcss/src/pages/layouts/index.ts +3 -2
- package/templates/tdesign/.vscode/settings.json +69 -0
- package/templates/tdesign/package.json +2 -2
- package/templates/tdesign/src/components/HelloWorld/HelloWorld.ts +4 -2
- package/templates/tdesign/src/pages/index/index.ts +4 -3
- package/templates/tdesign/src/pages/layouts/index.ts +3 -2
- package/templates/vant/.vscode/settings.json +69 -0
- package/templates/vant/package.json +2 -2
- package/templates/vant/src/components/HelloWorld/HelloWorld.ts +4 -2
- package/templates/vant/src/pages/index/index.ts +4 -3
- package/templates/vant/src/pages/layouts/index.scss +1 -1
- package/templates/vant/src/pages/layouts/index.ts +3 -2
- package/templates/vant/src/pages/layouts/index.wxml +17 -5
- package/templates/wevu/.vscode/settings.json +69 -0
- package/templates/wevu/package.json +2 -2
- package/templates/wevu/src/app.vue +10 -7
- package/templates/wevu-tdesign/.vscode/settings.json +69 -0
- package/templates/wevu-tdesign/package.json +2 -2
- package/templates/wevu-tdesign/src/app.vue +6 -3
- package/templates/wevu-tdesign/src/components/FilterBar/index.vue +3 -2
- package/templates/wevu-tdesign/src/hooks/usePullDownRefresh.ts +6 -5
- package/templates/wevu-tdesign/src/pages/ability/index.vue +59 -55
- package/templates/wevu-tdesign/src/pages/data/index.vue +3 -2
- package/templates/wevu-tdesign/src/pages/form/index.vue +2 -20
- package/templates/wevu-tdesign/src/pages/index/index.vue +4 -3
- package/templates/wevu-tdesign/src/pages/layouts/index.vue +5 -4
- package/templates/wevu-tdesign/src/subpackages/ability/index.vue +4 -7
- package/templates/wevu-tdesign/src/subpackages/lab/class-binding/index.vue +5 -24
- package/templates/wevu-tdesign/src/subpackages/lab/index.vue +12 -10
- package/templates/wevu-tdesign/src/utils/changeEvent.ts +53 -0
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, r as TemplateName, t as createProject } from "./src-
|
|
1
|
+
import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, r as TemplateName, t as createProject } from "./src-BjkgG3qb.js";
|
|
2
2
|
import logger from "@weapp-core/logger";
|
|
3
3
|
import { fs } from "@weapp-core/shared";
|
|
4
4
|
import process from "node:process";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as TemplateName, t as createProject } from "./src-
|
|
1
|
+
import { r as TemplateName, t as createProject } from "./src-BjkgG3qb.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -6,13 +6,13 @@ import https from "node:https";
|
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
//#region ../../packages-runtime/weapi/package.json
|
|
9
|
-
var version$2 = "0.2.
|
|
9
|
+
var version$2 = "0.2.3";
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region ../../packages-runtime/wevu/package.json
|
|
12
|
-
var version$1 = "6.
|
|
12
|
+
var version$1 = "6.14.1";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../weapp-vite/package.json
|
|
15
|
-
var version = "6.
|
|
15
|
+
var version = "6.14.1";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/enums.ts
|
|
18
18
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
|
@@ -116,10 +116,10 @@ const TEMPLATE_CATALOG = {
|
|
|
116
116
|
"comment-json": "^4.6.2",
|
|
117
117
|
"estree-walker": "^3.0.3",
|
|
118
118
|
"gm-crypto": "^0.1.12",
|
|
119
|
-
"lru-cache": "^11.2
|
|
119
|
+
"lru-cache": "^11.3.2",
|
|
120
120
|
"magic-string": "^0.30.21",
|
|
121
121
|
"miniprogram-api-typings": "^5.1.2",
|
|
122
|
-
"oxc-parser": "^0.
|
|
122
|
+
"oxc-parser": "^0.124.0",
|
|
123
123
|
"oxc-walker": "^0.7.0",
|
|
124
124
|
"pkg-types": "^2.3.0",
|
|
125
125
|
"sass-embedded": "^1.99.0",
|
|
@@ -142,12 +142,12 @@ const TEMPLATE_CATALOG = {
|
|
|
142
142
|
merge: "^2.1.1",
|
|
143
143
|
pathe: "^2.0.3",
|
|
144
144
|
postcss: "^8.5.8",
|
|
145
|
-
rolldown: "1.0.0-rc.
|
|
145
|
+
rolldown: "1.0.0-rc.13",
|
|
146
146
|
sass: "^1.99.0",
|
|
147
147
|
tailwindcss: "^4.2.2",
|
|
148
148
|
tslib: "^2.8.1",
|
|
149
149
|
typescript: "^6.0.2",
|
|
150
|
-
vite: "8.0.
|
|
150
|
+
vite: "8.0.6",
|
|
151
151
|
vue: "^3.5.32",
|
|
152
152
|
zod: "^4.3.6"
|
|
153
153
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.79",
|
|
5
5
|
"description": "create-weapp-vite",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": "^20.19.0 || >=22.12.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@inquirer/prompts": "^8.
|
|
50
|
+
"@inquirer/prompts": "^8.4.0",
|
|
51
51
|
"pathe": "^2.0.3",
|
|
52
52
|
"pkg-types": "^2.3.0",
|
|
53
53
|
"@weapp-core/logger": "^3.1.1",
|
|
@@ -1,4 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
+
"prettier.enable": false,
|
|
3
|
+
"editor.formatOnSave": false,
|
|
4
|
+
"editor.codeActionsOnSave": {
|
|
5
|
+
"source.fixAll.eslint": "explicit",
|
|
6
|
+
"source.organizeImports": "never"
|
|
7
|
+
},
|
|
8
|
+
"eslint.rules.customizations": [
|
|
9
|
+
{
|
|
10
|
+
"rule": "format/*",
|
|
11
|
+
"severity": "off"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"rule": "*-indent",
|
|
15
|
+
"severity": "off"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"rule": "*-spacing",
|
|
19
|
+
"severity": "off"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"rule": "*-spaces",
|
|
23
|
+
"severity": "off"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"rule": "*-order",
|
|
27
|
+
"severity": "off"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"rule": "*-dangle",
|
|
31
|
+
"severity": "off"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"rule": "*-newline",
|
|
35
|
+
"severity": "off"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"rule": "*quotes",
|
|
39
|
+
"severity": "off"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"rule": "*semi",
|
|
43
|
+
"severity": "off"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"eslint.validate": [
|
|
47
|
+
"javascript",
|
|
48
|
+
"javascriptreact",
|
|
49
|
+
"typescript",
|
|
50
|
+
"typescriptreact",
|
|
51
|
+
"vue",
|
|
52
|
+
"html",
|
|
53
|
+
"markdown",
|
|
54
|
+
"json",
|
|
55
|
+
"jsonc",
|
|
56
|
+
"yaml",
|
|
57
|
+
"toml",
|
|
58
|
+
"xml",
|
|
59
|
+
"gql",
|
|
60
|
+
"graphql",
|
|
61
|
+
"astro",
|
|
62
|
+
"css",
|
|
63
|
+
"less",
|
|
64
|
+
"scss",
|
|
65
|
+
"pcss",
|
|
66
|
+
"postcss"
|
|
67
|
+
],
|
|
68
|
+
"css.validate": false,
|
|
69
|
+
"less.validate": false,
|
|
70
|
+
"scss.validate": false,
|
|
2
71
|
"files.associations": {
|
|
3
72
|
"*.wxml": "html",
|
|
4
73
|
"*.wxss": "css"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"postinstall": "wv prepare"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
32
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
31
|
+
"@icebreakers/eslint-config": "^4.0.1",
|
|
32
|
+
"@icebreakers/stylelint-config": "^3.0.1",
|
|
33
33
|
"eslint": "^10.2.0",
|
|
34
34
|
"miniprogram-api-typings": "catalog:",
|
|
35
35
|
"sass": "catalog:",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
2
|
+
|
|
1
3
|
interface HelloWorldLink {
|
|
2
4
|
text: string
|
|
3
5
|
url: string
|
|
@@ -45,8 +47,8 @@ Component({
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
try {
|
|
48
|
-
await
|
|
49
|
-
|
|
50
|
+
await wpi.setClipboardData({ data: url })
|
|
51
|
+
await wpi.showToast({
|
|
50
52
|
title: '链接已复制',
|
|
51
53
|
icon: 'success',
|
|
52
54
|
duration: 1500,
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
2
|
+
|
|
1
3
|
Page({
|
|
2
4
|
data: {
|
|
3
5
|
hello: {
|
|
@@ -21,8 +23,8 @@ Page({
|
|
|
21
23
|
// eslint-disable-next-line no-console
|
|
22
24
|
console.log('on click')
|
|
23
25
|
},
|
|
24
|
-
goToLayouts() {
|
|
25
|
-
|
|
26
|
+
async goToLayouts() {
|
|
27
|
+
await wpi.navigateTo({
|
|
26
28
|
url: '/pages/layouts/index',
|
|
27
29
|
})
|
|
28
30
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
1
2
|
import { setPageLayout } from 'weapp-vite/runtime'
|
|
2
3
|
|
|
3
4
|
Page({
|
|
@@ -36,7 +37,7 @@ Page({
|
|
|
36
37
|
this.setData({ currentLayout: 'none' })
|
|
37
38
|
setPageLayout(false)
|
|
38
39
|
},
|
|
39
|
-
backHome() {
|
|
40
|
-
|
|
40
|
+
async backHome() {
|
|
41
|
+
await wpi.navigateTo({ url: '/pages/index/index' })
|
|
41
42
|
},
|
|
42
43
|
})
|
|
@@ -1,4 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
+
"prettier.enable": false,
|
|
3
|
+
"editor.formatOnSave": false,
|
|
4
|
+
"editor.codeActionsOnSave": {
|
|
5
|
+
"source.fixAll.eslint": "explicit",
|
|
6
|
+
"source.organizeImports": "never"
|
|
7
|
+
},
|
|
8
|
+
"eslint.rules.customizations": [
|
|
9
|
+
{
|
|
10
|
+
"rule": "format/*",
|
|
11
|
+
"severity": "off"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"rule": "*-indent",
|
|
15
|
+
"severity": "off"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"rule": "*-spacing",
|
|
19
|
+
"severity": "off"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"rule": "*-spaces",
|
|
23
|
+
"severity": "off"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"rule": "*-order",
|
|
27
|
+
"severity": "off"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"rule": "*-dangle",
|
|
31
|
+
"severity": "off"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"rule": "*-newline",
|
|
35
|
+
"severity": "off"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"rule": "*quotes",
|
|
39
|
+
"severity": "off"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"rule": "*semi",
|
|
43
|
+
"severity": "off"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"eslint.validate": [
|
|
47
|
+
"javascript",
|
|
48
|
+
"javascriptreact",
|
|
49
|
+
"typescript",
|
|
50
|
+
"typescriptreact",
|
|
51
|
+
"vue",
|
|
52
|
+
"html",
|
|
53
|
+
"markdown",
|
|
54
|
+
"json",
|
|
55
|
+
"jsonc",
|
|
56
|
+
"yaml",
|
|
57
|
+
"toml",
|
|
58
|
+
"xml",
|
|
59
|
+
"gql",
|
|
60
|
+
"graphql",
|
|
61
|
+
"astro",
|
|
62
|
+
"css",
|
|
63
|
+
"less",
|
|
64
|
+
"scss",
|
|
65
|
+
"pcss",
|
|
66
|
+
"postcss"
|
|
67
|
+
],
|
|
68
|
+
"css.validate": false,
|
|
69
|
+
"less.validate": false,
|
|
70
|
+
"scss.validate": false,
|
|
2
71
|
"files.associations": {
|
|
3
72
|
"*.wxml": "html",
|
|
4
73
|
"*.wxss": "css"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-lib-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "weapp-vite 组件库(lib 模式)模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"wevu": "workspace:*"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
37
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
36
|
+
"@icebreakers/eslint-config": "^4.0.1",
|
|
37
|
+
"@icebreakers/stylelint-config": "^3.0.1",
|
|
38
38
|
"@wevu/api": "workspace:*",
|
|
39
39
|
"eslint": "^10.2.0",
|
|
40
40
|
"miniprogram-api-typings": "catalog:",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
2
|
+
|
|
1
3
|
interface HelloWorldLink {
|
|
2
4
|
text: string
|
|
3
5
|
url: string
|
|
@@ -45,8 +47,8 @@ Component({
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
try {
|
|
48
|
-
await
|
|
49
|
-
|
|
50
|
+
await wpi.setClipboardData({ data: url })
|
|
51
|
+
await wpi.showToast({
|
|
50
52
|
title: '链接已复制',
|
|
51
53
|
icon: 'success',
|
|
52
54
|
duration: 1500,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
1
2
|
import { setPageLayout } from 'weapp-vite/runtime'
|
|
2
3
|
|
|
3
4
|
Page({
|
|
@@ -36,8 +37,8 @@ Page({
|
|
|
36
37
|
this.setData({ currentLayout: 'none' })
|
|
37
38
|
setPageLayout(false)
|
|
38
39
|
},
|
|
39
|
-
backHome() {
|
|
40
|
-
|
|
40
|
+
async backHome() {
|
|
41
|
+
await wpi.navigateTo({
|
|
41
42
|
url: '/pages/index/index',
|
|
42
43
|
})
|
|
43
44
|
},
|
|
@@ -1,4 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
+
"prettier.enable": false,
|
|
3
|
+
"editor.formatOnSave": false,
|
|
4
|
+
"editor.codeActionsOnSave": {
|
|
5
|
+
"source.fixAll.eslint": "explicit",
|
|
6
|
+
"source.organizeImports": "never"
|
|
7
|
+
},
|
|
8
|
+
"eslint.rules.customizations": [
|
|
9
|
+
{
|
|
10
|
+
"rule": "format/*",
|
|
11
|
+
"severity": "off"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"rule": "*-indent",
|
|
15
|
+
"severity": "off"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"rule": "*-spacing",
|
|
19
|
+
"severity": "off"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"rule": "*-spaces",
|
|
23
|
+
"severity": "off"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"rule": "*-order",
|
|
27
|
+
"severity": "off"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"rule": "*-dangle",
|
|
31
|
+
"severity": "off"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"rule": "*-newline",
|
|
35
|
+
"severity": "off"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"rule": "*quotes",
|
|
39
|
+
"severity": "off"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"rule": "*semi",
|
|
43
|
+
"severity": "off"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"eslint.validate": [
|
|
47
|
+
"javascript",
|
|
48
|
+
"javascriptreact",
|
|
49
|
+
"typescript",
|
|
50
|
+
"typescriptreact",
|
|
51
|
+
"vue",
|
|
52
|
+
"html",
|
|
53
|
+
"markdown",
|
|
54
|
+
"json",
|
|
55
|
+
"jsonc",
|
|
56
|
+
"yaml",
|
|
57
|
+
"toml",
|
|
58
|
+
"xml",
|
|
59
|
+
"gql",
|
|
60
|
+
"graphql",
|
|
61
|
+
"astro",
|
|
62
|
+
"css",
|
|
63
|
+
"less",
|
|
64
|
+
"scss",
|
|
65
|
+
"pcss",
|
|
66
|
+
"postcss"
|
|
67
|
+
],
|
|
68
|
+
"css.validate": false,
|
|
69
|
+
"less.validate": false,
|
|
70
|
+
"scss.validate": false,
|
|
2
71
|
"files.associations": {
|
|
3
72
|
"*.wxml": "html",
|
|
4
73
|
"*.wxss": "css"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
32
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
33
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
32
|
+
"@icebreakers/eslint-config": "^4.0.1",
|
|
33
|
+
"@icebreakers/stylelint-config": "^3.0.1",
|
|
34
34
|
"@iconify-json/mdi": "catalog:",
|
|
35
35
|
"autoprefixer": "catalog:",
|
|
36
36
|
"eslint": "^10.2.0",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
2
|
+
|
|
1
3
|
interface HelloWorldLink {
|
|
2
4
|
text: string
|
|
3
5
|
url: string
|
|
@@ -45,8 +47,8 @@ Component({
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
try {
|
|
48
|
-
await
|
|
49
|
-
|
|
50
|
+
await wpi.setClipboardData({ data: url })
|
|
51
|
+
await wpi.showToast({
|
|
50
52
|
title: '链接已复制',
|
|
51
53
|
icon: 'success',
|
|
52
54
|
duration: 1500,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
1
2
|
import { hello } from '@/utils/util'
|
|
2
3
|
|
|
3
4
|
Page({
|
|
@@ -34,7 +35,7 @@ Page({
|
|
|
34
35
|
},
|
|
35
36
|
async copy(e: WechatMiniprogram.BaseEvent) {
|
|
36
37
|
if (e.mark?.url) {
|
|
37
|
-
await
|
|
38
|
+
await wpi.setClipboardData({
|
|
38
39
|
data: e.mark.url,
|
|
39
40
|
})
|
|
40
41
|
// eslint-disable-next-line no-console
|
|
@@ -45,8 +46,8 @@ Page({
|
|
|
45
46
|
// eslint-disable-next-line no-console
|
|
46
47
|
console.log(hello())
|
|
47
48
|
},
|
|
48
|
-
goToLayouts() {
|
|
49
|
-
|
|
49
|
+
async goToLayouts() {
|
|
50
|
+
await wpi.navigateTo({
|
|
50
51
|
url: '/pages/layouts/index',
|
|
51
52
|
})
|
|
52
53
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
1
2
|
import { setPageLayout } from 'weapp-vite/runtime'
|
|
2
3
|
|
|
3
4
|
Page({
|
|
@@ -27,7 +28,7 @@ Page({
|
|
|
27
28
|
this.setData({ currentLayout: 'none' })
|
|
28
29
|
setPageLayout(false)
|
|
29
30
|
},
|
|
30
|
-
backHome() {
|
|
31
|
-
|
|
31
|
+
async backHome() {
|
|
32
|
+
await wpi.switchTab({ url: '/pages/index/index' })
|
|
32
33
|
},
|
|
33
34
|
})
|
|
@@ -1,4 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
+
"prettier.enable": false,
|
|
3
|
+
"editor.formatOnSave": false,
|
|
4
|
+
"editor.codeActionsOnSave": {
|
|
5
|
+
"source.fixAll.eslint": "explicit",
|
|
6
|
+
"source.organizeImports": "never"
|
|
7
|
+
},
|
|
8
|
+
"eslint.rules.customizations": [
|
|
9
|
+
{
|
|
10
|
+
"rule": "format/*",
|
|
11
|
+
"severity": "off"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"rule": "*-indent",
|
|
15
|
+
"severity": "off"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"rule": "*-spacing",
|
|
19
|
+
"severity": "off"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"rule": "*-spaces",
|
|
23
|
+
"severity": "off"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"rule": "*-order",
|
|
27
|
+
"severity": "off"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"rule": "*-dangle",
|
|
31
|
+
"severity": "off"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"rule": "*-newline",
|
|
35
|
+
"severity": "off"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"rule": "*quotes",
|
|
39
|
+
"severity": "off"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"rule": "*semi",
|
|
43
|
+
"severity": "off"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"eslint.validate": [
|
|
47
|
+
"javascript",
|
|
48
|
+
"javascriptreact",
|
|
49
|
+
"typescript",
|
|
50
|
+
"typescriptreact",
|
|
51
|
+
"vue",
|
|
52
|
+
"html",
|
|
53
|
+
"markdown",
|
|
54
|
+
"json",
|
|
55
|
+
"jsonc",
|
|
56
|
+
"yaml",
|
|
57
|
+
"toml",
|
|
58
|
+
"xml",
|
|
59
|
+
"gql",
|
|
60
|
+
"graphql",
|
|
61
|
+
"astro",
|
|
62
|
+
"css",
|
|
63
|
+
"less",
|
|
64
|
+
"scss",
|
|
65
|
+
"pcss",
|
|
66
|
+
"postcss"
|
|
67
|
+
],
|
|
68
|
+
"css.validate": false,
|
|
69
|
+
"less.validate": false,
|
|
70
|
+
"scss.validate": false,
|
|
2
71
|
"files.associations": {
|
|
3
72
|
"*.wxml": "html",
|
|
4
73
|
"*.wxss": "css"
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
-
"@icebreakers/eslint-config": "^4.0.
|
|
36
|
-
"@icebreakers/stylelint-config": "^3.0.
|
|
35
|
+
"@icebreakers/eslint-config": "^4.0.1",
|
|
36
|
+
"@icebreakers/stylelint-config": "^3.0.1",
|
|
37
37
|
"@iconify-json/mdi": "catalog:",
|
|
38
38
|
"autoprefixer": "catalog:",
|
|
39
39
|
"eslint": "^10.2.0",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
2
|
+
|
|
1
3
|
interface HelloWorldLink {
|
|
2
4
|
text: string
|
|
3
5
|
url: string
|
|
@@ -48,8 +50,8 @@ Component({
|
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
try {
|
|
51
|
-
await
|
|
52
|
-
|
|
53
|
+
await wpi.setClipboardData({ data: url })
|
|
54
|
+
await wpi.showToast({
|
|
53
55
|
title: '链接已复制',
|
|
54
56
|
icon: 'success',
|
|
55
57
|
duration: 1500,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
1
2
|
import ActionSheet, { ActionSheetTheme } from 'tdesign-miniprogram/action-sheet/index'
|
|
2
3
|
import { hello } from '@/utils/util'
|
|
3
4
|
|
|
@@ -69,7 +70,7 @@ Page({
|
|
|
69
70
|
},
|
|
70
71
|
async copy(e: WechatMiniprogram.BaseEvent) {
|
|
71
72
|
if (e.mark?.url) {
|
|
72
|
-
await
|
|
73
|
+
await wpi.setClipboardData({
|
|
73
74
|
data: e.mark.url,
|
|
74
75
|
})
|
|
75
76
|
// eslint-disable-next-line no-console
|
|
@@ -84,8 +85,8 @@ Page({
|
|
|
84
85
|
// eslint-disable-next-line no-console
|
|
85
86
|
console.log(hello())
|
|
86
87
|
},
|
|
87
|
-
goToLayouts() {
|
|
88
|
-
|
|
88
|
+
async goToLayouts() {
|
|
89
|
+
await wpi.navigateTo({
|
|
89
90
|
url: '/pages/layouts/index',
|
|
90
91
|
})
|
|
91
92
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { wpi } from '@wevu/api'
|
|
1
2
|
import Toast from 'tdesign-miniprogram/toast/index'
|
|
2
3
|
import { setPageLayout } from 'weapp-vite/runtime'
|
|
3
4
|
|
|
@@ -26,7 +27,7 @@ Page({
|
|
|
26
27
|
setPageLayout(false)
|
|
27
28
|
Toast({ context: this, selector: '#t-toast', message: '已关闭布局' })
|
|
28
29
|
},
|
|
29
|
-
backHome() {
|
|
30
|
-
|
|
30
|
+
async backHome() {
|
|
31
|
+
await wpi.navigateTo({ url: '/pages/index/index' })
|
|
31
32
|
},
|
|
32
33
|
})
|