-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpopup.html
More file actions
95 lines (87 loc) · 4.44 KB
/
Copy pathpopup.html
File metadata and controls
95 lines (87 loc) · 4.44 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proxy Switcher</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<div class="container">
<!-- Header with status indicator -->
<header class="header">
<div class="status-bar">
<div class="status-indicator" id="statusIndicator">
<span class="status-text" id="statusText">System</span>
</div>
<button class="settings-btn" id="settingsBtn" title="Settings" aria-label="Open settings" role="button" tabindex="0">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="12" cy="12" r="3"></circle>
<path d="M12 1v6m0 6v6m4.22-13.22l4.24 4.24M1.54 1.54l4.24 4.24M21 12h-6m-6 0H3m13.22 4.22l4.24 4.24M1.54 21.54l4.24 4.24"></path>
</svg>
</button>
</div>
</header>
<!-- Quick Actions -->
<section class="quick-actions" role="region" aria-label="Quick proxy settings">
<button class="action-card" id="directConnection" data-mode="direct" role="button" tabindex="0">
<div class="action-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<line x1="5" y1="12" x2="19" y2="12"></line>
<polyline points="12 5 19 12 12 19"></polyline>
</svg>
</div>
<div class="action-content">
<h3>Direct</h3>
<p>Bypass all proxies</p>
</div>
</button>
<button class="action-card" id="systemProxy" data-mode="system" role="button" tabindex="0">
<div class="action-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="9" y1="9" x2="15" y2="15"></line>
<line x1="15" y1="9" x2="9" y2="15"></line>
</svg>
</div>
<div class="action-content">
<h3>System</h3>
<p>Use system settings</p>
</div>
</button>
</section>
<!-- Divider -->
<div class="divider"></div>
<!-- Profile List -->
<section class="profiles-section" role="region" aria-label="Proxy profiles">
<div class="section-header">
<h2>Proxy Profiles</h2>
<button class="add-profile-btn" id="addProfileBtn" title="Add Profile" aria-label="Add new proxy profile" role="button" tabindex="0">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<line x1="12" y1="5" x2="12" y2="19"></line>
<line x1="5" y1="12" x2="19" y2="12"></line>
</svg>
</button>
</div>
<div class="profiles-list" id="profilesList" role="list" aria-label="List of proxy profiles">
<!-- Profile items will be dynamically added here -->
</div>
<div class="empty-state" id="emptyState" style="display: none;">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.3">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="16"></line>
<line x1="8" y1="12" x2="16" y2="12"></line>
</svg>
<p>No proxy profiles yet</p>
<button class="empty-state-btn">Add your first profile</button>
</div>
</section>
<!-- Footer -->
<footer class="footer" role="contentinfo">
<button class="footer-link" id="helpBtn" tabindex="0">Help</button>
<button class="footer-link" id="donateBtn" tabindex="0">Donate</button>
</footer>
</div>
<script src="popup.js" type="module"></script>
</body>
</html>