Add links to project and GitHub page
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user