create-jsview 2.3.151-test.0 → 3.0.0-test.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/common.mjs +9 -8
- package/package.json +4 -4
- package/template-vue-vite/package-lock-json +1372 -1160
- package/template-vue-vite/package.json +23 -12
- package/template-vue-vite/src/appConfig/jsview.config.mjs +8 -2
- package/template-vue-vite/src/{featureEnables.tsx → featureEnables.ts} +3 -0
- package/template-vue-vite/tsconfig/tsconfig.app.json +29 -0
- package/template-vue-vite/tsconfig/tsconfig.jsview.json +15 -0
- package/template-vue-vite/tsconfig/tsconfig.node.json +22 -0
- package/template-vue-vite/tsconfig.json +5 -24
- package/template-react-webpack/README.md +0 -16
- package/template-react-webpack/_gitignore +0 -23
- package/template-react-webpack/package-lock-json +0 -27673
- package/template-react-webpack/package.json +0 -32
- package/template-react-webpack/public/index.html +0 -12
- package/template-react-webpack/src/App.css +0 -38
- package/template-react-webpack/src/App.js +0 -18
- package/template-react-webpack/src/appConfig/HOW_TO_CONFIG.md +0 -20
- package/template-react-webpack/src/appConfig/app.config.mjs +0 -7
- package/template-react-webpack/src/appConfig/app_sign_private_key_sample.crt +0 -28
- package/template-react-webpack/src/appConfig/app_sign_public_key_sample.pem +0 -9
- package/template-react-webpack/src/appConfig/jsview.config.mjs +0 -41
- package/template-react-webpack/src/logo.png +0 -0
- package/template-react-webpack/src/main.tsx +0 -19
- package/template-react-webpack/tsconfig.json +0 -9
- package/template-vue-vite/tsconfig.node.json +0 -8
- /package/template-vue-vite/src/{main.tsx → main.ts} +0 -0
- /package/template-vue-vite/src/{permissionResult.tsx → permissionResult.ts} +0 -0
|
@@ -6,28 +6,39 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "vue-tsc && vite build",
|
|
8
8
|
"dev": "vite",
|
|
9
|
-
"postbuild": "
|
|
10
|
-
"postinstall": "
|
|
9
|
+
"postbuild": "jsview-post-build --framework=vue",
|
|
10
|
+
"postinstall": "jsview-post-install --framework=vue",
|
|
11
11
|
"start": "vite",
|
|
12
|
-
"tool": "
|
|
12
|
+
"tool": "jsview-run-tool --framework=vue"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@shijiu/jsview": "
|
|
16
|
-
"@shijiu/jsview-vue": "
|
|
17
|
-
"vue": "3.
|
|
18
|
-
"vue-
|
|
15
|
+
"@shijiu/jsview": "3.0.0-test.0",
|
|
16
|
+
"@shijiu/jsview-vue": "3.0.0-test.0",
|
|
17
|
+
"@vue/compiler-core": "3.6.0-beta.10",
|
|
18
|
+
"@vue/compiler-dom": "3.6.0-beta.10",
|
|
19
|
+
"@vue/compiler-sfc": "3.6.0-beta.10",
|
|
20
|
+
"@vue/compiler-ssr": "3.6.0-beta.10",
|
|
21
|
+
"@vue/compiler-vapor": "3.6.0-beta.10",
|
|
22
|
+
"@vue/reactivity": "3.6.0-beta.10",
|
|
23
|
+
"@vue/runtime-core": "3.6.0-beta.10",
|
|
24
|
+
"@vue/runtime-dom": "3.6.0-beta.10",
|
|
25
|
+
"@vue/runtime-vapor": "3.6.0-beta.10",
|
|
26
|
+
"@vue/server-renderer": "3.6.0-beta.10",
|
|
27
|
+
"@vue/shared": "3.6.0-beta.10",
|
|
28
|
+
"vue": "3.6.0-beta.10",
|
|
29
|
+
"vue-router": "5.0.6"
|
|
19
30
|
},
|
|
20
31
|
"devDependencies": {
|
|
21
|
-
"@vitejs/plugin-vue": "
|
|
22
|
-
"typescript": "
|
|
23
|
-
"vite": "
|
|
24
|
-
"vue-tsc": "
|
|
32
|
+
"@vitejs/plugin-vue": "6.0.6",
|
|
33
|
+
"typescript": "6.0.3",
|
|
34
|
+
"vite": "8.0.9",
|
|
35
|
+
"vue-tsc": "3.2.7"
|
|
25
36
|
},
|
|
26
37
|
"browserslist": [
|
|
27
38
|
"chrome 102",
|
|
28
39
|
"not dead"
|
|
29
40
|
],
|
|
30
41
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
42
|
+
"node": ">=20.0.0"
|
|
32
43
|
}
|
|
33
44
|
}
|
|
@@ -36,6 +36,10 @@ export default {
|
|
|
36
36
|
displayScale: 1.5
|
|
37
37
|
},
|
|
38
38
|
|
|
39
|
+
touchConfig: {
|
|
40
|
+
slop: undefined, // 触摸滑动距离阈值,单位px, 默认值为undefined,表示使用JsView系统默认
|
|
41
|
+
},
|
|
42
|
+
|
|
39
43
|
// (可选配置)按键接受的扩展,例如将静音按键(JAVA键值为164)映射为JS键值20001,
|
|
40
44
|
// PS:注意'164'的引号
|
|
41
45
|
bindKeys: {
|
|
@@ -47,9 +51,11 @@ export default {
|
|
|
47
51
|
pickKeys: {
|
|
48
52
|
|
|
49
53
|
},
|
|
54
|
+
|
|
55
|
+
// 废弃声明, 因为syncKeys处理太容易引起ANR所以废弃
|
|
50
56
|
// 按键从native发给js后,等js结束,并根据js的返回值决定标识是否为'已使用'(consumed)
|
|
51
|
-
syncKeys: {
|
|
52
|
-
}
|
|
57
|
+
// syncKeys: {
|
|
58
|
+
// }
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.jsview.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2020",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
|
|
10
|
+
/* Bundler mode */
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"moduleDetection": "force",
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
"jsx": "preserve",
|
|
17
|
+
|
|
18
|
+
/* Linting */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true
|
|
23
|
+
},
|
|
24
|
+
"include": [
|
|
25
|
+
"../src/**/*.ts",
|
|
26
|
+
"../src/**/*.tsx",
|
|
27
|
+
"../src/**/*.vue",
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"resolveJsonModule": true,
|
|
5
|
+
"esModuleInterop": true,
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"paths": {
|
|
8
|
+
"jsview": [ "../node_modules/@shijiu/jsview-vue" ],
|
|
9
|
+
"jsview-vue-samples": [ "../node_modules/@shijiu/jsview-vue-samples" ]
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"include": [
|
|
13
|
+
"../node_modules/@shijiu/jsview-vue-samples/**/*.vue"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": ["ES2023"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
|
|
8
|
+
/* Bundler mode */
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowImportingTsExtensions": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"moduleDetection": "force",
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
|
|
15
|
+
/* Linting */
|
|
16
|
+
"strict": true,
|
|
17
|
+
"noUnusedLocals": true,
|
|
18
|
+
"noUnusedParameters": true,
|
|
19
|
+
"noFallthroughCasesInSwitch": true
|
|
20
|
+
},
|
|
21
|
+
"include": ["../vite.config.ts"]
|
|
22
|
+
}
|
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"strict": true,
|
|
8
|
-
"jsx": "preserve",
|
|
9
|
-
"resolveJsonModule": true,
|
|
10
|
-
"isolatedModules": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"lib": ["esnext", "dom"],
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
"noEmit": true,
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
"experimentalDecorators": true,
|
|
17
|
-
"paths": {
|
|
18
|
-
"jsview": [ "./node_modules/@shijiu/jsview-vue" ],
|
|
19
|
-
"jsview-vue-samples/*": [ "./node_modules/@shijiu/jsview-vue-samples/*" ]
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue",
|
|
23
|
-
"node_modules/@shijiu/jsview-vue-samples/**/*.vue",
|
|
24
|
-
],
|
|
25
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
2
|
+
"files": [],
|
|
3
|
+
"references": [
|
|
4
|
+
{ "path": "./tsconfig/tsconfig.app.json" },
|
|
5
|
+
{ "path": "./tsconfig/tsconfig.node.json" }
|
|
6
|
+
]
|
|
26
7
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# dependencies
|
|
4
|
-
/node_modules
|
|
5
|
-
/.pnp
|
|
6
|
-
.pnp.js
|
|
7
|
-
|
|
8
|
-
# testing
|
|
9
|
-
/coverage
|
|
10
|
-
|
|
11
|
-
# production
|
|
12
|
-
/build
|
|
13
|
-
|
|
14
|
-
# misc
|
|
15
|
-
.DS_Store
|
|
16
|
-
.env.local
|
|
17
|
-
.env.development.local
|
|
18
|
-
.env.test.local
|
|
19
|
-
.env.production.local
|
|
20
|
-
|
|
21
|
-
npm-debug.log*
|
|
22
|
-
yarn-debug.log*
|
|
23
|
-
yarn-error.log*
|