Skip to content

Commit ba151f6

Browse files
committed
refactor(projects): refactor template-vue
1 parent b9c60f4 commit ba151f6

File tree

25 files changed

+27
-60
lines changed

25 files changed

+27
-60
lines changed

packages/create-soybean/template-vue-tsdown/src/demo-pkg.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,3 @@ const handleClick = () => {
4141
<slot name="footer" :count="10"></slot>
4242
</div>
4343
</template>
44-
45-
<style scoped></style>

packages/create-soybean/template-vue/.vscode/settings.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@
44
"source.organizeImports": "never"
55
},
66
"editor.formatOnSave": false,
7-
"eslint.validate": ["html", "css", "scss", "json", "jsonc"],
8-
"prettier.enable": false,
9-
"typescript.tsdk": "node_modules/typescript/lib",
10-
"unocss.root": ["./"],
11-
"vue.server.hybridMode": true
7+
"eslint.validate": [
8+
"html",
9+
"css",
10+
"scss",
11+
"json",
12+
"jsonc",
13+
"javascript",
14+
"javascriptreact",
15+
"typescript",
16+
"typescriptreact",
17+
"vue",
18+
"markdown"
19+
],
20+
"prettier.enable": false
1221
}

packages/create-soybean/template-vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
"update-pkg": "soy ncu"
1818
},
1919
"dependencies": {
20+
"@soybeanjs/ui": "0.0.7",
2021
"@unocss/reset": "66.5.10",
2122
"klona": "2.0.6",
2223
"pinia": "3.0.4",
23-
"soy-ui": "0.0.2-beta.5",
2424
"vue": "3.5.26",
2525
"vue-router": "4.6.4"
2626
},
2727
"devDependencies": {
28-
"@soybean-ui/unocss-preset": "0.0.2-beta.5",
2928
"@soybeanjs/cli": "1.4.1",
3029
"@soybeanjs/eslint-config": "1.7.5",
30+
"@soybeanjs/unocss-preset": "0.1.7",
3131
"@types/node": "25.0.3",
3232
"@unocss/eslint-config": "66.5.10",
3333
"@vitejs/plugin-vue": "6.0.3",

packages/create-soybean/template-vue/src/layouts/base/index.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ import { RouterView } from 'vue-router';
77
<RouterView />
88
</SCard>
99
</template>
10-
11-
<style scoped></style>

packages/create-soybean/template-vue/src/layouts/blank/index.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@ import { RouterView } from 'vue-router';
77
<RouterView />
88
</SCard>
99
</template>
10-
11-
<style scoped></style>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import '@unocss/reset/tailwind.css';
2+
import '@soybeanjs/ui/styles.css';
23
import 'uno.css';
34
import '../styles/app.css';

packages/create-soybean/template-vue/src/typings/components.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare module 'vue' {
1111
HelloWorld: typeof import('./../components/HelloWorld.vue')['default']
1212
RouterLink: typeof import('vue-router')['RouterLink']
1313
RouterView: typeof import('vue-router')['RouterView']
14-
SButton: typeof import('soy-ui')['SButton']
15-
SCard: typeof import('soy-ui')['SCard']
14+
SButton: typeof import('@soybeanjs/ui')['SButton']
15+
SCard: typeof import('@soybeanjs/ui')['SCard']
1616
}
1717
}

packages/create-soybean/template-vue/src/views/(builtin)/403.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
<template>
44
<div>403</div>
55
</template>
6-
7-
<style scoped></style>

packages/create-soybean/template-vue/src/views/(builtin)/404.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
<template>
44
<div>404</div>
55
</template>
6-
7-
<style scoped></style>

packages/create-soybean/template-vue/src/views/(builtin)/login/index.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
<template>
44
<div>login</div>
55
</template>
6-
7-
<style scoped></style>

0 commit comments

Comments
 (0)