-
-
-
{t('plugins')}
+
+
+
{t('pluginsDescription')}
@@ -160,6 +173,12 @@ export function PluginsSection() {
+
+ {/* Discover Plugins Dialog */}
+
);
}
diff --git a/src/hooks/useDiscoverPlugins.test.ts b/src/hooks/useDiscoverPlugins.test.ts
new file mode 100644
index 00000000..d694d27f
--- /dev/null
+++ b/src/hooks/useDiscoverPlugins.test.ts
@@ -0,0 +1,84 @@
+import { describe, it, expect } from 'vitest';
+import type { NostrEvent } from '@nostrify/nostrify';
+
+describe('useDiscoverPlugins', () => {
+ it('should validate NIP-34 event structure', () => {
+ // Example of a valid NIP-34 repository announcement event
+ const validEvent: NostrEvent = {
+ id: 'test-event-id',
+ pubkey: 'test-pubkey',
+ created_at: Math.floor(Date.now() / 1000),
+ kind: 30617,
+ tags: [
+ ['d', 'test-plugin'],
+ ['name', 'Test Plugin'],
+ ['description', 'A test Shakespeare plugin'],
+ ['clone', 'https://github.com/user/test-plugin.git'],
+ ['web', 'https://github.com/user/test-plugin'],
+ ['t', 'shakespeare-plugin'],
+ ],
+ content: '',
+ sig: 'test-signature',
+ };
+
+ // Verify the event has the correct kind
+ expect(validEvent.kind).toBe(30617);
+
+ // Verify required tags exist
+ const dTag = validEvent.tags.find(([name]) => name === 'd')?.[1];
+ const nameTag = validEvent.tags.find(([name]) => name === 'name')?.[1];
+ const tTag = validEvent.tags.find(([name, value]) => name === 't' && value === 'shakespeare-plugin');
+
+ expect(dTag).toBe('test-plugin');
+ expect(nameTag).toBe('Test Plugin');
+ expect(tTag).toBeDefined();
+ });
+
+ it('should identify required fields for plugin discovery', () => {
+ const event: NostrEvent = {
+ id: 'test-event-id',
+ pubkey: 'test-pubkey',
+ created_at: Math.floor(Date.now() / 1000),
+ kind: 30617,
+ tags: [
+ ['d', 'minimal-plugin'],
+ ['name', 'Minimal Plugin'],
+ ['t', 'shakespeare-plugin'],
+ ],
+ content: '',
+ sig: 'test-signature',
+ };
+
+ const dTag = event.tags.find(([name]) => name === 'd')?.[1];
+ const nameTag = event.tags.find(([name]) => name === 'name')?.[1];
+
+ // These are the minimum required fields
+ expect(dTag).toBeDefined();
+ expect(nameTag).toBeDefined();
+ });
+
+ it('should handle optional fields gracefully', () => {
+ const event: NostrEvent = {
+ id: 'test-event-id',
+ pubkey: 'test-pubkey',
+ created_at: Math.floor(Date.now() / 1000),
+ kind: 30617,
+ tags: [
+ ['d', 'plugin-without-optional'],
+ ['name', 'Plugin Without Optional Fields'],
+ ['t', 'shakespeare-plugin'],
+ ],
+ content: '',
+ sig: 'test-signature',
+ };
+
+ const descriptionTag = event.tags.find(([name]) => name === 'description')?.[1];
+ const cloneTag = event.tags.find(([name]) => name === 'clone')?.[1];
+ const webTag = event.tags.find(([name]) => name === 'web')?.[1];
+
+ // Optional fields should be undefined
+ expect(descriptionTag).toBeUndefined();
+ expect(cloneTag).toBeUndefined();
+ expect(webTag).toBeUndefined();
+ });
+});
diff --git a/src/hooks/useDiscoverPlugins.ts b/src/hooks/useDiscoverPlugins.ts
new file mode 100644
index 00000000..43443099
--- /dev/null
+++ b/src/hooks/useDiscoverPlugins.ts
@@ -0,0 +1,69 @@
+import { useQuery } from '@tanstack/react-query';
+import { useNostr } from '@nostrify/react';
+import type { NostrEvent } from '@nostrify/nostrify';
+
+export interface DiscoveredPlugin {
+ id: string;
+ event: NostrEvent;
+ name: string;
+ description: string;
+ cloneUrl?: string;
+ webUrl?: string;
+ author: string;
+}
+
+/**
+ * Hook to discover Shakespeare plugins on Nostr
+ * Queries NIP-34 git repository announcements with t-tag "shakespeare-plugin"
+ */
+export function useDiscoverPlugins() {
+ const { nostr } = useNostr();
+
+ return useQuery({
+ queryKey: ['discover-plugins'],
+ queryFn: async (c) => {
+ const signal = AbortSignal.any([c.signal, AbortSignal.timeout(5000)]);
+
+ // Query NIP-34 repository announcements (kind 30617) with shakespeare-plugin tag
+ const events = await nostr.query(
+ [
+ {
+ kinds: [30617],
+ '#t': ['shakespeare-plugin'],
+ limit: 100,
+ },
+ ],
+ { signal }
+ );
+
+ // Transform events into DiscoveredPlugin objects
+ const plugins: DiscoveredPlugin[] = events
+ .map((event): DiscoveredPlugin | null => {
+ const dTag = event.tags.find(([name]) => name === 'd')?.[1];
+ const nameTag = event.tags.find(([name]) => name === 'name')?.[1];
+ const descriptionTag = event.tags.find(([name]) => name === 'description')?.[1];
+ const cloneTag = event.tags.find(([name]) => name === 'clone')?.[1];
+ const webTag = event.tags.find(([name]) => name === 'web')?.[1];
+
+ // Skip events without required fields
+ if (!dTag || !nameTag) {
+ return null;
+ }
+
+ return {
+ id: dTag,
+ event,
+ name: nameTag,
+ description: descriptionTag || '',
+ cloneUrl: cloneTag,
+ webUrl: webTag,
+ author: event.pubkey,
+ };
+ })
+ .filter((plugin): plugin is DiscoveredPlugin => plugin !== null);
+
+ return plugins;
+ },
+ staleTime: 5 * 60 * 1000, // 5 minutes
+ });
+}
diff --git a/src/locales/en.json b/src/locales/en.json
index ac451aa5..4efb1a28 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -478,6 +478,21 @@
"noPluginsConfigured": "No plugins configured. Add a plugin to get started.",
"pluginsDirectory": "Plugins Directory",
"pluginsDirectoryDescription": "Directory where plugins are stored in the virtual filesystem.",
+ "discoverPlugins": "Discover Plugins",
+ "discoverPluginsDescription": "Browse and install Shakespeare plugins shared on the Nostr network.",
+ "searchPlugins": "Search plugins...",
+ "noPluginsFound": "No plugins found matching your search.",
+ "noPluginsAvailable": "No plugins available at this time.",
+ "pluginInstalled": "Plugin Installed",
+ "pluginInstalledDescription": "Plugin \"{{name}}\" has been installed successfully.",
+ "pluginInstallFailed": "Failed to Install Plugin",
+ "noCloneUrl": "No Clone URL",
+ "noCloneUrlDescription": "This plugin does not have a clone URL configured.",
+ "installed": "Installed",
+ "install": "Install",
+ "installing": "Installing...",
+ "by": "by",
+ "website": "Website",
"mcpServers": "MCP Servers",
"mcpServersDescription": "Connect to Model Context Protocol servers to extend the AI's capabilities with external tools.",
"addMcpServer": "Add MCP Server",
diff --git a/src/locales/ha.json b/src/locales/ha.json
index 053cd390..49073384 100644
--- a/src/locales/ha.json
+++ b/src/locales/ha.json
@@ -430,5 +430,20 @@
"modified": "An Canza",
"restoreToDefault": "Mayar da asali",
"restoredToDefault": "An Mayar da Asali",
- "terminal": "Terminal"
+ "terminal": "Terminal",
+ "discoverPlugins": "Gano Plugins",
+ "discoverPluginsDescription": "Bincika kuma shigar da plugins na Shakespeare da aka raba akan hanyar sadarwa ta Nostr.",
+ "searchPlugins": "Bincika plugins...",
+ "noPluginsFound": "Ba a sami plugins da suka dace da bincikenka ba.",
+ "noPluginsAvailable": "Babu plugins a wannan lokaci.",
+ "pluginInstalled": "An Shigar da Plugin",
+ "pluginInstalledDescription": "An shigar da plugin \"{{name}}\" cikin nasara.",
+ "pluginInstallFailed": "An Kasa Shigar da Plugin",
+ "noCloneUrl": "Babu Clone URL",
+ "noCloneUrlDescription": "Wannan plugin ba shi da clone URL da aka saita.",
+ "installed": "An Shigar",
+ "install": "Shigar",
+ "installing": "Ana Shigarwa...",
+ "by": "ta",
+ "website": "Gidan Yanar Gizo"
}
diff --git a/src/locales/ig.json b/src/locales/ig.json
index cbf2537b..68613793 100644
--- a/src/locales/ig.json
+++ b/src/locales/ig.json
@@ -427,5 +427,20 @@
"modified": "Gbanwere",
"restoreToDefault": "Weghachi na nke mbụ",
"restoredToDefault": "Weghachiri na Nke Mbụ",
- "terminal": "Terminal"
+ "terminal": "Terminal",
+ "discoverPlugins": "Chọpụta Plugins",
+ "discoverPluginsDescription": "Chọgharịa ma wụnye plugins Shakespeare nke ekekọrịtara na netwọk Nostr.",
+ "searchPlugins": "Chọọ plugins...",
+ "noPluginsFound": "Achọtaghị plugins dabara na nchọgharị gị.",
+ "noPluginsAvailable": "Enweghị plugins dị ugbu a.",
+ "pluginInstalled": "Ewubatara Plugin",
+ "pluginInstalledDescription": "Ewubatara plugin \"{{name}}\" nke ọma.",
+ "pluginInstallFailed": "Ọ Dara Ada Ịwụnye Plugin",
+ "noCloneUrl": "Enweghị Clone URL",
+ "noCloneUrlDescription": "Plugin a enweghị clone URL edoziri.",
+ "installed": "Ewubatara",
+ "install": "Wụnye",
+ "installing": "Na-ewunye...",
+ "by": "site na",
+ "website": "Webụsaịtị"
}
diff --git a/src/locales/pt.json b/src/locales/pt.json
index 9947de79..62b6bf47 100644
--- a/src/locales/pt.json
+++ b/src/locales/pt.json
@@ -439,5 +439,20 @@
"modified": "Modificado",
"restoreToDefault": "Restaurar para padrão",
"restoredToDefault": "Restaurado para Padrão",
- "terminal": "Terminal"
+ "terminal": "Terminal",
+ "discoverPlugins": "Descobrir Plugins",
+ "discoverPluginsDescription": "Navegue e instale plugins do Shakespeare compartilhados na rede Nostr.",
+ "searchPlugins": "Buscar plugins...",
+ "noPluginsFound": "Nenhum plugin encontrado correspondente à sua busca.",
+ "noPluginsAvailable": "Nenhum plugin disponível no momento.",
+ "pluginInstalled": "Plugin Instalado",
+ "pluginInstalledDescription": "Plugin \"{{name}}\" foi instalado com sucesso.",
+ "pluginInstallFailed": "Falha ao Instalar Plugin",
+ "noCloneUrl": "Sem URL de Clone",
+ "noCloneUrlDescription": "Este plugin não tem uma URL de clone configurada.",
+ "installed": "Instalado",
+ "install": "Instalar",
+ "installing": "Instalando...",
+ "by": "por",
+ "website": "Site"
}
diff --git a/src/locales/yo.json b/src/locales/yo.json
index 62286d38..f1e0967d 100644
--- a/src/locales/yo.json
+++ b/src/locales/yo.json
@@ -427,5 +427,20 @@
"modified": "Ti Yipada",
"restoreToDefault": "Pada si atilẹwa",
"restoredToDefault": "Ti Pada si Atilẹwa",
- "terminal": "Terminal"
+ "terminal": "Terminal",
+ "discoverPlugins": "Ṣawari Awọn Plugins",
+ "discoverPluginsDescription": "Ṣayẹwo ati fi sori ẹrọ awọn plugins Shakespeare ti a pin lori nẹtiwọọki Nostr.",
+ "searchPlugins": "Wa awọn plugins...",
+ "noPluginsFound": "Ko si awọn plugins ti o baamu wiwa rẹ.",
+ "noPluginsAvailable": "Ko si awọn plugins ti o wa ni akoko yii.",
+ "pluginInstalled": "Plugin Ti Fi Sori Ẹrọ",
+ "pluginInstalledDescription": "A ti fi plugin \"{{name}}\" sori ẹrọ ni aṣeyọri.",
+ "pluginInstallFailed": "O Kuna Lati Fi Plugin Sori Ẹrọ",
+ "noCloneUrl": "Ko Si Clone URL",
+ "noCloneUrlDescription": "Plugin yii ko ni clone URL ti a ṣeto.",
+ "installed": "Ti Fi Sori Ẹrọ",
+ "install": "Fi Sori Ẹrọ",
+ "installing": "N Fi Sori Ẹrọ...",
+ "by": "nipasẹ",
+ "website": "Oju opo wẹẹbu"
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 83b361ae..7025324e 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -439,5 +439,20 @@
"modified": "已修改",
"restoreToDefault": "恢复默认值",
"restoredToDefault": "已恢复默认值",
- "terminal": "终端"
+ "terminal": "终端",
+ "discoverPlugins": "发现插件",
+ "discoverPluginsDescription": "浏览并安装在 Nostr 网络上共享的 Shakespeare 插件。",
+ "searchPlugins": "搜索插件...",
+ "noPluginsFound": "未找到与您搜索匹配的插件。",
+ "noPluginsAvailable": "目前没有可用的插件。",
+ "pluginInstalled": "插件已安装",
+ "pluginInstalledDescription": "插件 \"{{name}}\" 已成功安装。",
+ "pluginInstallFailed": "安装插件失败",
+ "noCloneUrl": "无克隆 URL",
+ "noCloneUrlDescription": "此插件未配置克隆 URL。",
+ "installed": "已安装",
+ "install": "安装",
+ "installing": "安装中...",
+ "by": "作者",
+ "website": "网站"
}
From 9005a2c38e12e3fe4160c1543a4fbe5dfd7bb39b Mon Sep 17 00:00:00 2001
From: Alex Gleason
Date: Thu, 4 Dec 2025 18:06:13 -0600
Subject: [PATCH 23/28] Display plugins from people you follow
---
src/components/DiscoverPluginsDialog.tsx | 53 ++++++++++++++++++++----
src/hooks/useDiscoverPlugins.ts | 23 +++++++++-
src/locales/en.json | 5 +++
src/locales/ha.json | 7 +++-
src/locales/ig.json | 7 +++-
src/locales/pt.json | 7 +++-
src/locales/yo.json | 7 +++-
src/locales/zh.json | 7 +++-
8 files changed, 103 insertions(+), 13 deletions(-)
diff --git a/src/components/DiscoverPluginsDialog.tsx b/src/components/DiscoverPluginsDialog.tsx
index ec1c7722..02f3b32e 100644
--- a/src/components/DiscoverPluginsDialog.tsx
+++ b/src/components/DiscoverPluginsDialog.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { Search, Download, ExternalLink, Loader2, Check, Globe, Package } from 'lucide-react';
+import { Search, Download, ExternalLink, Loader2, Check, Globe, Package, LogIn } from 'lucide-react';
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -10,8 +10,10 @@ import { useDiscoverPlugins } from '@/hooks/useDiscoverPlugins';
import { usePlugins } from '@/hooks/usePlugins';
import { useAuthor } from '@/hooks/useAuthor';
import { useToast } from '@/hooks/useToast';
+import { useCurrentUser } from '@/hooks/useCurrentUser';
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar';
import { genUserName } from '@/lib/genUserName';
+import { Link } from 'react-router-dom';
import type { NostrMetadata } from '@nostrify/nostrify';
interface DiscoverPluginsDialogProps {
@@ -21,6 +23,7 @@ interface DiscoverPluginsDialogProps {
export function DiscoverPluginsDialog({ open, onOpenChange }: DiscoverPluginsDialogProps) {
const { t } = useTranslation();
+ const { user } = useCurrentUser();
const { data: plugins, isLoading } = useDiscoverPlugins();
const [searchQuery, setSearchQuery] = useState('');
@@ -61,7 +64,28 @@ export function DiscoverPluginsDialog({ open, onOpenChange }: DiscoverPluginsDia
{/* Plugins List */}
- {isLoading && (
+ {!user && (
+
+
+
+
+
+
{t('loginRequired')}
+
+ {t('loginToDiscoverPlugins')}
+
+
+
+
+
+
+ )}
+
+ {user && isLoading && (
<>
{[...Array(3)].map((_, i) => (
@@ -80,13 +104,28 @@ export function DiscoverPluginsDialog({ open, onOpenChange }: DiscoverPluginsDia
>
)}
- {!isLoading && filteredPlugins?.length === 0 && (
-
- {searchQuery ? t('noPluginsFound') : t('noPluginsAvailable')}
-
+ {user && !isLoading && filteredPlugins?.length === 0 && (
+
+
+
+
+
+
+ {searchQuery ? t('noPluginsFound') : t('noPluginsFromNetwork')}
+
+
+ {searchQuery
+ ? t('tryDifferentSearch')
+ : t('noPluginsFromNetworkDescription')
+ }
+
+
+
+
+
)}
- {!isLoading && filteredPlugins?.map((plugin) => (
+ {user && !isLoading && filteredPlugins?.map((plugin) => (
))}
diff --git a/src/hooks/useDiscoverPlugins.ts b/src/hooks/useDiscoverPlugins.ts
index 43443099..4770322c 100644
--- a/src/hooks/useDiscoverPlugins.ts
+++ b/src/hooks/useDiscoverPlugins.ts
@@ -1,6 +1,8 @@
import { useQuery } from '@tanstack/react-query';
import { useNostr } from '@nostrify/react';
import type { NostrEvent } from '@nostrify/nostrify';
+import { useCurrentUser } from './useCurrentUser';
+import { useContacts } from './useContacts';
export interface DiscoveredPlugin {
id: string;
@@ -15,20 +17,39 @@ export interface DiscoveredPlugin {
/**
* Hook to discover Shakespeare plugins on Nostr
* Queries NIP-34 git repository announcements with t-tag "shakespeare-plugin"
+ * Filters to only show plugins by the current user and people they follow
*/
export function useDiscoverPlugins() {
const { nostr } = useNostr();
+ const { user } = useCurrentUser();
+ const { data: contacts } = useContacts(user?.pubkey);
return useQuery({
- queryKey: ['discover-plugins'],
+ queryKey: ['discover-plugins', user?.pubkey, contacts],
queryFn: async (c) => {
const signal = AbortSignal.any([c.signal, AbortSignal.timeout(5000)]);
+ // Build authors list: current user + people they follow
+ const authors: string[] = [];
+ if (user?.pubkey) {
+ authors.push(user.pubkey);
+ }
+ if (contacts && contacts.length > 0) {
+ authors.push(...contacts);
+ }
+
+ // If no authors (user not logged in or no follows), return empty array
+ if (authors.length === 0) {
+ return [];
+ }
+
// Query NIP-34 repository announcements (kind 30617) with shakespeare-plugin tag
+ // Filter by authors: current user + people they follow
const events = await nostr.query(
[
{
kinds: [30617],
+ authors,
'#t': ['shakespeare-plugin'],
limit: 100,
},
diff --git a/src/locales/en.json b/src/locales/en.json
index 4efb1a28..4f194261 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -493,6 +493,11 @@
"installing": "Installing...",
"by": "by",
"website": "Website",
+ "loginRequired": "Login Required",
+ "loginToDiscoverPlugins": "Log in with Nostr to discover plugins from people you follow.",
+ "noPluginsFromNetwork": "No Plugins Found",
+ "noPluginsFromNetworkDescription": "No plugins found from people you follow. Follow plugin developers on Nostr to see their plugins here.",
+ "tryDifferentSearch": "Try a different search term.",
"mcpServers": "MCP Servers",
"mcpServersDescription": "Connect to Model Context Protocol servers to extend the AI's capabilities with external tools.",
"addMcpServer": "Add MCP Server",
diff --git a/src/locales/ha.json b/src/locales/ha.json
index 49073384..5db604c5 100644
--- a/src/locales/ha.json
+++ b/src/locales/ha.json
@@ -445,5 +445,10 @@
"install": "Shigar",
"installing": "Ana Shigarwa...",
"by": "ta",
- "website": "Gidan Yanar Gizo"
+ "website": "Gidan Yanar Gizo",
+ "loginRequired": "Ana Buƙatar Shiga",
+ "loginToDiscoverPlugins": "Shiga tare da Nostr don gano plugins daga mutanen da kuke bi.",
+ "noPluginsFromNetwork": "Ba a Sami Plugin ba",
+ "noPluginsFromNetworkDescription": "Ba a sami plugins daga mutanen da kuke bi ba. Bi masu haɓaka plugins akan Nostr don ganin plugins nasu a nan.",
+ "tryDifferentSearch": "Gwada kalmar bincike daban."
}
diff --git a/src/locales/ig.json b/src/locales/ig.json
index 68613793..b3a88edb 100644
--- a/src/locales/ig.json
+++ b/src/locales/ig.json
@@ -442,5 +442,10 @@
"install": "Wụnye",
"installing": "Na-ewunye...",
"by": "site na",
- "website": "Webụsaịtị"
+ "website": "Webụsaịtị",
+ "loginRequired": "Achọrọ Nbanye",
+ "loginToDiscoverPlugins": "Banye na Nostr iji chọpụta plugins sitere na ndị ị na-eso.",
+ "noPluginsFromNetwork": "Achọtaghị Plugins",
+ "noPluginsFromNetworkDescription": "Achọtaghị plugins sitere na ndị ị na-eso. Soro ndị mmepe plugin na Nostr iji hụ plugins ha ebe a.",
+ "tryDifferentSearch": "Gbalịa okwu nchọgharị dị iche."
}
diff --git a/src/locales/pt.json b/src/locales/pt.json
index 62b6bf47..b44d6db9 100644
--- a/src/locales/pt.json
+++ b/src/locales/pt.json
@@ -454,5 +454,10 @@
"install": "Instalar",
"installing": "Instalando...",
"by": "por",
- "website": "Site"
+ "website": "Site",
+ "loginRequired": "Login Necessário",
+ "loginToDiscoverPlugins": "Faça login com Nostr para descobrir plugins de pessoas que você segue.",
+ "noPluginsFromNetwork": "Nenhum Plugin Encontrado",
+ "noPluginsFromNetworkDescription": "Nenhum plugin encontrado de pessoas que você segue. Siga desenvolvedores de plugins no Nostr para ver seus plugins aqui.",
+ "tryDifferentSearch": "Tente um termo de busca diferente."
}
diff --git a/src/locales/yo.json b/src/locales/yo.json
index f1e0967d..4268077f 100644
--- a/src/locales/yo.json
+++ b/src/locales/yo.json
@@ -442,5 +442,10 @@
"install": "Fi Sori Ẹrọ",
"installing": "N Fi Sori Ẹrọ...",
"by": "nipasẹ",
- "website": "Oju opo wẹẹbu"
+ "website": "Oju opo wẹẹbu",
+ "loginRequired": "Wiwọle Nilo",
+ "loginToDiscoverPlugins": "Wọle pẹlu Nostr lati ṣawari awọn plugins lati ọdọ awọn eniyan ti o ntẹle.",
+ "noPluginsFromNetwork": "Ko Ri Plugins",
+ "noPluginsFromNetworkDescription": "Ko ri awọn plugins lati ọdọ awọn eniyan ti o ntẹle. Tẹle awọn olupilẹṣẹ plugin lori Nostr lati rii awọn plugins wọn nibi.",
+ "tryDifferentSearch": "Gbiyanju ọrọ wiwa miiran."
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index 7025324e..6cd8419e 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -454,5 +454,10 @@
"install": "安装",
"installing": "安装中...",
"by": "作者",
- "website": "网站"
+ "website": "网站",
+ "loginRequired": "需要登录",
+ "loginToDiscoverPlugins": "使用 Nostr 登录以发现您关注的人的插件。",
+ "noPluginsFromNetwork": "未找到插件",
+ "noPluginsFromNetworkDescription": "未找到您关注的人的插件。在 Nostr 上关注插件开发者以在此处查看他们的插件。",
+ "tryDifferentSearch": "尝试不同的搜索词。"
}
From acadf07a683de5f997df94809396abfcb41735c4 Mon Sep 17 00:00:00 2001
From: Alex Gleason
Date: Thu, 4 Dec 2025 18:09:49 -0600
Subject: [PATCH 24/28] Small plugins design tweaks
---
src/components/DiscoverPluginsDialog.tsx | 75 +++++++++---------------
1 file changed, 28 insertions(+), 47 deletions(-)
diff --git a/src/components/DiscoverPluginsDialog.tsx b/src/components/DiscoverPluginsDialog.tsx
index 02f3b32e..70f30b03 100644
--- a/src/components/DiscoverPluginsDialog.tsx
+++ b/src/components/DiscoverPluginsDialog.tsx
@@ -1,6 +1,6 @@
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
-import { Search, Download, ExternalLink, Loader2, Check, Globe, Package, LogIn } from 'lucide-react';
+import { Search, Download, Loader2, Check, Package, LogIn } from 'lucide-react';
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -39,7 +39,7 @@ export function DiscoverPluginsDialog({ open, onOpenChange }: DiscoverPluginsDia
return (