-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
454 lines (432 loc) · 15.4 KB
/
Copy pathindex.html
File metadata and controls
454 lines (432 loc) · 15.4 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<!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="A focused desktop workbench for running Cline coding agents."
/>
<title>FunCode</title>
<script type="module" src="/src/main.ts" defer></script>
</head>
<body>
<div
class="app-shell"
data-inspector-collapsed="true"
data-project-browser-collapsed="true"
>
<header class="topbar">
<div class="topbar__identity">
<div class="topbar__brand">
<img
class="topbar__logo"
src="/src/assets/funcode-app-icon.png"
width="36"
height="36"
alt=""
/>
<strong>FunCode</strong>
</div>
<span>Local coding agent workbench</span>
</div>
</header>
<aside class="sidebar">
<section class="sidebar__section" aria-labelledby="tasks-heading">
<div class="sidebar__section-header">
<div class="sidebar__title" id="tasks-heading">
<i class="ph ph-clipboard-text" aria-hidden="true"></i>
<span>Tasks</span>
</div>
<button class="new-task-button" id="new-task-button" type="button">
<i class="ph ph-plus" aria-hidden="true"></i>
New task
</button>
</div>
<div class="task-toolbar">
<button
class="icon-button task-search-button"
id="task-search-button"
type="button"
aria-label="Search tasks"
aria-expanded="false"
>
<i class="ph ph-magnifying-glass" aria-hidden="true"></i>
</button>
</div>
<label class="task-search" id="task-search" hidden>
<i class="ph ph-magnifying-glass" aria-hidden="true"></i>
<input id="task-search-input" type="search" placeholder="Search tasks" />
</label>
<div class="task-list" id="task-list" aria-label="Task history"></div>
<div class="task-list-empty" id="task-list-empty">
<i class="ph ph-clipboard-text" aria-hidden="true"></i>
<strong>No tasks yet</strong>
<p>Create your first task to get started.</p>
</div>
</section>
<div class="sidebar__footer">
<div class="workspace-shortcut">
<i class="ph ph-hard-drives" aria-hidden="true"></i>
<span id="workspace-shortcut-label">No workspace selected</span>
</div>
</div>
</aside>
<main class="workspace">
<header class="workspace__header">
<div>
<span class="eyebrow">Task</span>
<h1 id="active-task-title">New task</h1>
</div>
<div class="header-status">
<i class="ph ph-waveform" aria-hidden="true"></i>
<strong id="activity-label">Connecting</strong>
</div>
</header>
<section class="transcript" id="transcript" aria-live="polite">
<div class="empty-state" id="empty-state">
<img
src="/src/assets/funcode-empty-state.png"
width="600"
height="468"
alt=""
/>
<h2>Start your first task</h2>
<p>Describe what you want to build or fix.</p>
<div class="empty-state__examples">
<span>Try an example</span>
<div>
<button type="button" data-example="阅读文件夹,介绍下项目">
<i class="ph ph-folder-open" aria-hidden="true"></i>
阅读文件夹,介绍下项目
</button>
<button type="button" data-example="读取相关文档,做总结">
<i class="ph ph-file-text" aria-hidden="true"></i>
读取相关文档,做总结
</button>
</div>
</div>
</div>
</section>
<form class="composer" id="task-form">
<label class="sr-only" id="composer-label" for="prompt">New task</label>
<textarea
id="prompt"
rows="2"
placeholder="What would you like the agent to do?"
spellcheck="true"
></textarea>
<div class="composer__footer">
<div class="composer__actions">
<button class="button button--quiet" id="stop-button" type="button" hidden>
Stop
</button>
<button class="button button--primary" id="run-button" type="submit">
<i class="ph ph-play" aria-hidden="true"></i>
<span id="run-button-label">Start task</span>
<span class="keyboard-hint">⌘↵</span>
</button>
</div>
</div>
</form>
</main>
</div>
<aside class="inspector" aria-hidden="true" inert>
<header class="inspector__header">
<strong>配置</strong>
<button
class="icon-button"
id="inspector-toggle"
type="button"
aria-label="Close configuration"
>
<i class="ph ph-x" aria-hidden="true"></i>
</button>
</header>
<div
class="new-task-confirmation"
id="new-task-confirmation"
role="group"
aria-labelledby="new-task-confirmation-title"
hidden
>
<div class="new-task-confirmation__copy">
<strong id="new-task-confirmation-title">Create new task</strong>
<p>Review the configuration. It will be saved with the new task.</p>
<p
class="new-task-confirmation__error"
id="new-task-confirmation-error"
role="alert"
hidden
></p>
</div>
<div class="new-task-confirmation__actions">
<button
class="new-task-confirmation__cancel"
id="cancel-new-task"
type="button"
>
Cancel
</button>
<button
class="new-task-confirmation__confirm"
id="confirm-new-task"
type="button"
>
<i class="ph ph-check" aria-hidden="true"></i>
Confirm & create task
</button>
</div>
</div>
<section class="form-section">
<label class="field" for="provider">
<span>Agent</span>
<select id="provider">
<option value="openai-compatible">OpenAI compatible</option>
</select>
</label>
<div id="openai-compatible-fields">
<label class="field" for="model">
<span>Model</span>
<input id="model" type="text" placeholder="gpt-4.1" />
</label>
<label class="field" for="base-url">
<span>Base URL</span>
<input
id="base-url"
type="url"
inputmode="url"
autocomplete="off"
spellcheck="false"
placeholder="https://api.example.com/v1"
/>
</label>
<label class="field" for="api-key">
<span>API key</span>
<input
id="api-key"
type="password"
autocomplete="off"
placeholder="Enter once, or reuse saved key"
/>
</label>
</div>
</section>
<section class="form-section form-section--runtime">
<label class="field" for="approval-mode">
<span>Mode</span>
<select id="approval-mode">
<option value="ask-first">Ask first</option>
<option value="auto" selected>Auto</option>
<option value="full-access">Full access</option>
</select>
</label>
<p class="field-note" id="approval-mode-note">
Built-in workspace tools run automatically. External tools ask first.
</p>
<label class="field" for="workspace">
<span>Environment</span>
<span class="directory-control">
<input
id="workspace"
type="text"
placeholder="/path/to/project"
aria-required="true"
/>
<button
class="directory-control__button"
id="choose-workspace"
type="button"
aria-label="Choose workspace directory"
title="Choose workspace directory"
>
<i class="ph ph-folder-open" aria-hidden="true"></i>
</button>
</span>
</label>
<p class="field-note">
The workspace is fixed after a task starts.
</p>
</section>
<div class="inspector__footer">
<div class="task-config-save" id="task-config-save">
<button
class="task-config-save__button"
id="save-task-config"
type="button"
>
<i class="ph ph-floppy-disk" id="save-task-config-icon" aria-hidden="true"></i>
<span id="save-task-config-label">Save configuration</span>
</button>
<p
class="inspector__scope"
id="task-config-scope"
aria-live="polite"
>
<i
class="ph ph-warning-circle"
id="task-config-status-icon"
aria-hidden="true"
></i>
<span id="task-config-status">Unsaved changes</span>
</p>
</div>
</div>
</aside>
<aside class="project-browser-panel" aria-hidden="true" inert>
<header class="project-browser-panel__header">
<strong id="project-browser-panel-title">项目文件</strong>
<button
class="icon-button"
id="project-browser-toggle"
type="button"
aria-label="Close project files"
>
<i class="ph ph-x" aria-hidden="true"></i>
</button>
</header>
<section
class="project-browser"
id="project-browser-view"
aria-labelledby="project-browser-title"
>
<div class="project-browser__heading">
<div>
<strong id="project-browser-title">当前项目</strong>
<p id="project-browser-path">尚未选择项目文件夹</p>
</div>
</div>
<label class="project-browser__search" for="project-file-search">
<i class="ph ph-magnifying-glass" aria-hidden="true"></i>
<input
id="project-file-search"
type="search"
placeholder="搜索项目文件…"
autocomplete="off"
spellcheck="false"
/>
</label>
<div
class="project-tree"
id="project-tree"
role="tree"
aria-label="当前项目文件"
aria-busy="false"
></div>
<footer class="project-browser__footer">
<label class="project-browser__auto-refresh">
<span>自动刷新</span>
<input id="project-auto-refresh" type="checkbox" checked />
<span class="project-browser__switch" aria-hidden="true"></span>
</label>
<button
class="project-browser__refresh"
id="refresh-project-files"
type="button"
aria-label="刷新项目文件"
title="刷新项目文件"
>
<i class="ph ph-arrow-clockwise" aria-hidden="true"></i>
</button>
</footer>
</section>
<section class="file-editor" id="file-editor" aria-labelledby="file-editor-name" hidden>
<header class="file-editor__toolbar">
<button
class="file-editor__back"
id="close-file-editor"
type="button"
aria-label="返回项目文件"
title="返回项目文件"
>
<i class="ph ph-arrow-left" aria-hidden="true"></i>
</button>
<div class="file-editor__identity">
<strong id="file-editor-name">未选择文件</strong>
<span id="file-editor-path"></span>
</div>
</header>
<div class="file-editor__body">
<div class="file-editor__state" id="file-editor-state" hidden></div>
<textarea
id="file-editor-content"
aria-label="文件内容"
autocomplete="off"
autocapitalize="off"
spellcheck="false"
></textarea>
<iframe
class="pdf-preview"
id="pdf-preview"
title="PDF 预览"
hidden
></iframe>
<div class="image-preview" id="image-preview" hidden>
<img id="image-preview-content" alt="" />
</div>
<div class="docx-editor" id="docx-editor" hidden>
<div class="docx-editor__mode" role="tablist" aria-label="DOCX 查看模式">
<button
id="docx-preview-tab"
type="button"
role="tab"
aria-selected="true"
>
<i class="ph ph-eye" aria-hidden="true"></i>
排版预览
</button>
<button
id="docx-edit-tab"
type="button"
role="tab"
aria-selected="false"
>
<i class="ph ph-pencil-simple" aria-hidden="true"></i>
编辑文字
</button>
<span>编辑段落文字时会保留原文档中的图片和基础样式</span>
</div>
<div
class="docx-editor__preview"
id="docx-preview"
role="tabpanel"
aria-label="DOCX 排版预览"
></div>
<textarea
class="docx-editor__content"
id="docx-editor-content"
aria-label="DOCX 段落文字"
autocomplete="off"
spellcheck="true"
hidden
></textarea>
</div>
</div>
<footer class="file-editor__footer">
<span class="file-editor__status" id="file-editor-status" aria-live="polite"></span>
<button class="file-editor__save" id="save-project-file" type="button" disabled>
<i class="ph ph-floppy-disk" aria-hidden="true"></i>
<span>保存</span>
<kbd>⌘S</kbd>
</button>
</footer>
</section>
</aside>
<button
class="project-browser-reopen"
id="project-browser-reopen"
type="button"
aria-label="Open project files"
>
<i class="ph ph-folder-simple" aria-hidden="true"></i>
</button>
<button
class="inspector-reopen"
id="inspector-reopen"
type="button"
aria-label="Open run configuration"
>
<i class="ph ph-sliders-horizontal" aria-hidden="true"></i>
</button>
</body>
</html>