jmash-core-mp 0.1.13 → 0.1.14

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.
Files changed (150) hide show
  1. package/.editorconfig +9 -9
  2. package/README.md +60 -60
  3. package/babel.config.json +34 -34
  4. package/eslint.config.mjs +7 -7
  5. package/lib/api/auth/index.d.ts +21 -21
  6. package/lib/api/auth/index.js +187 -187
  7. package/lib/api/auth/types.d.ts +86 -86
  8. package/lib/api/auth/types.js +9 -9
  9. package/lib/api/cms/index.d.ts +20 -20
  10. package/lib/api/cms/index.js +161 -161
  11. package/lib/api/cms/types.d.ts +200 -198
  12. package/lib/api/cms/types.js +1 -1
  13. package/lib/api/constant.d.ts +5 -5
  14. package/lib/api/constant.js +6 -6
  15. package/lib/api/dict/index.d.ts +18 -18
  16. package/lib/api/dict/index.js +34 -34
  17. package/lib/api/dict/types.d.ts +28 -28
  18. package/lib/api/dict/types.js +1 -1
  19. package/lib/api/dicts.d.ts +18 -18
  20. package/lib/api/dicts.js +67 -67
  21. package/lib/api/files/index.d.ts +25 -25
  22. package/lib/api/files/index.js +131 -131
  23. package/lib/api/files/types.d.ts +38 -38
  24. package/lib/api/files/types.js +1 -1
  25. package/lib/api/index.d.ts +4 -4
  26. package/lib/api/index.js +6 -6
  27. package/lib/api/myorgan/types.d.ts +22 -22
  28. package/lib/api/myorgan/types.js +1 -1
  29. package/lib/api/region/index.d.ts +7 -7
  30. package/lib/api/region/index.js +19 -19
  31. package/lib/api/region/types.d.ts +19 -19
  32. package/lib/api/region/types.js +1 -1
  33. package/lib/api/storage/index.d.ts +10 -10
  34. package/lib/api/storage/index.js +40 -40
  35. package/lib/api/storage/types.d.ts +28 -28
  36. package/lib/api/storage/types.js +1 -1
  37. package/lib/api/types.d.ts +41 -41
  38. package/lib/api/types.js +1 -1
  39. package/lib/app.mpx.d.ts +1 -1
  40. package/lib/components/auth-user/jmash-update-user.mpx.d.ts +1 -1
  41. package/lib/components/auth-user/jmash-user.mpx.d.ts +1 -1
  42. package/lib/components/cms/cms-acticle-list.mpx.d.ts +1 -0
  43. package/lib/components/cms/jmash-cms-acticle-list.mpx.d.ts +1 -1
  44. package/lib/components/cms/jmash-cms-article-item.mpx.d.ts +1 -0
  45. package/lib/components/cms/jmash-cms-article-view.mpx.d.ts +1 -0
  46. package/lib/components/cms/jmash-cms-article.mpx.d.ts +1 -1
  47. package/lib/components/cms/jmash-cms-like.mpx.d.ts +1 -0
  48. package/lib/components/core/jmash-login.mpx.d.ts +1 -1
  49. package/lib/index.d.ts +21 -21
  50. package/lib/index.js +14 -14
  51. package/lib/packages/pages/cms/cms-article-list.mpx.d.ts +1 -0
  52. package/lib/store/user.d.ts +31 -31
  53. package/lib/store/user.js +224 -224
  54. package/lib/types/core.d.ts +41 -41
  55. package/lib/types/core.js +1 -1
  56. package/lib/utils/common.d.ts +35 -35
  57. package/lib/utils/common.js +163 -163
  58. package/lib/utils/config.d.ts +3 -3
  59. package/lib/utils/config.js +30 -30
  60. package/lib/utils/db.d.ts +21 -21
  61. package/lib/utils/db.js +84 -84
  62. package/lib/utils/grpc.d.ts +5 -5
  63. package/lib/utils/grpc.js +20 -20
  64. package/lib/utils/net.d.ts +7 -7
  65. package/lib/utils/net.js +15 -15
  66. package/lib/utils/request.d.ts +2 -2
  67. package/lib/utils/request.js +122 -122
  68. package/mpx.config.js +27 -27
  69. package/package.json +1 -1
  70. package/postcss.config.js +11 -11
  71. package/project.config.json +24 -24
  72. package/project.private.config.json +13 -13
  73. package/public/index.html +15 -15
  74. package/src/api/auth/index.ts +215 -215
  75. package/src/api/auth/types.ts +166 -166
  76. package/src/api/cms/index.ts +218 -218
  77. package/src/api/cms/types.ts +379 -375
  78. package/src/api/constant.ts +6 -6
  79. package/src/api/dict/index.ts +44 -44
  80. package/src/api/dict/types.ts +49 -49
  81. package/src/api/dicts.ts +72 -72
  82. package/src/api/files/index.ts +159 -159
  83. package/src/api/files/types.ts +67 -67
  84. package/src/api/index.ts +11 -11
  85. package/src/api/myorgan/types.ts +42 -42
  86. package/src/api/region/index.ts +23 -23
  87. package/src/api/region/types.ts +36 -36
  88. package/src/api/storage/index.ts +59 -59
  89. package/src/api/storage/types.ts +54 -54
  90. package/src/api/types.ts +70 -70
  91. package/src/app.mpx +72 -72
  92. package/src/components/auth-user/jmash-logout.mpx +91 -91
  93. package/src/components/auth-user/jmash-update-user.mpx +381 -381
  94. package/src/components/auth-user/jmash-update-user.web.mpx +365 -365
  95. package/src/components/auth-user/jmash-user.mpx +356 -355
  96. package/src/components/cms/jmash-cms-acticle-list.mpx +182 -181
  97. package/src/components/cms/jmash-cms-article-item.mpx +241 -0
  98. package/src/components/cms/jmash-cms-article-view.mpx +132 -0
  99. package/src/components/cms/jmash-cms-article.mpx +68 -68
  100. package/src/components/cms/jmash-cms-like.mpx +151 -0
  101. package/src/components/common/jmash-avatar-edit.mpx +153 -153
  102. package/src/components/common/jmash-cascader-region.mpx +112 -112
  103. package/src/components/common/jmash-menu.mpx +129 -129
  104. package/src/components/common/jmash-none-data.mpx +77 -77
  105. package/src/components/common/jmash-pic-swiper.mpx +71 -71
  106. package/src/components/common/jmash-popup.mpx +137 -137
  107. package/src/components/common/jmash-search.mpx +126 -126
  108. package/src/components/common/jmash-single-btn.mpx +53 -53
  109. package/src/components/common/jmash-stepper.mpx +214 -214
  110. package/src/components/common/jmash-tab-bar.mpx +50 -50
  111. package/src/components/common/jmash-textarea.mpx +88 -88
  112. package/src/components/common/jmash-top-navigation.mpx +203 -203
  113. package/src/components/common/jmash-upload-picture.mpx +170 -170
  114. package/src/components/core/jmash-cms-protocol.mpx +66 -66
  115. package/src/components/core/jmash-login.ali.mpx +284 -284
  116. package/src/components/core/jmash-login.mpx +348 -348
  117. package/src/components/core/jmash-login.web.mpx +421 -421
  118. package/src/components/core/jmash-popup-login.ali.mpx +311 -311
  119. package/src/components/core/jmash-popup-login.mpx +415 -415
  120. package/src/components/core/jmash-popup-login.web.mpx +389 -389
  121. package/src/custom-tab-bar/index.mpx +10 -10
  122. package/src/global.d.ts +11 -11
  123. package/src/index.ts +71 -71
  124. package/src/packages/index.mpx +10 -9
  125. package/src/packages/pages/auth/cms-protocol.mpx +30 -30
  126. package/src/packages/pages/auth/login.mpx +58 -58
  127. package/src/packages/pages/auth/update-user.mpx +17 -17
  128. package/src/packages/pages/cms/cms-article-list.mpx +164 -0
  129. package/src/packages/pages/cms/cms-article.mpx +31 -31
  130. package/src/pages/basic-component.mpx +30 -30
  131. package/src/pages/half-home.mpx +58 -58
  132. package/src/pages/home.mpx +52 -49
  133. package/src/pages/index.mpx +43 -43
  134. package/src/pages/tabbar/home.mpx +71 -71
  135. package/src/pages/tabbar/my.mpx +80 -80
  136. package/src/store/user.ts +268 -268
  137. package/src/styles/index.scss +20 -20
  138. package/src/styles/vars.scss +27 -27
  139. package/src/utils/common.ts +176 -176
  140. package/src/utils/config.ts +31 -31
  141. package/src/utils/db.ts +100 -100
  142. package/src/utils/grpc.ts +21 -21
  143. package/src/utils/net.ts +18 -18
  144. package/src/utils/request.ts +134 -134
  145. package/static/ali/mini.project.json +4 -4
  146. package/static/dd/project.config.json +15 -15
  147. package/static/swan/project.swan.json +14 -14
  148. package/static/tt/project.config.json +11 -11
  149. package/static/wx/project.config.json +40 -40
  150. package/uno.config.js +9 -9
@@ -1,7 +1,7 @@
1
- declare class NetUtil {
2
- private publicKey;
3
- encrypt(data: string): string;
4
- decrypt(data: string): string;
5
- }
6
- declare const net: NetUtil;
7
- export { net };
1
+ declare class NetUtil {
2
+ private publicKey;
3
+ encrypt(data: string): string;
4
+ decrypt(data: string): string;
5
+ }
6
+ declare const net: NetUtil;
7
+ export { net };
package/lib/utils/net.js CHANGED
@@ -1,15 +1,15 @@
1
- import { sm2 } from "sm-crypto";
2
- // net工具类
3
- class NetUtil {
4
- publicKey = "04ad5161202264bb7c201f4cc39d6fb00fed81fc2cec1b3f23ddfb933d3f32977be40e4285cff6da4bad65933777c135b95f41846363086e34624ff73b3685e84c";
5
- //加密.
6
- encrypt(data) {
7
- return sm2.doEncrypt(data, this.publicKey);
8
- }
9
- //解密
10
- decrypt(data) {
11
- return sm2.doDecrypt(data, this.publicKey);
12
- }
13
- }
14
- const net = new NetUtil();
15
- export { net };
1
+ import { sm2 } from "sm-crypto";
2
+ // net工具类
3
+ class NetUtil {
4
+ publicKey = "04ad5161202264bb7c201f4cc39d6fb00fed81fc2cec1b3f23ddfb933d3f32977be40e4285cff6da4bad65933777c135b95f41846363086e34624ff73b3685e84c";
5
+ //加密.
6
+ encrypt(data) {
7
+ return sm2.doEncrypt(data, this.publicKey);
8
+ }
9
+ //解密
10
+ decrypt(data) {
11
+ return sm2.doDecrypt(data, this.publicKey);
12
+ }
13
+ }
14
+ const net = new NetUtil();
15
+ export { net };
@@ -1,2 +1,2 @@
1
- import mpxFetch from "@mpxjs/fetch";
2
- export { mpxFetch };
1
+ import mpxFetch from "@mpxjs/fetch";
2
+ export { mpxFetch };
@@ -1,122 +1,122 @@
1
- import { db } from "../utils/db";
2
- import { grpc } from "../utils/grpc";
3
- import mpx from "@mpxjs/core";
4
- import mpxFetch from "@mpxjs/fetch";
5
- mpx.use(mpxFetch);
6
- import { config as appconfig } from "../utils/config";
7
- let isRefreshing = false;
8
- let requests = [];
9
- //是否登出.
10
- let isLogout = false;
11
- mpx.xfetch.interceptors.request.use(function (config) {
12
- if (!config.url.startsWith("http")) {
13
- config.url = appconfig.baseUrl + config.url;
14
- }
15
- //console.log("request:", config);
16
- // Grpc Gateway 清理默认值,Enum,时间等不能空;
17
- grpc.clearEmpty(config.params);
18
- grpc.clearEmpty(config.data);
19
- if (!config.header) {
20
- config.header = {};
21
- }
22
- //配置其他认证请求头信息
23
- if (config.header.Authorization !== null &&
24
- config.header.Authorization !== undefined &&
25
- config.header.Authorization === false) {
26
- delete config.header.Authorization;
27
- return config;
28
- }
29
- const auth = config.header.Authorization && config.header.Authorization !== null
30
- ? config.header.Authorization
31
- : "";
32
- if (auth && auth.length > 0 && !auth.startsWith("Bearer ")) {
33
- return config;
34
- }
35
- // 请求设置token和租户
36
- const expire = db.isTokenExpires();
37
- if (!expire) {
38
- config.header["Authorization"] = "Bearer " + db.getToken();
39
- const organTenant = db.getOrganTenant(config.tenant);
40
- if (organTenant && config.header.GrpcMetadataTenant !== false) {
41
- config.header["Grpc-Metadata-Tenant"] = organTenant;
42
- }
43
- else {
44
- delete config.header["Grpc-Metadata-Tenant"];
45
- }
46
- //console.log("header:", config.header);
47
- }
48
- else if (!db.getRefreshToken()) {
49
- console.log("not token request. ");
50
- return config;
51
- }
52
- else {
53
- console.log("token expire", expire);
54
- }
55
- const isRefreshToken = config.url.endsWith("/v1/rbac/auth/refresh_token");
56
- //Token已过期或即将过期.
57
- if (!isRefreshToken && expire) {
58
- if (!isRefreshing) {
59
- isRefreshing = true;
60
- // 刷新token
61
- refreshToken(db.getRefreshToken())
62
- .then((res) => {
63
- // token 刷新后将数组的方法重新执行
64
- console.log("refreshToken-res", res);
65
- db.setToken(res.data);
66
- requests.forEach((cb) => cb(res.data.accessToken));
67
- requests = []; // 刷新完清空
68
- })
69
- .catch(() => {
70
- db.clearStorage();
71
- })
72
- .finally(() => {
73
- isRefreshing = false;
74
- });
75
- }
76
- const retry = new Promise((resolve) => {
77
- /* (token) => {...}这个函数就是回调函数*/
78
- requests.push((token) => {
79
- config.header.Authorization = "Bearer " + token;
80
- resolve(config);
81
- });
82
- });
83
- return retry;
84
- }
85
- // 也可以返回promise
86
- return config;
87
- });
88
- mpx.xfetch.interceptors.response.use(function (res) {
89
- // console.log(“response:”,res);
90
- if (res.statusCode === 200) {
91
- return res;
92
- }
93
- else if (res.statusCode === 401) {
94
- // token 过期,重新登录
95
- if (!isLogout) {
96
- isLogout = true;
97
- mpx.showToast({
98
- title: "当前页面已失效,请重新登录",
99
- icon: "none",
100
- });
101
- db.clearStorage();
102
- isLogout = false;
103
- }
104
- return Promise.reject(res);
105
- }
106
- // 也可以返回promise
107
- return res;
108
- });
109
- //刷新Token
110
- function refreshToken(refreshToken) {
111
- return mpx.xfetch.fetch({
112
- url: appconfig.baseUrl + "/v1/front/rbac/auth/refresh_token",
113
- method: "POST",
114
- data: {
115
- data: { refreshToken: refreshToken },
116
- tenant: appconfig.tenant,
117
- clientId: appconfig.appId,
118
- },
119
- header: { Authorization: false },
120
- });
121
- }
122
- export { mpxFetch };
1
+ import { db } from "../utils/db";
2
+ import { grpc } from "../utils/grpc";
3
+ import mpx from "@mpxjs/core";
4
+ import mpxFetch from "@mpxjs/fetch";
5
+ mpx.use(mpxFetch);
6
+ import { config as appconfig } from "../utils/config";
7
+ let isRefreshing = false;
8
+ let requests = [];
9
+ //是否登出.
10
+ let isLogout = false;
11
+ mpx.xfetch.interceptors.request.use(function (config) {
12
+ if (!config.url.startsWith("http")) {
13
+ config.url = appconfig.baseUrl + config.url;
14
+ }
15
+ //console.log("request:", config);
16
+ // Grpc Gateway 清理默认值,Enum,时间等不能空;
17
+ grpc.clearEmpty(config.params);
18
+ grpc.clearEmpty(config.data);
19
+ if (!config.header) {
20
+ config.header = {};
21
+ }
22
+ //配置其他认证请求头信息
23
+ if (config.header.Authorization !== null &&
24
+ config.header.Authorization !== undefined &&
25
+ config.header.Authorization === false) {
26
+ delete config.header.Authorization;
27
+ return config;
28
+ }
29
+ const auth = config.header.Authorization && config.header.Authorization !== null
30
+ ? config.header.Authorization
31
+ : "";
32
+ if (auth && auth.length > 0 && !auth.startsWith("Bearer ")) {
33
+ return config;
34
+ }
35
+ // 请求设置token和租户
36
+ const expire = db.isTokenExpires();
37
+ if (!expire && db.getToken()) {
38
+ config.header["Authorization"] = "Bearer " + db.getToken();
39
+ const organTenant = db.getOrganTenant(config.tenant);
40
+ if (organTenant && config.header.GrpcMetadataTenant !== false) {
41
+ config.header["Grpc-Metadata-Tenant"] = organTenant;
42
+ }
43
+ else {
44
+ delete config.header["Grpc-Metadata-Tenant"];
45
+ }
46
+ //console.log("header:", config.header);
47
+ }
48
+ else if (!db.getRefreshToken()) {
49
+ console.log("not token request. ");
50
+ return config;
51
+ }
52
+ else {
53
+ console.log("token expire", expire);
54
+ }
55
+ const isRefreshToken = config.url.endsWith("/v1/rbac/auth/refresh_token");
56
+ //Token已过期或即将过期.
57
+ if (!isRefreshToken && expire) {
58
+ if (!isRefreshing) {
59
+ isRefreshing = true;
60
+ // 刷新token
61
+ refreshToken(db.getRefreshToken())
62
+ .then((res) => {
63
+ // token 刷新后将数组的方法重新执行
64
+ console.log("refreshToken-res", res);
65
+ db.setToken(res.data);
66
+ requests.forEach((cb) => cb(res.data.accessToken));
67
+ requests = []; // 刷新完清空
68
+ })
69
+ .catch(() => {
70
+ db.clearStorage();
71
+ })
72
+ .finally(() => {
73
+ isRefreshing = false;
74
+ });
75
+ }
76
+ const retry = new Promise((resolve) => {
77
+ /* (token) => {...}这个函数就是回调函数*/
78
+ requests.push((token) => {
79
+ config.header.Authorization = "Bearer " + token;
80
+ resolve(config);
81
+ });
82
+ });
83
+ return retry;
84
+ }
85
+ // 也可以返回promise
86
+ return config;
87
+ });
88
+ mpx.xfetch.interceptors.response.use(function (res) {
89
+ // console.log(“response:”,res);
90
+ if (res.statusCode === 200) {
91
+ return res;
92
+ }
93
+ else if (res.statusCode === 401) {
94
+ // token 过期,重新登录
95
+ if (!isLogout) {
96
+ isLogout = true;
97
+ mpx.showToast({
98
+ title: "当前页面已失效,请重新登录",
99
+ icon: "none",
100
+ });
101
+ db.clearStorage();
102
+ isLogout = false;
103
+ }
104
+ return Promise.reject(res);
105
+ }
106
+ // 也可以返回promise
107
+ return res;
108
+ });
109
+ //刷新Token
110
+ function refreshToken(refreshToken) {
111
+ return mpx.xfetch.fetch({
112
+ url: appconfig.baseUrl + "/v1/front/rbac/auth/refresh_token",
113
+ method: "POST",
114
+ data: {
115
+ data: { refreshToken: refreshToken },
116
+ tenant: appconfig.tenant,
117
+ clientId: appconfig.appId,
118
+ },
119
+ header: { Authorization: false },
120
+ });
121
+ }
122
+ export { mpxFetch };
package/mpx.config.js CHANGED
@@ -1,27 +1,27 @@
1
- const { defineConfig } = require("@vue/cli-service");
2
- module.exports = defineConfig({
3
- outputDir: `dist/${process.env.MPX_CURRENT_TARGET_MODE}`,
4
- transpileDependencies: ["@mpxjs/mpx-cube-ui"],
5
- pluginOptions: {
6
- mpx: {
7
- plugin: {
8
- srcMode: "wx",
9
- hackResolveBuildDependencies: ({ files, resolveDependencies }) => {
10
- const path = require("path");
11
- const packageJSONPath = path.resolve("package.json");
12
- if (files.has(packageJSONPath)) files.delete(packageJSONPath);
13
- if (resolveDependencies.files.has(packageJSONPath)) {
14
- resolveDependencies.files.delete(packageJSONPath);
15
- }
16
- },
17
- },
18
- loader: {},
19
- unocss: {},
20
- },
21
- },
22
- /**
23
- * 如果希望node_modules下的文件时对应的缓存可以失效,
24
- * 可以将configureWebpack.snap.managedPaths修改为 []
25
- */
26
- configureWebpack(config) {},
27
- });
1
+ const { defineConfig } = require("@vue/cli-service");
2
+ module.exports = defineConfig({
3
+ outputDir: `dist/${process.env.MPX_CURRENT_TARGET_MODE}`,
4
+ transpileDependencies: ["@mpxjs/mpx-cube-ui"],
5
+ pluginOptions: {
6
+ mpx: {
7
+ plugin: {
8
+ srcMode: "wx",
9
+ hackResolveBuildDependencies: ({ files, resolveDependencies }) => {
10
+ const path = require("path");
11
+ const packageJSONPath = path.resolve("package.json");
12
+ if (files.has(packageJSONPath)) files.delete(packageJSONPath);
13
+ if (resolveDependencies.files.has(packageJSONPath)) {
14
+ resolveDependencies.files.delete(packageJSONPath);
15
+ }
16
+ },
17
+ },
18
+ loader: {},
19
+ unocss: {},
20
+ },
21
+ },
22
+ /**
23
+ * 如果希望node_modules下的文件时对应的缓存可以失效,
24
+ * 可以将configureWebpack.snap.managedPaths修改为 []
25
+ */
26
+ configureWebpack(config) {},
27
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core-mp",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "private": false,
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/postcss.config.js CHANGED
@@ -1,11 +1,11 @@
1
- const autoprefixer = require('autoprefixer')
2
- const RN = ['android', 'ios', 'harmony']
3
- const isRN = RN.includes(
4
- process.env.MPX_CURRENT_TARGET_MODE
5
- )
6
- // RN环境下去除postcss的autoprefix插件
7
- module.exports = {
8
- plugins: [
9
- !isRN && autoprefixer({ remove: false })
10
- ].filter(Boolean)
11
- }
1
+ const autoprefixer = require('autoprefixer')
2
+ const RN = ['android', 'ios', 'harmony']
3
+ const isRN = RN.includes(
4
+ process.env.MPX_CURRENT_TARGET_MODE
5
+ )
6
+ // RN环境下去除postcss的autoprefix插件
7
+ module.exports = {
8
+ plugins: [
9
+ !isRN && autoprefixer({ remove: false })
10
+ ].filter(Boolean)
11
+ }
@@ -1,25 +1,25 @@
1
- {
2
- "setting": {
3
- "es6": true,
4
- "postcss": true,
5
- "minified": true,
6
- "uglifyFileName": false,
7
- "enhance": true,
8
- "packNpmRelationList": [],
9
- "babelSetting": {
10
- "ignore": [],
11
- "disablePlugins": [],
12
- "outputPath": ""
13
- },
14
- "useCompilerPlugins": false,
15
- "minifyWXML": true
16
- },
17
- "compileType": "miniprogram",
18
- "simulatorPluginLibVersion": {},
19
- "packOptions": {
20
- "ignore": [],
21
- "include": []
22
- },
23
- "appid": "wx2a8b3d689b8959eb",
24
- "editorSetting": {}
1
+ {
2
+ "setting": {
3
+ "es6": true,
4
+ "postcss": true,
5
+ "minified": true,
6
+ "uglifyFileName": false,
7
+ "enhance": true,
8
+ "packNpmRelationList": [],
9
+ "babelSetting": {
10
+ "ignore": [],
11
+ "disablePlugins": [],
12
+ "outputPath": ""
13
+ },
14
+ "useCompilerPlugins": false,
15
+ "minifyWXML": true
16
+ },
17
+ "compileType": "miniprogram",
18
+ "simulatorPluginLibVersion": {},
19
+ "packOptions": {
20
+ "ignore": [],
21
+ "include": []
22
+ },
23
+ "appid": "wx2a8b3d689b8959eb",
24
+ "editorSetting": {}
25
25
  }
@@ -1,14 +1,14 @@
1
- {
2
- "libVersion": "3.15.2",
3
- "projectname": "jmash-core-mp",
4
- "setting": {
5
- "urlCheck": true,
6
- "coverView": true,
7
- "lazyloadPlaceholderEnable": false,
8
- "skylineRenderEnable": false,
9
- "preloadBackgroundData": false,
10
- "autoAudits": false,
11
- "showShadowRootInWxmlPanel": true,
12
- "compileHotReLoad": true
13
- }
1
+ {
2
+ "libVersion": "3.15.2",
3
+ "projectname": "jmash-core-mp",
4
+ "setting": {
5
+ "urlCheck": true,
6
+ "coverView": true,
7
+ "lazyloadPlaceholderEnable": false,
8
+ "skylineRenderEnable": false,
9
+ "preloadBackgroundData": false,
10
+ "autoAudits": false,
11
+ "showShadowRootInWxmlPanel": true,
12
+ "compileHotReLoad": true
13
+ }
14
14
  }
package/public/index.html CHANGED
@@ -1,15 +1,15 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport"
6
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover">
7
- <meta name="format-detection" content="telephone=no">
8
- <meta name="x5-cache" content="disable">
9
- <title></title>
10
- </head>
11
- <body>
12
- <div id="app"></div>
13
- <!-- built files will be auto injected -->
14
- </body>
15
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport"
6
+ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, viewport-fit=cover">
7
+ <meta name="format-detection" content="telephone=no">
8
+ <meta name="x5-cache" content="disable">
9
+ <title></title>
10
+ </head>
11
+ <body>
12
+ <div id="app"></div>
13
+ <!-- built files will be auto injected -->
14
+ </body>
15
+ </html>