-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (72 loc) · 2.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MultiRepoCompare</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="header">
<div class="title-container">
<h1>GitHub Activity Compare</h1>
<h2>Comparing GitHub Development Trends</h2>
</div>
<div class="control-panel">
<select id="timeRange">
<option value="7">One Week</option>
<option value="30">One Month</option>
<option value="90">One Quarter</option>
<option value="180">Half a Year</option>
<option value="365">One Year</option>
<option value="730">Two Years</option>
<option value="all">All Time</option>
</select>
<button id="analyzeBtn">Compare</button>
<button id="accessKeyBtn" class="settings-btn" title="Modify GitHub Access Key">
<i class="fas fa-key"></i>
</button>
<button id="configBtn" class="settings-btn" title="Modify Repository List">
<i class="fas fa-cog"></i>
</button>
</div>
</div>
<div id="loading">Analyzing, please wait…</div>
</div>
<div class="table-container">
<div id="result">
<div class="empty-state">
<i class="fas fa-chart-bar"></i>
<h3>No Data to Display Yet</h3>
<p>Select a time range and click 'Compare' to analyze GitHub repository activity.</p>
</div>
</div>
</div>
<!-- Access Key Modal -->
<div id="accessKeyModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Modify GitHub Access Key</h2>
<p>Please enter your GitHub Personal Access Token:</p>
<input type="text" id="accessKeyInput" placeholder="ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
<button id="saveAccessKey">Save</button>
</div>
</div>
<!-- Config Modal -->
<div id="configModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Modify Repository List</h2>
<p>Please enter the list of GitHub repositories to analyze, one per line, in the format 'username/repository name':</p>
<textarea id="configInput" placeholder="For example:
octocat/Hello-World
microsoft/vscode
facebook/react"></textarea>
<button id="saveConfig">Save</button>
</div>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>