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.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/template-react-rsbuild-biome/biome.json +19 -4
- package/template-vue-rolldown-oxc/.gitlab-ci.yml +10 -2
- package/template-vue-rolldown-oxc/.oxlintrc.json +1 -14
- package/template-vue-rolldown-oxc/.vscode/settings.json +11 -0
- package/template-vue-rolldown-oxc/README.md +2 -30
- package/template-vue-rolldown-oxc/package.json +18 -16
- package/template-vue-rolldown-oxc/src/App.vue +12 -2
- package/template-vue-rolldown-oxc/src/utils/request/index.ts +1 -3
- package/template-vue-rolldown-oxc/src/views/home/index.vue +3 -2
- package/template-vue-rolldown-oxc/tsconfig.json +34 -2
- package/template-vue-rolldown-oxc/uno.config.ts +2 -5
- package/template-vue-rolldown-oxc/vite.config.ts +4 -3
- package/template-vue-rsbuild-biome/biome.json +33 -5
- package/template-vue-vite-biome/.env +4 -0
- package/template-vue-vite-biome/.env.development +1 -0
- package/template-vue-vite-biome/.env.production +1 -0
- package/template-vue-vite-biome/.gitlab-ci.yml +84 -0
- package/template-vue-vite-biome/.vscode/settings.json +10 -0
- package/template-vue-vite-biome/README.md +3 -0
- package/template-vue-vite-biome/biome.json +109 -0
- package/template-vue-vite-biome/commitlint.config.js +1 -0
- package/template-vue-vite-biome/index.html +13 -0
- package/template-vue-vite-biome/lefthook.yml +11 -0
- package/template-vue-vite-biome/package.json +50 -0
- package/template-vue-vite-biome/public/vite.svg +1 -0
- package/template-vue-vite-biome/src/App.vue +19 -0
- package/template-vue-vite-biome/src/assets/icon/vue.svg +1 -0
- package/template-vue-vite-biome/src/components/Icon/svg-icon.vue +29 -0
- package/template-vue-vite-biome/src/layout/default/index.vue +3 -0
- package/template-vue-vite-biome/src/main.ts +15 -0
- package/template-vue-vite-biome/src/router/guard/index.ts +7 -0
- package/template-vue-vite-biome/src/router/guard/permissionGuard.ts +13 -0
- package/template-vue-vite-biome/src/router/index.ts +17 -0
- package/template-vue-vite-biome/src/router/modules/index.ts +31 -0
- package/template-vue-vite-biome/src/store/index.ts +10 -0
- package/template-vue-vite-biome/src/store/modules/user.ts +17 -0
- package/template-vue-vite-biome/src/styles/element-plus-variables.css +4 -0
- package/template-vue-vite-biome/src/styles/font.scss +0 -0
- package/template-vue-vite-biome/src/styles/index.scss +31 -0
- package/template-vue-vite-biome/src/styles/variables.scss +3 -0
- package/template-vue-vite-biome/src/types/vite-env.d.ts +13 -0
- package/template-vue-vite-biome/src/utils/env.ts +10 -0
- package/template-vue-vite-biome/src/utils/request/core/index.ts +166 -0
- package/template-vue-vite-biome/src/utils/request/core/utils.ts +38 -0
- package/template-vue-vite-biome/src/utils/request/index.ts +39 -0
- package/template-vue-vite-biome/src/views/home/index.vue +16 -0
- package/template-vue-vite-biome/src/views/login/index.vue +11 -0
- package/template-vue-vite-biome/src/views/model/index.vue +7 -0
- package/{template-vue-rolldown-oxc/tsconfig.app.json → template-vue-vite-biome/tsconfig.json} +15 -4
- package/template-vue-vite-biome/uno.config.ts +10 -0
- package/template-vue-vite-biome/vite.config.ts +51 -0
- package/template-vue-vite-eslint/.env +6 -0
- package/template-vue-vite-eslint/.env.development +2 -0
- package/template-vue-vite-eslint/.env.production +1 -0
- package/template-vue-vite-eslint/.vscode/settings.json +62 -0
- package/template-vue-vite-eslint/README.md +3 -0
- package/template-vue-vite-eslint/commitlint.config.js +1 -0
- package/template-vue-vite-eslint/eslint.config.js +69 -0
- package/template-vue-vite-eslint/index.html +13 -0
- package/template-vue-vite-eslint/lefthook.yml +11 -0
- package/template-vue-vite-eslint/package.json +62 -0
- package/template-vue-vite-eslint/public/vite.svg +1 -0
- package/template-vue-vite-eslint/src/App.vue +19 -0
- package/template-vue-vite-eslint/src/api/index.ts +12 -0
- package/template-vue-vite-eslint/src/assets/icon/computer-data.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/cpu.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/data-search.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/home.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/knowledge-graph.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/robot.svg +3 -0
- package/template-vue-vite-eslint/src/assets/icon/vue.svg +1 -0
- package/template-vue-vite-eslint/src/assets/image/.gitkeep +0 -0
- package/template-vue-vite-eslint/src/components/Icon/svg-icon.vue +29 -0
- package/template-vue-vite-eslint/src/hooks/chart/lib.ts +57 -0
- package/template-vue-vite-eslint/src/hooks/chart/useEcharts.ts +65 -0
- package/template-vue-vite-eslint/src/layout/default/header/index.vue +12 -0
- package/template-vue-vite-eslint/src/layout/default/index.vue +55 -0
- package/template-vue-vite-eslint/src/main.ts +17 -0
- package/template-vue-vite-eslint/src/router/guard/index.ts +7 -0
- package/template-vue-vite-eslint/src/router/guard/permissionGuard.ts +13 -0
- package/template-vue-vite-eslint/src/router/index.ts +18 -0
- package/template-vue-vite-eslint/src/router/interface.ts +9 -0
- package/template-vue-vite-eslint/src/router/modules/example.ts +21 -0
- package/template-vue-vite-eslint/src/router/modules/index.ts +79 -0
- package/template-vue-vite-eslint/src/store/index.ts +11 -0
- package/template-vue-vite-eslint/src/store/modules/user.ts +20 -0
- package/template-vue-vite-eslint/src/styles/element-plus-variables.css +3 -0
- package/template-vue-vite-eslint/src/styles/font.scss +0 -0
- package/template-vue-vite-eslint/src/styles/index.scss +32 -0
- package/template-vue-vite-eslint/src/styles/plus-pro-components-variables.css +3 -0
- package/template-vue-vite-eslint/src/styles/variables.scss +3 -0
- package/template-vue-vite-eslint/src/types/index.d.ts +1 -0
- package/template-vue-vite-eslint/src/types/vite-env.d.ts +15 -0
- package/template-vue-vite-eslint/src/utils/env.ts +11 -0
- package/template-vue-vite-eslint/src/utils/request/core/index.ts +186 -0
- package/template-vue-vite-eslint/src/utils/request/core/utils.ts +41 -0
- package/template-vue-vite-eslint/src/utils/request/index.ts +42 -0
- package/template-vue-vite-eslint/src/views/data-statistics/config.ts +11 -0
- package/template-vue-vite-eslint/src/views/data-statistics/index.vue +23 -0
- package/template-vue-vite-eslint/src/views/data-statistics/right/abc.vue +11 -0
- package/template-vue-vite-eslint/src/views/example/echart/config.ts +1794 -0
- package/template-vue-vite-eslint/src/views/example/echart/index.vue +22 -0
- package/template-vue-vite-eslint/src/views/example/h-full.vue +24 -0
- package/template-vue-vite-eslint/src/views/example/tree-chart.vue +94 -0
- package/template-vue-vite-eslint/src/views/home/index.vue +25 -0
- package/template-vue-vite-eslint/src/views/knowledge-graph/index.vue +11 -0
- package/template-vue-vite-eslint/src/views/login/index.vue +9 -0
- package/template-vue-vite-eslint/src/views/model/index.vue +7 -0
- package/{template-vue-rolldown-oxc/tsconfig.node.json → template-vue-vite-eslint/tsconfig.json} +20 -9
- package/template-vue-vite-eslint/uno.config.ts +21 -0
- package/template-vue-vite-eslint/vite.config.ts +62 -0
- package/template-vue-rolldown-oxc/components.d.ts +0 -18
- package/template-vue-rolldown-oxc/src/types/auto-import.d.ts +0 -78
- 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,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>
|