Compare commits
No commits in common. "f9408d5d53dbc2d82a1eb53d764a68390fc883f8" and "c5d9e1a6fc7f3aa3462907ee4bc65f9195d16ab2" have entirely different histories.
f9408d5d53
...
c5d9e1a6fc
6 changed files with 17 additions and 21 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -15,6 +15,7 @@ dist-ssr
|
|||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
|
@ -22,3 +23,4 @@ dist-ssr
|
|||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
|
||||
|
|
|
@ -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="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="tab4" value={3}>Chats</Tab>
|
||||
|
||||
<svelte:fragment slot="panel">
|
||||
{#if tabPos === 0}
|
||||
|
@ -74,15 +73,6 @@
|
|||
</div>
|
||||
</div>
|
||||
{/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>
|
||||
</TabGroup>
|
||||
</div>
|
|
@ -15,7 +15,7 @@
|
|||
import PostList from '$lib/PostList';
|
||||
|
||||
const drawerStore = getDrawerStore();
|
||||
let initalSearch = true;
|
||||
const toastStore = getToastStore();
|
||||
|
||||
function onSearch() {
|
||||
$loading = true;
|
||||
|
@ -25,14 +25,11 @@
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
lastSearch.subscribe(() => {
|
||||
if (initalSearch) {
|
||||
initalSearch = false;
|
||||
if ($postSearchResults === null) onSearch();
|
||||
return
|
||||
if ($postSearchResults === null) {
|
||||
onSearch();
|
||||
}
|
||||
|
||||
lastSearch.subscribe(() => {
|
||||
onSearch();
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
import { invoke } from "@tauri-apps/api/tauri";
|
||||
|
||||
export const ssr = false;
|
||||
|
||||
/** @type {import('./$types').PageLoad} */
|
||||
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
|
||||
};
|
||||
}
|
|
@ -13,6 +13,7 @@
|
|||
import { BackAppRailAnchor, GlobalSearch, PostMedia, SearchAppRailAnchor } from '$lib/components';
|
||||
import { onMount } from 'svelte';
|
||||
import { loading, showSearch } from '$lib/stores';
|
||||
import { limitImageHeight } from '$lib/settings.js';
|
||||
import { TAG_TYPES } from '$lib/Tags';
|
||||
import { invoke } from '@tauri-apps/api/tauri';
|
||||
|
||||
|
|
Loading…
Reference in a new issue