From f03b4d586bf3fb95ed9006d7d0d2eec1a93d14a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Fri, 22 Sep 2023 14:15:01 +0200 Subject: [PATCH] feat: version and issue url --- icons.config.ts | 2 ++ package.json | 8 ++++++++ src/env.d.ts | 3 +++ src/routes/+layout.svelte | 3 +++ src/routes/Footer.svelte | 43 +++++++++++++++++++++++++++++++++++++++ svelte.config.js | 7 +++++++ vite.config.ts | 9 ++++++++ 7 files changed, 75 insertions(+) create mode 100644 src/routes/Footer.svelte diff --git a/icons.config.ts b/icons.config.ts index a3f4ee29..a4d2962c 100644 --- a/icons.config.ts +++ b/icons.config.ts @@ -60,6 +60,8 @@ const config: IconsConfig = { "play_arrow", "extension", "upload_file", + "commit", + "bug_report", ], codePoints: { speed: "e9e4", diff --git a/package.json b/package.json index f0534eb8..0fe2ff3d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,14 @@ "version": "0.5.0", "license": "AGPL-3.0-or-later", "private": true, + "repository": { + "type": "git", + "url": "https://github.com/Theaninova/amacc1ng.git" + }, + "homepage": "https://github.com/Theaninova/amacc1ng", + "bugs": { + "url": "https://github.com/Theaninova/amacc1ng/issues" + }, "scripts": { "dev": "npm-run-all --parallel vite typesafe-i18n", "dev:tauri": "tauri dev", diff --git a/src/env.d.ts b/src/env.d.ts index 536e7936..e10a2a24 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -12,3 +12,6 @@ interface ImportMetaEnv { interface ImportMeta { readonly env: ImportMetaEnv } + +declare const HOMEPAGE_URL: string +declare const BUGS_URL: string diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 6674f480..17142184 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -20,6 +20,7 @@ import {loadLocale} from "../i18n/i18n-util.sync" import {detectLocale} from "../i18n/i18n-util" import type {Locales} from "../i18n/i18n-types" + import Footer from "./Footer.svelte" const locale = ((browser && localStorage.getItem("locale")) as Locales) || detectLocale() loadLocale(locale) @@ -68,6 +69,8 @@ +