-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
203 lines (182 loc) · 9.42 KB
/
index.html
File metadata and controls
203 lines (182 loc) · 9.42 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Web App Manager</title>
</head>
<body>
<!-- Resize Handles -->
<div class="resizer nw" data-dir="nw"></div>
<div class="resizer n" data-dir="n"></div>
<div class="resizer ne" data-dir="ne"></div>
<div class="resizer e" data-dir="e"></div>
<div class="resizer se" data-dir="se"></div>
<div class="resizer s" data-dir="s"></div>
<div class="resizer sw" data-dir="sw"></div>
<div class="resizer w" data-dir="w"></div>
<div id="app" class="window">
<!-- Header -->
<div class="header-bar">
<div class="header-title-box">
<div class="title">Web Apps</div>
<div class="subtitle">Manage your Web Apps</div>
</div>
<div class="header-end">
<button id="menu-btn" class="icon-btn flat">
<svg width="16" height="16" viewBox="0 0 16 16">
<path fill="currentColor" d="M2 3h12v2H2V3zm0 4h12v2H2V7zm0 4h12v2H2v-2z" />
</svg>
</button>
<div id="menu-dropdown" class="menu-dropdown">
<div class="menu-item" id="menu-item-shortcuts">Keyboard Shortcuts</div>
<div class="menu-item" id="menu-item-about">About</div>
<div class="menu-separator"></div>
<div class="menu-item" id="menu-item-quit">Quit</div>
</div>
<div class="window-controls">
<button id="min-btn" class="icon-btn flat win-btn" title="Minimize">
<svg width="16" height="16" viewBox="0 0 16 16">
<path fill="currentColor" d="M2 8h12v2H2z" />
</svg>
</button>
<button id="max-btn" class="icon-btn flat win-btn" title="Maximize">
<svg width="16" height="16" viewBox="0 0 16 16">
<path fill="currentColor" d="M2 2h12v12H2V2zm2 2v8h8V4H4z" />
</svg>
</button>
<button id="close-btn" class="icon-btn flat win-btn close" title="Close">
<svg width="16" height="16" viewBox="0 0 16 16">
<path fill="currentColor" d="M4 2l-2 2 4 4-4 4 2 2 4-4 4 4 2-2-4-4 4-4-2-2-4 4z" />
</svg>
</button>
</div>
</div>
</div>
<!-- GTK Stack -->
<div id="stack" class="stack">
<!-- Page 1: Main List -->
<div id="page-main" class="page active">
<div class="scrolled-window">
<div id="webapp-list" class="app-list-container"></div>
</div>
<!-- Bottom Toolbar (Centered) -->
<div class="bottom-toolbar">
<div class="button-box">
<button id="add-btn" class="icon-btn tool-btn" title="Add">
<svg width="24" height="24" viewBox="0 0 24 24">
<path fill="currentColor" d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
</svg>
</button>
<button id="remove-btn" class="icon-btn tool-btn" title="Remove" disabled>
<svg width="24" height="24" viewBox="0 0 24 24">
<path fill="currentColor" d="M19 13H5v-2h14v2z" />
</svg>
</button>
<button id="edit-btn" class="icon-btn tool-btn" title="Edit" disabled>
<svg width="24" height="24" viewBox="0 0 24 24">
<path fill="currentColor"
d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" />
</svg>
</button>
<button id="run-btn" class="icon-btn tool-btn" title="Launch" disabled>
<svg width="24" height="24" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z" />
</svg>
</button>
</div>
</div>
</div>
<!-- Page 2: Add/Edit Form -->
<div id="page-form" class="page centered-page">
<div class="form-grid">
<!-- Row 0: Name -->
<label>Name:</label>
<input type="text" id="app-name" placeholder="Website name">
<!-- Row 1: Description -->
<label>Description:</label>
<input type="text" id="app-desc" placeholder="Web App">
<!-- Row 2: Address + Favicon Button -->
<label>Address:</label>
<div class="hbox">
<input type="text" id="app-url" placeholder="https://www.website.com">
<button id="pwa-finder-btn" class="icon-btn" title="PWA Finder: Auto-populate from manifest">
<svg width="16" height="16" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" />
</svg>
</button>
<button id="fetch-icon-btn" class="icon-btn" title="Find icons online">
<svg width="16" height="16" viewBox="0 0 24 24">
<path fill="currentColor"
d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z" />
</svg>
</button>
</div>
<!-- Row 3: Icon -->
<label>Icon:</label>
<button id="icon-picker-btn" class="icon-btn icon-display-btn">
<img id="app-icon-preview" src="./src/assets/webapp-manager.svg">
</button>
<!-- Row 4: Category -->
<label>Category:</label>
<select id="app-category"></select>
<!-- Row 5: Browser -->
<label>Browser:</label>
<select id="app-browser"></select>
<!-- Row 6: Custom Params -->
<label>Custom parameters:</label>
<input type="text" id="app-params" placeholder="Custom browser parameters">
<!-- Row 7: Isolated -->
<label>Isolated profile:</label>
<div class="switch-container">
<label class="switch">
<input type="checkbox" id="app-isolated" checked>
<span class="slider round"></span>
</label>
</div>
<!-- Row 8: Navbar -->
<label>Navigation bar:</label>
<div class="switch-container">
<label class="switch">
<input type="checkbox" id="app-navbar">
<span class="slider round"></span>
</label>
</div>
<!-- Row 9: Private -->
<label>Private/Incognito Window:</label>
<div class="switch-container">
<label class="switch">
<input type="checkbox" id="app-private">
<span class="slider round"></span>
</label>
</div>
<!-- Row 10: Buttons -->
<div class="grid-full-width button-row">
<button id="form-cancel-btn">Cancel</button>
<button id="form-ok-btn" disabled>OK</button>
</div>
</div>
</div>
<!-- Page 3: Favicon Picker -->
<div id="page-favicon" class="page">
<div class="scrolled-window">
<div id="favicon-flow" class="flow-box">
<div class="spinner hidden"></div>
<!-- Icons injected here -->
</div>
</div>
<div class="bottom-toolbar">
<div class="button-box">
<button id="favicon-cancel-btn">Cancel</button>
</div>
</div>
</div>
</div>
<!-- Resize Handle -->
<div id="resize-handle"></div>
</div>
<script src="./src/main.js" type="module"></script>
</body>
</html>