Skip to content

Commit

Permalink
move github url to config
Browse files Browse the repository at this point in the history
  • Loading branch information
zaanposni committed Jan 22, 2024
1 parent ee10e87 commit 24eb957
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
3 changes: 3 additions & 0 deletions src/psaggregator/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ export const MAIL_TO_URL = "mailto:psaggregator@zaanposni.com";
export const LEGAL_URL = env.PUBLIC_LEGAL_URL;
export const MICROANALYTICS_ID = env.PUBLIC_MICROANALYTICS_ID;
export const KOFI_USERNAME = env.PUBLIC_KOFI_USERNAME;

export const GITHUB_URL = "https://github.com/zaanposni/psaggregator";
export const GITHUB_AUTHOR_URL = "https://github.com/zaanposni";
4 changes: 2 additions & 2 deletions src/psaggregator/src/lib/components/BigHeader.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { AppBar, LightSwitch } from "@skeletonlabs/skeleton";
import MediaQuery from "$lib/utils/MediaQuery.svelte";
import { KOFI_USERNAME, LEGAL_URL } from "../../config/config";
import { GITHUB_URL, KOFI_USERNAME, LEGAL_URL } from "../../config/config";
</script>

<MediaQuery query="(min-width: 768px)" let:matches>
Expand All @@ -16,7 +16,7 @@
<a href="/news">News</a>
<a href="/api">API</a>
<a href="/motivation">Motivation</a>
<a href="https://github.com/zaanposni/psaggregator/" target="_blank">
<a href={GITHUB_URL} target="_blank">
<span>GitHub</span>
</a>
{/if}
Expand Down
8 changes: 4 additions & 4 deletions src/psaggregator/src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import MediaQuery from "$lib/utils/MediaQuery.svelte";
import { LEGAL_URL, MAIL_TO_URL } from "../../config/config";
import { GITHUB_AUTHOR_URL, GITHUB_URL, LEGAL_URL, MAIL_TO_URL } from "../../config/config";
import { version } from "$app/environment";
import { TabAnchor, TabGroup } from "@skeletonlabs/skeleton";
import { page } from "$app/stores";
Expand All @@ -17,17 +17,17 @@
{#if matches}
<div class="flex w-full flex-row flex-wrap items-center gap-x-4 p-2 lg:flex-nowrap">
<span class="mr-12 text-sm md:text-base">
<a href="https://github.com/zaanposni/psaggregator/" target="_blank">
<a href={GITHUB_URL} target="_blank">
<span>PS Aggregator</span>
</a>by
<a href="https://github.com/zaanposni" target="_blank">
<a href={GITHUB_AUTHOR_URL} target="_blank">
<span>zaanposni</span>
</a>
</span>
<a href={MAIL_TO_URL} target="_blank">
<span>Kontakt</span>
</a>
<a href="https://github.com/zaanposni/psaggregator/" target="_blank">
<a href={GITHUB_URL} target="_blank">
<span>GitHub</span>
</a>
{#if LEGAL_URL}
Expand Down
6 changes: 2 additions & 4 deletions src/psaggregator/src/routes/api/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import bash from "highlight.js/lib/languages/bash";
import { storeHighlightJs } from "@skeletonlabs/skeleton";
import moment from "moment";
import { MAIL_TO_URL } from "../../config/config";
import { GITHUB_URL, MAIL_TO_URL } from "../../config/config";
import Sparkle from "$lib/components/Sparkle.svelte";
const curlUploadPlan = `curl -X GET ${location.protocol}//${location.host}/api/uploadplan?date=${moment().format("YYYY-MM-DD")}`;
Expand Down Expand Up @@ -68,9 +68,7 @@
<span>Einzelne Daten in dieser API werden über die OpenAI Vision AI analysiert.</span>
<span>Dadurch kann es gelegentlich zu fehlerhaften oder doppelten Einträgen kommen.</span>
<span
>Sollten dir solche Fehler auffallen, melde dich gerne auf <a
class="underline"
href="https://github.com/zaanposni/psaggregator">GitHub</a>
>Sollten dir solche Fehler auffallen, melde dich gerne auf <a class="underline" href={GITHUB_URL}>GitHub</a>
oder per <a class="underline" href={MAIL_TO_URL}>Mail</a>.</span>
</div>
</div>
Expand Down
6 changes: 2 additions & 4 deletions src/psaggregator/src/routes/motivation/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { clipboard } from "@skeletonlabs/skeleton";
import { KOFI_USERNAME, MAIL_TO_URL } from "../../config/config";
import { GITHUB_URL, KOFI_USERNAME, MAIL_TO_URL } from "../../config/config";
import { Copy, FavoriteFilled } from "carbon-icons-svelte";
import { getToastStore } from "@skeletonlabs/skeleton";
Expand Down Expand Up @@ -49,9 +49,7 @@
{/if}
<span class="text-1xl mt-4 font-bold md:mt-8 md:text-2xl">Open Source</span>
<div>
<span
>Der Quellcode für dieses Projekt ist auf <a href="https://github.com/zaanposni/psaggregator" class="underline" target="_blank"
>GitHub</a> verfügbar.</span>
<span>Der Quellcode für dieses Projekt ist auf <a href={GITHUB_URL} class="underline" target="_blank">GitHub</a> verfügbar.</span>
<span>Wenn du einen Fehler findest oder eine Idee hast, kannst du gerne ein Issue erstellen oder einen Pull Request öffnen.</span>
<span>Ich freue mich über jede Hilfe.</span>
</div>
Expand Down
7 changes: 4 additions & 3 deletions src/psaggregator/src/routes/news/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts">
import YouTubeCommunityPost from "$lib/components/YouTubeCommunityPost.svelte";
import { GITHUB_URL } from "../../config/config";
import type { PageData } from "./$types";
import { LogoYoutube, LogoTwitter, LogoInstagram, FaceDissatisfied } from "carbon-icons-svelte";
Expand Down Expand Up @@ -31,7 +32,7 @@
<span>Dieses Projekt ist Open Source.</span>
<span
>Beteilige dich gerne auf
<a href="https://github.com/zaanposni/psaggregator" class="underline" target="_blank">GitHub</a>
<a href={GITHUB_URL} class="underline" target="_blank">GitHub</a>
</span>
</div>
</div>
Expand All @@ -48,7 +49,7 @@
<span>Dieses Projekt ist Open Source.</span>
<span
>Beteilige dich gerne auf
<a href="https://github.com/zaanposni/psaggregator" class="underline" target="_blank">GitHub</a>
<a href={GITHUB_URL} class="underline" target="_blank">GitHub</a>
</span>
</div>
</div>
Expand All @@ -65,7 +66,7 @@
<span>Dieses Projekt ist Open Source.</span>
<span
>Beteilige dich gerne auf
<a href="https://github.com/zaanposni/psaggregator" class="underline" target="_blank">GitHub</a>
<a href={GITHUB_URL} class="underline" target="_blank">GitHub</a>
</span>
</div>
</div>
Expand Down

0 comments on commit 24eb957

Please sign in to comment.