Skip to content

Commit d3512af

Browse files
committed
Adopt project for g0v Summit
1 parent e3c44fc commit d3512af

File tree

4 files changed

+36
-96
lines changed

4 files changed

+36
-96
lines changed

README.md

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
1-
# 批次開卡魔法
1+
# GitLab 批次開票工具
22

3-
這個專案提供了批次開卡的功能,可以讓你在短時間內開出大量的 GitLab issue。
4-
## 更改名單
5-
請修改 [src/assets/events.js](https://github.com/gnehs/issue-generator/blob/main/src/assets/events.js) 檔案並發送 PR。
6-
7-
## Recommended IDE Setup
3+
此專案修改自[開卡魔法](https://github.com/gnehs/issue-generator),提供了批次開卡的功能,可以讓你在短時間內開出大量的 GitLab issue。
84

9-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.vscode-typescript-vue-plugin).
5+
## 更改名單
106

11-
## Customize configuration
7+
請修改 [src/assets/events.js](https://github.com/g0v/gitlab-issue-generator/blob/main/src/assets/events.js) 檔案並發送 PR。
128

13-
See [Vite Configuration Reference](https://vitejs.dev/config/).
149

15-
## Project Setup
10+
## 環境設定
1611

1712
```sh
1813
npm install
19-
```
20-
21-
### Compile and Hot-Reload for Development
22-
23-
```sh
24-
npm run dev
25-
```
26-
27-
### Compile and Minify for Production
28-
29-
```sh
30-
npm run build
14+
npm run dev # 開發環境,自動重新載入
15+
npm run build # 編譯輸出
3116
```

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
<meta charset="UTF-8" />
66
<link rel="icon" type="image/png" href="https://gnehs.net/img/favicon.png">
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Issue 小精靈</title>
9-
<meta name="description" content="幫你開 Issue 的小精靈" />
8+
<title>GitLab 開票小工具</title>
9+
<meta name="description" content="協助批次建立 GitLab 待辦事項的小工具" />
1010
<meta name="author" content="勝勝寶寶" />
1111
<link rel="preconnect" href="https://fonts.googleapis.com">
1212
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13-
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&family=Ubuntu+Mono:wght@400;700&display=swap" rel="stylesheet">
13+
<link href="https://fonts.googleapis.com/css2?family=Onest:wght@100..900&family=Geist+Mono:wght@100..900&display=swap" rel="stylesheet">
1414
</head>
1515

1616
<body>
1717
<div id="app"></div>
1818
<script type="module" src="/src/main.js"></script>
1919
</body>
2020

21-
</html>
21+
</html>

src/App.vue

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
<div id="wrapper">
44
<header>
55
<div class="container">
6-
<div class="title">{{ selectedEvent||'' }} Issue 小精靈</div>
7-
<p>幫你開 Issue 的小精靈</p>
6+
<div class="title">{{ selectedEvent||'' }} 開票小工具</div>
7+
<p>協助批次建立 GitLab 待辦事項的小精靈</p>
88
</div>
99
</header>
1010
<main class="container" v-if="selectedEvent">
1111
<div class="box">
1212
<div class="title">小提醒</div>
13-
<p>在 Title 或 Description 輸入 #{group} 會自動帶入組別名稱。</p>
13+
<p>在標題或內容輸入 <code>#{group}</code> 會自動帶入組別名稱。</p>
1414
</div>
15-
<label>Title</label>
15+
<label>標題</label>
1616
<input v-model="title" @input="updateLinks" />
17-
<label>Description</label>
17+
<label>內容</label>
1818
<v-md-editor
1919
left-toolbar="undo redo | h bold italic strikethrough quote | ul ol table hr | name pancake"
2020
right-toolbar="preview"
@@ -27,7 +27,7 @@
2727
<div class="options">
2828
<div class="option">
2929
<input type="checkbox" v-model="options.autoAssign" @change="updateLinks" id="autoAssign" />
30-
<label for="autoAssign">自動 Assign 組長</label>
30+
<label for="autoAssign">自動指派給組長</label>
3131
</div>
3232
<div class="option">
3333
<input
@@ -49,7 +49,7 @@
4949
/>
5050
</div>
5151
<button @click="createIssue" class="magic-button">🪄 來點魔法!</button>
52-
<p class="text-center">若魔法施展失敗,請檢查瀏覽器是否封鎖了快顯視窗,或直接點擊下方連結。</p>
52+
<p class="text-center">若魔法施展失敗,請檢查瀏覽器是否封鎖了快顯視窗,或直接點選下方連結。</p>
5353
<div class="links">
5454
<a
5555
v-for="link in links"
@@ -75,22 +75,23 @@
7575
</div>
7676
</main>
7777
<footer>
78-
Developed by
79-
<a href="https://gnehs.net" target="_blank">勝勝寶寶</a> | Made with
80-
<span @click="randomThemeColor">🥞</span> in Taiwan |
81-
<a href="https://github.com/gnehs/issue-generator" target="_blank">GitHub</a>
78+
Developed by 勝勝寶寶 | Made with
79+
<span @click="randomThemeColor">🥞</span> in Taiwan | Forked for g0v on
80+
<a href="https://github.com/g0v/gitlab-issue-generator" target="_blank">GitHub</a>
8281
</footer>
8382
</div>
8483
</template>
8584

8685
<style lang="sass">
8786
\:root
88-
--theme-color: 244, 169, 64
87+
--theme-color: 199, 0, 0
8988
--border-color: #ddd
9089
line-height: 1.5
9190
accent-color: rgb(var(--theme-color))
92-
body,html,.v-md-textarea-editor pre, .v-md-textarea-editor textarea,.vuepress-markdown-body
93-
font-family: 'Ubuntu Mono', 'Noto Sans TC', sans-serif !important
91+
body,html
92+
font-family: Onest, Candara, 'Source Han Sans TC', 'Noto Sans TC', sans-serif !important
93+
.v-md-textarea-editor pre, .v-md-textarea-editor textarea,.vuepress-markdown-body
94+
font-family: 'Geist Mono', 'Source Han Sans TC', 'Noto Sans TC', monospace !important
9495
*
9596
box-sizing: border-box
9697
transition: all 0.2s ease

src/assets/events.js

Lines changed: 10 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,18 @@
11
export default [
22
{
3-
title: "HITCON 2023",
4-
repo: "HacksInTaiwan/2023/board",
5-
inboxLabel: `Status::Inbox`,
6-
groupLabelPrefix: `Team::`,
7-
groupLabelPostfix: ``,
8-
groupList: {
9-
'總召': ['denny0223'],
10-
'RB': ['bletchley13'],
11-
'公關': ['freetsubasa'],
12-
'宣傳': ['hazelOxO'],
13-
'行政': ['leaftseng'],
14-
'議程': ['mag1karp'],
15-
'形象': ['tony780808'],
16-
'系統開發': ['gnehs'],
17-
'攝影': ['jerryhsu066'],
18-
'翻譯': ['RSChiang'],
19-
'場務': ['an22003937'],
20-
'活動': ['rwq987654321000'],
21-
'財務': ['KuroseAto'],
22-
'資訊設施': ['Sciuridae'],
23-
},
24-
},
25-
{
26-
title: "SITCON Camp 2023",
27-
repo: "sitcon-tw/camp-2023/sitcon-camp-2023-board",
28-
inboxLabel: `Status::Inbox`,
29-
groupLabelPrefix: `組別::`,
30-
groupLabelPostfix: `組`,
31-
groupList: {
32-
'總召': ['arnoldsky'],
33-
'行政': ['candice02110211'],
34-
'財務': ['YukinaMochizuki'],
35-
'課活': ['GreenLeaf0w0'],
36-
'庶務': ['rebeeca0922'],
37-
'隊輔': ['justinlin099'],
38-
'編輯': ['skyhong2002'],
39-
'行銷': ['y920531'],
40-
'資訊': ['gnehs'],
41-
'紀錄': ['William-Mou'],
42-
},
43-
},
44-
{
45-
title: "SITCON 2022",
46-
repo: "sitcon-tw/2022/2022-board",
47-
inboxLabel: `Status::Inbox`,
3+
title: "Summit 2026",
4+
repo: "g0v-summit/2026/board",
485
groupLabelPrefix: `組別::`,
496
groupLabelPostfix: `組`,
507
groupList: {
51-
'議程': ['index.asp'],
52-
'總召': ['YukinaMochizuki'],
53-
'編輯': ['fanlan1210'],
54-
'製播': ['camel0311'],
55-
'開發': ['gnehs'],
56-
'設計': ['yuyoyuyo850'],
57-
'財務': ['an22003937'],
58-
'紀錄': ['littlechin'],
59-
'行政': ['april1026'],
60-
'行銷': ['y920531'],
61-
'場務': ['rebeeca0922'],
8+
'總召': ['RSChiang'],
9+
'行政': ['lili668668'],
10+
'議程': ['paulpengtw', 'ted.lu.tw'],
11+
'宣傳': ['rr371'],
12+
'贊助': ['coldplay5566'],
13+
'場務': ['Allenwang6212'],
14+
'財務': ['Yanyiyi'],
15+
'紀錄': [''],
6216
},
6317
},
6418
]

0 commit comments

Comments
 (0)