AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
ui: add plugin development docs link
tianma-ifc657e383a0e6
diff --git a/apps/web/src/components/settings/PluginManagerCard.tsx b/apps/web/src/components/settings/PluginManagerCard.tsxindex 145e091f..302a5a12 100644--- a/apps/web/src/components/settings/PluginManagerCard.tsx+++ b/apps/web/src/components/settings/PluginManagerCard.tsx@@ -1,5 +1,5 @@import { useEffect, useState, useSyncExternalStore } from "react";-import { BadgeCheck, Boxes, Download, ExternalLink, PanelRightOpen, Play, Puzzle, RefreshCw, Store, Trash2 } from "lucide-react";+import { BadgeCheck, BookOpen, Boxes, Download, ExternalLink, PanelRightOpen, Play, Puzzle, RefreshCw, Store, Trash2 } from "lucide-react";import { useTranslation } from "react-i18next";import { useQuery } from "@tanstack/react-query";import { Button } from "@/components/ui/button";@@ -14,7 +14,10 @@ import { GitHubMark } from "@/components/GitHubRepositoryLink";const permissionLabel = (permission: string) => permission.replace(":", " · ");export const PluginManagerCard = ({ host }: { host: EdgeEverPluginHost }) => {- const { t } = useTranslation();+ const { t, i18n } = useTranslation();+ const developerDocsUrl = i18n.resolvedLanguage?.startsWith("zh")+ ? "https://github.com/tianma-if/edgeever/blob/main/docs/plugin-development.zh-CN.md"+ : "https://github.com/tianma-if/edgeever/blob/main/docs/plugin-development.md";const snapshot = useSyncExternalStore(host.subscribe, host.getSnapshot, host.getSnapshot);const [manifestUrl, setManifestUrl] = useState("");const [pendingId, setPendingId] = useState<string | null>(null);@@ -61,10 +64,19 @@ export const PluginManagerCard = ({ host }: { host: EdgeEverPluginHost }) => {return (<Card className="w-full min-w-0 shadow-none"><CardHeader className="p-4 sm:p-5">- <CardTitle className="flex items-center gap-2 text-sm">- <Puzzle className="h-4 w-4 text-emerald-700" />- {t("plugins.title")}- </CardTitle>+ <div className="flex items-center justify-between gap-3">+ <CardTitle className="flex items-center gap-2 text-sm">+ <Puzzle className="h-4 w-4 text-emerald-700" />+ {t("plugins.title")}+ </CardTitle>+ <Button asChild variant="ghost" size="sm" className="h-8 shrink-0 gap-1.5 px-2 text-slate-600">+ <a href={developerDocsUrl} target="_blank" rel="noreferrer" aria-label={t("plugins.developerDocs")}>+ <BookOpen className="h-4 w-4" />+ <span className="hidden sm:inline">{t("plugins.developerDocs")}</span>+ <ExternalLink className="hidden h-3.5 w-3.5 sm:block" />+ </a>+ </Button>+ </div></CardHeader><CardContent className="grid gap-4 p-4 pt-0 sm:px-5 sm:pb-5"><section className="grid gap-3 rounded-xl border border-emerald-200 bg-emerald-50/40 p-3.5">diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 60a1eea5..40cac39b 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -260,6 +260,7 @@ export const enUS = {},plugins: {title: "Plugins and themes",+ developerDocs: "Plugin development",manifestUrl: "Extension manifest URL",manifestPlaceholder: "https://example.com/edgeever-plugin/manifest.json",installSource: "GitHub repository or manifest URL",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex d8a9a24a..d32b0747 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -260,6 +260,7 @@ export const zhCN = {},plugins: {title: "插件与主题",+ developerDocs: "插件开发文档",manifestUrl: "扩展 Manifest 地址",manifestPlaceholder: "https://example.com/edgeever-plugin/manifest.json",installSource: "GitHub 仓库或 Manifest 地址",