Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: add PATCH method support in Heading component (#18160)

GuanMufcdf965037f0
diff --git a/web/app/components/develop/md.tsx b/web/app/components/develop/md.tsx
index 655cd08280a..a9b74a389f8 100644
--- a/web/app/components/develop/md.tsx
+++ b/web/app/components/develop/md.tsx
@@ -12,7 +12,7 @@ type IChildrenProps = {
type IHeaderingProps = {
url: string
- method: 'PUT' | 'DELETE' | 'GET' | 'POST'
+ method: 'PUT' | 'DELETE' | 'GET' | 'POST' | 'PATCH'
title: string
name: string
}
@@ -34,6 +34,9 @@ export const Heading = function H2({
case 'POST':
style = 'ring-sky-300 bg-sky-400/10 text-sky-500 dark:ring-sky-400/30 dark:bg-sky-400/10 dark:text-sky-400'
break
+ case 'PATCH':
+ style = 'ring-violet-300 bg-violet-400/10 text-violet-500 dark:ring-violet-400/30 dark:bg-violet-400/10 dark:text-violet-400'
+ break
default:
style = 'ring-emerald-300 dark:ring-emerald-400/30 bg-emerald-400/10 text-emerald-500 dark:text-emerald-400'
break