From 88dc7e02a4d7b378c8063a7575a684f0b7592526 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Mon, 19 Jan 2026 21:02:24 +0800 Subject: [PATCH] feat: improve onboarding and copy ux --- config/uploads.py | 2 +- static/icons/flask-conical.svg | 1 + static/icons/graduation-cap.svg | 1 + static/index.html | 8 +- .../personalization/ExperienceOnboarding.vue | 195 ++++++++++++++++++ .../styles/components/chat/_chat-area.scss | 6 + 6 files changed, 211 insertions(+), 2 deletions(-) create mode 100644 static/icons/flask-conical.svg create mode 100644 static/icons/graduation-cap.svg create mode 100644 static/src/components/personalization/ExperienceOnboarding.vue diff --git a/config/uploads.py b/config/uploads.py index 9555c1f..98b1321 100644 --- a/config/uploads.py +++ b/config/uploads.py @@ -4,7 +4,7 @@ import os import shlex _DEFAULT_ALLOWED_EXTENSIONS = ( - ".txt,.md,.rst,.py,.js,.ts,.json,.yml,.yaml,.ini,.cfg,.conf," + ".txt,.md,.rst,.py,.js,.ts,.json,.yml,.yaml,.ini,.cfg,.conf,.ipynb" ".csv,.tsv,.log,.mdx,.env,.sh,.bat,.ps1,.sql,.html,.css," ".svg,.png,.jpg,.jpeg,.gif,.bmp,.webp,.ico,.pdf,.pptx,.docx," ".xlsx,.mp3,.wav,.flac,.mp4,.mov,.mkv,.avi,.webm," diff --git a/static/icons/flask-conical.svg b/static/icons/flask-conical.svg new file mode 100644 index 0000000..90ad9ea --- /dev/null +++ b/static/icons/flask-conical.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/icons/graduation-cap.svg b/static/icons/graduation-cap.svg new file mode 100644 index 0000000..c0d186b --- /dev/null +++ b/static/icons/graduation-cap.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/index.html b/static/index.html index 56689c0..417ddf1 100644 --- a/static/index.html +++ b/static/index.html @@ -12,12 +12,18 @@
+ + diff --git a/static/src/styles/components/chat/_chat-area.scss b/static/src/styles/components/chat/_chat-area.scss index b84cfd0..aabdd0c 100644 --- a/static/src/styles/components/chat/_chat-area.scss +++ b/static/src/styles/components/chat/_chat-area.scss @@ -636,6 +636,9 @@ font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0; line-height: 1.55; + overflow-x: auto; + max-width: 100%; + scrollbar-gutter: stable both-edges; } .text-output pre code { @@ -777,6 +780,9 @@ font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0; line-height: 1.55; + overflow-x: auto; + max-width: 100%; + scrollbar-gutter: stable both-edges; } .code-block-wrapper pre code {