Spaces:
Paused
Paused
| <script lang="ts"> | |
| import { toast } from 'svelte-sonner'; | |
| import { getContext, onMount } from 'svelte'; | |
| const i18n = getContext('i18n'); | |
| import Modal from '$lib/components/common/Modal.svelte'; | |
| import ManageOllama from '../Models/Manage/ManageOllama.svelte'; | |
| export let show = false; | |
| export let urlIdx: number | null = null; | |
| </script> | |
| <Modal size="sm" bind:show> | |
| <div> | |
| <div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2"> | |
| <div | |
| class="flex w-full justify-between items-center text-lg font-medium self-center font-primary" | |
| > | |
| <div class=" shrink-0"> | |
| {$i18n.t('Manage Ollama')} | |
| </div> | |
| </div> | |
| <button | |
| class="self-center" | |
| on:click={() => { | |
| show = false; | |
| }} | |
| > | |
| <svg | |
| xmlns="http://www.w3.org/2000/svg" | |
| viewBox="0 0 20 20" | |
| fill="currentColor" | |
| class="w-5 h-5" | |
| > | |
| <path | |
| d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" | |
| /> | |
| </svg> | |
| </button> | |
| </div> | |
| <div class="flex flex-col md:flex-row w-full px-5 pb-4 md:space-x-4 dark:text-gray-200"> | |
| <ManageOllama {urlIdx} /> | |
| </div> | |
| </div> | |
| </Modal> | |