Add links to project and GitHub page

This commit is contained in:
2025-08-30 13:11:39 +02:00
parent 3c13bb88e1
commit 052bb7694a
5 changed files with 52 additions and 29 deletions

View File

@@ -1,13 +1,13 @@
<script setup lang="ts"> <script setup lang="ts">
import { useAccountStore } from '@/stores/account.store'; import { useAccountStore } from "@/stores/account.store";
import { useBasketStore } from '@/stores/basket.store'; import { useBasketStore } from "@/stores/basket.store";
import { useExerciseStore } from '@/stores/exercise.store'; import { useExerciseStore } from "@/stores/exercise.store";
const accountStore = useAccountStore() const accountStore = useAccountStore();
const basketStore = useBasketStore() const basketStore = useBasketStore();
const exerciseStore = useExerciseStore() const exerciseStore = useExerciseStore();
exerciseStore.getAllExercises() exerciseStore.getAllExercises();
</script> </script>
<template> <template>
@@ -24,10 +24,15 @@ exerciseStore.getAllExercises()
<div> <div>
<v-badge <v-badge
:content="basketStore.itemsInBasket.reduce((tot, item) => { :content="
return tot + item.seats.length basketStore.itemsInBasket.reduce((tot, item) => {
}, 0)" return tot + item.seats.length;
color="error" offset-x="8" offset-y="8"> }, 0)
"
color="error"
offset-x="8"
offset-y="8"
>
<v-btn variant="plain" icon="mdi-cart" to="/basket" /> <v-btn variant="plain" icon="mdi-cart" to="/basket" />
</v-badge> </v-badge>
</div> </div>
@@ -46,5 +51,5 @@ exerciseStore.getAllExercises()
to="/help" to="/help"
/> />
<v-btn variant="plain" icon="mdi-cog" to="/preferences"/> <v-btn variant="plain" icon="mdi-cog" to="/preferences" />
</template> </template>

View File

@@ -289,7 +289,9 @@
"license": "Lizenz", "license": "Lizenz",
"developer": "Entwickler", "developer": "Entwickler",
"developedFor": "Entwickelt im Auftrag", "developedFor": "Entwickelt im Auftrag",
"copyright": "Copyright" "copyright": "Copyright",
"githubRepository": "GitHub Repository",
"projectPage": "Projektseite"
}, },
"genre": { "genre": {
"withoutBand": "ohne Band" "withoutBand": "ohne Band"

View File

@@ -289,7 +289,9 @@
"license": "License", "license": "License",
"developer": "Developer", "developer": "Developer",
"developedFor": "Developed for", "developedFor": "Developed for",
"copyright": "Copyright" "copyright": "Copyright",
"githubRepository": "GitHub Repository",
"projectPage": "Project page"
}, },
"genre": { "genre": {
"withoutBand": "without Band" "withoutBand": "without Band"

View File

@@ -1,14 +1,14 @@
<script setup lang="ts"> <script setup lang="ts">
import cardView from '@/components/basics/cardView.vue'; import cardView from "@/components/basics/cardView.vue";
import packageJson from './../../../../package.json' import packageJson from "./../../../../package.json";
function openExternal(url: string) {
window.open(url, "_blank");
}
</script> </script>
<template> <template>
<card-view <card-view :title="$t('preferences.aboutProject')" icon="mdi-information">
:title="$t('preferences.aboutProject')"
icon="mdi-information"
>
<template #borderless> <template #borderless>
<v-list> <v-list>
<v-list-item <v-list-item
@@ -33,9 +33,23 @@ import packageJson from './../../../../package.json'
/> />
<v-list-item <v-list-item
:title="$t('misc.copyright')" :title="$t('misc.copyright')"
subtitle="2024" subtitle="2024-2025"
prepend-icon="mdi-copyright" prepend-icon="mdi-copyright"
/> />
<v-list-item
:title="$t('misc.githubRepository')"
prepend-icon="mdi-web"
@click="openExternal('https://github.com/TobiZog/eventmaster')"
/>
<v-list-item
:title="$t('misc.projectPage')"
prepend-icon="mdi-web"
@click="
openExternal(
'https://www.itsec.uni-hannover.de/de/usec/forschung/eventmaster-learning-web-attacks'
)
"
/>
</v-list> </v-list>
</template> </template>
</card-view> </card-view>

View File

@@ -50,7 +50,7 @@ export const useExerciseStore = defineStore("exerciseStore", {
} }
}); });
this.helpPageVisible = this.getExercise(1, 1).solved; this.exercisePageVisible = this.getExercise(1, 1).solved;
this.fetchInProgress = false; this.fetchInProgress = false;
}); });
}, },