1
0
Fork 0

Compare commits

..

No commits in common. "f9408d5d53dbc2d82a1eb53d764a68390fc883f8" and "c5d9e1a6fc7f3aa3462907ee4bc65f9195d16ab2" have entirely different histories.

6 changed files with 17 additions and 21 deletions

2
.gitignore vendored
View file

@ -15,6 +15,7 @@ dist-ssr
# Editor directories and files # Editor directories and files
.vscode/* .vscode/*
!.vscode/extensions.json
.idea .idea
.DS_Store .DS_Store
*.suo *.suo
@ -22,3 +23,4 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?

View file

@ -12,7 +12,6 @@
<Tab class="text-dark-token" bind:group={tabPos} name="tab1" value={0}>Display</Tab> <Tab class="text-dark-token" bind:group={tabPos} name="tab1" value={0}>Display</Tab>
<Tab class="text-dark-token" bind:group={tabPos} name="tab2" value={1}>API</Tab> <Tab class="text-dark-token" bind:group={tabPos} name="tab2" value={1}>API</Tab>
<Tab class="text-dark-token" bind:group={tabPos} name="tab3" value={2}>User</Tab> <Tab class="text-dark-token" bind:group={tabPos} name="tab3" value={2}>User</Tab>
<Tab class="text-dark-token" bind:group={tabPos} name="tab4" value={3}>Chats</Tab>
<svelte:fragment slot="panel"> <svelte:fragment slot="panel">
{#if tabPos === 0} {#if tabPos === 0}
@ -74,15 +73,6 @@
</div> </div>
</div> </div>
{/if} {/if}
{#if tabPos === 3}
<div class="flex flex-col gap-3">
<div class="">
<p class="text-dark-token font-bold">Chats</p>
<InputChip name="blacklist" label="Blacklist" bind:value={$blacklist} />
</div>
</div>
{/if}
</svelte:fragment> </svelte:fragment>
</TabGroup> </TabGroup>
</div> </div>

View file

@ -1,8 +1,8 @@
<script> <script>
import '../app.pcss'; import '../app.pcss';
import { Drawer, initializeStores, Modal, ProgressRadial, Toast } from '@skeletonlabs/skeleton'; import {Drawer, initializeStores, Modal, ProgressRadial, Toast} from '@skeletonlabs/skeleton';
import { loading } from '$lib/stores'; import {loading} from '$lib/stores';
import { AppSettings } from '$lib/components'; import {AppSettings} from '$lib/components';
initializeStores(); initializeStores();
</script> </script>

View file

@ -15,7 +15,7 @@
import PostList from '$lib/PostList'; import PostList from '$lib/PostList';
const drawerStore = getDrawerStore(); const drawerStore = getDrawerStore();
let initalSearch = true; const toastStore = getToastStore();
function onSearch() { function onSearch() {
$loading = true; $loading = true;
@ -25,14 +25,11 @@
}); });
} }
if ($postSearchResults === null) {
lastSearch.subscribe(() => { onSearch();
if (initalSearch) {
initalSearch = false;
if ($postSearchResults === null) onSearch();
return
} }
lastSearch.subscribe(() => {
onSearch(); onSearch();
}) })
</script> </script>

View file

@ -1,6 +1,12 @@
import { invoke } from "@tauri-apps/api/tauri";
export const ssr = false; export const ssr = false;
/** @type {import('./$types').PageLoad} */ /** @type {import('./$types').PageLoad} */
export async function load({ params }) { export async function load({ params }) {
return { postId: params.post_id }; // const post = await invoke('get_post', {post_id: params.post_id});
return {
postId: params.post_id
};
} }

View file

@ -13,6 +13,7 @@
import { BackAppRailAnchor, GlobalSearch, PostMedia, SearchAppRailAnchor } from '$lib/components'; import { BackAppRailAnchor, GlobalSearch, PostMedia, SearchAppRailAnchor } from '$lib/components';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import { loading, showSearch } from '$lib/stores'; import { loading, showSearch } from '$lib/stores';
import { limitImageHeight } from '$lib/settings.js';
import { TAG_TYPES } from '$lib/Tags'; import { TAG_TYPES } from '$lib/Tags';
import { invoke } from '@tauri-apps/api/tauri'; import { invoke } from '@tauri-apps/api/tauri';