File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -76,14 +76,15 @@ export const PluginStore: React.FC = React.memo(() => {
7676 < Divider orientation = "left" > { t ( '插件中心' ) } </ Divider >
7777
7878 < div className = "flex flex-wrap" >
79- { allPlugins . map ( ( plugin ) => (
80- < PluginStoreItem
81- key = { plugin . name }
82- manifest = { plugin }
83- installed = { installedPluginNameList . includes ( plugin . name ) }
84- builtin = { builtinPluginNameList . includes ( plugin . name ) }
85- />
86- ) ) }
79+ { allPlugins
80+ . filter ( ( p ) => ! builtinPluginNameList . includes ( p . name ) ) // 插件中心只显示不包含内置插件的插件
81+ . map ( ( plugin ) => (
82+ < PluginStoreItem
83+ key = { plugin . name }
84+ manifest = { plugin }
85+ installed = { installedPluginNameList . includes ( plugin . name ) }
86+ />
87+ ) ) }
8788 </ div >
8889 </ PillTabPane >
8990
Original file line number Diff line number Diff line change 11import {
22 getCachedRegistryPlugins ,
33 getStorage ,
4+ parseUrlStr ,
45 PluginManifest ,
56} from 'tailchat-shared' ;
67import { initMiniStar , loadSinglePlugin } from 'mini-star' ;
@@ -26,7 +27,7 @@ class PluginManager {
2627
2728 const plugins = installedPlugins . map ( ( { name, url } ) => ( {
2829 name,
29- url,
30+ url : parseUrlStr ( url ) ,
3031 } ) ) ;
3132
3233 const loadErrorPlugins = new Set < string > ( ) ;
You can’t perform that action at this time.
0 commit comments