-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
95 lines (88 loc) · 3.39 KB
/
popup.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
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">
<meta name="description" content="AI-powered tab management and organization">
<title>AI Tab Manager</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="app-container">
<header class="app-header">
<div class="header-content">
<h1>AI Tab Manager</h1>
<button id="dark-mode-toggle" class="toggle-button" aria-label="Toggle dark mode">
🌓
</button>
<div class="header-actions">
<button
id="analyze-tabs"
class="primary-button"
aria-label="Analyze and group current tabs">
<svg class="button-icon" viewBox="0 0 24 24" width="16" height="16">
<path fill="currentColor" d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/>
</svg>
Analyze & Group Tabs
</button>
</div>
</div>
</header>
<main class="app-main">
<div class="workspace-section">
<div class="workspace-header">
<h2>Workspaces</h2>
<div class="search-container">
<svg class="search-icon" viewBox="0 0 24 24" width="16" height="16">
<path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
</svg>
<input
type="text"
id="search-workspaces"
placeholder="Search workspaces..."
aria-label="Search workspaces"
autocomplete="off"
>
</div>
</div>
<div id="workspace-list" class="workspace-list" role="list">
<!-- Workspace cards will be dynamically inserted here -->
</div>
</div>
<div class="tabs-section">
<div class="tabs-header">
<h2>Tabs in Workspace</h2>
</div>
<div id="tabs-container" class="tabs-container" role="tree">
<!-- Tab tree will be dynamically inserted here -->
</div>
</div>
</main>
<div id="status-message" class="status-message" role="alert" aria-live="polite">
<!-- Status messages will be dynamically inserted here -->
</div>
<div id="loading-spinner" class="loading-spinner hidden">
<div class="spinner"></div>
<span>Processing...</span>
</div>
</div>
<template id="workspace-card-template">
<div class="workspace-card" role="listitem">
<input type="text" class="workspace-title" aria-label="Workspace name">
<div class="workspace-controls">
<span class="tab-count"></span>
<button class="open-button" aria-label="Open workspace">Open</button>
<button class="delete-button" aria-label="Delete workspace">×</button>
</div>
</div>
</template>
<template id="tab-card-template">
<div class="tab-card" role="treeitem">
<img class="tab-icon" width="16" height="16" alt="">
<a href="#" class="tab-name"></a>
<span class="domain-badge"></span>
</div>
</template>
<script src="popup.js" type="module"></script>
</body>
</html>