-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
201 lines (201 loc) Β· 10.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!DOCTYPE html>
<html lang="en">
<head>
<!--meta-->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="description" content="Git commit message creation helper" />
<meta name="author" content="Hyeokjae Lee" />
<meta name="theme-color" content="#3b3b3b" />
<!--meta og-->
<meta property="og:title" content="Gititle" />
<meta property="og:url" content="" />
<meta property="og:description" content="Git commit message creation helper" />
<meta property="og:image" content="assets/icon/icon-512x512.png" />
<meta property="og:type" content="website" />
<!--icon-->
<link rel="apple-touch-icon" sizes="180x180" href="assets/icon/icon-192x192.png" />
<link rel="apple-touch-icon" sizes="192x192" href="assets/icon/icon-192x192.png" />
<link rel="apple-touch-icon" sizes="256x256" href="assets/icon/icon-256x256.png" />
<link rel="apple-touch-icon" sizes="384x384" href="assets/icon/icon-384x384.png" />
<link rel="apple-touch-icon" sizes="512x512" href="assets/icon/icon-512x512.png" />
<link rel="icon" type="image/png" sizes="32x32" href="assets/icon/icon-512x512.png" />
<link rel="icon" type="image/png" href="assets/icon/icon-512x512.png" />
<!--vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!--script-->
<script src="assets/js/data.js"></script>
<script defer type="text/javascript">
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register(`service-worker.js`).then(function () {
console.log("Service Worker Registered");
});
}
</script>
<script defer src="assets/js/settings.js"></script>
<script defer src="assets/js/install-handler.js"></script>
<script defer src="assets/js/cache-handler.js"></script>
<script defer src="assets/js/main.js"></script>
<!--others-->
<link rel="manifest" href="manifest.webmanifest" />
<link rel="stylesheet" href="assets/style/css/main.min.css" />
<title>Gititle</title>
</head>
<body>
<section id="sidebar">
<header class="title">
<h1>Gititle</h1>
<p>Git commit message creation helper</p>
</header>
<div id="search">
<svg viewBox="0 0 24 24">
<path
d="m16 6a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2zm7.707 17.707a1 1 0 0 1 -1.414 0l-2.407-2.407a4.457 4.457 0 0 1 -2.386.7 4.5 4.5 0 1 1 4.5-4.5 4.457 4.457 0 0 1 -.7 2.386l2.407 2.407a1 1 0 0 1 0 1.414zm-6.207-3.707a2.5 2.5 0 1 0 -2.5-2.5 2.5 2.5 0 0 0 2.5 2.5zm-4.5 2h-6a3 3 0 0 1 -3-3v-14a3 3 0 0 1 3-3h12a1 1 0 0 1 1 1v8a1 1 0 0 0 2 0v-8a3 3 0 0 0 -3-3h-12a5.006 5.006 0 0 0 -5 5v14a5.006 5.006 0 0 0 5 5h6a1 1 0 0 0 0-2z"
/>
</svg>
<input type="text" placeholder="Search..." v-model="searchKeyword" @input="search" />
</div>
<article class="commit-message">
<header>
<button id="emoji" onclick="view_emoji()">π¨</button>
<button id="type" onclick="view_type()">refactor</button>
<button id="scope" onclick="view_type()"></button>:
<input
type="text"
id="shortSummary"
placeholder="make log easier (#123)"
onclick="view_keyword()"
/>
</header>
<textarea
id="commitBody"
placeholder="* Refactor thread life cycle management * Simplify save_log()"
onclick="view_keyword()"
></textarea>
<textarea
id="commitFooter"
placeholder="BREAKING CHANGE: update log module related to #123"
onclick="view_keyword()"
></textarea>
</article>
<button onclick="copy_button()">
<svg viewBox="0 0 24 24">
<path
d="m13 20a5.006 5.006 0 0 0 5-5v-8.757a3.972 3.972 0 0 0 -1.172-2.829l-2.242-2.242a3.972 3.972 0 0 0 -2.829-1.172h-4.757a5.006 5.006 0 0 0 -5 5v10a5.006 5.006 0 0 0 5 5zm-9-5v-10a3 3 0 0 1 3-3s4.919.014 5 .024v1.976a2 2 0 0 0 2 2h1.976c.01.081.024 9 .024 9a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3-3zm18-7v11a5.006 5.006 0 0 1 -5 5h-9a1 1 0 0 1 0-2h9a3 3 0 0 0 3-3v-11a1 1 0 0 1 2 0z"
/></svg
><span>Copy</span>
</button>
<button onclick="view_log()">
<svg viewBox="0 0 24 24">
<path
d="m23 11a1 1 0 0 0 -1 1 10.034 10.034 0 1 1 -2.9-7.021.862.862 0 0 1 -.1.021h-3a1 1 0 0 0 0 2h3a3 3 0 0 0 3-3v-3a1 1 0 0 0 -2 0v2.065a11.994 11.994 0 1 0 4 8.935 1 1 0 0 0 -1-1z"
/>
<path
d="m12 6a1 1 0 0 0 -1 1v5a1 1 0 0 0 .293.707l3 3a1 1 0 0 0 1.414-1.414l-2.707-2.707v-4.586a1 1 0 0 0 -1-1z"
/></svg
><span>Recent copied commits</span>
</button>
<a href="https://github.com/HyeokjaeLee/gititle">
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<title>GitHub</title>
<path
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
/>
</svg>
<span>GitHub</span>
</a>
<button class="downloadButton">
<svg version="1.1" viewBox="0 0 1000 1000" class="sidebar-icon">
<g transform="translate(0.000000,511.000000) scale(0.100000,-0.100000)">
<path
d="M4387,4490.9C2970.8,4309.4,1660.5,3487,892.3,2301.6C79.2,1043.2-118.7-476.7,347.9-1893c221.5-674,551.4-1237.2,1051-1793.3c181.5-202.7,530.2-513.8,626.8-556.2c238-106,525.5,82.5,523.2,344.1c-2.3,58.9-14.1,132-30.6,160.2c-16.5,25.9-169.7,183.8-341.7,348.8c-591.5,565.6-954.4,1157.1-1166.5,1897C899.3-1108.3,866.3-853.8,866.3-373C864,98.3,882.8,260.8,986.5,663.8C1337.7,2035.4,2358,3119.4,3710.7,3562.4c487.8,157.9,695.2,188.5,1300.8,188.5c556.2,0,728.2-21.2,1154.7-146.1c1449.3-419.5,2563.9-1619,2884.5-3106c212.1-978,54.2-2024.3-436-2891.5c-233.3-414.7-492.5-732.9-900.2-1100.5c-242.7-221.5-287.5-287.5-287.5-414.7c0-256.9,233.3-438.3,473.7-367.6c108.4,33,313.4,195.6,575,459.5c784.7,787.1,1289,1859.3,1402.2,2981c99,996.8-136.7,2066.7-648.1,2936.3c-761.2,1293.8-2076.1,2170.4-3565.5,2377.8C5379.2,4519.2,4660.4,4526.2,4387,4490.9z"
/>
<path
d="M4874.9,2527.9c-115.5-42.4-150.8-75.4-207.4-181.5c-42.4-87.2-44.8-160.2-44.8-1970.1v-1880.5l-511.4,511.4C3828.5-712.4,3574-472,3545.7-457.9c-28.3,14.2-99,25.9-155.5,25.9c-256.9,0-445.4-292.2-337-523.2c21.2-44.8,428.9-469,904.9-942.6c935.6-933.2,916.7-919.1,1128.8-879c77.8,14.1,202.7,127.2,954.4,879c476,473.7,881.3,895.5,902.6,937.9c80.1,172,0,412.4-162.6,490.2c-91.9,42.4-252.1,49.5-327.5,11.8c-28.3-14.1-282.8-254.5-563.2-534.9l-513.7-511.4V381v1885.3l-54.2,94.3c-33,61.3-87.2,113.1-157.9,148.5C5044.5,2567.9,4999.8,2570.3,4874.9,2527.9z"
/>
<path
d="M3409.1-3575.6c-157.9-68.3-247.4-249.8-214.4-426.5c21.2-110.8,139-240.4,245.1-271c58.9-18.8,584.4-23.6,1611.9-18.8c1496.4,7.1,1524.7,7.1,1588.3,56.5c124.9,91.9,162.6,167.3,162.6,315.8s-37.7,223.9-162.6,315.8c-63.6,49.5-89.5,49.5-1611.9,54.2C3776.7-3545,3465.6-3549.7,3409.1-3575.6z"
/>
</g></svg
><span>Install Gititle</span>
</button>
<footer id="version"></footer>
</section>
<main id="contents">
<section id="searchResults">
<p class="no-result">
{{searchedItems.emoji.length+searchedItems.type.length+searchedItems.keyword.length===0?`No
result found :(`:""}}
</p>
<h2>{{searchedItems.emoji.length>0?"Emoji":""}}</h2>
<dl
v-for="emoji in searchedItems.emoji"
class="searched-item"
v-on:click="set_emoji(emoji.content)"
>
<dt>{{emoji.content}}</dt>
<dd>{{emoji.description}}</dd>
</dl>
<h2>{{searchedItems.type.length>0?"Type":""}}</h2>
<dl
v-for="type in searchedItems.type"
class="searched-item"
v-on:click="set_type(type.content)"
>
<dt>{{type.content}}</dt>
<dd>{{type.description}}</dd>
</dl>
<h2>{{searchedItems.keyword.length>0?"Keyword":""}}</h2>
<dl v-for="keyword in searchedItems.keyword" class="searched-item">
<dt>{{keyword.content}}</dt>
<dd>{{keyword.description}}</dd>
</dl>
</section>
<section class="item-wrap" id="emojiSection">
<dl v-for="emoji in emojiList" class="item small" v-on:click="set_emoji(emoji.content)">
<dt class="content emoji">{{emoji.content}}</dt>
<dd class="description">{{emoji.description}}</dd>
</dl>
</section>
<section class="item-wrap" id="keywordSection">
<dl v-for="keyword in keywordList" class="item medium">
<dt class="content keyword">{{keyword.content}}</dt>
<dd class="description">{{keyword.description}}</dd>
<dd class="example">{{keyword.example}}</dd>
</dl>
</section>
<section class="item-wrap" id="typeSection">
<input
type="text"
id="scope-input"
placeholder="Scope"
v-model="scope"
@input="set_scope(scope)"
/>
<dl v-for="type in typeList" class="item large" v-on:click="set_type(type.content)">
<dt class="content type">{{type.content}}</dt>
<dd class="description">{{type.description}}</dd>
</dl>
</section>
<section class="item-wrap" id="logSection">
<article
v-for="copiedLog in copiedLogList"
class="item medium log"
v-on:click="set_from_log(copiedLog)"
>
<h4>
{{`${copiedLog.emoji} ${copiedLog.type+copiedLog.scope}: ${copiedLog.shortSummary}`}}
</h4>
<p>{{copiedLog.body}}</p>
<p>{{copiedLog.footer}}</p>
</article>
</section>
<footer>Β© HyeokjaeLee. All rights reserved. Powered by GitHub Pages.</footer>
</main>
<div id="notification" class="default">
The Commit message has been copied to the clipboard.
</div>
</body>
</html>