-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mermaid render #6088
Fix mermaid render #6088
Conversation
1. 修正svgtobase64 2. remote unused memo
mermaid pie not render
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removal of this part will cause the render process flicker. I think there might be a better way to solve it.
Ok. I will try other solutions. |
1. fix mermaid loading flicker 2. add error msg support for renderer
See 085a146. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me.
Co-authored-by: 靖谦 <jingqian@kaiwu.cloud>
* commit 'eabfd84ceb704f8057b4f499578e24c2516250c4': (147 commits) bump to 0.6.14 (langgenius#6294) Feat/delete file when clean document (langgenius#5882) fix: zhipuai validate error when user's api key not support for chatglm_turbo in issue langgenius#6289 (langgenius#6290) fix: validateColorHex: cannot read properties of undefined (reading 'length') (langgenius#6242) 6282 i18n add support for Italian (langgenius#6288) Update bedrock.yaml (langgenius#6281) feat(frontend): workflow import dsl from url (langgenius#6286) feat(backend): support import DSL from URL (langgenius#6287) Update model provider configuration for Triton Inference Server and X… (langgenius#6274) fix: custom tool input number fail (langgenius#6200) Feat/add zhipu CogView 3 tool (langgenius#6210) Fix mermaid render (langgenius#6088) fix: markdown proc will remove image (langgenius#5855) fix: remove the maximum length limit of "paragraph" variable (langgenius#6234) Update ernie_bot.py (langgenius#6236) fix: model-provider-card-style (langgenius#6246) refactor(api): switch to dify_config with Pydantic in controllers and schedule (langgenius#6237) Fix/firecrawl parameters issue (langgenius#6213) refactor(services/tasks): Swtich to dify_config witch Pydantic (langgenius#6203) fix: differentiate prompts fields based on function_calling_type (langgenius#5880) ... # Conflicts: # .github/workflows/build-push.yml # api/configs/app_config.py # api/configs/feature/__init__.py # api/poetry.lock # web/app/components/app/configuration/config-var/config-modal/index.tsx # web/yarn.lock
* commit 'eabfd84ceb704f8057b4f499578e24c2516250c4': (147 commits) bump to 0.6.14 (langgenius#6294) Feat/delete file when clean document (langgenius#5882) fix: zhipuai validate error when user's api key not support for chatglm_turbo in issue langgenius#6289 (langgenius#6290) fix: validateColorHex: cannot read properties of undefined (reading 'length') (langgenius#6242) 6282 i18n add support for Italian (langgenius#6288) Update bedrock.yaml (langgenius#6281) feat(frontend): workflow import dsl from url (langgenius#6286) feat(backend): support import DSL from URL (langgenius#6287) Update model provider configuration for Triton Inference Server and X… (langgenius#6274) fix: custom tool input number fail (langgenius#6200) Feat/add zhipu CogView 3 tool (langgenius#6210) Fix mermaid render (langgenius#6088) fix: markdown proc will remove image (langgenius#5855) fix: remove the maximum length limit of "paragraph" variable (langgenius#6234) Update ernie_bot.py (langgenius#6236) fix: model-provider-card-style (langgenius#6246) refactor(api): switch to dify_config with Pydantic in controllers and schedule (langgenius#6237) Fix/firecrawl parameters issue (langgenius#6213) refactor(services/tasks): Swtich to dify_config witch Pydantic (langgenius#6203) fix: differentiate prompts fields based on function_calling_type (langgenius#5880) ... # Conflicts: # .github/workflows/build-push.yml # api/configs/app_config.py # api/configs/feature/__init__.py # api/poetry.lock # web/app/components/app/configuration/config-var/config-modal/index.tsx # web/yarn.lock
Hello, i am using dify version 0.6.14 |
Your nodejs version is ? |
nodejs version is 20.12.2, mermaid version is 10.4.0
…---- Replied Message ----
| From | Jinq ***@***.***> |
| Date | 07/26/2024 07:57 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [langgenius/dify] Fix mermaid render (PR #6088) |
Hello, i am using dify version 0.6.14 I am using dify to generate mermaid pie chart, but it cannot show pie, i copied pie code to https://mermaid.live/edit, it does show pie chart, the process i do and error output is list as below: 1、input message 2、click svg button to check mermaid code 3、i added log in web/app/components/base/mermaid/index.tsx, it shown error msg as below ReferenceError: structuredClone is not defined
Your nodejs version is ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
I cannot reproduce this bug. |
i upgrade my chrome, and it is solved, thank you for your reply
…---- Replied Message ----
| From | Jinq ***@***.***> |
| Date | 07/29/2024 08:59 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [langgenius/dify] Fix mermaid render (PR #6088) |
I cannot reproduce this bug.
Maybe your browser not support structuredClone. See StructuredClone MDN
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Checklist:
Important
Please review the checklist below before submitting your pull request.
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint godsDescription
Close #6087
The bug reason is for check whether svg is empty.
But result in render pie. So I removed thoose code
Type of Change
Testing Instructions
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration