Agent Zero AI framework
Squashed commit of the following:
frdelf2057d390178
diff --git a/webui/file_browser.css b/webui/css/file_browser.csssimilarity index 69%rename from webui/file_browser.cssrename to webui/css/file_browser.cssindex 6e6a440b8..c79f8d581 100644--- a/webui/file_browser.css+++ b/webui/css/file_browser.css@@ -1,81 +1,3 @@-/* Work Directory Modal Styles */-.modal-overlay {- position: fixed;- top: 0;- left: 0;- right: 0;- bottom: 0;- background-color: rgba(0, 0, 0, 0.75);- display: flex;- justify-content: center;- align-items: center;- z-index: 2002;-}--.modal-container {- background-color: var(--color-panel);- border-radius: 12px;- width: 90%;- max-width: 800px;- max-height: 80vh;- overflow: hidden;- box-shadow: 0 4px 23px 0 rgba(0, 0, 0, 0.2);-}--.modal-header {- padding: 1rem 2rem;- border-bottom: 1px solid var(--color-border);- display: flex;- justify-content: space-between;- align-items: center;-}--.modal-subheader {- padding: 0.7rem 1.5rem;- display: inline;- justify-content: space-between;- align-items: center;-}--.modal-title {- font-size: 1.25rem;- font-weight: 500;- color: var(--color-text);-}--.modal-close {- background: none;- font-size: xx-large;- border: none;- color: var(--color-text);- opacity: 0.7;- cursor: pointer;- padding: 0.5rem;- transition: opacity 0.2s;-}--.modal-close:hover {- opacity: 1;-}--.modal-content {- padding: 0.5rem 1.5rem 0rem 1.5rem;- overflow-y: auto;- max-height: calc(80vh - 4rem);-}--.modal-footer {- padding: var(--spacing-md);- border-top: 1px solid var(--color-border);- display: flex;- justify-content: flex-end;- background: var(--color-background);-}--h2 {- color: var(--color-primary);-}-/* File Browser Styles */.files-list {width: 100%;@@ -102,6 +24,7 @@ h2 {grid-template-columns: 2fr 0.6fr 1.0fr 80px;align-items: center;padding: 8px 0;+ font-size: 0.875rem;border-top: 1px solid var(--color-border);transition: background-color 0.2s;white-space: nowrap;@@ -109,7 +32,7 @@ h2 {}.file-item:hover {- background-color: var(--hover-bg);+ background-color: var(--color-secondary);cursor: pointer;}@@ -150,13 +73,6 @@ h2 {}/* Light mode adjustments */-.light-mode .modal-container {- background-color: var(--color-panel-light);-}--.light-mode .file-item {- background-color: var(--color-background-light);-}.light-mode .file-item:hover {background-color: var(--color-secondary-light);@@ -199,7 +115,6 @@ h2 {}.current-path {- color: var(--color-text);font-family: monospace;}@@ -209,7 +124,7 @@ h2 {}.file-item[data-is-dir="true"]:hover {- background-color: var(--hover-bg);+ background-color: var(--color-secondary);}/* Button Section */@@ -225,7 +140,7 @@ transition: background-color 0.2s;}.btn-upload {- background: #3270e2;+ background: #4248f1;color: white;display: flex;transition: background 0.3s ease-in-out;@@ -240,7 +155,11 @@ transition: background-color 0.2s;}.upload-button:hover {-background-color: var(--color-primary-dark);+background-color: #353bc5;+}++.upload-button:active {+background-color: #2b309c;}/* Delete Button */@@ -287,8 +206,8 @@ background-color: var(--color-primary-dark);background-color: var(--color-primary-light);}-.button-section {- gap: 1rem;+.light-mode .download-button:hover {+ background-color: #c6d4de;}@media (max-width: 768px) {@@ -297,6 +216,7 @@ background-color: var(--color-primary-dark);grid-template-columns: 1fr 0.5fr 80px;background: var(--secondary-bg);padding: 8px 0;+ align-items:center;font-weight: bold;border-bottom: 1px solid var(--border-color);}@@ -345,19 +265,4 @@ background-color: var(--color-primary-dark);.file-date {display: none;}-- #buttons-container {- max-height: 50px;- }-- .btn-upload {- margin: 0 auto;- text-wrap: wrap;- gap: 0.5rem;- align-items:center;- }-- .btn-upload > svg {- width: 20px;- }}\ No newline at end of filediff --git a/webui/css/history.css b/webui/css/history.cssnew file mode 100644index 000000000..66c4a75cb--- /dev/null+++ b/webui/css/history.css@@ -0,0 +1,30 @@+#json-viewer-container{+ width: 100%;+ height: 60vh;+ overflow: auto;+}++#json-viewer-container::-webkit-scrollbar {+ width: 6px;+ height: 6px;+}++#json-viewer-container::-webkit-scrollbar-track {+ background: transparent;+ margin: 4px 0;+ border-radius: 6px;+}++#json-viewer-container::-webkit-scrollbar-thumb {+ background-color: rgba(155, 155, 155, 0.5);+ border-radius: 6px;+ transition: background-color 0.2s ease;+}++#json-viewer-container::-webkit-scrollbar-thumb:hover {+ background-color: rgba(155, 155, 155, 0.7);+}++#viewer {+ overflow: hidden;+}\ No newline at end of filediff --git a/webui/css/modals.css b/webui/css/modals.cssnew file mode 100644index 000000000..222384772--- /dev/null+++ b/webui/css/modals.css@@ -0,0 +1,257 @@+/* Standard Modal Styles */+.modal-overlay {+ position: fixed;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ background: rgba(0, 0, 0, 0.5);+ display: flex;+ align-items: center;+ justify-content: center;+ z-index: 2001;+}++.modal-container {+ background-color: var(--color-panel);+ border-radius: 12px;+ width: 90%;+ max-width: 800px;+ max-height: 80vh;+ display: flex;+ flex-direction: column;+ overflow: hidden;+ box-shadow: 0 4px 23px 0 rgba(0, 0, 0, 0.2);+}++.light-mode .modal-container {+ background-color: var(--color-panel-light);+}++.modal-header {+ border-bottom: 1px solid var(--color-border);+ background-color: var(--color-background);+ color: var(--color-primary);+ display: grid;+ grid-template-columns: 1fr 10fr 1fr;+ padding: 0.75rem 1.3rem 0.5rem 2rem;+ align-items: center;+ justify-content:space-between;+}++.modal-header h2 {+ color: var(--color-primary);+ font-size: var(--font-size-large);+ margin: 0;+}++.modal-header > svg {+ fill: var(--color-primary);+ max-height: 30px !important;+}++.modal-subheader {+ padding: 0.7rem 1.5rem;+ display: inline;+ justify-content: space-between;+ align-items: center;+}++.modal-title {+ font-size: 1.25rem;+ font-weight: 500;+ color: var(--color-text);+}++.modal-close {+ background: none;+ font-size: xx-large;+ border: none;+ color: var(--color-text);+ opacity: 0.7;+ cursor: pointer;+ padding: 0.5rem 0rem 0.7rem 1rem;+ transition: opacity 0.2s;+}++.modal-close:hover {+ opacity: 1;+}++.modal-description {+ background-color: var(--color-background);+ padding: 1rem 1.5rem 1rem 1.5rem;+ flex-grow: 1;+ transition: all 0.3s ease;+}++.modal-content {+ padding: 0.5rem 1.5rem 0rem 1.5rem;+ overflow-y: auto;+ max-height: calc(80vh - 4rem);+ flex-grow: 1;+ background-clip: border-box;+ border: 6px solid transparent;+ transition: all 0.3s ease;+ margin-bottom: 0;+ padding-bottom: 0;+}++.modal-content::-webkit-scrollbar {+ width: 6px;+ height: 6px;+}++.modal-content::-webkit-scrollbar-track {+ background: transparent;+ margin: 4px 0;+ border-radius: 6px;+}++.modal-content::-webkit-scrollbar-thumb {+ background-color: rgba(155, 155, 155, 0.5);+ border-radius: 6px;+ transition: background-color 0.2s ease;+}++.modal-content::-webkit-scrollbar-thumb:hover {+ background-color: rgba(155, 155, 155, 0.7);+}++.modal-footer {+ padding: var(--spacing-md) 0 var(--spacing-md) 0;+ border-top: 1px solid var(--color-border);+ display: flex;+ justify-content: flex-end;+ background: var(--color-background);+ gap: 1rem;+}++.section {+ margin-bottom: 2rem;+ padding: 1rem;+ border: 1px solid var(--color-border);+ border-radius: 0.5rem;+}++.section-title {+ font-size: 1.25rem;+ font-weight: bold;+ margin-bottom: 0.5rem;+}++.section-description {+ color: #666;+ margin-bottom: 1rem;+}++#buttons-container {+ padding-right: 2rem;+ display: flex;+ align-content:flex-end;+ gap: 0.875rem;+}++.btn {+ padding: 0.7rem 1.5rem;+ border-radius: 0.25rem;+ cursor: pointer;+ border: none;+ font-size: 0.875rem;+ font-family: "Rubik", Arial, Helvetica, sans-serif;+}++.btn-ok {+ background: #4248f1;+ color: white;+ transition: background 0.3s ease-in-out;+}++.btn-ok > svg {+ max-width: 20px;+}++.btn-ok:hover {+ background: #353bc5;+}++.btn-ok:active {+ background: #2b309c;+}++.btn-cancel {+ background: #ddd;+ color: #333;+ transition: background 0.3s ease-in-out;+}++.btn-cancel:hover {+ background: #a6a6a6;+}++.btn-cancel:active {+ background: #808080;+}++.btn-field {+ background: #2196f3;+ color: white;+ width: fit-content;+}++.btn-field:disabled {+ background: #ccc;+ cursor: not-allowed;+}++h2 {+ color: var(--color-primary);+}++.ace_scrollbar-v {+ overflow-y: auto;+ scroll-behavior: smooth;+}++@media (max-width: 768px) {+ .modal-header h2 {+ margin: 0;+ }+ .modal-content {+ padding: 1rem;+ overflow-y: auto;+ flex-grow: 1;+ }+ .section {+ margin-bottom: 1.5rem;+ padding: 1rem;+ border: 1px solid var(--color-border);+ border-radius: 0.5rem;+ }+}++@media (max-width: 540px) {+ .modal-header {+ display: flex;+ text-wrap: nowrap;+ }+ #buttons-container {+ display: flex;+ gap: 0.5rem !important;+ max-height: 50px;+ padding-right: 0;+ display: flex;+ margin: 0 auto !important;+ }+ .btn {+ text-wrap: wrap;+ }+ .btn-upload {+ margin: 0 auto;+ gap: 0.5rem;+ align-items:center;+ }+ .btn-upload > svg {+ width: 20px;+ }+}diff --git a/webui/css/settings.css b/webui/css/settings.cssnew file mode 100644index 000000000..ae51bda83--- /dev/null+++ b/webui/css/settings.css@@ -0,0 +1,260 @@+.field {+ display: grid;+ margin-block-start: 1rem;+ grid-template-columns: 60% 1fr;+ align-items: center;+}++.field.field-full {+ grid-template-columns: 1fr;+}++.field-label {+ display: flex;+ flex-direction: column;+ padding-right: 0.5em;+}++.field-title {+ font-weight: bold;+}++.field-description {+ color: #666;+ font-size: 0.875rem;+ margin-top: 0.25rem;+ margin-bottom: 0.5rem;+}++.field-control {+ width: 100%;+ display: flex;+ align-items: center;+}++input[type="text"] {+ width: 100%;+ padding: 0.5rem;+ border: 1px solid var(--color-secondary);+ border-radius: 0.25rem;+ background-color: var(--color-background);+ outline: none;+ opacity: 0.7;+ color: var(--color-text);+ font-family: "Rubik", Arial, Helvetica, sans-serif;+ transition: all 0.3s ease;+}++input[type="text"]:focus {+ opacity: 1;+}++input[type="password"] {+ width: 100%;+ padding: 0.5rem;+ border: 1px solid var(--color-secondary);+ border-radius: 0.25rem;+ background-color: var(--color-background);+ outline: none;+ opacity: 0.7;+ color: var(--color-text);+ font-family: "Rubik", Arial, Helvetica, sans-serif;+ transition: all 0.3s ease;+}++input[type="password"]:focus {+ opacity: 1;+}++textarea {+ width: 100%;+ min-height: 100px;+ padding: 0.5rem;+ border: 1px solid var(--color-secondary);+ border-radius: 0.25rem;+ font-family: Roboto Mono;+ background-color: var(--color-background);+ color: var(--color-text);+ scroll-behavior: smooth;+ resize: none;+ outline: none;+ /* scrollbar padding */+ background-clip: border-box;+ border: 6px solid transparent;+ transition: all 0.3s ease;+}++textarea:focus {+ background-color: #151515;+}++.toggle {+ position: relative;+ display: inline-block;+ width: 60px;+ height: 34px;+ margin: 0;+}++.toggle input {+ opacity: 0;+ width: 0;+ height: 0;+}++.toggler {+ position: absolute;+ cursor: pointer;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ background-color: #ccc;+ transition: 0.4s;+ border-radius: 34px;+}++.toggler:before {+ position: absolute;+ content: "";+ height: 26px;+ width: 26px;+ left: 4px;+ bottom: 4px;+ background-color: white;+ transition: 0.4s;+ border-radius: 50%;+}++input:checked + .toggler {+ background-color: #2196f3;+}++input:checked + .toggler:before {+ transform: translateX(26px);+}++input[type="range"] {+ width: 100%;+}++.range-value {+ min-width: 3em;+ text-align: right;+}++select {+ width: 100%;+ padding: 0.5rem;+ border: 1px solid var(--color-secondary);+ border-radius: 0.25rem;+ background-color: var(--color-background);+ color: var(--color-primary);+ font-size: inherit;+ cursor: pointer;+ font-family: "Rubik", Arial, Helvetica, sans-serif;+ outline: none;+ transition: none;+}++select:disabled {+ background-color: #f5f5f5;+ cursor: not-allowed;+}++/* Styles for navigation links */++#settings-sections {+ padding-bottom: 1rem;+}++nav ul {+ list-style: none;+ padding: 0;+ margin: 0;+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));+ gap: 1rem;+}++nav ul li {+ display: flex;+}++nav ul li a {+ display: flex;+ flex-direction: column;+ align-items: center;+ text-align: center;+ text-decoration: none;+ color: var(--color-primary);+ background-color: var(--color-panel);+ border: 1px solid var(--color-border);+ border-radius: 8px;+ padding: 1rem;+ width: 100%;+ transition: all 0.2s ease-in-out;+}++nav ul li a:hover {+ transform: translateY(-2px);+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);+ text-decoration: none;+ background-color: var(--color-secondary);+}++nav ul li a img {+ width: 50px;+ height: 50px;+ margin-bottom: 0.5rem;+ filter: var(--svg-filter);+}++/* Light mode adjustments */+.light-mode nav ul li a {+ background-color: var(--color-panel-light);+}++.light-mode nav ul li a:hover {+ background-color: var(--color-secondary-light);+}++@media (max-width: 768px) {+ .field-control {+ width: 100%;+ }+ .field-description {+ padding-bottom: var(--spacing-sm);+ }+ .field {+ padding-top: var(--spacing-xs);+ padding-bottom: var(--spacing-xs);+ display: block;+ align-items: center;+ }+}++@media (max-width: 480px) {+ nav ul {+ grid-template-columns: repeat(2, 1.2fr);+ }+}++@media (max-width: 380px) {+ nav ul {+ grid-template-columns: 1fr;+ }++ nav ul li a {+ flex-direction: row;+ justify-content: flex-start;+ gap: 1rem;+ padding: 0.75rem 1rem;+ }++ nav ul li a img {+ margin-bottom: 0;+ width: 30px;+ height: 30px;+ }+}\ No newline at end of filediff --git a/webui/speech.css b/webui/css/speech.csssimilarity index 70%rename from webui/speech.cssrename to webui/css/speech.cssindex 07c66d2a0..ea601375f 100644--- a/webui/speech.css+++ b/webui/css/speech.css@@ -1,9 +1,19 @@/* MIC BUTTON */-#microphone-button {-+#microphone-button {}#microphone-button:hover {+ background-color: #636363;+ transform: scale(1.05);+ -webkit-transform: scale(1.05);+ transform-origin: center;+}++#microphone-button:active {+ background-color: #444444;+ transform: scale(1);+ -webkit-transform: scale(1);+ transform-origin: center;}#microphone-button.recording {@@ -52,4 +62,5 @@.mic-processing {background-color: darkcyan;animation: pulse 0.8s infinite;+ transform-origin: center;}\ No newline at end of filediff --git a/webui/toast.css b/webui/css/toast.csssimilarity index 100%rename from webui/toast.cssrename to webui/css/toast.cssdiff --git a/webui/history.css b/webui/history.cssdeleted file mode 100644index e026d7be2..000000000--- a/webui/history.css+++ /dev/null@@ -1,5 +0,0 @@-#json-viewer-container{- width: 100%;- height: 60vh;- overflow: auto;-}\ No newline at end of filediff --git a/webui/index.css b/webui/index.cssindex 1967a740e..03496fcff 100644--- a/webui/index.css+++ b/webui/index.css@@ -22,7 +22,7 @@/* Light mode */--color-background-light: #e8e9e9;--color-text-light: #333333;- --color-primary-light: #273b4d;+ --color-primary-light: #324d66;--color-secondary-light: #e8eaf6;--color-accent-light: #b00020;--color-message-bg-light: #ffffff;@@ -59,6 +59,8 @@/* Other variables */--border-radius: 1.125rem;--transition-speed: 0.3s;+ --svg-filter: brightness(0) saturate(100%) var(--color-primary-filter);+ --color-primary-filter: invert(70%) sepia(12%) saturate(368%) hue-rotate(177deg) brightness(87%) contrast(85%);}/* Reset and Base Styles */@@ -179,10 +181,11 @@ body,.toggle-sidebar-button {height: 2.6rem;width: 2.6rem;- background-color: var(--color-secondary);- border: none;+ background-color: var(--color-background);+ border: 0.1rem solid var(--color-border);border-radius: var(--spacing-xs);color: var(--color-text);+ opacity: 0.8;cursor: pointer;left: var(--spacing-md);padding: 0.47rem 0.56rem;@@ -194,11 +197,12 @@ body,}.toggle-sidebar-button:hover {- background-color: #313131;+ background-color: var(--color-secondary);+ opacity: 1;}.toggle-sidebar-button:active {- background-color: #111;+ opacity: 0.5;}#sidebar-hamburger-svg {@@ -320,21 +324,27 @@ body,margin-left: 0;}-#time-date {- color: var(--color-text);+#time-date-container {position: fixed;right: 0;- font-size: var(--font-size-normal);- text-align: right;- line-height: 1.2;+ display: flex;+ align-items: center;+ gap: var(--spacing-sm);margin-right: var(--spacing-md);margin-top: var(--spacing-md);-}--#user-date {+ }++ #time-date {+ color: var(--color-text);+ font-size: var(--font-size-normal);+ text-align: right;+ line-height: 1.1;+ }++ #user-date {font-size: var(--font-size-small);opacity: 0.6;-}+ }/* Typography */h2 {@@ -489,12 +499,6 @@ pre {animation: shine 1s linear infinite;}-@keyframes shine {- to {- background-position: -200% center;- }-}-#right-panel.expanded #logo-container {margin-left: 4.6rem;}@@ -756,24 +760,32 @@ font-size: var(--font-size-small)border-top: 0px;}+#pref-list li {+ opacity: 0.8;+}+.config-button {- border: none;+ background-color: var(--color-background);+ border: 0.1rem solid var(--color-border);border-radius: var(--spacing-xs);cursor: pointer;display: inline;font-family: "Rubik", Arial, Helvetica, sans-serif;font-size: var(--font-size-small);+ opacity: 0.8;margin-top: 0;margin-bottom: var(--spacing-xs);padding: var(--spacing-sm) 0.75rem;text-wrap: nowrap;- background-color: var(--color-secondary);width: 48%;- -webkit-transition: background-color var(--transition-speed), transform 0.1s ease-in-out;- transition: background-color var(--transition-speed), transform 0.1s ease-in-out;+ max-height: 2.3rem;+ -webkit-transition: all var(--transition-speed), transform 0.1s ease-in-out;+ transition: all var(--transition-speed), transform 0.1s ease-in-out;}.config-button:hover {+ background-color: var(--color-secondary);+ border: 0.1rem solid var(--color-border);opacity: 1;}@@ -781,9 +793,14 @@ font-size: var(--font-size-small)opacity: 0.5;}+#settings {+ display: flex;+ align-items: center;+}+.edit-button {background-color: transparent;- border: 1px solid var(--color-primary);+ border: 1px solid var(--color-border);border-radius: 0.1875rem;color: var(--color-primary);cursor: pointer;@@ -793,6 +810,7 @@ font-size: var(--font-size-small)}.edit-button:hover {+ border: 1px solid var(--color-primary);background-color: #32455690;}@@ -934,10 +952,6 @@ font-size: var(--font-size-small)transition: background-color 0.2s ease;}-.preview-item:hover {- background: var(--color-secondary-dark);-}-.preview-item.image-preview img {max-height: 100px;object-fit: cover;@@ -976,7 +990,6 @@ font-size: var(--font-size-small)top: -6px;right: -6px;background-color: var(--color-primary);- /* opacity: 0.6; */color: white;border: none;border-radius: 50%;@@ -1047,19 +1060,18 @@ font-size: var(--font-size-small)white-space: nowrap;}-/* Bottom row with text buttons */+/* with text buttons */.text-buttons-row {width: 100%;display: flex;padding-top: var(--spacing-xs);margin-left: 0.7rem;- gap: var(--spacing-xs);- white-space: pre-wrap;}.text-button {- background: none;+ background-color: transparent;border: none;+ border-radius: 5px;color: var(--color-text);font-family: "Rubik", Arial, Helvetica, sans-serif;font-size: 0.7rem;@@ -1069,7 +1081,7 @@ font-size: var(--font-size-small)transition: all 0.3s;display: flex;align-items: center;- gap: var(--spacing-xs); /* Adds space between icon and text */+ gap: var(--spacing-xs); /* space between icon and text */}.text-button:hover {@@ -1088,6 +1100,11 @@ font-size: var(--font-size-small)flex-shrink: 0; /* prevents SVG from shrinking */}+.text-button p {+ margin-block-start: 0em;+ margin-block-end: 0em;+}+/* Chat buttons (Send and Mic) */.chat-button {border: none;@@ -1201,7 +1218,7 @@ font-size: var(--font-size-small)}.slider {- background-color: #4a4a4a;+ background-color: #272727;border-radius: 1.15rem;bottom: 0;cursor: pointer;@@ -1214,7 +1231,7 @@ font-size: var(--font-size-small)}.slider:before {- background-color: white;+ background-color: #b6b6b6;border-radius: 50%;bottom: 0.15rem;content: "";@@ -1227,7 +1244,7 @@ font-size: var(--font-size-small)}input:checked + .slider {- background-color: var(--color-primary-light);+ background-color: #3a3a3a;}input:checked + .slider:before {@@ -1261,9 +1278,8 @@ input:checked + .slider:before {height: 2.525rem;margin-left: var(--spacing-xs);margin-right: 0.18rem;- transition: background-color var(--transition-speed), transform 0.1s ease-in-out;- transition: background-color var(--transition-speed), transform 0.1s ease-in-out;- -webkit-transition: background-color var(--transition-speed), transform 0.1s ease-in-out;+ transition: all var(--transition-speed), transform 0.1s ease-in-out;+ -webkit-transition: all var(--transition-speed), transform 0.1s ease-in-out;width: 2.525rem;flex-shrink: 0;flex-grow: 0;@@ -1275,30 +1291,22 @@ input:checked + .slider:before {padding: 0;}-.chat-button:active {- transform: scale(0.95);- -webkit-transform: scale(0.95);-}--.chat-button svg {- width: 1.5rem;- height: 1.5rem;-}-#send-button {- background-color: var(--color-primary);+ background-color: #4248f1;}#send-button:hover {- background-color: var(--color-primary-light);+ transform: scale(1.05);+ -webkit-transform: scale(1.05);+ transform-origin: center;+ background-color: #353bc5;}-.pause-button {- background-color: #3270e2;-}--.pause-button:hover {- background-color: #4382e8;+#send-button:active {+ transform: scale(1);+ -webkit-transform: scale(1);+ transform-origin: center;+ background-color: #2b309c;}/* Light mode class */@@ -1375,7 +1383,7 @@ input:checked + .slider:before {}.light-mode .config-button {- background-color: var(--color-secondary);+ background-color: var(--color-background);color: #333333;}@@ -1401,36 +1409,21 @@ input:checked + .slider:before {color: rgba(0, 0, 0, 0.35);}-.light-mode #send-button {- background-color: var(--color-primary-light);-}--.light-mode #send-button:hover {- background-color: var(--color-primary-dark);-}--.light-mode .pause-button {- background-color: #4382e8;-}--.light-mode .pause-button:hover {- background-color: #3270e2;+.light-mode #progress-bar-i {+ color: var(--color-border-dark);+ opacity: 0.5}.light-mode .slider {- background-color: #bdbdbd;+ background-color: #f1f1f1;}-.light-mode input:checked + .slider {- background-color: var(--color-primary-dark);+.light-mode .slider:before {+ background-color: #838383;}-.light-mode .toggle-sidebar-button:hover {- background-color: #d6dae8;-}--.light-mode .toggle-sidebar-button:active {- background-color: #bdc0cb;+.light-mode input:checked + .slider {+ background-color: #e6e6e6;}.light-mode #logo-container img {@@ -1478,19 +1471,39 @@ input:checked + .slider:before {display: block; /* or any style you want for visibility */}-/* Update connected/disconnected status colors for dark mode */+.status-icon {+ display: flex;+ justify-content: center;+ align-items: center;+}++.status-icon svg {+ width: 18px;+ height: 18px;+}++.connected-circle, .disconnected-circle {+ transition: all 0.3s ease;+}++.connected-circle {+ animation: heartbeat 1.5s ease-in-out infinite;+ transform-origin: center;+}+.connected {- color: #4caf50;+ color: #00c340;}.disconnected {- color: #f44336;+ color: #e40138;}.font-bold {font-weight: bold;}+/* Math (KaTeX) */.katex {font-family: Roboto Mono !important;@@ -1522,13 +1535,52 @@ input:checked + .slider:before {}}+@keyframes shine {+ to {+ background-position: -200% center;+ }+}++@keyframes heartbeat {+ 0% {+ transform: scale(1);+ }+ 14% {+ transform: scale(1.1);+ }+ 28% {+ transform: scale(1);+ }+ 42% {+ transform: scale(1.08);+ }+ 70% {+ transform: scale(1);+ }+ 100% {+ transform: scale(1);+ }+}++@media (max-width: 480px) {+ .text-buttons-row {+ display: table;+ gap: 0.1rem !important;+ }++ .text-button {+ max-height: 25px;+ }++ .text-button p{+ display: none;+ }+}@media (max-width: 600px) {#chat-input {min-height: 5.3rem;align-content: start;--}#chat-buttons-wrapper {@@ -1540,24 +1592,23 @@ input:checked + .slider:before {transition: all 0.3s ease;-webkit-transition: all 0.3s ease;}-}-.sidebar-overlay {- display: none;- position: fixed;- top: 0;- left: 0;- right: 0;- bottom: 0;- background-color: rgba(0, 0, 0, 0);- opacity: 0;- z-index: 999;-}+ .sidebar-overlay {+ display: none;+ position: fixed;+ top: 0;+ left: 0;+ right: 0;+ bottom: 0;+ background-color: rgba(0, 0, 0, 0);+ opacity: 0;+ z-index: 999;+ }-.sidebar-overlay.visible {- display: block;-}-+ .sidebar-overlay.visible {+ display: block;+ }+}@media (max-width: 768px) {#left-panel {@@ -1603,9 +1654,7 @@ input:checked + .slider:before {gap: var(--spacing-xs);white-space: pre-wrap;}- .text-button {- text-align: left;- }+.text-button svg {width: 18px;height: 18px;diff --git a/webui/index.html b/webui/index.htmlindex f5bccf1c5..bfc8e127c 100644--- a/webui/index.html+++ b/webui/index.html@@ -6,11 +6,12 @@<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><title>Agent Zero</title><link rel="stylesheet" href="index.css">- <link rel="stylesheet" href="toast.css">- <link rel="stylesheet" href="settings.css">- <link rel="stylesheet" href="file_browser.css">- <link rel="stylesheet" href="speech.css">- <link rel="stylesheet" href="history.css">+ <link rel="stylesheet" href="css/toast.css">+ <link rel="stylesheet" href="css/settings.css">+ <link rel="stylesheet" href="css/file_browser.css">+ <link rel="stylesheet" href="css/modals.css">+ <link rel="stylesheet" href="css/speech.css">+ <link rel="stylesheet" href="css/history.css"><script>window.safeCall = function (name, ...args) {@@ -31,11 +32,11 @@<script type="module" src="index.js"></script>- <script type="text/javascript" src="settings.js"></script>- <script type="text/javascript" src="file_browser.js"></script>- <script type="text/javascript" src="modal.js"></script>- <script type="module" src="speech.js"></script>- <script type="module" src="history.js"></script>+ <script type="text/javascript" src="js/settings.js"></script>+ <script type="text/javascript" src="js/file_browser.js"></script>+ <script type="text/javascript" src="js/modal.js"></script>+ <script type="module" src="js/speech.js"></script>+ <script type="module" src="js/history.js"></script></head>@@ -57,7 +58,7 @@<div id="logo-container"><a href="https://github.com/frdel/agent-zero" target="_blank" rel="noopener noreferrer">- <img src="splash.jpg" alt="a0" width="22" height="22">+ <img src="./public/splash.jpg" alt="a0" width="22" height="22"></a></div></div>@@ -65,12 +66,6 @@<div id="left-panel" class="panel"><!--Sidebar upper elements--><div class="left-panel-top">- <div class="config-section" id="status-section" x-data="{ connected: true }">- <h3>Status</h3>- <h4 class="connected" x-show="connected">✔ Connected</h4>- <h4 class="disconnected" x-show="!connected">✘ Disconnected</h4>- </div>-<div class="config-section" x-data="{ showQuickActions: true }"><h3>Quick Actions</h3><button class="config-button" id="resetChat" @click="resetChat()">Reset Chat</button>@@ -78,7 +73,10 @@<button class="config-button" id="loadChats" @click="loadChats()">Load Chat</button><button class="config-button" id="loadChat" @click="saveChat()">Save Chat</button><button class="config-button" id="settings"- @click="settingsModalProxy.openModal()">Settings</button>+ @click="settingsModalProxy.openModal()"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="-5.0 -17.0 110.0 135.0" fill="currentColor" width="24" height="24">+ <path d="m52.301 90.102h-4.1016c-3 0-5 0-6.8984-1.3984-1.8984-1.3984-2.5-3.3008-3.5-6.1016l-1.1016-3.6016c-0.19922-0.60156-0.69922-1.1992-1.3984-1.6016l-1.1016-0.60156c-0.60156-0.30078-1.5-0.39844-2.3008-0.19922l-4.3008 1.1992c-3.1016 0.89844-5.1016 1.5-7.3984 0.5-2.3008-0.89844-3.3984-2.8008-5-5.6016l-1.8008-3.1016c-1.5-2.5-2.5-4.3008-2.3008-6.6992 0.19922-2.3984 1.6016-3.8008 3.6016-6.1016l3.8008-4.1992c0.19922-0.19922 0.60156-1.3984 0.60156-2.6016 0-1.1016-0.5-2.3008-0.80078-2.6992l-3.6016-4c-2-2.1992-3.3008-3.6992-3.6016-6.1016-0.19922-2.3984 0.80078-4.1992 2.3008-6.6992l1.8008-3.1016c1.6016-2.8008 2.6992-4.6016 5-5.6016 2.3008-0.89844 4.3008-0.39844 7.3984 0.5l4.3984 1.1992c0.69922 0.10156 1.5 0 2.3008-0.30078l1.1016-0.60156c0.5-0.30078 1-0.89844 1.3008-1.6992l1.1992-3.5c0.89844-2.8008 1.6016-4.6992 3.5-6.1016 1.8984-1.3984 3.8984-1.3984 6.8984-1.3984h4.1016c3 0 5 0 6.8984 1.3984 1.8984 1.3984 2.5 3.1992 3.5 6.1016l1.1992 3.6016c0.19922 0.60156 0.69922 1.1992 1.3984 1.6016l1.1016 0.60156c0.60156 0.30078 1.5 0.39844 2.3008 0.19922l4.3008-1.1992c3.1016-0.89844 5.1016-1.5 7.3984-0.5 2.3008 0.89844 3.3984 2.8008 5 5.5l1.8008 3.1016c1.3984 2.5 2.5 4.3008 2.3008 6.6992-0.19922 2.3984-1.6016 3.8008-3.6016 6.1016l-3.9961 4.4062c-0.19922 0.19922-0.60156 1.3984-0.60156 2.6016 0 1.1016 0.5 2.3008 0.80078 2.6992l3.6016 4c2 2.1992 3.3008 3.6992 3.6016 6.1016 0.19922 2.3984-0.80078 4.1992-2.3008 6.6992l-1.8008 3.1016c-1.6016 2.8008-2.6992 4.6016-5 5.6016-2.3008 0.89844-4.3984 0.39844-7.3984-0.5l-4.3984-1.1992c-0.69922-0.10156-1.5 0-2.3008 0.30078l-1.1016 0.60156c-0.5 0.30078-1 0.89844-1.3008 1.6992l-1.1992 3.5c-0.89844 2.8008-1.6016 4.6992-3.5 6.1016-1.8008 1.293-3.8008 1.293-6.8008 1.293zm-6.6016-7.3008c0.5 0.10156 1.6016 0.10156 2.6016 0.10156h4.1016c1 0 2 0 2.6016-0.10156 0.19922-0.5 0.60156-1.5 0.89844-2.3984l1.1992-3.6016c0.89844-2.3008 2.3984-4.1992 4.3984-5.3984l1.3984-0.80078c2.3984-1.3008 5.1016-1.6016 7.6016-1l4.6016 1.3008c1 0.30078 2.1016 0.60156 2.6992 0.69922 0.30078-0.5 0.89844-1.5 1.3984-2.3984l1.8008-3.1016c0.5-0.80078 1-1.8008 1.1992-2.3008-0.30078-0.39844-1-1.1992-1.6992-2l-3.8008-4.1992c-1.6016-2-2.5-4.8008-2.5-7.3984 0-2.6016 0.89844-5.3984 2.3008-7.3008l3.8984-4.3984c0.69922-0.69922 1.3984-1.5 1.6992-2-0.19922-0.5-0.80078-1.3984-1.1992-2.3008l-1.8984-3.1016c-0.5-0.89844-1.1016-1.8984-1.3984-2.3984-0.60156 0.10156-1.6992 0.39844-2.6992 0.69922l-4.3984 1.3008c-2.6992 0.60156-5.3008 0.30078-7.6016-0.89844l-1.4023-0.80469c-2.1016-1.3984-3.6016-3.1992-4.3984-5.3984l-1.3008-3.8008c-0.30078-0.89844-0.60156-1.8984-0.89844-2.3984-0.5-0.10156-1.6016-0.10156-2.6016-0.10156h-4.1016c-1 0-2 0-2.6016 0.10156-0.19922 0.5-0.60156 1.5-0.89844 2.3984l-1.1992 3.6016c-0.89844 2.3008-2.3984 4.1992-4.3984 5.3984l-1.3984 0.80078c-2.3984 1.3008-5.1016 1.6016-7.6016 1l-4.6016-1.3008c-1-0.30078-2.1016-0.60156-2.6992-0.69922-0.30078 0.5-0.89844 1.5-1.3984 2.3984l-1.8008 3.1016c-0.5 0.80078-1 1.8008-1.1992 2.3008 0.30078 0.39844 1 1.1992 1.6992 2l3.8008 4.1992c1.6016 2 2.5 4.8008 2.5 7.3984 0 2.6016-0.89844 5.3984-2.3008 7.3008l-3.8984 4.3984c-0.69922 0.69922-1.3984 1.5-1.6992 2 0.19922 0.5 0.80078 1.3984 1.1992 2.3008l1.8008 3.1016c0.5 0.89844 1.1016 1.8984 1.3984 2.3984 0.60156-0.10156 1.6992-0.39844 2.6992-0.69922l4.3984-1.1992c2.6992-0.60156 5.3008-0.30078 7.6016 0.89844l1.3984 0.80078c2.1016 1.3008 3.6016 3.1992 4.3984 5.3984l1.3008 3.8008c0.5 0.80078 0.80078 1.8008 1 2.3008z"></path>+ <path d="m50.301 66.5c-9 0-16.398-7.3008-16.398-16.398 0-9.1016 7.3008-16.398 16.398-16.398 9.1016 0 16.398 7.3008 16.398 16.398 0 9.0977-7.3984 16.398-16.398 16.398zm0-25.5c-5 0-9.1016 4.1016-9.1016 9.1016s4.1016 9.1016 9.1016 9.1016 9.1016-4.1016 9.1016-9.1016c-0.003906-5-4.1016-9.1016-9.1016-9.1016z"></path>+ </svg>Settings</button></div><!-- Chats List --><div class="config-section" id="chats-section" x-data="{ contexts: [], selected: '' }"@@ -112,7 +110,7 @@<path d="M8 4l8 8-8 8" /></svg></h3>- <ul class="config-list" x-show="prefOpen" x-collapse x-transition>+ <ul class="config-list" id="pref-list" x-show="prefOpen" x-collapse x-transition><!-- Preferences Items --><li x-data="{ autoScroll: true }"><span>Autoscroll</span>@@ -173,7 +171,26 @@</div><div id="right-panel" class="panel"><!--Chat-->- <div id="time-date"></div>+ <div id="time-date-container">+ <div id="time-date"></div>+ <div class="status-icon" x-data="{ connected: true }">+ <svg viewBox="0 0 30 30">+ <!-- Connected State (filled circle) -->+ <circle class="connected-circle"+ cx="15" cy="15" r="8"+ x-bind:fill="connected ? '#00c340' : 'none'"+ x-bind:opacity="connected ? 1 : 0"/>++ <!-- Disconnected State (outline circle) -->+ <circle class="disconnected-circle"+ cx="15" cy="15" r="12"+ fill="none"+ stroke="#e40138"+ stroke-width="3"+ x-bind:opacity="connected ? 0 : 1"/>+ </svg>+ </div>+ </div><div id="chat-history"></div><div id="toast" class="toast">@@ -296,8 +313,7 @@<!-- Microphone button --><button class="chat-button mic-inactive" id="microphone-button"aria-label="Start/Stop recording">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 18" fill="currentColor" width="24"- height="24">+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 18" fill="currentColor"><pathd="m8,12c1.66,0,3-1.34,3-3V3c0-1.66-1.34-3-3-3s-3,1.34-3,3v6c0,1.66,1.34,3,3,3Zm-1,1.9c-2.7-.4-4.8-2.6-5-5.4H0c.2,3.8,3.1,6.9,7,7.5v2h2v-2c3.9-.6,6.8-3.7,7-7.5h-2c-.2,2.8-2.3,5-5,5.4h-2Z" /></svg>@@ -320,7 +336,7 @@</template><template x-if="paused"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"- stroke-width="1.5" stroke="currentColor" width="14" height="14">+ stroke-width="1.8" stroke="currentColor" width="14" height="14"><path d="M8 5v14l11-7z"></path></svg></template>@@ -333,36 +349,24 @@<path stroke-linecap="round" stroke-linejoin="round"d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"></path>- </svg>Import knowledge</button>+ </svg><p>Import knowledge</p></button><button class="text-button" id="work_dir_browser" @click="fileBrowserModalProxy.openModal()">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 123.37 92.59">- <path- d="m5.72,11.5l-3.93,8.73h119.77s-3.96-8.73-3.96-8.73h-60.03c-1.59,0-2.88-1.29-2.88-2.88V1.75H13.72v6.87c0,1.59-1.29,2.88-2.88,2.88h-5.12Z"- fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="5"></path>- <path- d="m6.38,20.23H1.75l7.03,67.03c.11,1.07.55,2.02,1.2,2.69.55.55,1.28.89,2.11.89h97.1c.82,0,1.51-.33,2.05-.87.68-.68,1.13-1.67,1.28-2.79l9.1-66.94H6.38Z"- fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="5"></path>- </svg>work_dir Browser</button>-- <button class="text-button" id="history_inspect" @click="window.openHistoryModal()">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 123.37 92.59">- <path- d="m5.72,11.5l-3.93,8.73h119.77s-3.96-8.73-3.96-8.73h-60.03c-1.59,0-2.88-1.29-2.88-2.88V1.75H13.72v6.87c0,1.59-1.29,2.88-2.88,2.88h-5.12Z"- fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="5"></path>- <path- d="m6.38,20.23H1.75l7.03,67.03c.11,1.07.55,2.02,1.2,2.69.55.55,1.28.89,2.11.89h97.1c.82,0,1.51-.33,2.05-.87.68-.68,1.13-1.67,1.28-2.79l9.1-66.94H6.38Z"- fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="5"></path>- </svg>History</button>+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 123.37 92.59">+ <path d="m5.72,11.5l-3.93,8.73h119.77s-3.96-8.73-3.96-8.73h-60.03c-1.59,0-2.88-1.29-2.88-2.88V1.75H13.72v6.87c0,1.59-1.29,2.88-2.88,2.88h-5.12Z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="7"></path>+ <path d="m6.38,20.23H1.75l7.03,67.03c.11,1.07.55,2.02,1.2,2.69.55.55,1.28.89,2.11.89h97.1c.82,0,1.51-.33,2.05-.87.68-.68,1.13-1.67,1.28-2.79l9.1-66.94H6.38Z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="8"></path>+ </svg><p>work_dir Browser</p></button>++ <button class="text-button" id="history_inspect" @click="window.openHistoryModal()">+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="5 10 85 85">+ <path fill="currentColor" d="m59.572,57.949c-.41,0-.826-.105-1.207-.325l-9.574-5.528c-.749-.432-1.21-1.231-1.21-2.095v-14.923c0-1.336,1.083-2.419,2.419-2.419s2.419,1.083,2.419,2.419v13.526l8.364,4.829c1.157.668,1.554,2.148.886,3.305-.448.776-1.261,1.21-2.097,1.21Zm30.427-7.947c0,10.684-4.161,20.728-11.716,28.283-6.593,6.59-15.325,10.69-24.59,11.544-1.223.113-2.448.169-3.669.169-7.492,0-14.878-2.102-21.22-6.068l-15.356,5.733c-.888.331-1.887.114-2.557-.556s-.887-1.669-.556-2.557l5.733-15.351c-4.613-7.377-6.704-16.165-5.899-24.891.854-9.266,4.954-17.998,11.544-24.588,7.555-7.555,17.6-11.716,28.285-11.716s20.73,4.161,28.285,11.716c7.555,7.555,11.716,17.599,11.716,28.283Zm-15.137-24.861c-13.71-13.71-36.018-13.71-49.728,0-11.846,11.846-13.682,30.526-4.365,44.417.434.647.53,1.464.257,2.194l-4.303,11.523,11.528-4.304c.274-.102.561-.153.846-.153.474,0,.944.139,1.348.41,13.888,9.315,32.568,7.479,44.417-4.365,13.707-13.708,13.706-36.014,0-49.723Zm-24.861-4.13c-15.989,0-28.996,13.006-28.996,28.992s13.008,28.992,28.996,28.992c1.336,0,2.419-1.083,2.419-2.419s-1.083-2.419-2.419-2.419c-13.32,0-24.157-10.835-24.157-24.153s10.837-24.153,24.157-24.153,24.153,10.835,24.153,24.153c0,1.336,1.083,2.419,2.419,2.419s2.419-1.083,2.419-2.419c0-15.986-13.006-28.992-28.992-28.992Zm25.041,33.531c-1.294.347-2.057,1.673-1.71,2.963.343,1.289,1.669,2.057,2.963,1.71,1.289-.343,2.053-1.669,1.71-2.963-.347-1.289-1.673-2.057-2.963-1.71Zm-2.03,6.328c-1.335,0-2.419,1.084-2.419,2.419s1.084,2.419,2.419,2.419,2.419-1.084,2.419-2.419-1.084-2.419-2.419-2.419Zm-3.598,5.587c-1.289-.347-2.615.416-2.963,1.71-.343,1.289.421,2.615,1.71,2.963,1.294.347,2.62-.421,2.963-1.71.347-1.294-.416-2.62-1.71-2.963Zm-4.919,4.462c-1.157-.667-2.638-.27-3.306.887-.667,1.157-.27,2.638.887,3.305,1.157.668,2.638.27,3.306-.887.667-1.157.27-2.638-.887-3.306Zm-9.327,3.04c-.946.946-.946,2.478,0,3.42.942.946,2.473.946,3.42,0,.946-.942.946-2.473,0-3.42-.946-.946-2.478-.946-3.42,0Z"></path>+ </svg><p>History</p></button><button class="text-button" id="ctx_window" @click="window.openCtxWindowModal()">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 123.37 92.59">- <path- d="m5.72,11.5l-3.93,8.73h119.77s-3.96-8.73-3.96-8.73h-60.03c-1.59,0-2.88-1.29-2.88-2.88V1.75H13.72v6.87c0,1.59-1.29,2.88-2.88,2.88h-5.12Z"- fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="5"></path>- <path- d="m6.38,20.23H1.75l7.03,67.03c.11,1.07.55,2.02,1.2,2.69.55.55,1.28.89,2.11.89h97.1c.82,0,1.51-.33,2.05-.87.68-.68,1.13-1.67,1.28-2.79l9.1-66.94H6.38Z"- fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="5"></path>- </svg>Context</button>+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="17 15 70 70" fill="currentColor">+ <path d="m63 25c1.1016 0 2-0.89844 2-2s-0.89844-2-2-2h-26c-1.1016 0-2 0.89844-2 2s0.89844 2 2 2z"></path>+ <path d="m63 79c1.1016 0 2-0.89844 2-2s-0.89844-2-2-2h-26c-1.1016 0-2 0.89844-2 2s0.89844 2 2 2z"></path>+ <path d="m68 39h-36c-6.0703 0-11 4.9297-11 11s4.9297 11 11 11h36c6.0703 0 11-4.9297 11-11s-4.9297-11-11-11zm0 18h-36c-3.8594 0-7-3.1406-7-7s3.1406-7 7-7h36c3.8594 0 7 3.1406 7 7s-3.1406 7-7 7z"></path>+ </svg><p>Context</p></button></div></div>@@ -372,25 +376,30 @@<template x-teleport="body"><div x-show="isOpen" class="modal-overlay" @click.self="handleCancel()" @keydown.escape.window="handleClose()" x-transition><div class="modal-container">- <div class="modal-header" id="settings-title">- <h2 x-text="settings.title"></h2>+ <div class="modal-header">+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 960">+ <path d="m717.77,788.27c-78.78-135.38-157.9-271.35-238.62-410.05-79.86,138.37-158.57,274.73-237.16,410.9h-121.99C239.91,581.87,479.49,170.89,479.49,170.89h0s240.63,410.03,360.51,617.38h-122.23Z" fill="currentColor" stroke-width="0"></path>+ <path d="m633.08,788.85h-309.54c20.61-35.84,40.55-70.52,60.34-104.92h190.22c19.28,34.3,38.47,68.43,58.98,104.92Z" fill="currentColor" stroke-width="0"></path>+ </svg>+ <h2 x-text="settings.title"></h2><button class="modal-close" @click="handleCancel()">×</button></div>- <div id="settings-sections">- <!-- Dynamically generated navigation -->- <nav>- <ul>- <!-- Loop over sections to generate links dynamically -->- <template x-for="(section, index) in settings.sections" :key="index">++ <div class="modal-content">+ <div id="settings-sections">+ <nav>+ <ul>+ <template x-for="(section, index) in settings.sections" :key="section.title"><li>- <a :href="'#section' + (index + 1)" x-text="section.title"></a>+ <a :href="'#section' + (index + 1)">+ <img :src="'/public/' + getIconName(section.title) + '.svg'" :alt="section.title">+ <span x-text="section.title"></span>+ </a></li></template>- </ul>- </nav>- </div>-- <div class="modal-content">+ </ul>+ </nav>+ </div><template x-for="(section, sectionIndex) in settings.sections" :key="sectionIndex"><div :id="'section' + (sectionIndex + 1)" class="section"><div class="section-title" x-text="section.title"></div>@@ -491,6 +500,10 @@<div x-show="isOpen" class="modal-overlay" @click.self="handleClose()" @keydown.escape.window="handleClose()" x-transition><div class="modal-container"><div class="modal-header">+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 960">+ <path d="m717.77,788.27c-78.78-135.38-157.9-271.35-238.62-410.05-79.86,138.37-158.57,274.73-237.16,410.9h-121.99C239.91,581.87,479.49,170.89,479.49,170.89h0s240.63,410.03,360.51,617.38h-122.23Z" fill="currentColor" stroke-width="0"/>+ <path d="m633.08,788.85h-309.54c20.61-35.84,40.55-70.52,60.34-104.92h190.22c19.28,34.3,38.47,68.43,58.98,104.92Z" fill="currentColor" stroke-width="0"/>+ </svg><h2 class="modal-title" x-text="browser.title"></h2><button class="modal-close" @click="handleClose()">×</button></div>@@ -600,11 +613,15 @@<div x-show="isOpen" class="modal-overlay" @click.self="handleClose()" @keydown.escape.window="handleClose()" x-transition><div class="modal-container"><div class="modal-header">+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 960">+ <path d="m717.77,788.27c-78.78-135.38-157.9-271.35-238.62-410.05-79.86,138.37-158.57,274.73-237.16,410.9h-121.99C239.91,581.87,479.49,170.89,479.49,170.89h0s240.63,410.03,360.51,617.38h-122.23Z" fill="currentColor" stroke-width="0"></path>+ <path d="m633.08,788.85h-309.54c20.61-35.84,40.55-70.52,60.34-104.92h190.22c19.28,34.3,38.47,68.43,58.98,104.92Z" fill="currentColor" stroke-width="0"></path>+ </svg><h2 class="modal-title" x-text="title"></h2><button class="modal-close" @click="handleClose()">×</button></div><div class="modal-description" x-text="description"></div>- <div class="modal-content">+ <div class="modal-content" id="viewer"><div class="html-pre" x-html="html"></div></div><!-- <div class="modal-footer">diff --git a/webui/index.js b/webui/index.jsindex 4c43a86df..1f87375bb 100644--- a/webui/index.js+++ b/webui/index.js@@ -1,5 +1,5 @@-import * as msgs from "./messages.js";-import { speech } from "./speech.js";+import * as msgs from "./js/messages.js";+import { speech } from "./js/speech.js";const leftPanel = document.getElementById('left-panel');const rightPanel = document.getElementById('right-panel');@@ -334,8 +334,14 @@ async function poll() {//set ui model vars from backendconst inputAD = Alpine.$data(inputSection);inputAD.paused = response.paused;- const statusAD = Alpine.$data(statusSection);- statusAD.connected = true;++ // Update status icon state+ const timeDate = document.getElementById('time-date-container');+ if (timeDate) {+ const statusIcon = Alpine.$data(timeDate.querySelector('.status-icon'));+ statusIcon.connected = true;+ }+const chatsAD = Alpine.$data(chatsSection);chatsAD.contexts = response.contexts;@@ -344,8 +350,11 @@ async function poll() {} catch (error) {console.error('Error:', error);- const statusAD = Alpine.$data(statusSection);- statusAD.connected = false;+ const timeDate = document.getElementById('time-date-container');+ if (timeDate) {+ const statusIcon = Alpine.$data(timeDate.querySelector('.status-icon'));+ statusIcon.connected = false;+ }}return updateddiff --git a/webui/file_browser.js b/webui/js/file_browser.jssimilarity index 100%rename from webui/file_browser.jsrename to webui/js/file_browser.jsdiff --git a/webui/history.js b/webui/js/history.jssimilarity index 97%rename from webui/history.jsrename to webui/js/history.jsindex 27f83e5fd..8b7952db3 100644--- a/webui/history.js+++ b/webui/js/history.js@@ -1,4 +1,4 @@-import { getContext } from "./index.js";+import { getContext } from "../index.js";export async function openHistoryModal() {const hist = await window.sendJsonData("/history_get", { context: getContext() });diff --git a/webui/messages.js b/webui/js/messages.jssimilarity index 100%rename from webui/messages.jsrename to webui/js/messages.jsdiff --git a/webui/modal.js b/webui/js/modal.jssimilarity index 100%rename from webui/modal.jsrename to webui/js/modal.jsdiff --git a/webui/settings.js b/webui/js/settings.jssimilarity index 87%rename from webui/settings.jsrename to webui/js/settings.jsindex 7b66cf9ec..bd8854982 100644--- a/webui/settings.js+++ b/webui/js/settings.js@@ -85,3 +85,16 @@ const settingsModalProxy = {// Alpine.store('settingsModal', initSettingsModal());// });+function getIconName(title) {+ const iconMap = {+ 'Agent Config': 'agentconfig',+ 'Chat Model': 'chat-model',+ 'Utility model': 'utility-model',+ 'Embedding Model': 'embed-model',+ 'API Keys': 'api-keys',+ 'Authentication': 'auth',+ 'Development': 'dev'+ };+ return iconMap[title] || 'default';+}+diff --git a/webui/speech.js b/webui/js/speech.jssimilarity index 98%rename from webui/speech.jsrename to webui/js/speech.jsindex 1e8c221f3..1eac18908 100644--- a/webui/speech.js+++ b/webui/js/speech.js@@ -1,5 +1,5 @@-// import { pipeline, read_audio } from './[email protected]';-import { updateChatInput, sendMessage } from './index.js';+// import { pipeline, read_audio } from '../[email protected]';+import { updateChatInput, sendMessage } from '../index.js';const microphoneButton = document.getElementById('microphone-button');let microphoneInput = null;diff --git a/webui/speech_browser.js b/webui/js/speech_browser.jssimilarity index 99%rename from webui/speech_browser.jsrename to webui/js/speech_browser.jsindex 4ab46ab80..9f214a7b7 100644--- a/webui/speech_browser.js+++ b/webui/js/speech_browser.js@@ -1,5 +1,5 @@import { pipeline, read_audio } from './[email protected]';-import { updateChatInput, sendMessage } from './index.js';+import { updateChatInput, sendMessage } from '../index.js';const microphoneButton = document.getElementById('microphone-button');let microphoneInput = null;diff --git a/webui/[email protected] b/webui/js/[email protected]similarity index 100%rename from webui/[email protected]rename to webui/js/[email protected]diff --git a/webui/public/agentconfig.svg b/webui/public/agentconfig.svgnew file mode 100644index 000000000..faa3f6678--- /dev/null+++ b/webui/public/agentconfig.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 17.82 22.6"><g fill="none" stroke="#000" stroke-miterlimit="10" stroke-width=".35" data-name="Layer 1"><path d="M12.33 7.81c-.34.32-.8.52-1.3.52H6.78c-.5 0-.96-.2-1.3-.52-.36-.34-.59-.83-.59-1.37V4.06c0-.48.18-.92.48-1.26.35-.39.85-.63 1.41-.63h4.25c.56 0 1.06.24 1.41.63.3.33.48.77.48 1.26v2.38c0 .54-.23 1.02-.59 1.37Z"/><rect width="6.49" height="4.52" x="5.66" y="2.99" rx="1.39" ry="1.39"/><path d="M12.92 6.41h.35c.2 0 .36-.16.36-.36V4.46c0-.2-.16-.36-.36-.36h-.35M12.44 3.11V1.06M12.82.68a.38.38 0 1 1-.76 0 .38.38 0 0 1 .76 0ZM5.37 3.11V1.06M4.99.68a.38.38 0 1 0 .76 0 .38.38 0 0 0-.76 0ZM4.9 4.1h-.35c-.2 0-.36.16-.36.36v1.59c0 .2.16.36.36.36h.35M12.16 7.77l.18.04 1.03.23c.37.08.63.41.63.78v.51M5.66 7.77l-.18.04-1.03.23c-.37.08-.63.41-.63.78v.51M7.09 19.96H3.51c-1.78 0-3.22-1.44-3.22-3.22v-4.06c0-1.78 1.44-3.22 3.22-3.22h10.78c1.78 0 3.22 1.44 3.22 3.22v4.06c0 1.78-1.44 3.22-3.22 3.22h-3.57M7.09 22.3v-2.34h3.63v2.34M11.57 22.3H6.24"/><circle cx="8.91" cy="14.72" r=".92"/><path d="M11.65 15.1v-.77l-.6-.06a2.3 2.3 0 0 0-.31-.76l.39-.47-.55-.55-.47.39c-.23-.15-.48-.26-.76-.31l-.06-.6h-.77l-.06.6a2.3 2.3 0 0 0-.76.31l-.47-.39-.55.55.39.47c-.15.23-.26.48-.31.76l-.6.06v.77l.6.06c.06.27.16.53.31.76l-.39.47.55.55.47-.39c.23.15.48.26.76.31l.06.6h.77l.06-.6c.27-.06.53-.16.76-.31l.47.39.55-.55-.39-.47c.15-.23.26-.48.31-.76z"/></g></svg>\ No newline at end of filediff --git a/webui/public/api-keys.svg b/webui/public/api-keys.svgnew file mode 100644index 000000000..bc78f34c0--- /dev/null+++ b/webui/public/api-keys.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 16.62 18.76"><path d="M8.9 10.3c0-.42.17-.8.44-1.07s.65-.44 1.07-.44.8.17 1.07.44.44.65.44 1.07-.17.8-.44 1.07-.65.44-1.07.44-.8-.17-1.07-.44-.44-.65-.44-1.07m-7.24.43c-.12 0-.21-.1-.21-.21s.1-.21.21-.21h4.45c.12 0 .21.1.21.21s-.1.21-.21.21H1.65Zm10.83 7.95-8.65.08c-.44 0-.78-.09-1.01-.29-.24-.21-.36-.52-.35-.94V15.2c0-.84 0-1.68-.02-2.3 0-.12.09-.21.21-.22.12 0 .21.09.22.21 0 .62.01 1.46.02 2.3v2.33c0 .28.07.49.21.61.15.13.39.19.72.19 2.89 0 5.78-.07 8.66-.08h2.91q.42-.015.6-.21c.12-.13.18-.32.18-.58l-.17-12.94-2.66.04c-.43 0-.77-.1-1.01-.29-.22-.18-.36-.43-.42-.76a.3.3 0 0 1-.02-.09V.43H3.65c-.23.03-.44.12-.58.26-.13.12-.21.3-.22.51-.03.91-.04 1.91-.05 2.93-.01 1.21 0 2.44 0 3.54 0 .12-.09.21-.21.21s-.21-.09-.21-.21V4.12c0-1.02.03-2.03.05-2.94 0-.34.14-.61.34-.81.22-.2.52-.33.85-.37h8.51c.06 0 .12.03.16.07l4.09 4.07s.06.1.06.16l.17 13.14c0 .38-.1.68-.3.89s-.5.32-.89.34h-2.95Zm3.24-14.59L12.35.73v2.6c.02.27.11.46.27.59.17.13.41.2.74.2l2.36-.03Zm-8.19 7.57H1.57s-.08 0-.11-.02a.24.24 0 0 1-.09-.06S.1 10.48.1 10.48l-.02-.02a.24.24 0 0 1-.06-.09v-.02c-.01-.04-.02-.07-.02-.11s.01-.09.03-.13.05-.07.08-.1L1.37 9s.06-.04.09-.05h.02c.03 0 .05-.01.08-.01h5.97c.16-.33.37-.63.63-.89.58-.58 1.37-.93 2.25-.93s1.68.36 2.25.93c.58.58.93 1.37.93 2.25s-.36 1.68-.93 2.25c-.58.58-1.37.93-2.25.93a3.18 3.18 0 0 1-2.88-1.82Zm-.17-2.29H1.61l-1.11.89 1.12.97h5.75a3.17 3.17 0 0 1 0-1.86m2.28.16c-.2.2-.32.47-.32.77s.12.57.32.77.47.32.77.32.57-.12.77-.32.32-.47.32-.77-.12-.57-.32-.77-.47-.32-.77-.32-.57.12-.77.32M8.47 8.35a2.75 2.75 0 0 0 0 3.9 2.75 2.75 0 0 0 3.9 0 2.75 2.75 0 0 0 0-3.9 2.75 2.75 0 0 0-3.9 0" data-name="Layer 1"/></svg>\ No newline at end of filediff --git a/webui/public/auth.svg b/webui/public/auth.svgnew file mode 100644index 000000000..72c413586--- /dev/null+++ b/webui/public/auth.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 22.6 17.51"><g fill="none" stroke="#000" stroke-miterlimit="10" stroke-width=".35" data-name="Layer 1"><path d="m10.64 14.09-.04.04M12.6 7.01l2.56 2.56-.75.75-1.05 1.04-1.04 1.05-1.04 1.04-.64.64M5.5 11.25l-.31-.31a.573.573 0 0 1 0-.82l.35-.35 1.04-1.04 1.04-1.04 1.04-1.04L9.7 5.61l.76-.76.77.77M5.03.38l3.65 3.65-.28.29-1.04 1.04-.71.7-.33.34-1.04 1.04-.21.2-.83.84-.29.28L.3 5.11M8.4 4.32l1.16 1.16M7.36 5.36l1.16 1.16M6.32 6.4l1.16 1.16M5.28 7.44l1.16 1.17M4.24 8.48 5.4 9.65"/><path d="M14.4 10.32h.01l.84.85M13.36 11.36l.85.85M12.32 12.4v.01l.85.84M11.28 13.44v.01l.85.84M4.45 2.14h.01l1.99 2-.36 1.35.56.57M2.68 3.91l1.11 1.11-.18 1.16 1.46 1.46M22.3 4.54l-6.08 6.08M18.07.3l-4.83 4.83-1.72.21-.29.29-1.8 1.8-.07 3.24c.13.03.26.05.38.05.79 0 1.48-.64 1.49-1.48v-.87l1.37-1.36.4-.4M6.51 12.9c-.22.22-.57.22-.79 0l-.54-.55a.555.555 0 0 1 0-.79l.32-.32 1.15-1.15 1.33 1.33"/><path d="M7.84 14.23c-.22.22-.57.22-.79 0l-.54-.54a.555.555 0 0 1 0-.79l1.47-1.47 1.33 1.33"/><path d="m10.65 14.09-1.47 1.47s-.04.04-.07.06a.55.55 0 0 1-.72-.06l-.54-.55a.555.555 0 0 1 0-.79l1.47-1.47 1.32 1.32"/><path d="m11.16 16.22-.66.66c-.22.22-.57.22-.79 0l-.54-.54a.55.55 0 0 1-.06-.72c.02-.02.04-.05.06-.07l1.47-1.47v.01l1.32 1.32-.81.81Z"/><path d="M13.21 15.6c.37.37.37.96 0 1.33s-.96.37-1.33 0l-.72-.72M11.66 14.75l.35-.35M14.81 14.54c.22.22.22.57 0 .79l-.54.54c-.22.22-.57.22-.79 0l-.27-.27-1.2-1.2.12-.12 1.04-1.04.18-.18"/><path d="M16.14 13.21c.22.22.22.57 0 .79l-.54.54c-.22.22-.57.22-.79 0l-1.47-1.47.87-.86.47-.47M16.22 10.62l1.26 1.26c.22.22.22.57 0 .79l-.54.54c-.22.22-.57.22-.79 0l-1.47-1.47.57-.57.76-.76zM4.62 1.76c0 .15-.06.29-.16.39a.552.552 0 0 1-.94-.39c0-.31.24-.55.55-.55s.55.24.55.55ZM2.89 3.48c0 .3-.24.55-.55.55s-.55-.24-.55-.55.24-.55.55-.55.55.24.55.55Z"/></g></svg>\ No newline at end of filediff --git a/webui/public/chat-model.svg b/webui/public/chat-model.svgnew file mode 100644index 000000000..4bbc0ba4d--- /dev/null+++ b/webui/public/chat-model.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 22.6 21.17"><g fill="none" stroke="#000" stroke-miterlimit="10" stroke-width=".35" data-name="Layer 1"><path d="M17.13 2.96h1.77a2.394 2.394 0 0 1 2.39 2.39v3.97a2.39 2.39 0 0 1-2.39 2.39h-6.62a2.39 2.39 0 0 1-2.39-2.39V5.35c0-.65.26-1.24.68-1.67.43-.45 1.04-.72 1.71-.72h1.77"/><rect width="9.22" height="6.43" x="10.98" y="4.12" rx="1.76" ry="1.76"/><path d="M21.29 8.98h.5c.28 0 .51-.23.51-.51V6.21c0-.28-.23-.51-.51-.51h-.5M20.61 4.29V1.38M21.16.84c0 .3-.24.54-.54.54s-.54-.24-.54-.54.24-.54.54-.54.54.24.54.54ZM10.57 4.29V1.38M10.03.84c0 .3.24.54.54.54s.54-.24.54-.54-.24-.54-.54-.54-.54.24-.54.54ZM9.89 5.69h-.5c-.28 0-.51.23-.51.51v2.26c0 .28.23.51.51.51h.5M14.06 1.86h3.07v1.1h-3.07z"/><path d="M13.79 11.71v3.97c0 .44-.36.8-.8.8h-8.4l-2.64 2.18v-2.18h-.84c-.44 0-.8-.36-.8-.8V7.42c0-.45.36-.81.8-.81h7.78"/><path d="M18.85 11.59V18c0 .42-.34.76-.75.76h-.79v2.05l-2.48-2.05H6.96A.76.76 0 0 1 6.2 18v-1.51M4.2 11.71c0 .08-.06.14-.14.14s-.14-.06-.14-.14.06-.14.14-.14.14.06.14.14Z"/><circle cx="6.05" cy="11.71" r=".14"/><circle cx="8.04" cy="11.71" r=".14"/><circle cx="10.04" cy="11.71" r=".14"/></g></svg>\ No newline at end of filediff --git a/webui/public/dev.svg b/webui/public/dev.svgnew file mode 100644index 000000000..514f3aabb--- /dev/null+++ b/webui/public/dev.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 22.25 22.6"><g fill="none" stroke="#000" stroke-linecap="round" stroke-miterlimit="10" stroke-width=".35" data-name="Layer 1"><path d="m.3 1.8 2.55 1.5L5.4 1.8"/><path d="M2.85.3.3 1.8v3l2.55 1.5L5.4 4.8v-3L2.85.3M2.85 3.3v3M21.95 1.8 19.4 3.3l-2.55-1.5"/><path d="m19.4.3 2.55 1.5v3L19.4 6.3l-2.55-1.5v-3L19.4.3M19.4 3.3v3M.3 17.8l2.55 1.5 2.55-1.5"/><path d="M2.85 16.3.3 17.8v3l2.55 1.5 2.55-1.5v-3l-2.55-1.5M2.85 19.3v3M21.95 17.8l-2.55 1.5-2.55-1.5"/><path d="m19.4 16.3 2.55 1.5v3l-2.55 1.5-2.55-1.5v-3l2.55-1.5M19.4 19.3v3M8.13 6.28a5.855 5.855 0 0 1 5.98 0c1.01.6 1.83 1.51 2.32 2.59.34.74.53 1.56.53 2.43s-.19 1.69-.53 2.43a5.9 5.9 0 0 1-2.33 2.59 5.855 5.855 0 0 1-5.98 0 5.96 5.96 0 0 1-2.33-2.59c-.34-.74-.53-1.56-.53-2.43s.19-1.69.53-2.43c.5-1.08 1.31-1.99 2.32-2.59"/><path d="M14.11 6.28V3.45h2.74M8.13 6.28h0V3.45H5.4M5.77 8.85H2.85V6.3M5.77 13.75H2.85v2.55M16.48 8.85h2.92V6.3M16.48 13.75h2.92v2.55M14.11 16.32h0v2.84h2.74M8.13 16.32h0v2.84H5.4M9.29 9.31 7.17 11.3l2.03 2.07M13.05 13.37l2.12-1.99-2.03-2.07M10.28 13.47l1.7-4.34"/></g></svg>\ No newline at end of filediff --git a/webui/public/embed-model.svg b/webui/public/embed-model.svgnew file mode 100644index 000000000..a29319fc9--- /dev/null+++ b/webui/public/embed-model.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 19.13 22.6"><g fill="none" stroke="#000" stroke-miterlimit="10" stroke-width=".35" data-name="Layer 1"><path d="M18.61 17.15V20l-7.87 2.3v-9.84l4.87-1.43 3-.88v4.01M.52 17.16V20l7.88 2.3v-9.84h-.01l-4.86-1.43-3.01-.88v4.01M8.39 12.46h2.3499999999999996M8.51 22.3h2.12M13.88 9.28c-.32.35-.77.56-1.28.56H6.53c-.51 0-.96-.22-1.28-.56-.28-.31-.45-.72-.45-1.17V4.26a1.739 1.739 0 0 1 1.74-1.73h6.07a1.74 1.74 0 0 1 1.74 1.73v3.85c0 .45-.17.86-.45 1.17Z"/><rect width="7.71" height="5.37" x="5.71" y="3.5" rx="1.27" ry="1.27"/><path d="M14.33 7.55h.42c.24 0 .43-.19.43-.43V5.23c0-.24-.19-.43-.43-.43h-.42M13.77 3.64V1.21M14.22.75c0 .25-.2.45-.45.45s-.45-.2-.45-.45.2-.45.45-.45.45.2.45.45ZM5.37 3.64V1.21"/><circle cx="5.37" cy=".75" r=".45"/><path d="M4.8 4.81h-.42c-.23 0-.42.19-.42.43v1.89c0 .24.19.43.42.43h.42M18.61 14.16l-1.08.47s-.06.05-.06.1v2.76c0 .08.08.13.15.1l1-.44.15-.07s.06-.05.06-.1v-2.76c0-.08-.08-.13-.15-.1l-.07.03ZM.52 14.16l1.08.47s.06.05.06.1v2.76c0 .08-.08.13-.15.1l-1-.44-.16-.07s-.06-.05-.06-.1v-2.76c0-.08.08-.13.15-.1l.07.03ZM12.9 13.5l3.55-1.04M12.9 14.91l3.55-1.04M2.68 13.87l3.55 1.04M9.57 12.46v1.04M13.31 9.15l.57.13.98.22c.44.1.74.48.74.93v.6M5.82 9.15l-.57.13-.98.22c-.44.1-.74.48-.74.93v.6"/></g></svg>\ No newline at end of filediff --git a/webui/public/settings.svg b/webui/public/settings.svgnew file mode 100644index 000000000..420d32bf9--- /dev/null+++ b/webui/public/settings.svg@@ -0,0 +1,4 @@+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="-5.0 -10.0 110.0 135.0" fill="#e0e0e0">+ <path d="m52.301 90.102h-4.1016c-3 0-5 0-6.8984-1.3984-1.8984-1.3984-2.5-3.3008-3.5-6.1016l-1.1016-3.6016c-0.19922-0.60156-0.69922-1.1992-1.3984-1.6016l-1.1016-0.60156c-0.60156-0.30078-1.5-0.39844-2.3008-0.19922l-4.3008 1.1992c-3.1016 0.89844-5.1016 1.5-7.3984 0.5-2.3008-0.89844-3.3984-2.8008-5-5.6016l-1.8008-3.1016c-1.5-2.5-2.5-4.3008-2.3008-6.6992 0.19922-2.3984 1.6016-3.8008 3.6016-6.1016l3.8008-4.1992c0.19922-0.19922 0.60156-1.3984 0.60156-2.6016 0-1.1016-0.5-2.3008-0.80078-2.6992l-3.6016-4c-2-2.1992-3.3008-3.6992-3.6016-6.1016-0.19922-2.3984 0.80078-4.1992 2.3008-6.6992l1.8008-3.1016c1.6016-2.8008 2.6992-4.6016 5-5.6016 2.3008-0.89844 4.3008-0.39844 7.3984 0.5l4.3984 1.1992c0.69922 0.10156 1.5 0 2.3008-0.30078l1.1016-0.60156c0.5-0.30078 1-0.89844 1.3008-1.6992l1.1992-3.5c0.89844-2.8008 1.6016-4.6992 3.5-6.1016 1.8984-1.3984 3.8984-1.3984 6.8984-1.3984h4.1016c3 0 5 0 6.8984 1.3984 1.8984 1.3984 2.5 3.1992 3.5 6.1016l1.1992 3.6016c0.19922 0.60156 0.69922 1.1992 1.3984 1.6016l1.1016 0.60156c0.60156 0.30078 1.5 0.39844 2.3008 0.19922l4.3008-1.1992c3.1016-0.89844 5.1016-1.5 7.3984-0.5 2.3008 0.89844 3.3984 2.8008 5 5.5l1.8008 3.1016c1.3984 2.5 2.5 4.3008 2.3008 6.6992-0.19922 2.3984-1.6016 3.8008-3.6016 6.1016l-3.9961 4.4062c-0.19922 0.19922-0.60156 1.3984-0.60156 2.6016 0 1.1016 0.5 2.3008 0.80078 2.6992l3.6016 4c2 2.1992 3.3008 3.6992 3.6016 6.1016 0.19922 2.3984-0.80078 4.1992-2.3008 6.6992l-1.8008 3.1016c-1.6016 2.8008-2.6992 4.6016-5 5.6016-2.3008 0.89844-4.3984 0.39844-7.3984-0.5l-4.3984-1.1992c-0.69922-0.10156-1.5 0-2.3008 0.30078l-1.1016 0.60156c-0.5 0.30078-1 0.89844-1.3008 1.6992l-1.1992 3.5c-0.89844 2.8008-1.6016 4.6992-3.5 6.1016-1.8008 1.293-3.8008 1.293-6.8008 1.293zm-6.6016-7.3008c0.5 0.10156 1.6016 0.10156 2.6016 0.10156h4.1016c1 0 2 0 2.6016-0.10156 0.19922-0.5 0.60156-1.5 0.89844-2.3984l1.1992-3.6016c0.89844-2.3008 2.3984-4.1992 4.3984-5.3984l1.3984-0.80078c2.3984-1.3008 5.1016-1.6016 7.6016-1l4.6016 1.3008c1 0.30078 2.1016 0.60156 2.6992 0.69922 0.30078-0.5 0.89844-1.5 1.3984-2.3984l1.8008-3.1016c0.5-0.80078 1-1.8008 1.1992-2.3008-0.30078-0.39844-1-1.1992-1.6992-2l-3.8008-4.1992c-1.6016-2-2.5-4.8008-2.5-7.3984 0-2.6016 0.89844-5.3984 2.3008-7.3008l3.8984-4.3984c0.69922-0.69922 1.3984-1.5 1.6992-2-0.19922-0.5-0.80078-1.3984-1.1992-2.3008l-1.8984-3.1016c-0.5-0.89844-1.1016-1.8984-1.3984-2.3984-0.60156 0.10156-1.6992 0.39844-2.6992 0.69922l-4.3984 1.3008c-2.6992 0.60156-5.3008 0.30078-7.6016-0.89844l-1.4023-0.80469c-2.1016-1.3984-3.6016-3.1992-4.3984-5.3984l-1.3008-3.8008c-0.30078-0.89844-0.60156-1.8984-0.89844-2.3984-0.5-0.10156-1.6016-0.10156-2.6016-0.10156h-4.1016c-1 0-2 0-2.6016 0.10156-0.19922 0.5-0.60156 1.5-0.89844 2.3984l-1.1992 3.6016c-0.89844 2.3008-2.3984 4.1992-4.3984 5.3984l-1.3984 0.80078c-2.3984 1.3008-5.1016 1.6016-7.6016 1l-4.6016-1.3008c-1-0.30078-2.1016-0.60156-2.6992-0.69922-0.30078 0.5-0.89844 1.5-1.3984 2.3984l-1.8008 3.1016c-0.5 0.80078-1 1.8008-1.1992 2.3008 0.30078 0.39844 1 1.1992 1.6992 2l3.8008 4.1992c1.6016 2 2.5 4.8008 2.5 7.3984 0 2.6016-0.89844 5.3984-2.3008 7.3008l-3.8984 4.3984c-0.69922 0.69922-1.3984 1.5-1.6992 2 0.19922 0.5 0.80078 1.3984 1.1992 2.3008l1.8008 3.1016c0.5 0.89844 1.1016 1.8984 1.3984 2.3984 0.60156-0.10156 1.6992-0.39844 2.6992-0.69922l4.3984-1.1992c2.6992-0.60156 5.3008-0.30078 7.6016 0.89844l1.3984 0.80078c2.1016 1.3008 3.6016 3.1992 4.3984 5.3984l1.3008 3.8008c0.5 0.80078 0.80078 1.8008 1 2.3008z"></path>+ <path d="m50.301 66.5c-9 0-16.398-7.3008-16.398-16.398 0-9.1016 7.3008-16.398 16.398-16.398 9.1016 0 16.398 7.3008 16.398 16.398 0 9.0977-7.3984 16.398-16.398 16.398zm0-25.5c-5 0-9.1016 4.1016-9.1016 9.1016s4.1016 9.1016 9.1016 9.1016 9.1016-4.1016 9.1016-9.1016c-0.003906-5-4.1016-9.1016-9.1016-9.1016z"></path>+</svg>\ No newline at end of filediff --git a/webui/splash.jpg b/webui/public/splash.jpgsimilarity index 100%rename from webui/splash.jpgrename to webui/public/splash.jpgdiff --git a/webui/public/utility-model.svg b/webui/public/utility-model.svgnew file mode 100644index 000000000..0e3f0e5a4--- /dev/null+++ b/webui/public/utility-model.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" data-name="Layer 2" viewBox="0 0 22.15 22.6"><g fill="none" stroke="#000" stroke-miterlimit="10" stroke-width=".35" data-name="Layer 1"><path d="M8.89 13.97c.93.14 1.65.94 1.65 1.91v5.1"/><path d="M3.88 20.98v-5.1c0-.63.3-1.19.77-1.54.32-.25.73-.39 1.17-.39h2.79c.1 0 .19 0 .29.02M1.35 22.3v-1.32h18.07v1.32"/><path d="M8.99 17.21c0 .98-.8 1.78-1.78 1.78s-1.78-.8-1.78-1.78.8-1.78 1.78-1.78 1.78.8 1.78 1.78ZM7.78 16.64l-1.14 1.14M4.15 3.88a2.08 2.08 0 0 1 1.04 2.24c0 .02-.01.05-.02.07a2.08 2.08 0 0 1-2.02 1.59c-.22 0-.43-.03-.63-.1A2.07 2.07 0 0 1 1.08 5.7a2.078 2.078 0 0 1 3.08-1.82M2.48 5.04l1.33 1.33M8.89 13.97 5.17 6.19M4.6 14.29 2.48 7.78"/><path d="m5.19 6.12 7.42-2.26-.08-.27-.56-1.81-.08-.26-7.74 2.36M15.34 2.73l-2.81.86M14.77.93l-2.8.85M16.94 2.26c-.23.35-.62.59-1.07.59-.18 0-.34-.04-.5-.1-.01 0-.02 0-.03-.01a1.272 1.272 0 0 1-.57-1.81 1.272 1.272 0 1 1 2.17 1.33ZM16.27 1.17l-.81.81"/><path d="m15.36 2.82.4 1.83.25-.05 1.21-.25.24-.06-.51-2.02"/><path d="m17.22 4.35.84.97-.2 1.66M16.01 4.6l-.34 1.35.69 1.1M20.47 22.3H.3"/><rect width="7.77" height="5.96" x="13.52" y="7.04" rx="1.73" ry="1.73"/><path d="M21.29 11.14h.34c.19 0 .35-.15.35-.35V9.25c0-.19-.15-.35-.35-.35h-.34M20.83 7.68V6.64"/><circle cx="20.83" cy="6.27" r=".37"/><path d="M13.98 7.68V6.64"/><circle cx="13.98" cy="6.27" r=".37"/><path d="M13.52 8.91h-.34c-.19 0-.35.15-.35.35v1.54c0 .19.15.35.35.35h.34"/></g></svg>\ No newline at end of filediff --git a/webui/settings.css b/webui/settings.cssdeleted file mode 100644index 795efb521..000000000--- a/webui/settings.css+++ /dev/null@@ -1,378 +0,0 @@-select {- transition: none;-}--.modal-overlay {- position: fixed;- top: 0;- left: 0;- right: 0;- bottom: 0;- background: rgba(0, 0, 0, 0.5);- display: flex;- align-items: center;- justify-content: center;- z-index: 2001;-}--.modal-container {- background: var(--color-panel);- color: var(--color-primary);- border-radius: 0.5rem;- width: 90%;- max-width: 800px;- max-height: 90vh;- display: flex;- flex-direction: column;-}--.modal-header {- padding: 1em 1em;- border-bottom: 1px solid var(--color-border);-}--.modal-header h2 {- color: var(--color-primary);- font-size: 1.25rem;- margin: 0;-}--.modal-header ul {- margin-bottom: 0;- line-height: 2em;-}--#settings-title {- padding: 0.5rem 2rem 0.5rem 2rem;-}--.modal-content {- padding: var(--spacing-sm);- overflow-y: auto;- flex-grow: 1;- background-clip: border-box;- border: 6px solid transparent;- transition: all 0.3s ease;- margin-bottom: 0;- padding-bottom: 0;-}--.modal-content::-webkit-scrollbar {- width: 6px;- height: 6px;-}--.modal-content::-webkit-scrollbar-track {- background: transparent;- margin: 4px 0;- border-radius: 6px;-}--.modal-content::-webkit-scrollbar-thumb {- background-color: rgba(155, 155, 155, 0.5);- border-radius: 6px;- transition: background-color 0.2s ease;-}--.modal-content::-webkit-scrollbar-thumb:hover {- background-color: rgba(155, 155, 155, 0.7);-}--.modal-footer {- padding: var(--spacing-sm);- border-top: 1px solid var(--color-border);- display: flex;- justify-content: flex-end;- gap: 1rem;- background: var(--color-background);-}--.section {- margin-bottom: 2rem;- padding: 1rem;- border: 1px solid var(--color-border);- border-radius: 0.5rem;-}--.section-title {- font-size: 1.25rem;- font-weight: bold;- margin-bottom: 0.5rem;-}--.section-description {- color: #666;- margin-bottom: 1rem;-}--.field {- display: grid;- margin-block-start: 1rem;- grid-template-columns: 60% 1fr;- align-items: center;-}--.field.field-full {- grid-template-columns: 1fr;-}--.field-label {- display: flex;- flex-direction: column;- padding-right: 0.5em;-}--.field-title {- font-weight: bold;-}--.field-description {- color: #666;- font-size: 0.875rem;- margin-top: 0.25rem;- margin-bottom: 0.5rem;-}--.field-control {- width: 100%;- display: flex;- align-items: center;-}--input[type="text"] {- width: 100%;- padding: 0.5rem;- border: 1px solid #ddd;- border-radius: 0.25rem;- font-family: "Rubik", Arial, Helvetica, sans-serif;-}--input[type="password"] {- width: 100%;- padding: 0.5rem;- border: 1px solid #ddd;- border-radius: 0.25rem;- font-family: "Rubik", Arial, Helvetica, sans-serif;-}--textarea {- width: 100%;- min-height: 100px;- padding: 0.5rem;- border: 1px solid #ddd;- border-radius: 0.25rem;- font-family: Roboto Mono;- scroll-behavior: smooth;- resize: none;- /*-/* scrollbar padding */- background-clip: border-box;- border: 6px solid transparent;- transition: all 0.3s ease;-}--.toggle {- position: relative;- display: inline-block;- width: 60px;- height: 34px;- margin: 0;-}--.toggle input {- opacity: 0;- width: 0;- height: 0;-}--.toggler {- position: absolute;- cursor: pointer;- top: 0;- left: 0;- right: 0;- bottom: 0;- background-color: #ccc;- transition: 0.4s;- border-radius: 34px;-}--.toggler:before {- position: absolute;- content: "";- height: 26px;- width: 26px;- left: 4px;- bottom: 4px;- background-color: white;- transition: 0.4s;- border-radius: 50%;-}--input:checked + .toggler {- background-color: #2196f3;-}--input:checked + .toggler:before {- transform: translateX(26px);-}--input[type="range"] {- width: 100%;-}--.range-value {- min-width: 3em;- text-align: right;-}--#buttons-container {- display: flex;- gap: 0.875rem;-}--.btn {- padding: 0.7rem 1.5rem;- border-radius: 0.25rem;- cursor: pointer;- border: none;- font-size: 0.875rem;- font-family: "Rubik", Arial, Helvetica, sans-serif;-}--.btn-ok {- background: #3270e2;- color: white;- transition: background 0.3s ease-in-out;-}--.btn-ok > svg {- max-width: 20px;-}--.btn-ok:hover {- background: #3265c0;-}--.btn-ok:active {- background: #345693;-}--.btn-cancel {- background: #ddd;- color: #333;- transition: background 0.3s ease-in-out;-}--.btn-cancel:hover {- background: #a6a6a6;-}--.btn-cancel:active {- background: #808080;-}--.btn-field {- background: #2196f3;- color: white;- width: fit-content;-}--.btn-field:disabled {- background: #ccc;- cursor: not-allowed;-}--select {- width: 100%;- padding: 0.5rem;- border: 1px solid #ddd;- border-radius: 0.25rem;- background-color: white;- font-size: inherit;- cursor: pointer;- font-family: "Rubik", Arial, Helvetica, sans-serif;- outline: none;-}--select:disabled {- background-color: #f5f5f5;- cursor: not-allowed;-}--/* Style for navigation links */-nav ul {- list-style-type: none;- padding: 0;-}--nav ul li {- display: inline;- margin-right: 1rem;-}--nav ul li a {- text-decoration: none;- color: #2196f3;- font-weight: bold;-}--nav ul li a:hover {- text-decoration: underline;-}--#settings-sections {- background-color: var(--color-secondary);- padding: 0.3rem 2rem;- line-height: 1.6rem;- font-size: var(--font-size-normal);- border-bottom: 1px solid var(--color-border);-}---@media (max-width: 768px) {- .modal-header {- padding: var(--spacing-sm);- border-bottom: 1px solid var(--color-border);- }-- .modal-header h2 {- font-size: 1.25rem;- margin: 0;- }-- .modal-content {- padding: 1rem;- overflow-y: auto;- flex-grow: 1;- }-- .modal-footer {- padding: var(--spacing-sm);- }-- #buttons-container {- display: flex;- gap: 1rem;- margin: 0 auto;- }-- .section {- margin-bottom: 1.5rem;- padding: 1rem;- border: 1px solid var(--color-border);- border-radius: 0.5rem;- }-- .field-control {- width: 100%;- }- .field-description {- padding-bottom: var(--spacing-sm);- }- .field {- padding-top: var(--spacing-xs);- padding-bottom: var(--spacing-xs);- display: block;- align-items: center;- }-}