mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Implement plugins system / skills
This commit is contained in:
23 files changed
+1310
-8
No files matched your search
@@ -36,6 +36,7 @@ import { useNavigate, Link } from 'react-router-dom';
|
||||
import type { AIProvider } from '@/contexts/AISettingsContext';
|
||||
import { AI_PROVIDER_PRESETS, type PresetProvider } from '@/lib/aiProviderPresets';
|
||||
import { ExternalFavicon } from '@/components/ExternalFavicon';
|
||||
import { PluginsSection } from '@/components/PluginsSection';
|
||||
|
||||
interface SortableProviderItemProps {
|
||||
provider: AIProvider;
|
||||
@@ -564,6 +565,9 @@ export function AISettings() {
|
||||
</AccordionItem>
|
||||
</Accordion>
|
||||
</div>
|
||||
|
||||
{/* Plugins Section */}
|
||||
<PluginsSection />
|
||||
</div>
|
||||
|
||||
{/* Render credits dialog outside of accordion structure */}
|
||||
|
||||
@@ -29,6 +29,7 @@ export function SystemSettings() {
|
||||
const [fsPathProjectsInput, setFsPathProjectsInput] = useState(config.fsPathProjects);
|
||||
const [fsPathConfigInput, setFsPathConfigInput] = useState(config.fsPathConfig);
|
||||
const [fsPathTmpInput, setFsPathTmpInput] = useState(config.fsPathTmp);
|
||||
const [fsPathPluginsInput, setFsPathPluginsInput] = useState(config.fsPathPlugins);
|
||||
const [sentryDsnInput, setSentryDsnInput] = useState(config.sentryDsn);
|
||||
|
||||
// Service Worker state
|
||||
@@ -571,6 +572,29 @@ export function SystemSettings() {
|
||||
{t('temporaryDirectoryDescription')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="fs-path-plugins" className="text-sm font-medium">
|
||||
{t('pluginsDirectory')}
|
||||
</Label>
|
||||
<Input
|
||||
id="fs-path-plugins"
|
||||
type="text"
|
||||
placeholder="/plugins"
|
||||
value={fsPathPluginsInput}
|
||||
onChange={(e) => {
|
||||
const value = e.target.value;
|
||||
setFsPathPluginsInput(value);
|
||||
updateConfig((current) => ({
|
||||
...current,
|
||||
fsPathPlugins: value,
|
||||
}));
|
||||
}}
|
||||
/>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
{t('pluginsDirectoryDescription')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
|
||||
Reference in new issue
Block a user