-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
320 lines (299 loc) · 15.8 KB
/
index.html
File metadata and controls
320 lines (299 loc) · 15.8 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InkSight</title>
<link rel="icon" type="image/svg+xml" href="./logo.svg" />
<link rel="stylesheet" href="https://unpkg.com/pdfjs-dist@4.10.38/web/pdf_viewer.css" />
<link rel="stylesheet" href="./src/styles/styles.css" />
<link rel="stylesheet" href="./src/styles/themes.css" />
<link rel="stylesheet" href="./src/styles/workspace-ui.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;600;700&family=Noto+Serif+SC:wght@400;700&display=swap"
rel="stylesheet">
<script>
window.onerror = function (msg, url, line, col, error) {
alert('Error: ' + msg + '\nurl: ' + url + '\nline: ' + line);
console.error('Global Error:', error);
return false;
};
window.addEventListener('error', function (e) {
if (e.target.tagName === 'SCRIPT') {
alert('Script loading error: ' + e.target.src);
}
}, true);
</script>
</head>
<body>
<div id="app-layout" class="app-layout">
<aside id="sidebar" class="sidebar">
<div class="sidebar-header">
<div class="brand">
<div class="brand-copy">
<span class="brand-title brand-wordmark">InkSight</span>
<span class="brand-subtitle">Workspace</span>
</div>
</div>
<div class="sidebar-header-actions">
<button id="sidebar-width-preset" class="icon-btn panel-width-btn" title="Cycle File List Width">
<span class="material-icons-round">width_normal</span>
</button>
<button id="close-sidebar-panel" class="icon-btn close-sidebar-btn" title="Close Library Panel">
<span class="material-icons-round">close</span>
</button>
</div>
</div>
<input type="file" id="file-input" accept=".pdf,.epub,.txt,.md" class="hidden-input" multiple />
<div id="file-list" class="file-list"></div>
</aside>
<div id="resizer-left" class="resizer"></div>
<main id="reader-container" class="reader-container">
<div id="reader-toolbar" class="toolbar">
<div class="toolbar-section toolbar-section-leading">
<button id="toggle-sidebar" class="icon-btn" title="Toggle File List">
<span class="material-icons-round">menu_open</span>
</button>
<button id="toolbar-search" class="icon-btn" title="Search Workspace">
<span class="material-icons-round">search</span>
</button>
<button id="toolbar-sidebar-width-preset" class="icon-btn panel-width-btn" title="Cycle File List Width">
<span class="material-icons-round">width_normal</span>
</button>
<button id="toggle-outline" class="icon-btn" title="Toggle Outline">
<span class="material-icons-round">toc</span>
</button>
</div>
<div class="toolbar-mobile-summary" aria-live="polite">
<span id="mobile-doc-summary" class="toolbar-mobile-title">No doc</span>
<span id="mobile-page-info" class="toolbar-mobile-meta">—</span>
</div>
<div class="toolbar-section toolbar-section-center">
<div class="toolbar-doc-block">
<div class="toolbar-doc-copy">
<div id="doc-title" class="text-two-line" title="No doc">No doc</div>
</div>
<div class="toolbar-doc-actions">
<div class="toolbar-action-group" aria-label="Project actions">
<button id="toolbar-import-documents" class="icon-btn small action-pill" title="Import Documents" aria-label="Import Documents">
<span class="material-icons-round">library_add</span>
</button>
<button id="toolbar-open-project" class="icon-btn small action-pill" title="Open Project Folder" aria-label="Open Project Folder">
<span class="material-icons-round">folder_open</span>
</button>
<button id="toolbar-save-project" class="icon-btn small action-pill" title="Save Project Folder" aria-label="Save Project Folder">
<span class="material-icons-round">save</span>
</button>
</div>
<div class="toolbar-action-group subtle" aria-label="Export actions">
<button id="toolbar-export-outline" class="icon-btn small action-pill" title="Export Markdown Outline" aria-label="Export Markdown Outline">
<span class="material-icons-round">segment</span>
</button>
<button id="toolbar-export-citations" class="icon-btn small action-pill" title="Export Citation List" aria-label="Export Citation List">
<span class="material-icons-round">format_quote</span>
</button>
<button id="toolbar-export-notes" class="icon-btn small action-pill" title="Export Reading Notes Package" aria-label="Export Reading Notes Package">
<span class="material-icons-round">note_add</span>
</button>
</div>
</div>
</div>
<div class="workspace-mode-group" role="tablist" aria-label="Workspace mode">
<button id="workspace-mode-reading" class="workspace-mode-btn active" type="button" role="tab" aria-selected="true">
<span class="material-icons-round">auto_stories</span>
Read
</button>
<button id="workspace-mode-capture" class="workspace-mode-btn" type="button" role="tab" aria-selected="false">
<span class="material-icons-round">edit_note</span>
Capture
</button>
<button id="workspace-mode-map" class="workspace-mode-btn" type="button" role="tab" aria-selected="false">
<span class="material-icons-round">account_tree</span>
Map
</button>
</div>
</div>
<div class="toolbar-section toolbar-section-trailing">
<button id="toggle-mobile-tools" class="icon-btn" title="Toggle Reader Tools" aria-expanded="false">
<span class="material-icons-round">more_horiz</span>
</button>
<button id="toolbar-notes-width-preset" class="icon-btn panel-width-btn" title="Cycle Notes Width">
<span class="material-icons-round">width_wide</span>
</button>
<button id="toggle-notes" class="icon-btn" title="Toggle Notes">
<span class="material-icons-round">vertical_split</span>
</button>
</div>
</div>
<div id="mobile-context-bar" class="mobile-context-bar" aria-label="Mobile reading controls">
<div class="mobile-context-row page-nav-row">
<div class="mobile-page-nav-group">
<button id="mobile-prev-page" class="icon-btn" disabled>
<span class="material-icons-round">chevron_left</span>
</button>
<span id="mobile-context-page-info">—</span>
<button id="mobile-next-page" class="icon-btn" disabled>
<span class="material-icons-round">chevron_right</span>
</button>
</div>
</div>
<div class="mobile-context-row">
<div class="mobile-workspace-mode-group" role="tablist" aria-label="Mobile workspace mode">
<button id="mobile-workspace-mode-reading" class="workspace-mode-btn active" type="button" role="tab" aria-selected="true">
Read
</button>
<button id="mobile-workspace-mode-capture" class="workspace-mode-btn" type="button" role="tab" aria-selected="false">
Capture
</button>
<button id="mobile-workspace-mode-map" class="workspace-mode-btn" type="button" role="tab" aria-selected="false">
Map
</button>
</div>
</div>
<div class="mobile-context-row mobile-project-actions" aria-label="Mobile project actions">
<button id="mobile-import-documents" class="mobile-project-btn primary" type="button"><span class="material-icons-round">library_add</span><span>Import</span></button>
<button id="mobile-open-project" class="mobile-project-btn" type="button"><span class="material-icons-round">folder_open</span><span>Open</span></button>
<button id="mobile-save-project" class="mobile-project-btn" type="button"><span class="material-icons-round">save</span><span>Save</span></button>
</div>
<div class="mobile-context-row mobile-project-actions" aria-label="Mobile export actions">
<button id="mobile-export-outline" class="mobile-project-btn subtle" type="button"><span class="material-icons-round">segment</span><span>Outline</span></button>
<button id="mobile-export-citations" class="mobile-project-btn subtle" type="button"><span class="material-icons-round">format_quote</span><span>Cite</span></button>
<button id="mobile-export-notes" class="mobile-project-btn subtle" type="button"><span class="material-icons-round">note_add</span><span>Notes</span></button>
</div>
</div>
<div id="reader-content-wrapper" class="reader-content-wrapper">
<div id="workspace-search-panel" class="workspace-search-panel" aria-label="Workspace search">
<div class="workspace-search-header">
<span class="material-icons-round">search</span>
<input id="workspace-search-input" type="search" placeholder="Search documents, cards, and highlights" />
</div>
<div id="workspace-search-empty" class="workspace-search-empty">Type to search across documents, cards, and highlights.</div>
<div id="workspace-search-results" class="workspace-search-results"></div>
</div>
<div id="outline-sidebar" class="outline-sidebar collapsed">
<div class="outline-header">
<div class="panel-title-group">
<span class="panel-title-text">Outline</span>
</div>
<div class="panel-actions">
<button id="close-outline-panel" class="icon-btn close-outline-btn" title="Close Outline">
<span class="material-icons-round">close</span>
</button>
</div>
</div>
<div id="outline-content" class="outline-content">
<div class="outline-empty">No outline available</div>
</div>
</div>
<div id="viewer" class="viewer">
<div class="empty-state">
<span class="material-icons-round" style="font-size: 48px; color: var(--text-secondary);">library_books</span>
<p>Loading workspace...</p>
</div>
</div>
<div class="page-nav-group page-nav-floating">
<button id="prev-page" class="icon-btn" disabled>
<span class="material-icons-round">chevron_left</span>
</button>
<span id="page-info">—</span>
<button id="next-page" class="icon-btn" disabled>
<span class="material-icons-round">chevron_right</span>
</button>
</div>
<div id="selection-mode-floating" class="selection-mode-group selection-mode-floating">
<button id="selection-mode-drag-handle" class="icon-btn selection-mode-drag-handle" type="button" title="Drag Toolbar" aria-label="Drag toolbar">
<span class="material-icons-round">drag_indicator</span>
</button>
<button id="pan-mode" class="icon-btn mode-btn" title="Pan">
<span class="material-icons-round">pan_tool</span>
</button>
<button id="text-mode" class="icon-btn mode-btn active" title="Text Selection">
<span class="material-icons-round">text_fields</span>
</button>
<button id="rect-mode" class="icon-btn mode-btn" title="Rectangle Selection">
<span class="material-icons-round">crop_square</span>
</button>
<button id="ellipse-mode" class="icon-btn mode-btn" title="Ellipse Selection">
<span class="material-icons-round">circle</span>
</button>
<button id="highlighter-mode" class="icon-btn mode-btn" data-mode="highlighter" title="Highlighter">
<span class="material-icons-round">edit</span>
</button>
</div>
<div id="highlighter-panel" class="highlighter-panel">
<div class="panel-title">Highlighter Size</div>
<div class="slider-container">
<div class="slider-track-visual"></div>
<input type="range" id="highlighter-height" min="8" max="48" value="16" step="4">
</div>
<div class="height-labels">
<span>Thin</span>
<span>Mid</span>
<span>Bold</span>
</div>
</div>
</div>
</main>
<div id="resizer-right" class="resizer"></div>
<aside id="notes-panel" class="notes-panel">
<div class="panel-header notes-header">
<div class="panel-title-group">
<button id="toggle-annotations" class="icon-btn active annotations-toggle-btn" title="Toggle Annotations List">
<span class="material-icons-round">view_sidebar</span>
</button>
<span class="panel-title-text">Mind Map & Notes</span>
</div>
<div class="panel-actions">
<div class="mobile-notes-switch" role="tablist" aria-label="Notes view switcher">
<button id="show-annotations" class="notes-view-btn active" type="button" role="tab" aria-selected="true">
Notes
</button>
<button id="show-mindmap" class="notes-view-btn" type="button" role="tab" aria-selected="false">
Map
</button>
</div>
<button id="notes-width-preset" class="icon-btn small panel-width-btn" title="Cycle Notes Width">
<span class="material-icons-round">width_wide</span>
</button>
<button id="layout-btn" class="icon-btn small" title="Auto Layout">
<span class="material-icons-round">auto_fix_high</span>
</button>
<button id="layout-by-source-btn" class="icon-btn small" title="Organize By Source">
<span class="material-icons-round">account_tree</span>
</button>
<button id="layout-by-time-btn" class="icon-btn small" title="Organize By Time">
<span class="material-icons-round">schedule</span>
</button>
<button id="layout-loose-btn" class="icon-btn small" title="Collect Loose Cards">
<span class="material-icons-round">join_right</span>
</button>
<button id="close-notes-panel" class="icon-btn small close-notes-btn" title="Close Notes Panel">
<span class="material-icons-round">close</span>
</button>
</div>
</div>
<div class="panel-content">
<div id="annotation-list" class="annotation-list">
<div class="empty-state">
<span class="material-icons-round">edit_note</span>
<p>No annotations yet</p>
</div>
</div>
<div id="notes-inner-resizer" class="notes-inner-resizer" aria-hidden="true"></div>
<div id="mindmap-container" class="mindmap-container">
<div class="mindmap-placeholder">
<span class="material-icons-round">psychology</span>
<p>Select text to create nodes</p>
</div>
<div id="mindmap-doc-info" class="doc-info-badge" style="display: none;"></div>
</div>
</div>
</aside>
</div>
<div id="panel-backdrop" class="panel-backdrop" aria-hidden="true"></div>
<div id="save-status-indicator" class="save-status-indicator" aria-live="polite" aria-atomic="true"></div>
<div id="app-notifications" class="app-notifications" aria-live="polite" aria-atomic="true"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>