From 6890f7d09cc687f1712a301d65281e324c2ebe8f Mon Sep 17 00:00:00 2001
From: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Date: Mon, 12 Jan 2026 15:51:44 +0800
Subject: [PATCH] calls
---
.../plugins/plugin-page/debug-info.tsx | 7 +++----
.../components/plugins/plugin-page/index.tsx | 7 +++----
web/app/components/plugins/utils.ts | 13 -------------
.../rag-pipeline-header/publisher/popup.tsx | 4 +++-
.../hooks/use-available-nodes-meta-data.ts | 19 +++++++++----------
web/app/components/tools/mcp/create-card.tsx | 14 +++-----------
.../components/retrieval-setting/index.tsx | 4 +++-
.../workflow/variable-inspect/empty.tsx | 4 +++-
web/hooks/use-api-access-url.ts | 18 ++++++------------
9 files changed, 33 insertions(+), 57 deletions(-)
diff --git a/web/app/components/plugins/plugin-page/debug-info.tsx b/web/app/components/plugins/plugin-page/debug-info.tsx
index f62f8a4134..dd7d21f3a1 100644
--- a/web/app/components/plugins/plugin-page/debug-info.tsx
+++ b/web/app/components/plugins/plugin-page/debug-info.tsx
@@ -8,8 +8,7 @@ import * as React from 'react'
import { useTranslation } from 'react-i18next'
import Button from '@/app/components/base/button'
import Tooltip from '@/app/components/base/tooltip'
-import { getDocsUrl } from '@/app/components/plugins/utils'
-import { useLocale } from '@/context/i18n'
+import { useDocLink } from '@/context/i18n'
import { useDebugKey } from '@/service/use-plugins'
import KeyValueItem from '../base/key-value-item'
@@ -17,7 +16,7 @@ const i18nPrefix = 'debugInfo'
const DebugInfo: FC = () => {
const { t } = useTranslation()
- const locale = useLocale()
+ const docLink = useDocLink()
const { data: info, isLoading } = useDebugKey()
// info.key likes 4580bdb7-b878-471c-a8a4-bfd760263a53 mask the middle part using *.
@@ -34,7 +33,7 @@ const DebugInfo: FC = () => {
<>
{t(`${i18nPrefix}.title`, { ns: 'plugin' })}
-
+
{t(`${i18nPrefix}.viewDocs`, { ns: 'plugin' })}
diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx
index 1f88f691ef..b39e7ebd15 100644
--- a/web/app/components/plugins/plugin-page/index.tsx
+++ b/web/app/components/plugins/plugin-page/index.tsx
@@ -15,10 +15,9 @@ import Button from '@/app/components/base/button'
import TabSlider from '@/app/components/base/tab-slider'
import Tooltip from '@/app/components/base/tooltip'
import ReferenceSettingModal from '@/app/components/plugins/reference-setting-modal'
-import { getDocsUrl } from '@/app/components/plugins/utils'
import { MARKETPLACE_API_PREFIX, SUPPORT_INSTALL_LOCAL_FILE_EXTENSIONS } from '@/config'
import { useGlobalPublicStore } from '@/context/global-public-context'
-import { useLocale } from '@/context/i18n'
+import { useDocLink } from '@/context/i18n'
import useDocumentTitle from '@/hooks/use-document-title'
import { usePluginInstallation } from '@/hooks/use-query-params'
import { fetchBundleInfoFromMarketPlace, fetchManifestFromMarketPlace } from '@/service/plugins'
@@ -47,7 +46,7 @@ const PluginPage = ({
marketplace,
}: PluginPageProps) => {
const { t } = useTranslation()
- const locale = useLocale()
+ const docLink = useDocLink()
useDocumentTitle(t('metadata.title', { ns: 'plugin' }))
// Use nuqs hook for installation state
@@ -175,7 +174,7 @@ const PluginPage = ({