Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fancy-squids-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"commitcrawler": minor
---

히스토리 기능 추가
192 changes: 124 additions & 68 deletions public/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,88 +369,144 @@
outline: none;
border-color: #339af0;
}
.tab-header {
display: flex;
gap: 0;
margin-bottom: 20px;
border-bottom: 2px solid #e9ecef;
background: #f8f9fa;
}
.tab-button {
flex: 1;
padding: 16px 0 12px 0;
background: none;
border: none;
font-size: 16px;
font-weight: 600;
color: #868e96;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: color 0.2s, border-bottom 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.tab-button.active {
color: #339af0;
border-bottom: 2px solid #339af0;
background: #fff;
}
.tab-button:focus {
outline: none;
}
</style>
</head>
<body>
<div class="container">
<div class="editor-section">
<div class="button-container">
<div class="header">
<button id="startButton" class="button">
Commit 메세지 불러오기
</button>
<button
id="toggleRegexButton"
class="icon-button"
title="정규식 설정"
>
<svg viewBox="0 0 24 24" width="20" height="20">
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z"
/>
</svg>
</button>
</div>
<div id="regexInputContainer" class="regex-input-container hidden">
<div class="regex-inputs">
<div class="input-wrapper">
<label class="input-label" for="ticketRegexInput"
>키 추출 정규식</label
>
<div class="input-group">
<input
type="text"
id="ticketRegexInput"
class="regex-input"
placeholder="예: [A-Z]+-\d+"
<div class="tab-header">
<button id="tabMain" class="tab-button active">
<span style="font-size: 18px">📝</span>커밋 추출
</button>
<button id="tabHistory" class="tab-button">
<span style="font-size: 18px">📜</span>기록 보기
</button>
</div>
<div id="mainSection">
<div class="button-container">
<div class="header">
<button id="startButton" class="button">
Commit 메세지 불러오기
</button>
<button
id="toggleRegexButton"
class="icon-button"
title="정규식 설정"
>
<svg viewBox="0 0 24 24" width="20" height="20">
<path
d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z"
/>
<button
id="resetRegexButton"
class="icon-button"
title="기본값으로 초기화"
</svg>
</button>
</div>
<div id="regexInputContainer" class="regex-input-container hidden">
<div class="regex-inputs">
<div class="input-wrapper">
<label class="input-label" for="ticketRegexInput"
>키 추출 정규식</label
>
<svg viewBox="0 0 24 24" width="16" height="16">
<path
d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
/>
</svg>
</button>
<div class="input-group">
<input
type="text"
id="ticketRegexInput"
class="regex-input"
placeholder="예: [A-Z]+-\d+"
/>
<button
id="resetRegexButton"
class="icon-button"
title="기본값으로 초기화"
>
<svg viewBox="0 0 24 24" width="16" height="16">
<path
d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
/>
</svg>
</button>
</div>
</div>
</div>
<div class="input-wrapper">
<label class="input-label" for="cleanRegexInput"
>접두사 제거 정규식</label
>
<div class="input-group">
<input
type="text"
id="cleanRegexInput"
class="regex-input"
placeholder="예: feat:|fix:|refactor:"
/>
<button
id="resetCleanRegexButton"
class="icon-button"
title="기본값으로 초기화"
<div class="input-wrapper">
<label class="input-label" for="cleanRegexInput"
>접두사 제거 정규식</label
>
<svg viewBox="0 0 24 24" width="16" height="16">
<path
d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
/>
</svg>
</button>
<div class="input-group">
<input
type="text"
id="cleanRegexInput"
class="regex-input"
placeholder="예: feat:|fix:|refactor:"
/>
<button
id="resetCleanRegexButton"
class="icon-button"
title="기본값으로 초기화"
>
<svg viewBox="0 0 24 24" width="16" height="16">
<path
d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
/>
</svg>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="messageList" class="message-list"></div>
<div class="status-container">
<div class="status-wrapper">
<div class="status-checkbox">
<input type="checkbox" id="summaryCheckbox" checked />
<div id="messageList" class="message-list"></div>
<div class="status-container">
<div class="status-wrapper">
<div class="status-checkbox">
<input type="checkbox" id="summaryCheckbox" checked />
</div>
<div id="status" class="status"></div>
</div>
<div id="status" class="status"></div>
</div>
</div>
<div id="historySection" style="display: none">
<div class="history-list-container">
<h3 style="margin-top: 0">복사 미리보기 기록</h3>
<ul
id="historyList"
class="history-list"
style="padding: 0; list-style: none"
></ul>
<div
id="historyDetail"
class="history-detail"
style="display: none"
></div>
</div>
</div>
</div>
Expand Down
Loading
Loading