mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Link to docs in plugin settings
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import type { Plugin } from '@yaakapp/api';
|
import type { Plugin } from '@yaakapp/api';
|
||||||
|
import { open } from '@tauri-apps/plugin-shell';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useCreatePlugin } from '../../hooks/useCreatePlugin';
|
import { useCreatePlugin } from '../../hooks/useCreatePlugin';
|
||||||
import { usePluginInfo } from '../../hooks/usePluginInfo';
|
import { usePluginInfo } from '../../hooks/usePluginInfo';
|
||||||
@@ -72,6 +73,12 @@ export function SettingsPlugins() {
|
|||||||
spin={refreshPlugins.isPending}
|
spin={refreshPlugins.isPending}
|
||||||
onClick={() => refreshPlugins.mutate()}
|
onClick={() => refreshPlugins.mutate()}
|
||||||
/>
|
/>
|
||||||
|
<IconButton
|
||||||
|
size="sm"
|
||||||
|
icon="help"
|
||||||
|
title="View documentation"
|
||||||
|
onClick={() => open('https://feedback.yaak.app/help/articles/6911763-quick-start')}
|
||||||
|
/>
|
||||||
</HStack>
|
</HStack>
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ const icons = {
|
|||||||
folderOutput: lucide.FolderOutputIcon,
|
folderOutput: lucide.FolderOutputIcon,
|
||||||
gripVertical: lucide.GripVerticalIcon,
|
gripVertical: lucide.GripVerticalIcon,
|
||||||
hand: lucide.HandIcon,
|
hand: lucide.HandIcon,
|
||||||
|
help: lucide.CircleHelpIcon,
|
||||||
house: lucide.HomeIcon,
|
house: lucide.HomeIcon,
|
||||||
info: lucide.InfoIcon,
|
info: lucide.InfoIcon,
|
||||||
keyboard: lucide.KeyboardIcon,
|
keyboard: lucide.KeyboardIcon,
|
||||||
@@ -54,7 +55,6 @@ const icons = {
|
|||||||
plug: lucide.Plug,
|
plug: lucide.Plug,
|
||||||
plus: lucide.PlusIcon,
|
plus: lucide.PlusIcon,
|
||||||
plusCircle: lucide.PlusCircleIcon,
|
plusCircle: lucide.PlusCircleIcon,
|
||||||
question: lucide.ShieldQuestionIcon,
|
|
||||||
refresh: lucide.RefreshCwIcon,
|
refresh: lucide.RefreshCwIcon,
|
||||||
save: lucide.SaveIcon,
|
save: lucide.SaveIcon,
|
||||||
search: lucide.SearchIcon,
|
search: lucide.SearchIcon,
|
||||||
@@ -70,6 +70,7 @@ const icons = {
|
|||||||
update: lucide.RefreshCcwIcon,
|
update: lucide.RefreshCcwIcon,
|
||||||
upload: lucide.UploadIcon,
|
upload: lucide.UploadIcon,
|
||||||
x: lucide.XIcon,
|
x: lucide.XIcon,
|
||||||
|
_unknown: lucide.ShieldAlertIcon,
|
||||||
|
|
||||||
empty: (props: HTMLAttributes<HTMLSpanElement>) => <span {...props} />,
|
empty: (props: HTMLAttributes<HTMLSpanElement>) => <span {...props} />,
|
||||||
};
|
};
|
||||||
@@ -83,7 +84,7 @@ export interface IconProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const Icon = memo(function Icon({ icon, spin, size = 'md', className, title }: IconProps) {
|
export const Icon = memo(function Icon({ icon, spin, size = 'md', className, title }: IconProps) {
|
||||||
const Component = icons[icon] ?? icons.question;
|
const Component = icons[icon] ?? icons._unknown;
|
||||||
return (
|
return (
|
||||||
<Component
|
<Component
|
||||||
title={title}
|
title={title}
|
||||||
|
|||||||
Reference in New Issue
Block a user