mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 22:22:50 +00:00
refactor(web): move search component under root page dir
This commit is contained in:
1 parent
fb0c05ad92
commit
fbac1353c3
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import Input from '../../components/Input.svelte';
|
||||
import Search from './components/Search.svelte';
|
||||
import { IconFileAnalytics, IconSearch, IconSourceCode } from '@tabler/icons-svelte';
|
||||
import { router } from 'tinro';
|
||||
import { search, filteredResources, generalData } from '../../store';
|
||||
@@ -12,7 +12,7 @@
|
||||
<p class="text-2xl">Resources</p>
|
||||
<IconSourceCode />
|
||||
</div>
|
||||
<Input icon={IconSearch} bind:value={$search} />
|
||||
<Search icon={IconSearch} bind:value={$search} />
|
||||
</div>
|
||||
<div class="flex flex-col gap-3 mt-6 overflow-y-auto pr-4">
|
||||
{#each $filteredResources as resource}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<script lang="ts">
|
||||
export let icon: ConstructorOfATypedSvelteComponent;
|
||||
export let value: string;
|
||||
</script>
|
||||
|
||||
<div
|
||||
class="p-2 flex items-center outline-none border-[1px] border-transparent transition-all duration-100 focus-within:border-cyan-600 rounded-md bg-dark-600"
|
||||
>
|
||||
<div class="pr-2">
|
||||
<svelte:component this={icon} />
|
||||
</div>
|
||||
<input type="text" bind:value class="bg-transparent outline-none w-full" placeholder="Search resources..." />
|
||||
</div>
|
||||
Reference in new issue
Block a user