Repository navigation
Expand file tree
/
Copy pathpanel.html
More file actions
177 lines (167 loc) · 8.72 KB
/
Copy pathpanel.html
File metadata and controls
177 lines (167 loc) · 8.72 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
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
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="color-scheme" content="dark">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; base-uri 'none'; object-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; connect-src 'none';">
<title>FlowPass</title>
<link rel="stylesheet" href="panel.css">
</head>
<body>
<main class="app-container">
<!-- Multi-layered ambient lighting -->
<div class="ambient-glow-left" aria-hidden="true"></div>
<div class="ambient-glow-right" aria-hidden="true"></div>
<!-- Header Section -->
<header class="app-header">
<div class="brand-wrap">
<div class="brand-icon-box">
<img class="brand-icon" src="assets/icon.png" alt="FlowPass" width="24" height="27" draggable="false">
</div>
<div class="brand-text">
<div class="brand-title-row">
<img class="brand-logotype" src="assets/logo-type.png" alt="FlowPass" height="19" draggable="false">
<span class="version-badge">v1.4.0</span>
<span id="ota-badge" class="ota-badge" hidden>UPDATE</span>
</div>
</div>
</div>
<div class="header-actions">
<button id="report-btn" class="icon-link-btn ota-header-btn" type="button" title="Report an issue on GitHub" aria-label="Report an issue on GitHub" aria-expanded="false">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M8 2l1.88 1.88M14.12 3.88L16 2M9 7.13v-1a3.003 3.003 0 1 1 6 0v1"></path>
<path d="M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6"></path>
<path d="M12 20v-9M6.53 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M20.97 5c0 2.1-1.6 3.8-3.5 4M22 13h-4M17.2 17c2.1.1 3.8 1.9 3.8 4"></path>
</svg>
<span id="error-indicator" class="error-btn-indicator" hidden></span>
</button>
<button id="ota-btn" class="icon-link-btn ota-header-btn" type="button" title="Check for OTA updates" aria-label="Check for OTA updates">
<svg class="ota-sync-icon" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"></path>
</svg>
<span id="ota-indicator" class="ota-btn-indicator" hidden></span>
</button>
<a href="info.html" target="_blank" rel="noopener noreferrer" class="icon-link-btn" title="Documentation & Guide" aria-label="Documentation and Guide">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<path d="M12 16v-4"></path>
<path d="M12 8h.01"></path>
</svg>
</a>
</div>
</header>
<!-- Hero Status Card -->
<section id="status-card" class="card hero-status-card" data-state="idle">
<div class="status-top-bar">
<div class="status-pill status-pill--idle">
<span class="status-ping" aria-hidden="true"></span>
<span class="status-dot"></span>
<span class="status-pill-text">CHECKING</span>
</div>
</div>
<!-- Centered Power Control -->
<div class="power-control">
<button id="toggle" class="power-btn" role="switch" aria-checked="false" aria-label="Enable Protection Engine" title="Toggle Protection Engine" disabled>
<svg class="power-icon" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path>
<line x1="12" y1="2" x2="12" y2="12"></line>
</svg>
</button>
</div>
<div class="status-body">
<h2 id="status-title" class="status-title" aria-live="polite">Checking…</h2>
<!-- Compatibility anchor for legacy scripts -->
<div id="status" class="legacy-status-anchor" aria-hidden="true">
<span class="status-dot"></span>
<span class="status-text"></span>
</div>
</div>
</section>
<!-- OTA Release Notification Banner (Conditional) -->
<div id="ota-alert" class="ota-alert" hidden>
<div class="ota-alert-body">
<span class="ota-alert-pulse" aria-hidden="true"></span>
<div class="ota-alert-text">
<span id="ota-alert-title" class="ota-alert-title">Update Available</span>
<span id="ota-alert-desc" class="ota-alert-desc">New version ready with updated Flow support.</span>
</div>
</div>
<a id="ota-alert-btn" class="ota-alert-btn" href="https://github.com/zephinax/flowpass/releases/latest" target="_blank" rel="noopener noreferrer">
Get
</a>
</div>
<!-- Action Controls -->
<div class="actions-group">
<button id="open" class="btn btn-primary" type="button" title="Open Google Flow">
<svg class="btn-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path>
<polyline points="15 3 21 3 21 9"></polyline>
<line x1="10" y1="14" x2="21" y2="3"></line>
</svg>
<span>Open Flow</span>
</button>
<button id="reload" class="btn btn-secondary" type="button" title="Reload Current Tab" hidden>
<svg class="btn-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"></path>
</svg>
<span id="reload-label">Reload Tab</span>
</button>
</div>
<!-- Error Notification Banner (Conditional) -->
<div id="error-box" class="error-banner" hidden>
<svg class="error-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="8" x2="12" y2="12"></line>
<line x1="12" y1="16" x2="12.01" y2="16"></line>
</svg>
<span id="error" class="error-text" role="alert"></span>
<button id="error-report-btn" class="error-report-btn" type="button">Report</button>
</div>
<!-- GitHub Error Reporting Drawer (Conditional) -->
<section id="report-drawer" class="card report-drawer" hidden>
<div class="report-header">
<div class="report-title-wrap">
<span class="report-title">Report Issue on GitHub</span>
<span id="report-error-count" class="report-count">0 logs</span>
</div>
<button id="report-close-btn" class="report-close-btn" type="button" aria-label="Close report panel" title="Close">×</button>
</div>
<div id="report-log-preview" class="report-log-preview" hidden></div>
<textarea id="report-note" class="report-note" rows="2" maxlength="1000" placeholder="What happened? (optional)"></textarea>
<div class="report-actions">
<button id="submit-github-report" class="btn btn-primary report-submit-btn" type="button">
<span>Open GitHub Issue</span>
</button>
<button id="copy-diagnostics" class="btn btn-secondary report-aux-btn" type="button" title="Copy sanitized diagnostic report">
<span>Copy</span>
</button>
<button id="clear-errors" class="btn btn-secondary report-aux-btn" type="button" title="Clear local error logs" hidden>
<span>Clear</span>
</button>
</div>
<p id="report-feedback" class="report-feedback" aria-live="polite" hidden></p>
</section>
<!-- Footer -->
<footer class="app-footer">
<div class="footer-meta">
<svg class="footer-shield" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
</svg>
<span>Zero Telemetry</span>
</div>
<div class="footer-right">
<button id="ota-status-pill" class="ota-footer-pill" type="button" title="OTA Spec: Synced (v1) — Click to refresh">
<span id="ota-beacon" class="ota-beacon ota-beacon--synced"></span>
<span id="ota-status-text" class="ota-status-text">Spec v1</span>
</button>
<a href="https://zephinax.com" target="_blank" rel="noopener noreferrer" class="footer-link">
zephinax.com
</a>
</div>
</footer>
</main>
<script src="error-reporter.js"></script>
<script src="panel.js"></script>
</body>
</html>