create-bubbles 0.1.22 → 0.1.23
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.mjs +5 -0
- package/package.json +1 -1
- package/template-vp-monorepo-react-nestjs/.vscode/settings.json +3 -2
- package/template-vp-monorepo-react-nestjs/apps/server/src/database/schema.ts +63 -4
- package/template-vp-monorepo-react-nestjs/vite.config.ts +2 -1
- package/template-vp-vue-eslint-vapor/.env +6 -0
- package/template-vp-vue-eslint-vapor/.env.development +2 -0
- package/template-vp-vue-eslint-vapor/.env.production +2 -0
- package/template-vp-vue-eslint-vapor/.vite-hooks/commit-msg +1 -0
- package/template-vp-vue-eslint-vapor/.vite-hooks/pre-commit +1 -0
- package/template-vp-vue-eslint-vapor/.vscode/extensions.json +3 -0
- package/template-vp-vue-eslint-vapor/AGENTS.md +16 -0
- package/template-vp-vue-eslint-vapor/README.md +93 -0
- package/template-vp-vue-eslint-vapor/commitlint.config.js +1 -0
- package/template-vp-vue-eslint-vapor/eslint.config.js +13 -0
- package/template-vp-vue-eslint-vapor/index.html +13 -0
- package/template-vp-vue-eslint-vapor/package.json +64 -0
- package/template-vp-vue-eslint-vapor/pnpm-workspace.yaml +2 -0
- package/template-vp-vue-eslint-vapor/public/vite.svg +1 -0
- package/template-vp-vue-eslint-vapor/src/App.vue +7 -0
- package/template-vp-vue-eslint-vapor/src/api/index.ts +12 -0
- package/template-vp-vue-eslint-vapor/src/assets/icon/home.svg +3 -0
- package/template-vp-vue-eslint-vapor/src/assets/icon/logo.svg +1 -0
- package/template-vp-vue-eslint-vapor/src/assets/image/.gitkeep +0 -0
- package/template-vp-vue-eslint-vapor/src/components/Icon/svg-icon.vue +29 -0
- package/template-vp-vue-eslint-vapor/src/hooks/chart/lib.ts +57 -0
- package/template-vp-vue-eslint-vapor/src/hooks/chart/useEcharts.ts +65 -0
- package/template-vp-vue-eslint-vapor/src/layout/default/header/index.vue +57 -0
- package/template-vp-vue-eslint-vapor/src/layout/default/index.vue +138 -0
- package/template-vp-vue-eslint-vapor/src/main.ts +19 -0
- package/template-vp-vue-eslint-vapor/src/router/guard/index.ts +7 -0
- package/template-vp-vue-eslint-vapor/src/router/guard/permissionGuard.ts +13 -0
- package/template-vp-vue-eslint-vapor/src/router/index.ts +18 -0
- package/template-vp-vue-eslint-vapor/src/router/interface.ts +9 -0
- package/template-vp-vue-eslint-vapor/src/router/modules/index.ts +33 -0
- package/template-vp-vue-eslint-vapor/src/store/index.ts +11 -0
- package/template-vp-vue-eslint-vapor/src/store/modules/user.ts +17 -0
- package/template-vp-vue-eslint-vapor/src/styles/font.scss +0 -0
- package/template-vp-vue-eslint-vapor/src/styles/index.scss +29 -0
- package/template-vp-vue-eslint-vapor/src/styles/variables.scss +3 -0
- package/template-vp-vue-eslint-vapor/src/types/vite-env.d.ts +15 -0
- package/template-vp-vue-eslint-vapor/src/utils/env.ts +11 -0
- package/template-vp-vue-eslint-vapor/src/utils/request/core/index.ts +425 -0
- package/template-vp-vue-eslint-vapor/src/utils/request/core/utils.ts +39 -0
- package/template-vp-vue-eslint-vapor/src/utils/request/index.ts +44 -0
- package/template-vp-vue-eslint-vapor/src/views/example/echart/config.ts +1794 -0
- package/template-vp-vue-eslint-vapor/src/views/example/echart/index.vue +20 -0
- package/template-vp-vue-eslint-vapor/src/views/example/tree-chart.vue +16 -0
- package/template-vp-vue-eslint-vapor/src/views/home/index.vue +16 -0
- package/template-vp-vue-eslint-vapor/src/views/login/index.vue +9 -0
- package/template-vp-vue-eslint-vapor/tsconfig.json +32 -0
- package/template-vp-vue-eslint-vapor/tsconfig.tsbuildinfo +1 -0
- package/template-vp-vue-eslint-vapor/uno.config.ts +17 -0
- package/template-vp-vue-eslint-vapor/vite.config.ts +66 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useECharts } from "@/hooks/chart/useEcharts";
|
|
3
|
+
|
|
4
|
+
import { getOption } from "./config";
|
|
5
|
+
|
|
6
|
+
const dom = useTemplateRef("chart");
|
|
7
|
+
const { setOptions } = useECharts(dom);
|
|
8
|
+
|
|
9
|
+
onMounted(() => {
|
|
10
|
+
setOptions(getOption());
|
|
11
|
+
});
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<div class="h-100vh w-full bg-black">
|
|
16
|
+
<div ref="chart" class="h-30% w-30%" />
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="flex-center flex-col gap-4 h-full w-full">
|
|
7
|
+
<h1 class="text-2xl font-bold">
|
|
8
|
+
Welcome to Vue Template
|
|
9
|
+
</h1>
|
|
10
|
+
<p class="text-gray-500">
|
|
11
|
+
Vite+ + Vue 3 + Antdv Next + UnoCSS + ESLint
|
|
12
|
+
</p>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
5
|
+
"moduleDetection": "force",
|
|
6
|
+
"useDefineForClassFields": true,
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"paths": {
|
|
12
|
+
"@/*": ["./src/*"]
|
|
13
|
+
},
|
|
14
|
+
"types": ["vite/client", "vue", "node"],
|
|
15
|
+
"allowImportingTsExtensions": true,
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noFallthroughCasesInSwitch": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"noEmit": true,
|
|
23
|
+
"verbatimModuleSyntax": true,
|
|
24
|
+
"erasableSyntaxOnly": true,
|
|
25
|
+
"skipLibCheck": true,
|
|
26
|
+
"noUncheckedSideEffectImports": true
|
|
27
|
+
},
|
|
28
|
+
"vueCompilerOptions": {
|
|
29
|
+
"vapor": true
|
|
30
|
+
},
|
|
31
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.vue", "node_modules/antdv-next/global.d.ts"]
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/main.ts","./src/api/index.ts","./src/hooks/chart/lib.ts","./src/hooks/chart/useecharts.ts","./src/router/index.ts","./src/router/interface.ts","./src/router/guard/index.ts","./src/router/guard/permissionguard.ts","./src/router/modules/index.ts","./src/store/index.ts","./src/store/modules/user.ts","./src/types/auto-import.d.ts","./src/types/components.d.ts","./src/types/vite-env.d.ts","./src/utils/env.ts","./src/utils/request/index.ts","./src/utils/request/core/index.ts","./src/utils/request/core/utils.ts","./src/views/example/echart/config.ts","./src/app.vue","./src/components/icon/svg-icon.vue","./src/layout/default/index.vue","./src/layout/default/header/index.vue","./src/views/example/tree-chart.vue","./src/views/example/echart/index.vue","./src/views/home/index.vue","./src/views/login/index.vue","./node_modules/antdv-next/global.d.ts"],"version":"6.0.3"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import presetAttributify from "@unocss/preset-attributify";
|
|
2
|
+
import presetWind4 from "@unocss/preset-wind4";
|
|
3
|
+
import { defineConfig } from "unocss";
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
// content: {
|
|
7
|
+
// filesystem: [
|
|
8
|
+
// '**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}',
|
|
9
|
+
// ],
|
|
10
|
+
// },
|
|
11
|
+
shortcuts: [
|
|
12
|
+
{
|
|
13
|
+
"flex-center": "flex justify-center items-center",
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
presets: [presetWind4(), presetAttributify()],
|
|
17
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import process from "node:process";
|
|
3
|
+
|
|
4
|
+
import { AntdvNextResolver } from "@antdv-next/auto-import-resolver";
|
|
5
|
+
import Vue from "@vitejs/plugin-vue";
|
|
6
|
+
import UnoCSS from "unocss/vite";
|
|
7
|
+
import AutoImport from "unplugin-auto-import/vite";
|
|
8
|
+
import Components from "unplugin-vue-components/vite";
|
|
9
|
+
import Inspect from "vite-plugin-inspect";
|
|
10
|
+
import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
|
|
11
|
+
import { defineConfig, lazyPlugins, loadEnv } from "vite-plus";
|
|
12
|
+
|
|
13
|
+
// https://vite.dev/config/
|
|
14
|
+
export default defineConfig(({ mode }) => {
|
|
15
|
+
const root = process.cwd();
|
|
16
|
+
const env = loadEnv(mode, root);
|
|
17
|
+
const { VITE_PORT, VITE_API_URL, VITE_API_AFFIX } = env;
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
resolve: {
|
|
21
|
+
alias: {
|
|
22
|
+
"@": path.resolve(__dirname, "src"),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
server: {
|
|
26
|
+
port: Number(VITE_PORT),
|
|
27
|
+
host: "0.0.0.0",
|
|
28
|
+
open: false,
|
|
29
|
+
proxy: {
|
|
30
|
+
[`^/${VITE_API_AFFIX}`]: {
|
|
31
|
+
target: VITE_API_URL,
|
|
32
|
+
changeOrigin: true,
|
|
33
|
+
// secure: false, // Disable SSL certificate verification
|
|
34
|
+
rewrite: (path) => path.replace(new RegExp(`^/${VITE_API_AFFIX}`), ""),
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
staged: {
|
|
39
|
+
"*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,vue}": "vp check --fix",
|
|
40
|
+
"*.{json,jsonc}": "vp fmt",
|
|
41
|
+
},
|
|
42
|
+
plugins: lazyPlugins(() => [
|
|
43
|
+
Vue({
|
|
44
|
+
features: {
|
|
45
|
+
vapor: true,
|
|
46
|
+
},
|
|
47
|
+
}),
|
|
48
|
+
AutoImport({
|
|
49
|
+
imports: ["vue", "vue-router"],
|
|
50
|
+
dts: "./src/types/auto-import.d.ts",
|
|
51
|
+
}),
|
|
52
|
+
Components({
|
|
53
|
+
resolvers: [AntdvNextResolver()],
|
|
54
|
+
dts: "./src/types/components.d.ts",
|
|
55
|
+
}),
|
|
56
|
+
createSvgIconsPlugin({
|
|
57
|
+
// Specify the icon folder to be cached
|
|
58
|
+
iconDirs: [path.resolve(__dirname, "src/assets/icon")],
|
|
59
|
+
// Specify symbolId format
|
|
60
|
+
symbolId: "icon-[dir]-[name]",
|
|
61
|
+
}),
|
|
62
|
+
UnoCSS(),
|
|
63
|
+
Inspect(),
|
|
64
|
+
]),
|
|
65
|
+
};
|
|
66
|
+
});
|