create-bubbles 0.1.2 → 0.1.4

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 (116) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
  3. package/template-react-rsbuild-biome/biome.json +19 -4
  4. package/template-vue-rolldown-oxc/.gitlab-ci.yml +10 -2
  5. package/template-vue-rolldown-oxc/.oxlintrc.json +1 -14
  6. package/template-vue-rolldown-oxc/.vscode/settings.json +11 -0
  7. package/template-vue-rolldown-oxc/README.md +2 -30
  8. package/template-vue-rolldown-oxc/package.json +18 -16
  9. package/template-vue-rolldown-oxc/src/App.vue +12 -2
  10. package/template-vue-rolldown-oxc/src/utils/request/index.ts +1 -3
  11. package/template-vue-rolldown-oxc/src/views/home/index.vue +3 -2
  12. package/template-vue-rolldown-oxc/tsconfig.json +34 -2
  13. package/template-vue-rolldown-oxc/uno.config.ts +2 -5
  14. package/template-vue-rolldown-oxc/vite.config.ts +4 -3
  15. package/template-vue-rsbuild-biome/biome.json +33 -5
  16. package/template-vue-vite-biome/.env +4 -0
  17. package/template-vue-vite-biome/.env.development +1 -0
  18. package/template-vue-vite-biome/.env.production +1 -0
  19. package/template-vue-vite-biome/.gitlab-ci.yml +84 -0
  20. package/template-vue-vite-biome/.vscode/settings.json +10 -0
  21. package/template-vue-vite-biome/README.md +3 -0
  22. package/template-vue-vite-biome/biome.json +109 -0
  23. package/template-vue-vite-biome/commitlint.config.js +1 -0
  24. package/template-vue-vite-biome/index.html +13 -0
  25. package/template-vue-vite-biome/lefthook.yml +11 -0
  26. package/template-vue-vite-biome/package.json +50 -0
  27. package/template-vue-vite-biome/public/vite.svg +1 -0
  28. package/template-vue-vite-biome/src/App.vue +19 -0
  29. package/template-vue-vite-biome/src/assets/icon/vue.svg +1 -0
  30. package/template-vue-vite-biome/src/components/Icon/svg-icon.vue +29 -0
  31. package/template-vue-vite-biome/src/layout/default/index.vue +3 -0
  32. package/template-vue-vite-biome/src/main.ts +15 -0
  33. package/template-vue-vite-biome/src/router/guard/index.ts +7 -0
  34. package/template-vue-vite-biome/src/router/guard/permissionGuard.ts +13 -0
  35. package/template-vue-vite-biome/src/router/index.ts +17 -0
  36. package/template-vue-vite-biome/src/router/modules/index.ts +31 -0
  37. package/template-vue-vite-biome/src/store/index.ts +10 -0
  38. package/template-vue-vite-biome/src/store/modules/user.ts +17 -0
  39. package/template-vue-vite-biome/src/styles/element-plus-variables.css +4 -0
  40. package/template-vue-vite-biome/src/styles/font.scss +0 -0
  41. package/template-vue-vite-biome/src/styles/index.scss +31 -0
  42. package/template-vue-vite-biome/src/styles/variables.scss +3 -0
  43. package/template-vue-vite-biome/src/types/vite-env.d.ts +13 -0
  44. package/template-vue-vite-biome/src/utils/env.ts +10 -0
  45. package/template-vue-vite-biome/src/utils/request/core/index.ts +166 -0
  46. package/template-vue-vite-biome/src/utils/request/core/utils.ts +38 -0
  47. package/template-vue-vite-biome/src/utils/request/index.ts +39 -0
  48. package/template-vue-vite-biome/src/views/home/index.vue +16 -0
  49. package/template-vue-vite-biome/src/views/login/index.vue +11 -0
  50. package/template-vue-vite-biome/src/views/model/index.vue +7 -0
  51. package/{template-vue-rolldown-oxc/tsconfig.app.json → template-vue-vite-biome/tsconfig.json} +15 -4
  52. package/template-vue-vite-biome/uno.config.ts +10 -0
  53. package/template-vue-vite-biome/vite.config.ts +51 -0
  54. package/template-vue-vite-eslint/.env +6 -0
  55. package/template-vue-vite-eslint/.env.development +2 -0
  56. package/template-vue-vite-eslint/.env.production +1 -0
  57. package/template-vue-vite-eslint/.vscode/settings.json +62 -0
  58. package/template-vue-vite-eslint/README.md +3 -0
  59. package/template-vue-vite-eslint/commitlint.config.js +1 -0
  60. package/template-vue-vite-eslint/eslint.config.js +69 -0
  61. package/template-vue-vite-eslint/index.html +13 -0
  62. package/template-vue-vite-eslint/lefthook.yml +11 -0
  63. package/template-vue-vite-eslint/package.json +62 -0
  64. package/template-vue-vite-eslint/public/vite.svg +1 -0
  65. package/template-vue-vite-eslint/src/App.vue +19 -0
  66. package/template-vue-vite-eslint/src/api/index.ts +12 -0
  67. package/template-vue-vite-eslint/src/assets/icon/computer-data.svg +3 -0
  68. package/template-vue-vite-eslint/src/assets/icon/cpu.svg +3 -0
  69. package/template-vue-vite-eslint/src/assets/icon/data-search.svg +3 -0
  70. package/template-vue-vite-eslint/src/assets/icon/home.svg +3 -0
  71. package/template-vue-vite-eslint/src/assets/icon/knowledge-graph.svg +3 -0
  72. package/template-vue-vite-eslint/src/assets/icon/robot.svg +3 -0
  73. package/template-vue-vite-eslint/src/assets/icon/vue.svg +1 -0
  74. package/template-vue-vite-eslint/src/assets/image/.gitkeep +0 -0
  75. package/template-vue-vite-eslint/src/components/Icon/svg-icon.vue +29 -0
  76. package/template-vue-vite-eslint/src/hooks/chart/lib.ts +57 -0
  77. package/template-vue-vite-eslint/src/hooks/chart/useEcharts.ts +65 -0
  78. package/template-vue-vite-eslint/src/layout/default/header/index.vue +12 -0
  79. package/template-vue-vite-eslint/src/layout/default/index.vue +55 -0
  80. package/template-vue-vite-eslint/src/main.ts +17 -0
  81. package/template-vue-vite-eslint/src/router/guard/index.ts +7 -0
  82. package/template-vue-vite-eslint/src/router/guard/permissionGuard.ts +13 -0
  83. package/template-vue-vite-eslint/src/router/index.ts +18 -0
  84. package/template-vue-vite-eslint/src/router/interface.ts +9 -0
  85. package/template-vue-vite-eslint/src/router/modules/example.ts +21 -0
  86. package/template-vue-vite-eslint/src/router/modules/index.ts +79 -0
  87. package/template-vue-vite-eslint/src/store/index.ts +11 -0
  88. package/template-vue-vite-eslint/src/store/modules/user.ts +20 -0
  89. package/template-vue-vite-eslint/src/styles/element-plus-variables.css +3 -0
  90. package/template-vue-vite-eslint/src/styles/font.scss +0 -0
  91. package/template-vue-vite-eslint/src/styles/index.scss +32 -0
  92. package/template-vue-vite-eslint/src/styles/plus-pro-components-variables.css +3 -0
  93. package/template-vue-vite-eslint/src/styles/variables.scss +3 -0
  94. package/template-vue-vite-eslint/src/types/index.d.ts +1 -0
  95. package/template-vue-vite-eslint/src/types/vite-env.d.ts +15 -0
  96. package/template-vue-vite-eslint/src/utils/env.ts +11 -0
  97. package/template-vue-vite-eslint/src/utils/request/core/index.ts +186 -0
  98. package/template-vue-vite-eslint/src/utils/request/core/utils.ts +41 -0
  99. package/template-vue-vite-eslint/src/utils/request/index.ts +42 -0
  100. package/template-vue-vite-eslint/src/views/data-statistics/config.ts +11 -0
  101. package/template-vue-vite-eslint/src/views/data-statistics/index.vue +23 -0
  102. package/template-vue-vite-eslint/src/views/data-statistics/right/abc.vue +11 -0
  103. package/template-vue-vite-eslint/src/views/example/echart/config.ts +1794 -0
  104. package/template-vue-vite-eslint/src/views/example/echart/index.vue +22 -0
  105. package/template-vue-vite-eslint/src/views/example/h-full.vue +24 -0
  106. package/template-vue-vite-eslint/src/views/example/tree-chart.vue +94 -0
  107. package/template-vue-vite-eslint/src/views/home/index.vue +25 -0
  108. package/template-vue-vite-eslint/src/views/knowledge-graph/index.vue +11 -0
  109. package/template-vue-vite-eslint/src/views/login/index.vue +9 -0
  110. package/template-vue-vite-eslint/src/views/model/index.vue +7 -0
  111. package/{template-vue-rolldown-oxc/tsconfig.node.json → template-vue-vite-eslint/tsconfig.json} +20 -9
  112. package/template-vue-vite-eslint/uno.config.ts +21 -0
  113. package/template-vue-vite-eslint/vite.config.ts +62 -0
  114. package/template-vue-rolldown-oxc/components.d.ts +0 -18
  115. package/template-vue-rolldown-oxc/src/types/auto-import.d.ts +0 -78
  116. package/template-vue-rolldown-oxc/src/types/components.d.ts +0 -16
@@ -0,0 +1,42 @@
1
+ import { axiosRequestAdapter } from '@alova/adapter-axios'
2
+ import vueHook from 'alova/vue'
3
+ import { ElMessage } from 'element-plus'
4
+
5
+ import { router } from '@/router'
6
+
7
+ import { envVariables } from '../env'
8
+ import { createDualCallInstance } from './core'
9
+
10
+ import 'element-plus/es/components/message/style/css'
11
+
12
+ function getBaseConfig(): Parameters<typeof createDualCallInstance>[0] {
13
+ return {
14
+ baseUrl: `/${envVariables.API_AFFIX}`,
15
+ statusMap: {
16
+ success: 200,
17
+ unAuthorized: 401,
18
+ },
19
+ codeMap: {
20
+ success: [200],
21
+ },
22
+ responseDataKey: 'data',
23
+ responseMessageKey: 'msg',
24
+ commonHeaders: {},
25
+ successMessageFunc: (msg: string) => {
26
+ ElMessage.success(msg)
27
+ },
28
+ errorMessageFunc: (msg: string) => {
29
+ ElMessage.error(msg)
30
+ },
31
+ unAuthorizedResponseFunc: () => {
32
+ router.push('/login')
33
+ ElMessage.error('登录过期或未登录')
34
+ },
35
+ statesHook: vueHook,
36
+ requestAdapter: axiosRequestAdapter(),
37
+ }
38
+ }
39
+
40
+ const alovaRequest = createDualCallInstance(getBaseConfig())
41
+
42
+ export default alovaRequest
@@ -0,0 +1,11 @@
1
+ import BCD from './CBC.vue'
2
+
3
+ const Abc = defineAsyncComponent(() =>
4
+ import('.right/abc.vue'),
5
+ )
6
+
7
+ export const data = [
8
+ { label: '1级', value: '1', children: [
9
+ { label: '1-1级', value: '1-1', right: Abc, result: BCD },
10
+ ] },
11
+ ]
@@ -0,0 +1,23 @@
1
+ <script setup lang="ts">
2
+ const treeSelect = ref()
3
+
4
+ const rightComponent = computed(() => {
5
+ return treeSelect.value.right
6
+ })
7
+ </script>
8
+
9
+ <template>
10
+ <div class="index-container" />
11
+
12
+ <el-tree v-model="treeSelect" />
13
+
14
+ <div />
15
+
16
+ <div>
17
+ <component :is="rightComponent" />
18
+ </div>
19
+ </template>
20
+
21
+ <style lang="scss" scoped>
22
+
23
+ </style>
@@ -0,0 +1,11 @@
1
+ <script setup lang="ts">
2
+
3
+ </script>
4
+
5
+ <template>
6
+ <div class="index-container" />
7
+ </template>
8
+
9
+ <style lang="scss" scoped>
10
+
11
+ </style>