Commit graph

144 commits

Author SHA1 Message Date
Algorithm5838
e031fadc35
perf: skip highlight.js auto-detection in read-only code blocks (#25824) 2026-06-17 02:57:02 +02:00
Algorithm5838
51cd43229c
perf: extend fast-deep-equal to remaining call sites (#23845) 2026-04-20 08:26:30 +09:00
Algorithm5838
bf49358185
refactor: use shared unescapeHtml in CodeBlock (#23553) 2026-04-11 15:00:33 -06:00
Timothy Jaeryang Baek
edb8971c7d refac 2026-03-29 19:30:38 -05:00
Timothy Jaeryang Baek
5c4062c648 refac 2026-03-24 16:20:29 -05:00
Timothy Jaeryang Baek
6b66cb5ef6 refac 2026-03-17 20:34:38 -05:00
Classic298
a0d6c209c3
perf: fast-path token comparison in CodeBlock (#22101)
During streaming, every token change triggers a full JSON.stringify comparison on the code block token object. Add an O(1) fast-path check on token.text and token.raw — the fields that actually change during streaming — before falling back to the expensive JSON.stringify comparison for infrequent structural changes.
2026-03-01 13:37:10 -05:00
Timothy Jaeryang Baek
6b462ff121 refac 2026-02-28 13:40:06 -06:00
Timothy Jaeryang Baek
8c5cfa530d refac: styling 2026-02-15 22:55:50 -06:00
Timothy Jaeryang Baek
d215e46315 refac: styling 2026-02-15 22:49:56 -06:00
Timothy Jaeryang Baek
4d74e6cefa refac: styling 2025-11-30 05:01:41 -05:00
Timothy Jaeryang Baek
3ebb3e2143 refac: styling 2025-11-30 03:56:12 -05:00
Timothy Jaeryang Baek
fdc0f04a36 refac 2025-11-01 05:56:44 -04:00
Timothy Jaeryang Baek
9942de8011 refac/fix: mermaid 2025-10-21 17:03:04 -04:00
Timothy Jaeryang Baek
43eac35b5b refac: code block stdout/err styling 2025-10-20 01:11:19 -04:00
Timothy Jaeryang Baek
d11fba2dfd chore: format 2025-10-07 15:23:46 -05:00
_00_
fa2534a529 Removed unused toast import & Code Format 2025-10-06 00:16:01 +02:00
_00_
8538d1b2cb UPD: Add Validators & Error Toast for Mermaid & Vega diagrams
### UPD: Feat:  Add Validators & Error Toast for Mermaid & Vega diagrams

Description:
As many time the diagrams generated or entered have syntax errors the diagrams are not rendered due to that errors, but as there isn't any notification is difficult to know what happend.

This PR add validator and toast notification when error on Mermaid and Vega/Vega-Lite diagrams, helping the user to fix its.

Note:
Another possibility of integrating this Graph Visualizer is through its svelte component: https://github.com/vega/svelte-vega/tree/main/packages/svelte-vega
2025-10-06 00:09:17 +02:00
_00_
2e08bda19d UPD: Add Validators & Error Toast for Mermaid & Vega diagrams
### UPD: Feat:  Add Validators & Error Toast for Mermaid & Vega diagrams

Description:
As many time the diagrams generated or entered have syntax errors the diagrams are not rendered due to that errors, but as there isn't any notification is difficult to know what happend.

This PR add validator and toast notification when error on Mermaid and Vega/Vega-Lite diagrams, helping the user to fix its.
2025-10-04 14:17:04 +02:00
_00_
351ba167f5 FEAT: Add Vega Char Visualizer Renderer
### FEAT: Add Vega Char Visualizer Renderer

Feature required in https://github.com/open-webui/open-webui/discussions/18022

Added npm vega lib to package.json
Added function for visualization renderer to src/libs/utils/index.ts
Added logic to src/lib/components/chat/Messages/CodeBlock.svelte

The treatment is similar as for mermaid diagrams.

Reference: https://vega.github.io/vega/
2025-10-03 19:42:04 +02:00
Timothy Jaeryang Baek
e5daec32ba refac 2025-09-24 17:16:07 -05:00
Timothy Jaeryang Baek
e7061b70e9 refac 2025-09-24 16:01:31 -05:00
Tim Jaeryang Baek
3d2f7e3143
Merge pull request #17715 from ShirasawaSama/revert-17498-patch-19
Revert "feat: Dynamically load CodeEditor.svelte to improve first-screen loading speed (-1MB)"
2025-09-24 15:40:08 -05:00
Timothy Jaeryang Baek
1df5f1f9f6 revert: code editor dynamic import 2025-09-24 15:39:55 -05:00
Shirasawa
6614c73b6c
Revert "feat: Dynamically load CodeEditor.svelte to improve first-screen loading speed (-1MB)" 2025-09-25 00:10:01 +08:00
Shirasawa
001775d6c3 feat: Dynamically load CodeEditor to improve first-screen loading speed 2025-09-17 07:08:39 +00:00
Shirasawa
db05e34736 feat: dynamically load mermaid.js 2025-09-16 09:43:03 +00:00
Timothy Jaeryang Baek
3ec1efb6e0 refac: folders 2025-09-15 18:33:57 -05:00
Timothy Jaeryang Baek
9701d127bf refac 2025-09-15 15:02:47 -05:00
Timothy Jaeryang Baek
0e5320c39e refac/fix: codeblock 2025-09-15 15:02:19 -05:00
Timothy Jaeryang Baek
c744ae0d63 refac: styling 2025-09-15 14:55:05 -05:00
Timothy Jaeryang Baek
029db5c635 refac: styling 2025-09-03 19:59:27 +04:00
Timothy Jaeryang Baek
b85700f6ca refac: styling 2025-09-03 19:13:17 +04:00
Timothy Jaeryang Baek
926954f93b refac: styling 2025-09-03 18:37:25 +04:00
Timothy Jaeryang Baek
66bf28cd85 refac 2025-09-03 15:48:07 +04:00
Timothy Jaeryang Baek
bbe1167958 refac/fix: pyodide import issue 2025-09-03 15:46:42 +04:00
Tim Jaeryang Baek
d5715cec6f
Merge pull request #16944 from rgaricano/dev-FIX_RTL_in_messages-LTR_codeblock
FIX: Auto RTL-LTR text orientation in Messages & Reversion previous PR
2025-08-27 12:55:18 +04:00
_00_
65a9a7eae0
Revert changes for fix orientation in CodeBlock.svelte
Revert changes for fix orientation in CodeBlock.svelte
2025-08-27 03:46:07 +02:00
Timothy Jaeryang Baek
d3a952877a refac: pdf export 2025-08-26 17:34:33 +04:00
Tim Jaeryang Baek
1dc8056d84
Merge pull request #16853 from yuliang615/dev
Fix:Copy button in code blocks copies the original AI output instead of the edited content
2025-08-26 13:51:30 +04:00
_00_
3839f18bb1
FIX- LTR in Update CodeBlock.svelte
FIX- LTR in Update CodeBlock.svelte
For CodeBlock allways LTR
2025-08-24 23:07:32 +02:00
洪宇亮
d98a60fbbb
Add files via upload 2025-08-23 21:42:35 +08:00
Peter Dave Hello
45180e829a i18n: add missing translations 2025-08-20 22:14:23 +08:00
Timothy Jaeryang Baek
50181ee99e refac 2025-08-10 01:03:02 +04:00
tarmst
0033b3fe4e Add OpenAI package to pyodide code blocks 2025-07-08 19:28:43 +00:00
Timothy Jaeryang Baek
e84c521177 refac/fix: rich text input in ff 2025-07-06 17:32:03 +04:00
Timothy Jaeryang Baek
9801a2d23f refac 2025-05-17 03:14:26 +04:00
Timothy Jaeryang Baek
54dc24986f feat: preview html 2025-05-16 21:47:43 +04:00
Timothy Jaeryang Baek
7723705707 enh: always collapse code block 2025-03-15 02:01:59 +00:00
orenzhang
72ea6dd9f1
refactor(lint): code lint 2025-03-07 19:59:09 +08:00