-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9f13b5
commit 7ac4245
Showing
4 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<script> | ||
import Dialog from "../Dialog.svelte"; | ||
</script> | ||
|
||
<Dialog id="infoDialog"> | ||
<h1 class="text-center">Vertretungsapp<span class="text-accent">.</span></h1> | ||
<h4 class="text-center">Deine Vertretungsapp für Indiware!</h4> | ||
|
||
<div class="text-grayedOut text-center my-4"> | ||
<p>Lizenziert unter <a class="underline" href="https://github.com/SachsenspieltCoding/vertretungsapp/blob/master/LICENSE" target="_blank">GNU GPLv3</a></p> | ||
<p>Version: {VERSION}</p> | ||
</div> | ||
|
||
<div class="flex gap-2 justify-center my-4"> | ||
<a href="https://github.com/SachsenspieltCoding/vertretungsapp" target="_blank">GitHub</a> | ||
<p class="text-accent">・</p> | ||
<a href="https://vertretungsapp.de/discord" target="_blank">Discord</a> | ||
<p class="text-accent">・</p> | ||
<a href="https://vertretungsapp.de" target="_blank">Website</a> | ||
|
||
</div> | ||
|
||
<div class="flex gap-2 justify-center text-grayedOut my-4"> | ||
<a href="https://vertretungsapp.de/imprint" target="_blank">Impressum</a> | ||
<p>・</p> | ||
<a href="https://vertretungsapp.de/privacy" target="_blank">Datenschutz</a> | ||
</div> | ||
|
||
<input class="w-full cursor-pointer" type="button" value="Schließen" on:click={() => document.querySelector('#infoDialog').close()} /> | ||
</Dialog> | ||
|
||
<style> | ||
a,p { | ||
font-size: 0.9rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
import { defineConfig } from 'vite'; | ||
import mkCert from 'vite-plugin-mkcert'; | ||
import { readFileSync } from 'fs'; | ||
import { fileURLToPath } from 'url'; | ||
|
||
const file = fileURLToPath(new URL('package.json', import.meta.url)); | ||
const json = readFileSync(file, 'utf8'); | ||
const pkg = JSON.parse(json); | ||
|
||
export default defineConfig({ | ||
server: { https: true }, | ||
plugins: [sveltekit(), mkCert()] | ||
plugins: [sveltekit(), mkCert()], | ||
define: { | ||
'VERSION': JSON.stringify(pkg.version), | ||
} | ||
}); |