-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
97 lines (94 loc) · 4.02 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mergy</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div id="app">
<div id="header">
<h1>Mergy</h1>
<button id="settings-toggle" class="primary-button">
<img src="images/gear_icon.png" alt="Download" class="button-icon">
<span>settings</span>
</button>
</div>
<div id="settings-panel" style="display: none;">
<div>
<h2>Help?</h2>
<p><a href="https://github.com/betalgo/Mergy/blob/main/Readme.md" target="_blank">Visit</a> our one page
help page if you are new.</p>
</div>
<div id="github-auth">
<h2>GitHub Authentication</h2>
<input type="password" id="github-token" placeholder="Enter GitHub Personal Access Token">
<p> <a href="https://github.com/settings/tokens?type=beta" target="_blank">Create a new GitHub Personal
Access Token</a> with read-only scope.</p>
<button id="save-token" type="button" class="primary-button">Save Token</button>
</div>
<div id="mergyignore-editor">
<h2>Mergy Ignore Rules</h2>
<div class="mergyignore-section">
<h3>Include ONLY if path contains:</h3>
<textarea id="include-path"></textarea>
</div>
<div class="mergyignore-section">
<h3>Include ONLY file extensions:</h3>
<textarea id="include-extension"></textarea>
</div>
<div class="mergyignore-section">
<h3>Exclude if path contains:</h3>
<textarea id="exclude-path"></textarea>
</div>
<div class="mergyignore-section">
<h3>Exclude file extensions:</h3>
<textarea id="exclude-extension"></textarea>
</div>
<button id="save-rules" class="primary-button">Save Rules</button>
</div>
</div>
<div id="main-content">
<div id="repo-info"></div>
<div class="button-container">
<button type="button" id="start-fetch" class="primary-button">
<img src="images/sync_icon.png" alt="Sync" class="button-icon">
<span>Start Fetching Files</span>
</button>
<button id="download-files" class="primary-button" style="display: none;">
<img src="images/download_icon.png" alt="Download" class="button-icon">
<span>Combine and Download</span>
</button>
</div>
<span id="estimated-size"></span>
</div>
<div id="loading" style="display: none;">
<div class="spinner"></div>
<p>Loading...</p>
</div>
<div id="file-list" style="display: none;">
<table>
<thead>
<tr>
<th>Include</th>
<th>Size</th>
<th>Name</th>
<th>Path</th>
</tr>
</thead>
<tbody id="file-table-body"></tbody>
</table>
</div>
<div id="footer">
Developed by <a href="https://betalgo.com/" target="_blank">Betalgo</a> with ❤️ for <a
href="https://www.anthropic.com/" target="_blank">Anthropic</a>'s <a href="https://claude.ai/"
target="_blank">Claude</a>
<br>
Free to use and open source: <a href="https://github.com/betalgo/Mergy" target="_blank">GitHub</a>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>