Skip to content

Commit f3ff27f

Browse files
committed
refactor(files): 更改了文件的位置 方便打包生成插件减少 依赖文件
1 parent ce34c7e commit f3ff27f

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
# Vue 3 + Vite
2-
3-
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4-
5-
## Recommended IDE Setup
6-
7-
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)

package/gitCommit-0.0.1.upx

324 KB
Binary file not shown.
File renamed without changes.

plugin.json renamed to public/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"main": "./dist/index.html",
2+
"main": "./index.html",
33
"logo": "logo.png",
44
"features": [
55
{
66
"code": "git-commit",
77
"explain": "帮助开发快速完成git commit message",
88
"cmds": [
9-
"gc"
9+
"gitc"
1010
]
1111
}
1212
]

src/App.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
:xl="{
2121
span: 10,
2222
offset: 7,
23-
2423
}"
2524
>
25+
<div class="text-right">
26+
<ElButton type="warning" size="small" @click="handleClear"
27+
>重置内容</ElButton
28+
>
29+
</div>
2630
<ElForm class="w-full" label-position="top" label-width="100px">
2731
<ElFormItem label="类型" :hide-required-asterisk="true">
2832
<ElSelect
@@ -161,7 +165,12 @@ const copyDisabled = computed((): boolean => {
161165
const { text, copy, copied, isSupported } = useClipboard({
162166
source: content,
163167
});
164-
const handleCreate = () => {};
168+
const handleClear = () => {
169+
subject.value = "";
170+
scope.value = "";
171+
body.value = "";
172+
type.value = typeOptions.value[0].value;
173+
};
165174
</script>
166175
<style lang="less" scoped>
167176
</style>

0 commit comments

Comments
 (0)