diff --git a/src/lib/components/icons/Heart.svelte b/src/lib/components/icons/Heart.svelte new file mode 100644 index 000000000..ba042ff65 --- /dev/null +++ b/src/lib/components/icons/Heart.svelte @@ -0,0 +1,19 @@ + + + + + diff --git a/src/lib/components/workspace/Functions.svelte b/src/lib/components/workspace/Functions.svelte index fb92cc32d..39e77a454 100644 --- a/src/lib/components/workspace/Functions.svelte +++ b/src/lib/components/workspace/Functions.svelte @@ -24,7 +24,9 @@ import FunctionMenu from './Functions/FunctionMenu.svelte'; import EllipsisHorizontal from '../icons/EllipsisHorizontal.svelte'; import Switch from '../common/Switch.svelte'; - import ValvesModal from './ValvesModal.svelte'; + import ValvesModal from './common/ValvesModal.svelte'; + import ManifestModal from './common/ManifestModal.svelte'; + import Heart from '../icons/Heart.svelte'; const i18n = getContext('i18n'); @@ -34,6 +36,7 @@ let showConfirm = false; let query = ''; + let showManifestModal = false; let showValvesModal = false; let selectedFunction = null; @@ -175,6 +178,21 @@
+ {#if func?.meta?.manifest?.funding_url ?? false} + + + + {/if} +
+
+ {#if tool?.meta?.manifest?.funding_url ?? false} + + + + {/if} + +
+ +
+
+
{ + show = false; + }} + > +
+
+ The developers behind this plugin are passionate volunteers from the community. If you + find this plugin helpful, please consider contributing to its development. +
+ +
+ Your entire contribution will go directly to the plugin developer; Open WebUI does not + take any percentage. However, the chosen funding platform might have its own fees. +
+ +
+ +
+ Support this plugin: {manifest.funding_url} +
+
+ +
+ +
+
+
+
+ + + + diff --git a/src/lib/components/workspace/ValvesModal.svelte b/src/lib/components/workspace/common/ValvesModal.svelte similarity index 98% rename from src/lib/components/workspace/ValvesModal.svelte rename to src/lib/components/workspace/common/ValvesModal.svelte index 124af83de..0bf2b8f19 100644 --- a/src/lib/components/workspace/ValvesModal.svelte +++ b/src/lib/components/workspace/common/ValvesModal.svelte @@ -4,14 +4,14 @@ import { onMount, getContext } from 'svelte'; import { addUser } from '$lib/apis/auths'; - import Modal from '../common/Modal.svelte'; + import Modal from '../../common/Modal.svelte'; import { getFunctionValvesById, getFunctionValvesSpecById, updateFunctionValvesById } from '$lib/apis/functions'; import { getToolValvesById, getToolValvesSpecById, updateToolValvesById } from '$lib/apis/tools'; - import Spinner from '../common/Spinner.svelte'; + import Spinner from '../../common/Spinner.svelte'; const i18n = getContext('i18n'); const dispatch = createEventDispatcher();