-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewtab.html
More file actions
275 lines (265 loc) · 11.7 KB
/
Copy pathnewtab.html
File metadata and controls
275 lines (265 loc) · 11.7 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>TabManager</title>
<link rel="icon" href="icons/icon32.png" />
<link rel="stylesheet" href="newtab.css" />
</head>
<body>
<div class="workspace">
<aside id="sidebar" class="sidebar">
<div class="sidebar-rail">
<button
id="refreshTabs"
class="tab-count"
type="button"
title="Refresh current tabs"
data-i18n-title="action.refreshCurrentTabs"
>
<span id="currentTabCount">0</span>
</button>
<button
id="toggleSidebar"
class="rail-button"
type="button"
title="Pin tab list"
data-i18n-title="action.pinTabList"
>
<span aria-hidden="true" class="rail-split-icon"></span>
</button>
<button
id="createEmptyProject"
class="rail-button"
type="button"
title="Create group"
data-i18n-title="action.createGroup"
>
<span aria-hidden="true">+</span>
</button>
</div>
<div class="session-panel">
<section class="tab-session">
<div class="session-heading">
<span class="session-icon" aria-hidden="true"></span>
<div>
<h2 data-i18n="sidebar.currentWindow">Current window</h2>
<p id="selectedTabSummary">No tabs selected</p>
</div>
</div>
<div id="currentTabs" class="current-tabs" role="list"></div>
</section>
<footer class="sidebar-footer">
<div id="selectedTabActions" class="selected-tab-actions" hidden>
<button id="saveSelectedNewProject" type="button" data-i18n="action.newGroup">New group</button>
<div class="add-to-group-wrap">
<button
id="saveSelectedActiveProject"
type="button"
aria-haspopup="menu"
aria-expanded="false"
>
<span data-i18n="action.addToGroup">Add to group</span>
</button>
<div id="addToGroupMenu" class="add-to-group-menu" role="menu" hidden></div>
</div>
</div>
<label class="filter-box">
<span aria-hidden="true">Search</span>
<input
id="tabFilter"
type="search"
placeholder="Filter tabs"
data-i18n-placeholder="search.filterTabs"
autocomplete="off"
/>
<kbd>S</kbd>
</label>
</footer>
</div>
</aside>
<main class="board-shell">
<header class="board-topbar">
<div class="top-left">
<span class="board-icon" aria-hidden="true">
<img class="board-icon-image" src="icons/icon32.png" alt="" />
</span>
<div class="mode-toolbar">
<nav id="modeTabs" class="mode-tabs" aria-label="Board pages" data-i18n-aria-label="nav.boardPages"></nav>
<button
id="createTopPage"
class="toolbar-button create-top-page"
type="button"
title="Create page"
data-i18n-title="action.createPage"
>
<span aria-hidden="true">+</span>
</button>
</div>
</div>
<div class="top-actions">
<button id="openHelp" class="toolbar-button help-button" type="button" title="Help" data-i18n-title="help.open">
<span class="book-icon" aria-hidden="true"></span>
<span class="help-label" data-i18n="help.label">Help</span>
</button>
<label class="board-search" title="Search saved links" data-i18n-title="search.savedLinks">
<span aria-hidden="true">Search</span>
<input
id="boardSearch"
type="search"
placeholder="Search links"
data-i18n-placeholder="search.links"
autocomplete="off"
/>
</label>
<button id="openSettings" class="toolbar-button" type="button" title="Settings" data-i18n-title="settings.title">
<span class="settings-icon" aria-hidden="true">⚙</span>
</button>
</div>
</header>
<section class="board-viewport" aria-label="Project board" data-i18n-aria-label="board.projectBoard">
<div id="projectBoard" class="project-board"></div>
<div id="addGroupSpace" class="add-group-space" hidden>
<button
id="addGroupButton"
class="add-group-button"
type="button"
title="Create group"
data-i18n-title="action.createGroup"
>
<span class="add-group-space-control" aria-hidden="true">+</span>
<span class="add-group-space-label" data-i18n="action.createGroup">Create group</span>
</button>
</div>
<section id="emptyCategory" class="empty-category" aria-label="Empty category" data-i18n-aria-label="empty.category">
<div class="empty-category-art" aria-hidden="true">
<div class="empty-category-card">
<span class="empty-category-arrow"></span>
</div>
</div>
<h2 data-i18n="empty.title">Drag tabs here to create your first group</h2>
<p data-i18n="empty.body">Drop one or more tabs from Current window into this space to save them as a new group.</p>
<div class="empty-category-hints" aria-hidden="true">
<span data-i18n="empty.selectTabs">Select tabs</span>
<span data-i18n="empty.dragHere">Drag here</span>
<span data-i18n="action.createGroup">Create group</span>
</div>
</section>
</section>
<div class="bottom-brand" data-i18n="app.brand">TabManager - New tab workspace</div>
</main>
</div>
<div id="pageTrashDrop" class="page-trash-drop" aria-hidden="true" hidden>
<div class="page-trash-card">
<span class="page-trash-icon" aria-hidden="true"></span>
<strong data-i18n="page.dropToDelete">Drop to delete page</strong>
</div>
</div>
<aside id="settingsPanel" class="settings-panel" aria-hidden="true">
<header class="settings-header">
<h2 data-i18n="settings.title">Settings</h2>
<button id="closeSettings" type="button" title="Close settings" data-i18n-title="settings.close">x</button>
</header>
<div class="settings-list">
<label class="setting-row">
<span>
<strong data-i18n="settings.language.title">Language</strong>
<small data-i18n="settings.language.desc">Change the board language.</small>
</span>
<select id="settingLanguage" aria-label="Language" data-i18n-aria-label="settings.language.title">
<option value="en">English</option>
<option value="ko">한국어</option>
<option value="zh">中文</option>
<option value="ja">日本語</option>
</select>
</label>
<label class="setting-row">
<span>
<strong data-i18n="settings.openLinks.title">Open links in current tab</strong>
<small data-i18n="settings.openLinks.desc">Replace the current tab instead of opening a separate tab.</small>
</span>
<input id="settingOpenLinksCurrentTab" type="checkbox" />
</label>
<label class="setting-row">
<span>
<strong data-i18n="settings.focusTab.title">Switch to opened tab</strong>
<small data-i18n="settings.focusTab.desc">Move Chrome focus to the newly opened tab after opening links.</small>
</span>
<input id="settingFocusOpenedTab" type="checkbox" checked />
</label>
<label class="setting-row">
<span>
<strong data-i18n="settings.savedFirst.title">Put saved groups first</strong>
<small data-i18n="settings.savedFirst.desc">Show groups with saved links before empty groups.</small>
</span>
<input id="settingSavedGroupsFirst" type="checkbox" />
</label>
<label class="setting-row">
<span>
<strong data-i18n="settings.openSitesAsGroup.title">Open sites as Chrome group</strong>
<small data-i18n="settings.openSitesAsGroup.desc">Use the sites button to open links as a named Chrome tab group.</small>
</span>
<input id="settingOpenSitesAsGroup" type="checkbox" checked />
</label>
<label class="setting-row">
<span>
<strong data-i18n="settings.darkMode.title">Dark mode</strong>
<small data-i18n="settings.darkMode.desc">Use a darker board and card theme.</small>
</span>
<input id="settingDarkMode" type="checkbox" />
</label>
</div>
<section id="backupSection" class="backup-section" aria-label="Backup & transfer" data-i18n-aria-label="backup.title">
<div>
<h3 data-i18n="backup.title">Backup & transfer</h3>
<p data-i18n="backup.desc">Export a compressed backup file or import one to restore this workspace.</p>
</div>
<div class="backup-actions">
<button id="importBackup" class="backup-button" type="button" data-i18n="backup.import">Import</button>
<button id="exportBackup" class="backup-button is-primary" type="button" data-i18n="backup.export">Export</button>
</div>
<input
id="backupFileInput"
type="file"
accept=".json,.gz,.gzip,.tabmanager,application/json,application/gzip"
data-i18n-aria-label="backup.import"
hidden
/>
</section>
<section class="deleted-section" aria-label="Recently deleted" data-i18n-aria-label="deleted.recentlyDeleted">
<h3 data-i18n="deleted.recentlyDeleted">Recently deleted</h3>
<div class="deleted-block">
<div class="deleted-block-title" data-i18n="deleted.tabs">Tabs</div>
<div id="deletedLinksList" class="deleted-list"></div>
</div>
<div class="deleted-block">
<div class="deleted-block-title" data-i18n="deleted.groups">Groups</div>
<div id="deletedGroupsList" class="deleted-list"></div>
</div>
</section>
</aside>
<div id="helpModal" class="help-modal" role="dialog" aria-modal="true" aria-hidden="true" aria-labelledby="helpTitle">
<div class="help-card">
<header class="help-header">
<span id="helpKicker" class="help-kicker">1 / 4</span>
<button id="closeHelp" type="button" title="Close help" data-i18n-title="help.close">x</button>
</header>
<div id="helpVisual" class="help-visual" data-visual="pages" aria-hidden="true">
<span class="help-visual-book"></span>
<span class="help-visual-card"></span>
<span class="help-visual-line"></span>
</div>
<h2 id="helpTitle"></h2>
<p id="helpBody"></p>
<div id="helpDots" class="help-dots" aria-label="Help pages" data-i18n-aria-label="help.pages"></div>
<footer class="help-actions">
<button id="helpPrev" type="button" data-i18n="help.previous">Previous</button>
<button id="helpNext" type="button" data-i18n="help.next">Next</button>
</footer>
</div>
</div>
<div id="toast" class="toast" role="status" aria-live="polite"></div>
<script src="newtab.js"></script>
</body>
</html>