format: whole project
This commit is contained in:
1 parent
b883b5f6e0
commit
80269cf275
79 files changed
+590
-612
No files matched your search
@@ -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)),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user