format: whole project
This commit is contained in:
1 parent
b883b5f6e0
commit
80269cf275
79 files changed
+590
-612
No files matched your search
@@ -1,11 +1,11 @@
|
||||
<script>
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
* @property {import('svelte').Snippet} [children]
|
||||
*/
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
* @property {import('svelte').Snippet} [children]
|
||||
*/
|
||||
|
||||
/** @type {Props} */
|
||||
let { children } = $props();
|
||||
/** @type {Props} */
|
||||
let { children } = $props()
|
||||
</script>
|
||||
|
||||
{@render children?.()}
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/** @type {Props} */
|
||||
let { children } = $props();
|
||||
let { children } = $props()
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
UserGroup,
|
||||
} from 'svelte-hero-icons'
|
||||
|
||||
let { data } = $props();
|
||||
let { data } = $props()
|
||||
</script>
|
||||
|
||||
<div
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import UserPage from '../../u/[name]/+page.svelte'
|
||||
let { data } = $props();
|
||||
let { data } = $props()
|
||||
</script>
|
||||
|
||||
{#if data.user && data.sort && data.type && data.page}
|
||||
|
||||
@@ -26,12 +26,12 @@ export async function load({ url, fetch, parent }) {
|
||||
(a, b) =>
|
||||
b.counts.upvotes -
|
||||
b.counts.downvotes -
|
||||
(a.counts.upvotes - a.counts.downvotes)
|
||||
(a.counts.upvotes - a.counts.downvotes),
|
||||
)
|
||||
} else if (sort == 'New') {
|
||||
items.sort(
|
||||
(a, b) =>
|
||||
Date.parse(getItemPublished(b)) - Date.parse(getItemPublished(a))
|
||||
Date.parse(getItemPublished(b)) - Date.parse(getItemPublished(a)),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
import { t } from '$lib/translations'
|
||||
|
||||
let { data = $bindable() } = $props();
|
||||
let { data = $bindable() } = $props()
|
||||
|
||||
const SvelteComponent = $derived(browser ? VirtualFeed : PostFeed);
|
||||
const SvelteComponent = $derived(browser ? VirtualFeed : PostFeed)
|
||||
</script>
|
||||
|
||||
<Header>
|
||||
|
||||
Reference in new issue
Block a user