create-packer 1.25.25 → 1.25.26

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 (79) hide show
  1. package/package.json +1 -1
  2. package/template/web-app/react/domain/app/index.ts +1 -1
  3. package/template/web-app/react/domain/app/{app.tsx → views/app.tsx} +17 -17
  4. package/template/web-app/react/domain/app/views/index.ts +1 -0
  5. package/template/web-app/react/main.tsx +1 -1
  6. package/template/web-app/react/package.json +1 -1
  7. package/template/web-app/react/pages/home/home.css +1 -0
  8. package/template/web-app/react/pages/home/home.mock.ts +1 -1
  9. package/template/web-app/react/pages/home/home.tsx +1 -2
  10. package/template/web-app/react/pages/index.tsx +1 -1
  11. package/template/web-app/react/pages/not-found.tsx +1 -1
  12. package/template/web-app/react/router/router.controller.ts +1 -1
  13. package/template/web-app/react/router/router.provider.ts +1 -1
  14. package/template/web-app/react/router/router.tsx +1 -1
  15. package/template/web-app/react/shared/constant/index.ts +0 -0
  16. package/template/web-app/react/shared/service/index.ts +2 -0
  17. package/template/web-app/react/{providers → shared/tools}/index.ts +0 -1
  18. package/template/web-app/react-webpack/domain/app/index.ts +1 -1
  19. package/template/web-app/react-webpack/domain/app/{app.tsx → views/app.tsx} +17 -17
  20. package/template/web-app/react-webpack/domain/app/views/index.ts +1 -0
  21. package/template/web-app/react-webpack/router/router.provider.ts +1 -1
  22. package/template/web-app/react-webpack/router/router.tsx +1 -1
  23. package/template/web-app/react-webpack/{providers → shared/service}/request.ts +0 -1
  24. package/template/web-app/react-webpack/{providers → shared/tools}/index.ts +0 -1
  25. package/template/web-app/svelte/.svelte-kit/ambient.d.ts +58 -192
  26. package/template/web-app/svelte/.svelte-kit/generated/server/internal.js +1 -1
  27. package/template/web-app/vue/domain/app/app.ts +1 -1
  28. package/template/web-app/vue/domain/app/index.ts +1 -0
  29. package/template/web-app/vue/domain/app/views/index.ts +1 -0
  30. package/template/web-app/vue/pages/home/home.mock.ts +1 -1
  31. package/template/web-app/vue/pages/home/home.vue +1 -2
  32. package/template/web-app/vue/shared/components/index.ts +0 -0
  33. package/template/web-app/vue/shared/constant/index.ts +0 -0
  34. package/template/web-app/vue/shared/service/index.ts +2 -0
  35. package/template/web-app/vue/shared/tools/index.ts +0 -0
  36. package/template/web-extension/popup/popup.html +1 -1
  37. package/template/web-app/react/pages/home/providers/index.ts +0 -1
  38. package/template/web-app/vue/pages/home/providers/index.ts +0 -1
  39. /package/template/web-app/react/{assets → shared/assets}/react.svg +0 -0
  40. /package/template/web-app/{vue → react/shared}/components/index.ts +0 -0
  41. /package/template/web-app/react/{hooks → shared/hooks}/index.ts +0 -0
  42. /package/template/web-app/react/{hooks → shared/hooks}/useInterval.ts +0 -0
  43. /package/template/web-app/react/{hooks → shared/hooks}/useLoadingAction.ts +0 -0
  44. /package/template/web-app/react/{hooks → shared/hooks}/useLowPriorityState.ts +0 -0
  45. /package/template/web-app/react/{hooks → shared/hooks}/useSyncState.ts +0 -0
  46. /package/template/web-app/react/{hooks → shared/hooks}/useVisible.ts +0 -0
  47. /package/template/web-app/react/{pages/home/providers → shared/service}/api.ts +0 -0
  48. /package/template/web-app/react/{providers → shared/service}/request.ts +0 -0
  49. /package/template/web-app/react/{providers → shared/tools}/componentInstance.tsx +0 -0
  50. /package/template/web-app/react/{types → shared/types}/index.ts +0 -0
  51. /package/template/web-app/react/{types → shared/types}/utils.ts +0 -0
  52. /package/template/web-app/react-webpack/{assets → shared/assets}/react.svg +0 -0
  53. /package/template/web-app/react-webpack/{components → shared/components}/index.ts +0 -0
  54. /package/template/web-app/{react/components → react-webpack/shared/constant}/index.ts +0 -0
  55. /package/template/web-app/react-webpack/{hooks → shared/hooks}/index.ts +0 -0
  56. /package/template/web-app/react-webpack/{hooks → shared/hooks}/useInterval.ts +0 -0
  57. /package/template/web-app/react-webpack/{hooks → shared/hooks}/useLoadingAction.ts +0 -0
  58. /package/template/web-app/react-webpack/{hooks → shared/hooks}/useLowPriorityState.ts +0 -0
  59. /package/template/web-app/react-webpack/{hooks → shared/hooks}/useSyncState.ts +0 -0
  60. /package/template/web-app/react-webpack/{hooks → shared/hooks}/useVisible.ts +0 -0
  61. /package/template/web-app/{vue/providers → react-webpack/shared/service}/index.ts +0 -0
  62. /package/template/web-app/react-webpack/{providers → shared/tools}/componentInstance.tsx +0 -0
  63. /package/template/web-app/react-webpack/{types → shared/types}/index.ts +0 -0
  64. /package/template/web-app/react-webpack/{types → shared/types}/utils.ts +0 -0
  65. /package/template/web-app/vue/domain/app/{app.vue → views/app.vue} +0 -0
  66. /package/template/web-app/vue/{assets → shared/assets}/vue.svg +0 -0
  67. /package/template/web-app/vue/{hooks → shared/hooks}/index.ts +0 -0
  68. /package/template/web-app/vue/{hooks → shared/hooks}/useList.ts +0 -0
  69. /package/template/web-app/vue/{hooks → shared/hooks}/useVisible.ts +0 -0
  70. /package/template/web-app/vue/{pages/home/providers → shared/service}/api.ts +0 -0
  71. /package/template/web-app/vue/{providers → shared/service}/request.ts +0 -0
  72. /package/template/web-extension/{assets → shared/assets}/react.svg +0 -0
  73. /package/template/web-extension/{hooks → shared/hooks}/index.ts +0 -0
  74. /package/template/web-extension/{hooks → shared/hooks}/useSyncState.ts +0 -0
  75. /package/template/web-extension/{hooks → shared/hooks}/useVisible.ts +0 -0
  76. /package/template/web-extension/{providers → shared/service}/index.ts +0 -0
  77. /package/template/web-extension/{providers → shared/service}/request.ts +0 -0
  78. /package/template/web-extension/{types → shared/types}/index.ts +0 -0
  79. /package/template/web-extension/{types → shared/types}/utils.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.25.25",
3
+ "version": "1.25.26",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,2 +1,2 @@
1
1
  export * from './app.model'
2
- export { default as App } from './app'
2
+ export * from './views'
@@ -1,17 +1,17 @@
1
- import { FunctionComponent, ReactNode, StrictMode, useLayoutEffect } from 'react'
2
- import { request } from '@/providers'
3
-
4
- const App: FunctionComponent<{ children: ReactNode }> = props => {
5
- useLayoutEffect(() => {
6
- request.interceptors.response.use(
7
- res => res,
8
- error => {
9
- console.log(error)
10
- }
11
- )
12
- }, [])
13
-
14
- return <StrictMode>{props.children}</StrictMode>
15
- }
16
-
17
- export default App
1
+ import { FunctionComponent, ReactNode, StrictMode, useLayoutEffect } from 'react'
2
+ import { request } from '@/shared/service'
3
+
4
+ const App: FunctionComponent<{ children: ReactNode }> = props => {
5
+ useLayoutEffect(() => {
6
+ request.interceptors.response.use(
7
+ res => res,
8
+ error => {
9
+ console.log(error)
10
+ }
11
+ )
12
+ }, [])
13
+
14
+ return <StrictMode>{props.children}</StrictMode>
15
+ }
16
+
17
+ export default App
@@ -0,0 +1 @@
1
+ export { default as App } from './app'
@@ -1,7 +1,7 @@
1
1
  import { createRoot } from 'react-dom/client'
2
2
  import { RouterProvider } from 'react-router-dom'
3
3
  import { App } from '@/domain/app'
4
- import { router } from '@/router'
4
+ import { router } from 'router'
5
5
  import './index.css'
6
6
 
7
7
  createRoot(document.getElementById('root') as HTMLElement).render(
@@ -41,7 +41,7 @@
41
41
  "@types/react-dom": "18.0.11",
42
42
  "@typescript-eslint/eslint-plugin": "5.59.0",
43
43
  "@typescript-eslint/parser": "5.59.0",
44
- "@vitejs/plugin-react": "4.0.0",
44
+ "@vitejs/plugin-react": "4.2.0",
45
45
  "autoprefixer": "10.4.14",
46
46
  "commitizen": "4.3.0",
47
47
  "cssnano": "6.0.0",
@@ -1,6 +1,6 @@
1
1
  import Mock from 'mockjs'
2
2
  import { defineMock } from '@/mockUtils'
3
- import { API } from './providers'
3
+ import { API } from '@/shared/service'
4
4
  export default defineMock([
5
5
  {
6
6
  url: API.HOME_DATA,
@@ -1,7 +1,6 @@
1
1
  import './home.css'
2
2
  import { useEffect } from 'react'
3
- import { request } from '@/providers'
4
- import { API } from './providers'
3
+ import { request, API } from '@/shared/service'
5
4
 
6
5
  export default function Home() {
7
6
  useEffect(() => {
@@ -1,6 +1,6 @@
1
1
  import { Suspense, useEffect } from 'react'
2
2
  import { Outlet, useLocation } from 'react-router-dom'
3
- import { navigate, routerIds } from '@/router'
3
+ import { navigate, routerIds } from 'router'
4
4
 
5
5
  const View = () => {
6
6
  const location = useLocation()
@@ -1,3 +1,3 @@
1
- export default function AppNotFound() {
1
+ export default function NotFound() {
2
2
  return <div>404</div>
3
3
  }
@@ -1,6 +1,6 @@
1
+ import { useMemo } from 'react'
1
2
  import { useMatches, useSearchParams } from 'react-router-dom'
2
3
  import { parse } from 'qs'
3
- import { useMemo } from 'react'
4
4
  import { map } from 'lodash-es'
5
5
  import { getRoute } from '@/router/router.provider'
6
6
  import { routeType } from '@/router/router.types'
@@ -1,6 +1,6 @@
1
+ import { NavigateOptions } from 'react-router-dom'
1
2
  import { get } from 'lodash-es'
2
3
  import { stringify } from 'qs'
3
- import { NavigateOptions } from 'react-router-dom'
4
4
  import { routeType } from '@/router/router.types'
5
5
  import { router, routesById } from './router'
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { lazy } from 'react'
2
2
  import { createBrowserRouter } from 'react-router-dom'
3
3
  import { assign, isArray, reduce } from 'lodash-es'
4
- import { ValueType } from '@/types'
4
+ import { ValueType } from '@/shared/types'
5
5
  import ids from './ids'
6
6
  import * as home from './home'
7
7
  import type { routeType } from './router.types'
@@ -0,0 +1,2 @@
1
+ export { default as request } from './request'
2
+ export * as API from './api'
@@ -1,2 +1 @@
1
- export { default as request } from './request'
2
1
  export * as componentInstance from './componentInstance'
@@ -1,2 +1,2 @@
1
1
  export * from './app.model'
2
- export { default as App } from './app'
2
+ export * from './views'
@@ -1,17 +1,17 @@
1
- import { FunctionComponent, ReactNode, StrictMode, useLayoutEffect } from 'react'
2
- import { request } from '@/providers'
3
-
4
- const App: FunctionComponent<{ children: ReactNode }> = props => {
5
- useLayoutEffect(() => {
6
- request.interceptors.response.use(
7
- res => res,
8
- error => {
9
- console.log(error)
10
- }
11
- )
12
- }, [])
13
-
14
- return <StrictMode>{props.children}</StrictMode>
15
- }
16
-
17
- export default App
1
+ import { FunctionComponent, ReactNode, StrictMode, useLayoutEffect } from 'react'
2
+ import { request } from '@/shared/service'
3
+
4
+ const App: FunctionComponent<{ children: ReactNode }> = props => {
5
+ useLayoutEffect(() => {
6
+ request.interceptors.response.use(
7
+ res => res,
8
+ error => {
9
+ console.log(error)
10
+ }
11
+ )
12
+ }, [])
13
+
14
+ return <StrictMode>{props.children}</StrictMode>
15
+ }
16
+
17
+ export default App
@@ -0,0 +1 @@
1
+ export { default as App } from './app'
@@ -1,6 +1,6 @@
1
+ import { NavigateOptions } from 'react-router-dom'
1
2
  import { get } from 'lodash-es'
2
3
  import { stringify } from 'qs'
3
- import { NavigateOptions } from 'react-router-dom'
4
4
  import { routeType } from '@/router/router.types'
5
5
  import { router, routesById } from './router'
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { lazy } from 'react'
2
2
  import { createBrowserRouter } from 'react-router-dom'
3
3
  import { assign, isArray, reduce } from 'lodash-es'
4
- import { ValueType } from '@/types'
4
+ import { ValueType } from 'shared/types'
5
5
  import ids from './ids'
6
6
  import * as home from './home'
7
7
  import type { routeType } from './router.types'
@@ -1,6 +1,5 @@
1
1
  import axios from 'axios'
2
2
 
3
- console.log('ENV_API_HOST', ENV_API_HOST)
4
3
  const request = axios.create({
5
4
  baseURL: ENV_BASE_URL + ENV_API_HOST
6
5
  })
@@ -1,2 +1 @@
1
- export { default as request } from './request'
2
1
  export * as componentInstance from './componentInstance'
@@ -28,109 +28,42 @@
28
28
  declare module '$env/static/private' {
29
29
  export const VITE_BASE_URL: string;
30
30
  export const VITE_API_HOST: string;
31
- export const npm_package_devDependencies_prettier: string;
31
+ export const PATH: string;
32
+ export const FORCE_COLOR: string;
32
33
  export const MANPATH: string;
33
- export const npm_package_devDependencies_eslint_plugin_svelte: string;
34
- export const TERM_PROGRAM: string;
35
- export const NODE: string;
36
- export const npm_config__jz_registry: string;
37
- export const INIT_CWD: string;
38
- export const npm_package_devDependencies_typescript: string;
39
- export const npm_package_devDependencies_prettier_plugin_svelte: string;
40
- export const npm_package_devDependencies_vite: string;
41
- export const TERM: string;
42
- export const SHELL: string;
43
- export const HOMEBREW_BOTTLE_DOMAIN: string;
44
- export const HOMEBREW_API_DOMAIN: string;
45
- export const HOMEBREW_REPOSITORY: string;
46
- export const TMPDIR: string;
47
- export const npm_config_metrics_registry: string;
48
- export const npm_package_scripts_lint: string;
49
- export const npm_config_global_prefix: string;
50
- export const TERM_PROGRAM_VERSION: string;
51
- export const npm_package_scripts_dev: string;
52
- export const ZDOTDIR: string;
53
- export const ORIGINAL_XDG_CURRENT_DESKTOP: string;
54
- export const MallocNanoZone: string;
55
- export const COLOR: string;
56
- export const npm_config_home: string;
57
- export const npm_config_registry: string;
58
- export const npm_package_devDependencies__sveltejs_kit: string;
59
- export const npm_package_private: string;
60
- export const npm_config_noproxy: string;
61
- export const LC_ALL: string;
62
- export const ZSH: string;
63
- export const npm_config_local_prefix: string;
64
- export const USER: string;
65
- export const npm_package_scripts_check_watch: string;
66
- export const LS_COLORS: string;
34
+ export const HOMEBREW_PREFIX: string;
35
+ export const LANG: string;
36
+ export const DEBUG_COLORS: string;
67
37
  export const COMMAND_MODE: string;
68
- export const PNPM_SCRIPT_SRC_DIR: string;
69
- export const npm_config_globalconfig: string;
70
- export const SSH_AUTH_SOCK: string;
71
- export const npm_package_devDependencies_eslint: string;
72
- export const __CF_USER_TEXT_ENCODING: string;
73
- export const npm_execpath: string;
74
- export const npm_package_devDependencies_tslib: string;
75
- export const npm_package_devDependencies__typescript_eslint_eslint_plugin: string;
38
+ export const npm_config_color: string;
39
+ export const MOCHA_COLORS: string;
40
+ export const COLORTERM: string;
41
+ export const LOGNAME: string;
42
+ export const HOMEBREW_REPOSITORY: string;
43
+ export const XPC_SERVICE_NAME: string;
44
+ export const PWD: string;
45
+ export const TOOLBOX_VERSION: string;
46
+ export const INFOPATH: string;
47
+ export const __CFBundleIdentifier: string;
76
48
  export const HOMEBREW_PIP_INDEX_URL: string;
77
- export const npm_package_devDependencies_svelte: string;
49
+ export const SHELL: string;
78
50
  export const PAGER: string;
79
51
  export const LSCOLORS: string;
80
- export const npm_package_devDependencies__typescript_eslint_parser: string;
81
- export const PATH: string;
82
- export const npm_config_engine_strict: string;
83
- export const npm_package_json: string;
84
- export const USER_ZDOTDIR: string;
85
- export const __CFBundleIdentifier: string;
86
- export const npm_config_init_module: string;
87
- export const npm_config_userconfig: string;
88
- export const npm_command: string;
89
- export const PWD: string;
90
- export const npm_package_scripts_up_vite: string;
91
- export const npm_package_scripts_preview: string;
92
- export const npm_lifecycle_event: string;
93
- export const EDITOR: string;
94
- export const npm_package_name: string;
95
- export const LANG: string;
96
- export const npm_config_resolution_mode: string;
97
- export const NODE_PATH: string;
98
- export const npm_package_scripts_build: string;
99
- export const VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
52
+ export const HOMEBREW_BOTTLE_DOMAIN: string;
53
+ export const OLDPWD: string;
54
+ export const HOMEBREW_CELLAR: string;
55
+ export const USER: string;
56
+ export const ZSH: string;
57
+ export const TMPDIR: string;
58
+ export const SSH_AUTH_SOCK: string;
100
59
  export const XPC_FLAGS: string;
101
- export const npm_package_devDependencies__types_lodash_es: string;
102
- export const npm_config_node_gyp: string;
103
- export const npm_package_devDependencies_eslint_config_prettier: string;
104
- export const npm_config_sass_binary_site: string;
105
- export const npm_package_devDependencies__sveltejs_adapter_auto: string;
106
- export const npm_package_version: string;
107
- export const XPC_SERVICE_NAME: string;
108
- export const npm_package_devDependencies_svelte_check: string;
109
- export const VSCODE_INJECTION: string;
110
- export const npm_package_type: string;
111
- export const SHLVL: string;
112
- export const HOME: string;
113
- export const VSCODE_GIT_ASKPASS_MAIN: string;
114
- export const HOMEBREW_PREFIX: string;
115
- export const npm_package_scripts_format: string;
60
+ export const LC_ALL: string;
61
+ export const __CF_USER_TEXT_ENCODING: string;
116
62
  export const LESS: string;
117
- export const LOGNAME: string;
118
- export const npm_config_cache: string;
119
- export const npm_lifecycle_script: string;
120
- export const npm_package_dependencies_lodash_es: string;
121
- export const VSCODE_GIT_IPC_HANDLE: string;
122
- export const npm_config_user_agent: string;
123
- export const npm_config_ignore_scripts: string;
124
- export const VSCODE_GIT_ASKPASS_NODE: string;
125
- export const GIT_ASKPASS: string;
126
- export const INFOPATH: string;
127
- export const HOMEBREW_CELLAR: string;
128
- export const npm_package_scripts_build_analyse: string;
129
- export const npm_config_init_author_name: string;
130
- export const npm_package_scripts_check: string;
131
- export const npm_node_execpath: string;
132
- export const COLORTERM: string;
133
- export const npm_config_prefix: string;
63
+ export const NODE_ENV: string;
64
+ export const LS_COLORS: string;
65
+ export const HOME: string;
66
+ export const HOMEBREW_API_DOMAIN: string;
134
67
  }
135
68
 
136
69
  /**
@@ -162,109 +95,42 @@ declare module '$env/dynamic/private' {
162
95
  export const env: {
163
96
  VITE_BASE_URL: string;
164
97
  VITE_API_HOST: string;
165
- npm_package_devDependencies_prettier: string;
98
+ PATH: string;
99
+ FORCE_COLOR: string;
166
100
  MANPATH: string;
167
- npm_package_devDependencies_eslint_plugin_svelte: string;
168
- TERM_PROGRAM: string;
169
- NODE: string;
170
- npm_config__jz_registry: string;
171
- INIT_CWD: string;
172
- npm_package_devDependencies_typescript: string;
173
- npm_package_devDependencies_prettier_plugin_svelte: string;
174
- npm_package_devDependencies_vite: string;
175
- TERM: string;
176
- SHELL: string;
177
- HOMEBREW_BOTTLE_DOMAIN: string;
178
- HOMEBREW_API_DOMAIN: string;
179
- HOMEBREW_REPOSITORY: string;
180
- TMPDIR: string;
181
- npm_config_metrics_registry: string;
182
- npm_package_scripts_lint: string;
183
- npm_config_global_prefix: string;
184
- TERM_PROGRAM_VERSION: string;
185
- npm_package_scripts_dev: string;
186
- ZDOTDIR: string;
187
- ORIGINAL_XDG_CURRENT_DESKTOP: string;
188
- MallocNanoZone: string;
189
- COLOR: string;
190
- npm_config_home: string;
191
- npm_config_registry: string;
192
- npm_package_devDependencies__sveltejs_kit: string;
193
- npm_package_private: string;
194
- npm_config_noproxy: string;
195
- LC_ALL: string;
196
- ZSH: string;
197
- npm_config_local_prefix: string;
198
- USER: string;
199
- npm_package_scripts_check_watch: string;
200
- LS_COLORS: string;
101
+ HOMEBREW_PREFIX: string;
102
+ LANG: string;
103
+ DEBUG_COLORS: string;
201
104
  COMMAND_MODE: string;
202
- PNPM_SCRIPT_SRC_DIR: string;
203
- npm_config_globalconfig: string;
204
- SSH_AUTH_SOCK: string;
205
- npm_package_devDependencies_eslint: string;
206
- __CF_USER_TEXT_ENCODING: string;
207
- npm_execpath: string;
208
- npm_package_devDependencies_tslib: string;
209
- npm_package_devDependencies__typescript_eslint_eslint_plugin: string;
105
+ npm_config_color: string;
106
+ MOCHA_COLORS: string;
107
+ COLORTERM: string;
108
+ LOGNAME: string;
109
+ HOMEBREW_REPOSITORY: string;
110
+ XPC_SERVICE_NAME: string;
111
+ PWD: string;
112
+ TOOLBOX_VERSION: string;
113
+ INFOPATH: string;
114
+ __CFBundleIdentifier: string;
210
115
  HOMEBREW_PIP_INDEX_URL: string;
211
- npm_package_devDependencies_svelte: string;
116
+ SHELL: string;
212
117
  PAGER: string;
213
118
  LSCOLORS: string;
214
- npm_package_devDependencies__typescript_eslint_parser: string;
215
- PATH: string;
216
- npm_config_engine_strict: string;
217
- npm_package_json: string;
218
- USER_ZDOTDIR: string;
219
- __CFBundleIdentifier: string;
220
- npm_config_init_module: string;
221
- npm_config_userconfig: string;
222
- npm_command: string;
223
- PWD: string;
224
- npm_package_scripts_up_vite: string;
225
- npm_package_scripts_preview: string;
226
- npm_lifecycle_event: string;
227
- EDITOR: string;
228
- npm_package_name: string;
229
- LANG: string;
230
- npm_config_resolution_mode: string;
231
- NODE_PATH: string;
232
- npm_package_scripts_build: string;
233
- VSCODE_GIT_ASKPASS_EXTRA_ARGS: string;
119
+ HOMEBREW_BOTTLE_DOMAIN: string;
120
+ OLDPWD: string;
121
+ HOMEBREW_CELLAR: string;
122
+ USER: string;
123
+ ZSH: string;
124
+ TMPDIR: string;
125
+ SSH_AUTH_SOCK: string;
234
126
  XPC_FLAGS: string;
235
- npm_package_devDependencies__types_lodash_es: string;
236
- npm_config_node_gyp: string;
237
- npm_package_devDependencies_eslint_config_prettier: string;
238
- npm_config_sass_binary_site: string;
239
- npm_package_devDependencies__sveltejs_adapter_auto: string;
240
- npm_package_version: string;
241
- XPC_SERVICE_NAME: string;
242
- npm_package_devDependencies_svelte_check: string;
243
- VSCODE_INJECTION: string;
244
- npm_package_type: string;
245
- SHLVL: string;
246
- HOME: string;
247
- VSCODE_GIT_ASKPASS_MAIN: string;
248
- HOMEBREW_PREFIX: string;
249
- npm_package_scripts_format: string;
127
+ LC_ALL: string;
128
+ __CF_USER_TEXT_ENCODING: string;
250
129
  LESS: string;
251
- LOGNAME: string;
252
- npm_config_cache: string;
253
- npm_lifecycle_script: string;
254
- npm_package_dependencies_lodash_es: string;
255
- VSCODE_GIT_IPC_HANDLE: string;
256
- npm_config_user_agent: string;
257
- npm_config_ignore_scripts: string;
258
- VSCODE_GIT_ASKPASS_NODE: string;
259
- GIT_ASKPASS: string;
260
- INFOPATH: string;
261
- HOMEBREW_CELLAR: string;
262
- npm_package_scripts_build_analyse: string;
263
- npm_config_init_author_name: string;
264
- npm_package_scripts_check: string;
265
- npm_node_execpath: string;
266
- COLORTERM: string;
267
- npm_config_prefix: string;
130
+ NODE_ENV: string;
131
+ LS_COLORS: string;
132
+ HOME: string;
133
+ HOMEBREW_API_DOMAIN: string;
268
134
  [key: `PUBLIC_${string}`]: undefined;
269
135
  [key: `${string}`]: string | undefined;
270
136
  }
@@ -20,7 +20,7 @@ export const options = {
20
20
  app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
21
21
  error: ({ status, message }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n\t\t\t\t\tUbuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
22
22
  },
23
- version_hash: "nvk3jq"
23
+ version_hash: "1hs1m8n"
24
24
  };
25
25
 
26
26
  export function get_hooks() {
@@ -1,4 +1,4 @@
1
1
  import { createApp } from 'vue'
2
- import App from './app.vue'
2
+ import { App } from './views'
3
3
 
4
4
  export default createApp(App)
@@ -1,2 +1,3 @@
1
1
  export { default as app } from './app'
2
+ export * from './views'
2
3
  export * from './createComponentInstance'
@@ -0,0 +1 @@
1
+ export { default as App } from './app.vue'
@@ -1,6 +1,6 @@
1
1
  import Mock from 'mockjs'
2
2
  import { defineMock } from '@/mockUtils'
3
- import { API } from './providers'
3
+ import { API } from '@/shared/service'
4
4
  export default defineMock([
5
5
  {
6
6
  url: API.HOME_DATA,
@@ -3,8 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
- import { request } from '@/providers'
7
- import { API } from './providers'
6
+ import { request, API } from '@/shared/service'
8
7
 
9
8
  request.post(API.HOME_DATA).then(({ data }) => {
10
9
  console.log('data', data)
File without changes
@@ -0,0 +1,2 @@
1
+ export { default as request } from './request'
2
+ export * as API from './api'
File without changes
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="../assets/vite.svg" />
5
+ <link rel="icon" type="image/svg+xml" href="../shared/assets/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Vite + React + TS</title>
8
8
  </head>
@@ -1 +0,0 @@
1
- export * as API from './api'
@@ -1 +0,0 @@
1
- export * as API from './api'