This commit is contained in:
Sevichecc 2022-08-06 23:16:23 +08:00
parent 7bdd0a57f4
commit 1d185df293
26 changed files with 43 additions and 39 deletions

View file

@ -32,7 +32,13 @@
'wm-private': boolean 'wm-private': boolean
} }
let [page, loaded, end, mentions, sortDirUp]: [number, boolean, boolean, WebmentionEntry[], boolean] = [0, false, false, [], config?.sortDir === 'up' ? true : false] let [page, loaded, end, mentions, sortDirUp]: [number, boolean, boolean, WebmentionEntry[], boolean] = [
0,
false,
false,
[],
config?.sortDir === 'up' ? true : false
]
const load = async () => const load = async () =>
await fetch( await fetch(
@ -48,8 +54,7 @@
feed = { feed = {
...feed, ...feed,
children: feed.children.filter( children: feed.children.filter(
(entry: WebmentionEntry) => (entry: WebmentionEntry) => !config.blockList?.includes(new URL(entry['wm-source']).origin)
!config.blockList?.includes(new URL(entry['wm-source']).origin)
) )
} }
if (feed.children.length > 0) mentions = [...mentions, ...feed.children] if (feed.children.length > 0) mentions = [...mentions, ...feed.children]
@ -97,7 +102,8 @@
'mention-of': ['💬 mentioned', 'border-base-300/50', 'text-base-content', 'tooltip-base-content'], 'mention-of': ['💬 mentioned', 'border-base-300/50', 'text-base-content', 'tooltip-base-content'],
rsvp: [ rsvp: [
`📅 RSVPed ${ `📅 RSVPed ${
mention.rsvp && { mention.rsvp &&
{
yes: '✅', yes: '✅',
no: '❌', no: '❌',
interested: '💡', interested: '💡',

View file

@ -29,7 +29,8 @@
data-tip="Bookmark" data-tip="Bookmark"
aria-label="Bookmark" aria-label="Bookmark"
href="https://airtable.com/shrpftxf6JgRomP2X"> href="https://airtable.com/shrpftxf6JgRomP2X">
<span class="i-ic-round-bookmark-border <span
class="i-ic-round-bookmark-border
!w-8 !h-8 mr-1 fill-current inline-block hover:text-lime-500" /> !w-8 !h-8 mr-1 fill-current inline-block hover:text-lime-500" />
</a> </a>
<a <a

View file

@ -24,8 +24,7 @@ const defineConfig = (config: Config) => config
export default defineConfig({ export default defineConfig({
content: ['./src/**/*.{html,md,js,svelte,ts}'], content: ['./src/**/*.{html,md,js,svelte,ts}'],
theme: { theme: {
extend: { extend: {}
}
}, },
plugins: [typography as TailwindPluginWithoutOptions, daisyui as TailwindPluginWithoutOptions], plugins: [typography as TailwindPluginWithoutOptions, daisyui as TailwindPluginWithoutOptions],
daisyui: { daisyui: {

View file

@ -1,10 +1,8 @@
<script lang="ts">
<script lang='ts'> import { posts as storedPosts } from '$lib/stores/posts'
import { posts as storedPosts} from '$lib/stores/posts'
import Head from '$lib/components/head.svelte' import Head from '$lib/components/head.svelte'
import Footer from '$lib/components/footer.svelte' import Footer from '$lib/components/footer.svelte'
// let notes = storedPosts.filter((post)=> post.layout==='notes') // let notes = storedPosts.filter((post)=> post.layout==='notes')
</script> </script>
<Head /> <Head />