feat: add new registry for preview design
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import SettingsFooter from "$lib/components/kit/SettingsFooter.svelte";
|
||||
import ToolCard from "$lib/components/kit/ToolCard.svelte";
|
||||
import Button from "$lib/components/kit/ui/Button.svelte";
|
||||
import { TOOLS } from "$lib/registry";
|
||||
import { TOOLS } from "$lib/registry-new";
|
||||
import { Search } from "@lucide/svelte";
|
||||
|
||||
let query = $state("");
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { getTool } from "$lib/registry";
|
||||
import ToolView from "$lib/components/kit/ToolView.svelte";
|
||||
import { getTool } from "$lib/registry-new";
|
||||
import SchemaToolView from "$lib/components/kit/SchemaToolView.svelte";
|
||||
import EmptyState from "$lib/components/kit/EmptyState.svelte";
|
||||
import { SlidersHorizontal as ToolIcon } from "@lucide/svelte";
|
||||
@@ -26,10 +25,8 @@
|
||||
icon={ToolIcon}
|
||||
/>
|
||||
</div>
|
||||
{:else if tool.schema}
|
||||
<SchemaToolView {tool} />
|
||||
{:else}
|
||||
<ToolView {tool} />
|
||||
<SchemaToolView {tool} />
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TOOLS } from "$lib/registry";
|
||||
import { TOOLS } from "$lib/registry-new";
|
||||
|
||||
export const prerender = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user