@hlw-uni/mp-cli 1.0.27 → 1.0.29

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": "@hlw-uni/mp-cli",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "uniapp 小程序脚手架生成器",
5
5
  "main": "bin/cli.js",
6
6
  "bin": {
@@ -13,4 +13,5 @@ onHide(() => {
13
13
  </script>
14
14
 
15
15
  <style lang="scss">
16
+ @use './static/style/style.scss';
16
17
  </style>
@@ -7,13 +7,12 @@ import { useUserStore } from "./store";
7
7
 
8
8
  // 注册默认拦截器(Token + 业务错误 + 401)
9
9
  setupDefaultInterceptors({
10
- baseURL: (import.meta.env as Record<string, string>).VITE_API_BASE_URL ?? "",
10
+ baseURL: import.meta.env.VITE_API_BASE_URL,
11
11
  getToken: () => useUserStore().token,
12
12
  onUnauthorized: () => {
13
13
  useUserStore().$patch({ token: "", userInfo: null });
14
14
  },
15
- // @ts-ignore
16
- sigSecret: (import.meta.env as Record<string, string>).VITE_SIG_SECRET ?? "",
15
+ sigSecret: import.meta.env.VITE_SIG_SECRET,
17
16
  });
18
17
 
19
18
  export function createApp() {
@@ -29,7 +29,7 @@
29
29
  "globalStyle": {
30
30
  "navigationBarTextStyle": "black",
31
31
  "navigationBarTitleText": "hlw",
32
- "navigationBarBackgroundColor": "#F8F8F8",
32
+ "navigationBarBackgroundColor": "#FFFFFF",
33
33
  "backgroundColor": "#F8F8F8"
34
34
  },
35
35
  "tabBar": {
@@ -0,0 +1,4 @@
1
+ page {
2
+ background-color: #f8f8f8;
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
4
+ }
@@ -1,5 +1,5 @@
1
1
  /* UniApp base styles — global styles injected by @hlw-uni/mp-vite-plugin into App.vue */
2
2
  page {
3
- background-color: #f5f5f5;
3
+ background-color: #f8f8f8;
4
4
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
5
5
  }
@@ -24,6 +24,7 @@ export default defineConfig(async () => {
24
24
  preprocessorOptions: {
25
25
  scss: {
26
26
  api: 'modern-compiler',
27
+ silenceDeprecations: ['legacy-js-api'],
27
28
  },
28
29
  },
29
30
  },
@@ -13,4 +13,5 @@ onHide(() => {
13
13
  </script>
14
14
 
15
15
  <style lang="scss">
16
+ @use './static/style/style.scss';
16
17
  </style>
@@ -7,13 +7,12 @@ import { useUserStore } from "./store";
7
7
 
8
8
  // 注册默认拦截器(Token + 业务错误 + 401)
9
9
  setupDefaultInterceptors({
10
- baseURL: (import.meta.env as Record<string, string>).VITE_API_BASE_URL ?? "",
10
+ baseURL: import.meta.env.VITE_API_BASE_URL,
11
11
  getToken: () => useUserStore().token,
12
12
  onUnauthorized: () => {
13
13
  useUserStore().$patch({ token: "", userInfo: null });
14
14
  },
15
- // @ts-ignore
16
- sigSecret: (import.meta.env as Record<string, string>).VITE_SIG_SECRET ?? "",
15
+ sigSecret: import.meta.env.VITE_SIG_SECRET,
17
16
  });
18
17
 
19
18
  export function createApp() {
@@ -29,7 +29,7 @@
29
29
  "globalStyle": {
30
30
  "navigationBarTextStyle": "black",
31
31
  "navigationBarTitleText": "hlw",
32
- "navigationBarBackgroundColor": "#F8F8F8",
32
+ "navigationBarBackgroundColor": "#FFFFFF",
33
33
  "backgroundColor": "#F8F8F8"
34
34
  },
35
35
  "tabBar": {
@@ -0,0 +1,4 @@
1
+ page {
2
+ background-color: #f8f8f8;
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
4
+ }
@@ -1,5 +1,5 @@
1
1
  /* UniApp base styles — plugin-injected styles go into App.vue via vite transform hook */
2
2
  page {
3
- background-color: #f5f5f5;
3
+ background-color: #f8f8f8;
4
4
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
5
5
  }
@@ -24,6 +24,7 @@ export default defineConfig(async () => {
24
24
  preprocessorOptions: {
25
25
  scss: {
26
26
  api: 'modern-compiler',
27
+ silenceDeprecations: ['legacy-js-api'],
27
28
  },
28
29
  },
29
30
  },