create-bubbles 0.0.12 → 0.0.17
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/index.js +3 -3
- package/package.json +41 -38
- package/template-react-rsbuild/.env +4 -3
- package/template-react-rsbuild/.gitignore +7 -0
- package/template-react-rsbuild/.npmrc +1 -0
- package/template-react-rsbuild/.prettierignore +33 -33
- package/template-react-rsbuild/.prettierrc +17 -17
- package/template-react-rsbuild/.vscode/settings.json +14 -0
- package/template-react-rsbuild/README.md +29 -29
- package/template-react-rsbuild/biome.json +102 -102
- package/template-react-rsbuild/commitlint.config.js +1 -1
- package/template-react-rsbuild/index.html +6 -6
- package/template-react-rsbuild/lefthook.yml +14 -14
- package/template-react-rsbuild/package.json +41 -39
- package/template-react-rsbuild/rsbuild.config.ts +10 -2
- package/template-react-rsbuild/src/App.tsx +9 -9
- package/template-react-rsbuild/src/assets/font/AlimamaShuHeiTi-Bold.ttf +0 -0
- package/template-react-rsbuild/src/assets/icon/logo.svg +7 -0
- package/template-react-rsbuild/src/components/Loading/PageLoading.tsx +11 -11
- package/template-react-rsbuild/src/env.d.ts +1 -1
- package/template-react-rsbuild/src/index.tsx +20 -20
- package/template-react-rsbuild/src/layout/default/index.tsx +10 -0
- package/template-react-rsbuild/src/pages/home/index.tsx +5 -26
- package/template-react-rsbuild/src/router/index.tsx +38 -27
- package/template-react-rsbuild/src/store/modules/user.ts +11 -11
- package/template-react-rsbuild/src/styles/fonts.scss +4 -0
- package/template-react-rsbuild/src/styles/{index.css → index.scss} +18 -16
- package/template-react-rsbuild/src/styles/variables.scss +4 -0
- package/template-react-rsbuild/src/types/auto-import.d.ts +39 -47
- package/template-react-rsbuild/src/utils/env.ts +9 -0
- package/template-react-rsbuild/src/utils/request/axios.ts +82 -82
- package/template-react-rsbuild/src/utils/request/index.ts +77 -77
- package/template-react-rsbuild/tsconfig.json +35 -29
- package/template-react-rsbuild/uno.config.ts +10 -8
- package/template-vue-rsbuild/.env +2 -2
- package/template-vue-rsbuild/.gitignore +10 -0
- package/template-vue-rsbuild/.npmrc +1 -0
- package/template-vue-rsbuild/.prettierignore +4 -4
- package/template-vue-rsbuild/.prettierrc +18 -18
- package/template-vue-rsbuild/README.md +29 -29
- package/template-vue-rsbuild/index.html +6 -6
- package/template-vue-rsbuild/lefthook.yml +11 -11
- package/template-vue-rsbuild/src/App.vue +3 -3
- package/template-vue-rsbuild/src/store/index.ts +7 -7
- package/template-vue-rsbuild/src/store/modules/user.ts +16 -16
- package/template-vue-rsbuild/src/styles/index.css +16 -16
- package/template-vue-rsbuild/src/utils/request/axios.ts +83 -83
- package/template-vue-rsbuild/src/utils/request/index.ts +77 -77
- package/template-vue-rsbuild/src/views/home/index.vue +8 -8
- package/template-vue-rsbuild/tsconfig.json +29 -29
- package/template-vue-rsbuild/uno.config.ts +9 -9
- package/template-vue-rsbuild-eslint/.env +2 -2
- package/template-vue-rsbuild-eslint/.gitignore +13 -0
- package/template-vue-rsbuild-eslint/.prettierignore +4 -4
- package/template-vue-rsbuild-eslint/.prettierrc +17 -17
- package/template-vue-rsbuild-eslint/README.md +29 -29
- package/template-vue-rsbuild-eslint/index.html +6 -6
- package/template-vue-rsbuild-eslint/package.json +31 -31
- package/template-vue-rsbuild-eslint/src/App.vue +29 -29
- package/template-vue-rsbuild-eslint/src/index.css +6 -6
- package/template-vue-rsbuild-eslint/src/styles/index.css +16 -16
- package/template-vue-rsbuild-eslint/src/views/home/index.vue +12 -12
- package/template-react-rsbuild/index.en-US.md +0 -0
- package/template-react-rsbuild/index.zh-CN.md +0 -0
- package/template-vue-rsbuild/pnpm-lock.yaml +0 -3324
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import type { AxiosRequestConfig } from 'axios'
|
|
2
|
-
|
|
3
|
-
import request, { type CustomConfig } from './axios'
|
|
4
|
-
|
|
5
|
-
interface createAxiosType {
|
|
6
|
-
get: <T = any>(
|
|
7
|
-
config: {
|
|
8
|
-
url: string
|
|
9
|
-
params?: AxiosRequestConfig['params']
|
|
10
|
-
config?: AxiosRequestConfig<any>
|
|
11
|
-
},
|
|
12
|
-
option?: CustomConfig,
|
|
13
|
-
) => Promise<T>
|
|
14
|
-
post: <T = any>(
|
|
15
|
-
config: {
|
|
16
|
-
url: string
|
|
17
|
-
data?: AxiosRequestConfig['data']
|
|
18
|
-
params?: AxiosRequestConfig['params']
|
|
19
|
-
config?: AxiosRequestConfig<any>
|
|
20
|
-
},
|
|
21
|
-
option?: CustomConfig,
|
|
22
|
-
) => Promise<T>
|
|
23
|
-
put: <T = any>(
|
|
24
|
-
config: {
|
|
25
|
-
url: string
|
|
26
|
-
data?: AxiosRequestConfig['data']
|
|
27
|
-
config?: AxiosRequestConfig<any>
|
|
28
|
-
},
|
|
29
|
-
option?: CustomConfig,
|
|
30
|
-
) => Promise<T>
|
|
31
|
-
delete: <T = any>(
|
|
32
|
-
config: {
|
|
33
|
-
url: string
|
|
34
|
-
data?: AxiosRequestConfig['data']
|
|
35
|
-
config?: AxiosRequestConfig<any>
|
|
36
|
-
},
|
|
37
|
-
option?: CustomConfig,
|
|
38
|
-
) => Promise<T>
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const createAxios: createAxiosType = {
|
|
42
|
-
get: (config, option) =>
|
|
43
|
-
request(option).get(config.url, {
|
|
44
|
-
params: config.params,
|
|
45
|
-
...config?.config,
|
|
46
|
-
}),
|
|
47
|
-
post: (
|
|
48
|
-
config: {
|
|
49
|
-
url: string
|
|
50
|
-
params?: Record<string, string>
|
|
51
|
-
data?: any
|
|
52
|
-
config?: AxiosRequestConfig<any>
|
|
53
|
-
},
|
|
54
|
-
option?: CustomConfig,
|
|
55
|
-
) => {
|
|
56
|
-
let url = config.url
|
|
57
|
-
if (config.params instanceof Object) {
|
|
58
|
-
url += '?'
|
|
59
|
-
const entries = Object.entries(config.params)
|
|
60
|
-
for (let i = 0; i < entries.length; i++) {
|
|
61
|
-
const [key, value] = entries[i]
|
|
62
|
-
url += `${key}=${value}${i < entries.length - 1 ? '&' : ''}`
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return request(option).post(url, config?.data, config?.config)
|
|
66
|
-
},
|
|
67
|
-
put: (
|
|
68
|
-
config: { url: string; data?: any; config?: AxiosRequestConfig<any> },
|
|
69
|
-
option?: CustomConfig,
|
|
70
|
-
) => request(option).put(config.url, config?.data, config?.config),
|
|
71
|
-
delete: (
|
|
72
|
-
config: { url: string; config?: AxiosRequestConfig<any> },
|
|
73
|
-
customConfig?: CustomConfig,
|
|
74
|
-
) => request(customConfig).delete(config.url, config?.config),
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export default createAxios
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios'
|
|
2
|
+
|
|
3
|
+
import request, { type CustomConfig } from './axios'
|
|
4
|
+
|
|
5
|
+
interface createAxiosType {
|
|
6
|
+
get: <T = any>(
|
|
7
|
+
config: {
|
|
8
|
+
url: string
|
|
9
|
+
params?: AxiosRequestConfig['params']
|
|
10
|
+
config?: AxiosRequestConfig<any>
|
|
11
|
+
},
|
|
12
|
+
option?: CustomConfig,
|
|
13
|
+
) => Promise<T>
|
|
14
|
+
post: <T = any>(
|
|
15
|
+
config: {
|
|
16
|
+
url: string
|
|
17
|
+
data?: AxiosRequestConfig['data']
|
|
18
|
+
params?: AxiosRequestConfig['params']
|
|
19
|
+
config?: AxiosRequestConfig<any>
|
|
20
|
+
},
|
|
21
|
+
option?: CustomConfig,
|
|
22
|
+
) => Promise<T>
|
|
23
|
+
put: <T = any>(
|
|
24
|
+
config: {
|
|
25
|
+
url: string
|
|
26
|
+
data?: AxiosRequestConfig['data']
|
|
27
|
+
config?: AxiosRequestConfig<any>
|
|
28
|
+
},
|
|
29
|
+
option?: CustomConfig,
|
|
30
|
+
) => Promise<T>
|
|
31
|
+
delete: <T = any>(
|
|
32
|
+
config: {
|
|
33
|
+
url: string
|
|
34
|
+
data?: AxiosRequestConfig['data']
|
|
35
|
+
config?: AxiosRequestConfig<any>
|
|
36
|
+
},
|
|
37
|
+
option?: CustomConfig,
|
|
38
|
+
) => Promise<T>
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const createAxios: createAxiosType = {
|
|
42
|
+
get: (config, option) =>
|
|
43
|
+
request(option).get(config.url, {
|
|
44
|
+
params: config.params,
|
|
45
|
+
...config?.config,
|
|
46
|
+
}),
|
|
47
|
+
post: (
|
|
48
|
+
config: {
|
|
49
|
+
url: string
|
|
50
|
+
params?: Record<string, string>
|
|
51
|
+
data?: any
|
|
52
|
+
config?: AxiosRequestConfig<any>
|
|
53
|
+
},
|
|
54
|
+
option?: CustomConfig,
|
|
55
|
+
) => {
|
|
56
|
+
let url = config.url
|
|
57
|
+
if (config.params instanceof Object) {
|
|
58
|
+
url += '?'
|
|
59
|
+
const entries = Object.entries(config.params)
|
|
60
|
+
for (let i = 0; i < entries.length; i++) {
|
|
61
|
+
const [key, value] = entries[i]
|
|
62
|
+
url += `${key}=${value}${i < entries.length - 1 ? '&' : ''}`
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return request(option).post(url, config?.data, config?.config)
|
|
66
|
+
},
|
|
67
|
+
put: (
|
|
68
|
+
config: { url: string; data?: any; config?: AxiosRequestConfig<any> },
|
|
69
|
+
option?: CustomConfig,
|
|
70
|
+
) => request(option).put(config.url, config?.data, config?.config),
|
|
71
|
+
delete: (
|
|
72
|
+
config: { url: string; config?: AxiosRequestConfig<any> },
|
|
73
|
+
customConfig?: CustomConfig,
|
|
74
|
+
) => request(customConfig).delete(config.url, config?.config),
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export default createAxios
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
1
|
+
<script setup lang="ts">
|
|
2
2
|
defineOptions({ name: 'home' })
|
|
3
3
|
|
|
4
4
|
const a = ref(1)
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<div class="index-container"></div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<style lang="scss" scoped></style>
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="index-container"></div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["DOM", "ES2020"],
|
|
4
|
-
"jsx": "preserve",
|
|
5
|
-
"target": "ES2020",
|
|
6
|
-
"noEmit": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"jsxImportSource": "vue",
|
|
9
|
-
"useDefineForClassFields": true,
|
|
10
|
-
|
|
11
|
-
/* modules */
|
|
12
|
-
"module": "ESNext",
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"moduleResolution": "Bundler",
|
|
16
|
-
"allowImportingTsExtensions": true,
|
|
17
|
-
|
|
18
|
-
/* type checking */
|
|
19
|
-
"strict": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"noUnusedParameters": true,
|
|
22
|
-
|
|
23
|
-
"baseUrl": ".",
|
|
24
|
-
"paths": {
|
|
25
|
-
"@": ["src"]
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"include": ["src"]
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["DOM", "ES2020"],
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"jsxImportSource": "vue",
|
|
9
|
+
"useDefineForClassFields": true,
|
|
10
|
+
|
|
11
|
+
/* modules */
|
|
12
|
+
"module": "ESNext",
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"moduleResolution": "Bundler",
|
|
16
|
+
"allowImportingTsExtensions": true,
|
|
17
|
+
|
|
18
|
+
/* type checking */
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
|
|
23
|
+
"baseUrl": ".",
|
|
24
|
+
"paths": {
|
|
25
|
+
"@": ["src"]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"include": ["src"]
|
|
29
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// uno.config.ts
|
|
2
|
-
import { defineConfig, presetUno } from 'unocss';
|
|
3
|
-
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
content: {
|
|
6
|
-
filesystem: ['**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}'],
|
|
7
|
-
},
|
|
8
|
-
presets: [presetUno()],
|
|
9
|
-
});
|
|
1
|
+
// uno.config.ts
|
|
2
|
+
import { defineConfig, presetUno } from 'unocss';
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
content: {
|
|
6
|
+
filesystem: ['**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}'],
|
|
7
|
+
},
|
|
8
|
+
presets: [presetUno()],
|
|
9
|
+
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# port
|
|
2
|
-
PUBLIC_PORT = 9200
|
|
1
|
+
# port
|
|
2
|
+
PUBLIC_PORT = 9200
|
|
3
3
|
PUBLIC_PATH = '/'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Lock files
|
|
2
|
-
package-lock.json
|
|
3
|
-
pnpm-lock.yaml
|
|
4
|
-
yarn.lock
|
|
1
|
+
# Lock files
|
|
2
|
+
package-lock.json
|
|
3
|
+
pnpm-lock.yaml
|
|
4
|
+
yarn.lock
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"singleQuote": true,
|
|
3
|
-
"jsxSingleQuote": false,
|
|
4
|
-
"trailingComma": "all",
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"proseWrap": "never",
|
|
7
|
-
"importOrder": ["^(vue|vue-router)$", "^([a-z]|@[a-z])", "", ".*"],
|
|
8
|
-
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
|
|
9
|
-
"overrides": [
|
|
10
|
-
{
|
|
11
|
-
"files": ".prettierrc",
|
|
12
|
-
"options": {
|
|
13
|
-
"parser": "json"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"singleQuote": true,
|
|
3
|
+
"jsxSingleQuote": false,
|
|
4
|
+
"trailingComma": "all",
|
|
5
|
+
"printWidth": 100,
|
|
6
|
+
"proseWrap": "never",
|
|
7
|
+
"importOrder": ["^(vue|vue-router)$", "^([a-z]|@[a-z])", "", ".*"],
|
|
8
|
+
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
|
|
9
|
+
"overrides": [
|
|
10
|
+
{
|
|
11
|
+
"files": ".prettierrc",
|
|
12
|
+
"options": {
|
|
13
|
+
"parser": "json"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# Rsbuild project
|
|
2
|
-
|
|
3
|
-
## Setup
|
|
4
|
-
|
|
5
|
-
Install the dependencies:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pnpm install
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Get started
|
|
12
|
-
|
|
13
|
-
Start the dev server:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pnpm dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Build the app for production:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Preview the production build locally:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pnpm preview
|
|
29
|
-
```
|
|
1
|
+
# Rsbuild project
|
|
2
|
+
|
|
3
|
+
## Setup
|
|
4
|
+
|
|
5
|
+
Install the dependencies:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm install
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Get started
|
|
12
|
+
|
|
13
|
+
Start the dev server:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm dev
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Build the app for production:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Preview the production build locally:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pnpm preview
|
|
29
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head></head>
|
|
4
|
-
<body>
|
|
5
|
-
<div id="<%= mountId %>"></div>
|
|
6
|
-
</body>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head></head>
|
|
4
|
+
<body>
|
|
5
|
+
<div id="<%= mountId %>"></div>
|
|
6
|
+
</body>
|
|
7
7
|
</html>
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "template-vue",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "rsbuild build",
|
|
8
|
-
"check": "biome check --write",
|
|
9
|
-
"dev": "rsbuild dev --open",
|
|
10
|
-
"format": "prettier --write .",
|
|
11
|
-
"preview": "rsbuild preview"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"ant-design-vue": "^4.2.6",
|
|
15
|
-
"pinia": "^3.0.1",
|
|
16
|
-
"vue": "^3.5.13",
|
|
17
|
-
"vue-router": "^4.5.0"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@biomejs/biome": "^1.9.4",
|
|
21
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
22
|
-
"@rsbuild/core": "^1.3.1",
|
|
23
|
-
"@rsbuild/plugin-vue": "^1.0.7",
|
|
24
|
-
"@unocss/postcss": "^65.5.0",
|
|
25
|
-
"lefthook": "^1.11.6",
|
|
26
|
-
"prettier": "^3.5.3",
|
|
27
|
-
"typescript": "^5.8.2",
|
|
28
|
-
"unocss": "^65.5.0",
|
|
29
|
-
"unplugin-auto-import": "^19.1.2"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "template-vue",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rsbuild build",
|
|
8
|
+
"check": "biome check --write",
|
|
9
|
+
"dev": "rsbuild dev --open",
|
|
10
|
+
"format": "prettier --write .",
|
|
11
|
+
"preview": "rsbuild preview"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"ant-design-vue": "^4.2.6",
|
|
15
|
+
"pinia": "^3.0.1",
|
|
16
|
+
"vue": "^3.5.13",
|
|
17
|
+
"vue-router": "^4.5.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@biomejs/biome": "^1.9.4",
|
|
21
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
|
|
22
|
+
"@rsbuild/core": "^1.3.1",
|
|
23
|
+
"@rsbuild/plugin-vue": "^1.0.7",
|
|
24
|
+
"@unocss/postcss": "^65.5.0",
|
|
25
|
+
"lefthook": "^1.11.6",
|
|
26
|
+
"prettier": "^3.5.3",
|
|
27
|
+
"typescript": "^5.8.2",
|
|
28
|
+
"unocss": "^65.5.0",
|
|
29
|
+
"unplugin-auto-import": "^19.1.2"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="content">
|
|
3
|
-
<h1 class="text-#fff">Rsbuild with Vue</h1>
|
|
4
|
-
<p class="text-50px text-amber">Start building amazing things with Rsbuild.</p>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<style scoped>
|
|
9
|
-
.content {
|
|
10
|
-
display: flex;
|
|
11
|
-
min-height: 100vh;
|
|
12
|
-
line-height: 1.1;
|
|
13
|
-
text-align: center;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
background-color: #000;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.content h1 {
|
|
20
|
-
font-size: 3.6rem;
|
|
21
|
-
font-weight: 700;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.content p {
|
|
25
|
-
font-size: 1.2rem;
|
|
26
|
-
font-weight: 400;
|
|
27
|
-
opacity: 0.5;
|
|
28
|
-
}
|
|
29
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="content">
|
|
3
|
+
<h1 class="text-#fff">Rsbuild with Vue</h1>
|
|
4
|
+
<p class="text-50px text-amber">Start building amazing things with Rsbuild.</p>
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<style scoped>
|
|
9
|
+
.content {
|
|
10
|
+
display: flex;
|
|
11
|
+
min-height: 100vh;
|
|
12
|
+
line-height: 1.1;
|
|
13
|
+
text-align: center;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
background-color: #000;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.content h1 {
|
|
20
|
+
font-size: 3.6rem;
|
|
21
|
+
font-weight: 700;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.content p {
|
|
25
|
+
font-size: 1.2rem;
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
opacity: 0.5;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
body {
|
|
2
|
-
margin: 0;
|
|
3
|
-
color: #fff;
|
|
4
|
-
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
-
background-image: linear-gradient(to bottom, #020917, #101725);
|
|
6
|
-
}
|
|
1
|
+
body {
|
|
2
|
+
margin: 0;
|
|
3
|
+
color: #fff;
|
|
4
|
+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
5
|
+
background-image: linear-gradient(to bottom, #020917, #101725);
|
|
6
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@unocss;
|
|
2
|
-
|
|
3
|
-
html,
|
|
4
|
-
body,
|
|
5
|
-
#root {
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
*,
|
|
11
|
-
*::before,
|
|
12
|
-
*::after {
|
|
13
|
-
margin: 0;
|
|
14
|
-
padding: 0;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
}
|
|
1
|
+
@unocss;
|
|
2
|
+
|
|
3
|
+
html,
|
|
4
|
+
body,
|
|
5
|
+
#root {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
*,
|
|
11
|
+
*::before,
|
|
12
|
+
*::after {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
1
|
+
<script setup lang="ts">
|
|
2
2
|
defineOptions({ name: 'home' })
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div class="index-container">
|
|
7
|
-
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<style lang="scss" scoped>
|
|
12
|
-
|
|
13
|
-
</style>
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<template>
|
|
6
|
+
<div class="index-container">
|
|
7
|
+
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<style lang="scss" scoped>
|
|
12
|
+
|
|
13
|
+
</style>
|
|
File without changes
|
|
File without changes
|