@firstpick/pi-package-webui 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/bin/pi-webui.mjs +461 -0
- package/package.json +1 -1
- package/public/app.js +917 -8
- package/public/index.html +35 -3
- package/public/styles.css +486 -35
- package/tests/mobile-static.test.mjs +41 -3
package/public/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
13
13
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
14
14
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
15
|
-
<link rel="stylesheet" href="/styles.css?v=
|
|
15
|
+
<link rel="stylesheet" href="/styles.css?v=43" />
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<button id="sidePanelExpandButton" class="side-panel-expand-button" type="button" aria-controls="sidePanel" aria-expanded="false" aria-label="Expand side panel" title="Expand side panel">
|
|
@@ -45,6 +45,19 @@
|
|
|
45
45
|
</div>
|
|
46
46
|
</section>
|
|
47
47
|
|
|
48
|
+
<section id="updateNotification" class="update-notification" aria-live="polite" hidden>
|
|
49
|
+
<div class="update-notification-card" role="status">
|
|
50
|
+
<span class="update-notification-kicker">Update available</span>
|
|
51
|
+
<h2 id="updateNotificationTitle">Pi update available</h2>
|
|
52
|
+
<p id="updateNotificationMessage">A newer Pi version is available.</p>
|
|
53
|
+
<p id="updateNotificationDetail" class="update-notification-detail muted"></p>
|
|
54
|
+
<div class="update-notification-actions">
|
|
55
|
+
<button id="updateNotificationUpdateButton" class="primary" type="button">Update & restart</button>
|
|
56
|
+
<button id="updateNotificationDismissButton" type="button">Later</button>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</section>
|
|
60
|
+
|
|
48
61
|
<main class="layout">
|
|
49
62
|
<section class="chat-panel">
|
|
50
63
|
<header class="terminal-tabs-shell">
|
|
@@ -84,6 +97,7 @@
|
|
|
84
97
|
<div id="gitWorkflowActions" class="git-workflow-actions"></div>
|
|
85
98
|
</section>
|
|
86
99
|
<form id="composer" class="composer">
|
|
100
|
+
<div id="commandSuggest" class="command-suggest" role="listbox" aria-label="Command and path suggestions" hidden></div>
|
|
87
101
|
<div class="composer-input-row">
|
|
88
102
|
<div class="composer-context-tags">
|
|
89
103
|
<button
|
|
@@ -118,7 +132,6 @@
|
|
|
118
132
|
><svg class="composer-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M21.44 11.05 12.25 20.24a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.82-2.82l8.48-8.49" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
|
|
119
133
|
<input id="attachmentInput" class="attachment-input" type="file" multiple accept="image/*,video/*,audio/*,text/*,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/json,application/xml,.md,.markdown,.csv,.ts,.tsx,.js,.jsx,.mjs,.cjs,.py,.rs,.go,.java,.c,.cpp,.h,.hpp,.sh,.bash,.zsh,.fish,.yaml,.yml,.toml,.ini,.log" />
|
|
120
134
|
</div>
|
|
121
|
-
<div id="commandSuggest" class="command-suggest" role="listbox" aria-label="Command and path suggestions" hidden></div>
|
|
122
135
|
<div id="attachmentTray" class="attachment-tray" aria-live="polite" hidden></div>
|
|
123
136
|
<div class="composer-row">
|
|
124
137
|
<button id="composerActionsButton" class="composer-actions-button" type="button" aria-controls="composerActionsPanel" aria-expanded="false" title="Open session, workflow, and follow-up actions">Actions</button>
|
|
@@ -348,6 +361,7 @@
|
|
|
348
361
|
<select id="serverActionSelect" title="Server action" aria-label="Server action">
|
|
349
362
|
<option value="" selected>Choose action…</option>
|
|
350
363
|
<option value="restart">Restart Server</option>
|
|
364
|
+
<option value="update">Update Pi & Restart</option>
|
|
351
365
|
<option value="stop">Stop Server</option>
|
|
352
366
|
</select>
|
|
353
367
|
<button id="runServerActionButton" type="button" disabled>Run</button>
|
|
@@ -481,6 +495,24 @@
|
|
|
481
495
|
</form>
|
|
482
496
|
</dialog>
|
|
483
497
|
|
|
498
|
+
<dialog id="gitChangesDialog" class="extension-dialog git-changes-dialog">
|
|
499
|
+
<form method="dialog">
|
|
500
|
+
<div class="git-changes-header">
|
|
501
|
+
<div>
|
|
502
|
+
<span class="git-changes-kicker">Git diff</span>
|
|
503
|
+
<h2 id="gitChangesTitle">Uncommitted Changes</h2>
|
|
504
|
+
<p id="gitChangesSubtitle" class="muted">Current tab git diff</p>
|
|
505
|
+
</div>
|
|
506
|
+
<button id="gitChangesRefreshButton" type="button">Refresh</button>
|
|
507
|
+
</div>
|
|
508
|
+
<p id="gitChangesStatus" class="git-changes-status muted" role="status" aria-live="polite"></p>
|
|
509
|
+
<div id="gitChangesBody" class="git-changes-body"></div>
|
|
510
|
+
<menu>
|
|
511
|
+
<button id="gitChangesCloseButton" type="button">Close</button>
|
|
512
|
+
</menu>
|
|
513
|
+
</form>
|
|
514
|
+
</dialog>
|
|
515
|
+
|
|
484
516
|
<dialog id="pathPickerDialog" class="extension-dialog path-picker-dialog">
|
|
485
517
|
<form method="dialog">
|
|
486
518
|
<h2 id="pathPickerTitle">Choose working directory</h2>
|
|
@@ -584,6 +616,6 @@
|
|
|
584
616
|
</form>
|
|
585
617
|
</dialog>
|
|
586
618
|
|
|
587
|
-
<script type="module" src="/app.js?v=
|
|
619
|
+
<script type="module" src="/app.js?v=43"></script>
|
|
588
620
|
</body>
|
|
589
621
|
</html>
|