mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 18:49:31 +08:00
move friends
This commit is contained in:
parent
21021e8fe1
commit
c14ed1c151
4 changed files with 7 additions and 14 deletions
|
@ -15,15 +15,7 @@
|
|||
|
||||
posts.set(data.res)
|
||||
tags.set(genTags(data.res))
|
||||
onMount(
|
||||
() =>
|
||||
!dev &&
|
||||
browser &&
|
||||
registerSW({
|
||||
onRegistered: r => r && setInterval(async () => await r.update(), 198964),
|
||||
onRegisterError: error => console.error(error)
|
||||
})
|
||||
)
|
||||
|
||||
</script>
|
||||
|
||||
<Head />
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
<script lang="ts">
|
||||
// @ts-nocheck
|
||||
import Masonry from 'svelte-bricks'
|
||||
import type { Friend } from '$lib/config/friends'
|
||||
import { friends as allFriends } from '$lib/config/friends'
|
||||
import { title as storedTitle } from '$lib/stores/title'
|
||||
import Head from '$lib/components/head.svelte'
|
||||
import Masonry from 'svelte-bricks'
|
||||
import FriendComponent from '$lib/components/extra/friend.svelte'
|
||||
|
||||
const rnd = Math.random()
|
||||
|
@ -16,7 +17,7 @@
|
|||
storedTitle.set('')
|
||||
</script>
|
||||
|
||||
<Head />
|
||||
<Head page={{ title: 'Friends', path: '/friends' }} />
|
||||
|
||||
<Masonry
|
||||
{items}
|
Loading…
Reference in a new issue