mirror of
https://github.com/revanced/revanced-website.git
synced 2025-04-30 06:34:35 +02:00
feat(footer): remove repositories section
This commit is contained in:
parent
d1c763c1d3
commit
e0db94b2c3
@ -5,12 +5,9 @@
|
|||||||
import { queries } from '$data/api';
|
import { queries } from '$data/api';
|
||||||
import { createQuery } from '@tanstack/svelte-query';
|
import { createQuery } from '@tanstack/svelte-query';
|
||||||
|
|
||||||
import { friendlyName } from '$util/friendlyName';
|
|
||||||
|
|
||||||
import Query from '$lib/components/Query.svelte';
|
import Query from '$lib/components/Query.svelte';
|
||||||
import FooterSection from './FooterSection.svelte';
|
import FooterSection from './FooterSection.svelte';
|
||||||
|
|
||||||
const repoQuery = createQuery(['repositories'], queries.repositories);
|
|
||||||
const infoQuery = createQuery(['info'], queries.info);
|
const infoQuery = createQuery(['info'], queries.info);
|
||||||
const socialsQuery = createQuery(['socials'], queries.socials);
|
const socialsQuery = createQuery(['socials'], queries.socials);
|
||||||
</script>
|
</script>
|
||||||
@ -57,19 +54,6 @@
|
|||||||
<li><a href="/contributors">Contributors</a></li>
|
<li><a href="/contributors">Contributors</a></li>
|
||||||
<li><a href="/donate">Donate</a></li>
|
<li><a href="/donate">Donate</a></li>
|
||||||
</FooterSection>
|
</FooterSection>
|
||||||
<Query query={repoQuery} let:data>
|
|
||||||
{#if data}
|
|
||||||
<FooterSection title="Repositories">
|
|
||||||
{#each data.repositories as { name }}
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/{name}" target="_blank" rel="noreferrer">
|
|
||||||
{friendlyName(name)}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{/each}
|
|
||||||
</FooterSection>
|
|
||||||
{/if}
|
|
||||||
</Query>
|
|
||||||
<Query query={socialsQuery} let:data>
|
<Query query={socialsQuery} let:data>
|
||||||
{#if data}
|
{#if data}
|
||||||
<FooterSection title="Socials">
|
<FooterSection title="Socials">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user