1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 09:19:54 +00:00

json & web search

This commit is contained in:
Laura
2025-08-11 00:15:58 +02:00
parent 5ae60e0f94
commit a8cbef7c7b
19 changed files with 374 additions and 59 deletions

View File

@@ -1 +0,0 @@
code.hljs{color:#cad3f5;background:#24273a}code .hljs-keyword{color:#c6a0f6}code .hljs-built_in{color:#ed8796}code .hljs-type{color:#eed49f}code .hljs-literal{color:#f5a97f}code .hljs-number{color:#f5a97f}code .hljs-operator{color:#91d7e3}code .hljs-punctuation{color:#b8c0e0}code .hljs-property{color:#8bd5ca}code .hljs-regexp{color:#f5bde6}code .hljs-string{color:#a6da95}code .hljs-char.escape_{color:#a6da95}code .hljs-subst{color:#a5adcb}code .hljs-symbol{color:#f0c6c6}code .hljs-variable{color:#c6a0f6}code .hljs-variable.language_{color:#c6a0f6}code .hljs-variable.constant_{color:#f5a97f}code .hljs-title{color:#8aadf4}code .hljs-title.class_{color:#eed49f}code .hljs-title.function_{color:#8aadf4}code .hljs-params{color:#cad3f5}code .hljs-comment{color:#939ab7}code .hljs-doctag{color:#ed8796}code .hljs-meta{color:#f5a97f}code .hljs-section{color:#8aadf4}code .hljs-tag{color:#8bd5ca}code .hljs-name{color:#c6a0f6}code .hljs-attr{color:#8aadf4}code .hljs-attribute{color:#a6da95}code .hljs-bullet{color:#8bd5ca}code .hljs-code{color:#a6da95}code .hljs-emphasis{color:#ed8796;font-style:italic}code .hljs-strong{color:#ed8796;font-weight:bold}code .hljs-formula{color:#8bd5ca}code .hljs-link{color:#7dc4e4;font-style:italic}code .hljs-quote{color:#a6da95;font-style:italic}code .hljs-selector-tag{color:#eed49f}code .hljs-selector-id{color:#8aadf4}code .hljs-selector-class{color:#8bd5ca}code .hljs-selector-attr{color:#c6a0f6}code .hljs-selector-pseudo{color:#8bd5ca}code .hljs-template-tag{color:#f0c6c6}code .hljs-template-variable{color:#f0c6c6}code .hljs-addition{color:#a6da95;background:rgba(166,218,149,.15)}code .hljs-deletion{color:#ed8796;background:rgba(237,135,150,.15)}

View File

@@ -137,21 +137,43 @@ body {
.message .role {
position: absolute;
display: flex;
gap: 4px;
align-items: center;
font-family: "Comic Code", ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Ubuntu Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
font-size: 12px;
line-height: 12px;
top: 8px;
top: 6px;
left: 6px;
padding-left: 20px;
}
#messages .message .role::before {
.message .tags::before {
content: "";
width: 16px;
height: 16px;
position: absolute;
top: -1px;
left: 0;
top: 7px;
left: -10px;
height: 2px;
width: 5px;
background: #939ab7;
}
.message .tags {
display: flex;
gap: 4px;
position: relative;
margin-left: 12px;
}
.message:not(.has-tags) .tags {
display: none;
}
#messages .message .tag-json {
background-image: url(icons/json-mode.svg);
}
#messages .message .tag-search {
background-image: url(icons/search-tool.svg);
}
.message.user .role::before {
@@ -187,15 +209,28 @@ body {
display: none;
}
.message .reasoning,
.message div.text {
#messages .message .reasoning,
#messages .message div.text {
background: #24273a;
}
.message textarea.text {
#messages .message textarea.text {
background: #181926;
}
.message .text .error {
color: #ed8796;
}
.message.errored {
border: 2px solid #ed8796;
}
.message.errored .options .copy,
.message.errored .options .edit {
display: none;
}
.reasoning-text pre {
background: #1b1d2a;
}
@@ -387,14 +422,18 @@ select {
.reasoning .toggle::before,
.reasoning .toggle::after,
#bottom,
.message .role::before,
#messages .message .role::before,
#messages .message .tag-json,
#messages .message .tag-search,
#json,
#search,
#scrolling,
#clear,
#add,
#send,
.pre-copy,
.message .copy,
.message .edit,
#messages .message .copy,
#messages .message .edit,
.message .delete,
#chat .option label {
display: block;
@@ -405,8 +444,20 @@ select {
background-repeat: no-repeat;
}
#messages .message .tag-json,
#messages .message .tag-search,
#messages .message .role::before {
content: "";
width: 16px;
height: 16px;
}
input.invalid {
border: 1px solid #ed8796;
}
.pre-copy,
.message .copy {
#messages .message .copy {
background-image: url(icons/copy.svg);
}
@@ -415,11 +466,11 @@ select {
background-image: url(icons/check.svg);
}
.message .edit {
#messages .message .edit {
background-image: url(icons/edit.svg);
}
.message.editing .edit {
#messages .message.editing .edit {
background-image: url(icons/save.svg);
}
@@ -494,8 +545,14 @@ label[for="reasoning-tokens"] {
background-image: url(icons/add.svg);
}
#scrolling {
#json,
#search,
#scrolling,
#clear {
position: unset !important;
}
#scrolling {
background-image: url(icons/screen-slash.svg);
}
@@ -503,8 +560,23 @@ label[for="reasoning-tokens"] {
background-image: url(icons/screen.svg);
}
#json {
background-image: url(icons/json-off.svg);
}
#json.on {
background-image: url(icons/json-on.svg);
}
#search {
background-image: url(icons/search-off.svg);
}
#search.on {
background-image: url(icons/search-on.svg);
}
#clear {
position: unset !important;
background-image: url(icons/trash.svg);
}

View File

@@ -106,6 +106,14 @@
background-image: url(icons/tags/vision.svg)
}
.tags .tag.json {
background-image: url(icons/tags/json.svg)
}
.tags .tag.all {
background-image: url(icons/tags/all.svg)
}
.dropdown .search {
background: #2a2e41;
border-top: 2px solid #494d64;

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 602 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 602 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 602 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 716 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 716 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 716 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 928 B

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 602 B