mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
refactor pages to new folder structure
This commit is contained in:
@@ -16,17 +16,17 @@
|
|||||||
|
|
||||||
import { createRouter, createWebHistory } from "vue-router";
|
import { createRouter, createWebHistory } from "vue-router";
|
||||||
|
|
||||||
const Faq = () => import("../components/FaqPage.vue");
|
|
||||||
const AdditionalModules = () => import("../view/AdditionalModules.vue");
|
|
||||||
const CalendarLink = () => import("../components/CalendarLink.vue");
|
|
||||||
const RenameModules = () => import("../components/RenameModules.vue");
|
|
||||||
const RoomFinder = () => import("../view/RoomFinder.vue");
|
|
||||||
const EditCalendarView = () => import("../view/EditCalendarView.vue");
|
|
||||||
const EditAdditionalModules = () =>
|
|
||||||
import("../view/editCalendar/EditAdditionalModules.vue");
|
|
||||||
const EditModules = () => import("../view/editCalendar/EditModules.vue");
|
|
||||||
const CourseSelection = () => import("../view/CourseSelection.vue");
|
const CourseSelection = () => import("../view/CourseSelection.vue");
|
||||||
const FreeRooms = () => import("../view/FreeRooms.vue");
|
const AdditionalModules = () => import("../view/create/AdditionalModules.vue");
|
||||||
|
const CalendarLink = () => import("../view/CalendarLink.vue");
|
||||||
|
const RenameModules = () => import("../view/create/RenameModules.vue");
|
||||||
|
const RoomFinder = () => import("../view/rooms/RoomFinder.vue");
|
||||||
|
const FreeRooms = () => import("../view/rooms/FreeRooms.vue");
|
||||||
|
const EditCalendarView = () => import("../view/edit/EditCalendar.vue");
|
||||||
|
const EditAdditionalModules = () =>
|
||||||
|
import("../view/edit/EditAdditionalModules.vue");
|
||||||
|
const EditModules = () => import("../view/edit/EditModules.vue");
|
||||||
|
const Faq = () => import("../view/Faq.vue");
|
||||||
|
|
||||||
import i18n from "../i18n";
|
import i18n from "../i18n";
|
||||||
|
|
||||||
@@ -108,11 +108,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: "/privacy-policy",
|
path: "/privacy-policy",
|
||||||
name: "privacy-policy",
|
name: "privacy-policy",
|
||||||
component: Faq,
|
redirect: "https://www.htwk-leipzig.de/hochschule/kontakt/datenschutzerklaerung/",
|
||||||
beforeEnter() {
|
|
||||||
window.location.href =
|
|
||||||
"https://www.htwk-leipzig.de/hochschule/kontakt/datenschutzerklaerung/";
|
|
||||||
},
|
|
||||||
meta: {
|
meta: {
|
||||||
label: "privacy"
|
label: "privacy"
|
||||||
}
|
}
|
||||||
@@ -120,11 +116,7 @@ const router = createRouter({
|
|||||||
{
|
{
|
||||||
path: "/imprint",
|
path: "/imprint",
|
||||||
name: "imprint",
|
name: "imprint",
|
||||||
component: Faq,
|
redirect: "https://www.htwk-leipzig.de/hochschule/kontakt/impressum/",
|
||||||
beforeEnter() {
|
|
||||||
window.location.href =
|
|
||||||
"https://www.htwk-leipzig.de/hochschule/kontakt/impressum/";
|
|
||||||
},
|
|
||||||
meta: {
|
meta: {
|
||||||
label: "imprint"
|
label: "imprint"
|
||||||
}
|
}
|
||||||
|
@@ -17,10 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import tokenStore from "../store/tokenStore.ts";
|
import tokenStore from "@/store/tokenStore.ts";
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { computed, onMounted } from "vue";
|
import { computed, onMounted } from "vue";
|
||||||
import router from "../router";
|
import router from "@/router";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
const { t } = useI18n({ useScope: "global" });
|
const { t } = useI18n({ useScope: "global" });
|
||||||
|
|
@@ -21,13 +21,13 @@ import { computed, ComputedRef, Ref, ref, watch } from "vue";
|
|||||||
import {
|
import {
|
||||||
fetchCourseBySemester,
|
fetchCourseBySemester,
|
||||||
fetchModulesByCourseAndSemester,
|
fetchModulesByCourseAndSemester,
|
||||||
} from "../api/fetchCourse";
|
} from "@/api/fetchCourse";
|
||||||
import DynamicPage from "./DynamicPage.vue";
|
import DynamicPage from "@/view/DynamicPage.vue";
|
||||||
import ModuleSelection from "../components/ModuleSelection.vue";
|
import ModuleSelection from "@/components/ModuleSelection.vue";
|
||||||
import { Module } from "../model/module.ts";
|
import { Module } from "@/model/module.ts";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import moduleStore from "../store/moduleStore";
|
import moduleStore from "@/store/moduleStore";
|
||||||
import router from "../router";
|
import router from "@/router";
|
||||||
|
|
||||||
async function getModules() {
|
async function getModules() {
|
||||||
modules.value = await fetchModulesByCourseAndSemester(
|
modules.value = await fetchModulesByCourseAndSemester(
|
||||||
|
@@ -17,9 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import moduleStore from "../store/moduleStore";
|
import moduleStore from "@/store/moduleStore";
|
||||||
import router from "../router";
|
import router from "@/router";
|
||||||
import AdditionalModuleTable from "../components/AdditionalModuleTable.vue";
|
import AdditionalModuleTable from "@/components/AdditionalModuleTable.vue";
|
||||||
|
|
||||||
const store = moduleStore();
|
const store = moduleStore();
|
||||||
|
|
@@ -17,13 +17,13 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import moduleStore from "../store/moduleStore.ts";
|
import moduleStore from "@/store/moduleStore.ts";
|
||||||
import { createIndividualFeed } from "../api/createFeed.ts";
|
import { createIndividualFeed } from "@/api/createFeed.ts";
|
||||||
import router from "../router";
|
import router from "@/router";
|
||||||
import tokenStore from "../store/tokenStore.ts";
|
import tokenStore from "@/store/tokenStore.ts";
|
||||||
import { Ref, computed, inject, ref, onMounted } from "vue";
|
import { Ref, computed, inject, ref, onMounted } from "vue";
|
||||||
import ModuleTemplateDialog from "./ModuleTemplateDialog.vue";
|
import ModuleTemplateDialog from "@/components/ModuleTemplateDialog.vue";
|
||||||
import { onlyWhitespace } from "../helpers/strings.ts";
|
import { onlyWhitespace } from "@/helpers/strings.ts";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { Module } from "@/model/module.ts";
|
import { Module } from "@/model/module.ts";
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
@@ -18,12 +18,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent } from "vue";
|
import { defineAsyncComponent } from "vue";
|
||||||
import moduleStore from "../../store/moduleStore";
|
import moduleStore from "@/store/moduleStore";
|
||||||
import router from "../../router";
|
import router from "@/router";
|
||||||
|
|
||||||
const store = moduleStore();
|
const store = moduleStore();
|
||||||
const AdditionalModuleTable = defineAsyncComponent(
|
const AdditionalModuleTable = defineAsyncComponent(
|
||||||
() => import("../../components/AdditionalModuleTable.vue"),
|
() => import("@/components/AdditionalModuleTable.vue"),
|
||||||
);
|
);
|
||||||
|
|
||||||
async function nextStep() {
|
async function nextStep() {
|
@@ -18,14 +18,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { Ref, ref } from "vue";
|
import { Ref, ref } from "vue";
|
||||||
import { Module } from "../model/module";
|
import { Module } from "@/model/module";
|
||||||
import moduleStore from "../store/moduleStore";
|
import moduleStore from "@/store/moduleStore";
|
||||||
import { getCalender } from "../api/loadCalendar";
|
import { getCalender } from "@/api/loadCalendar";
|
||||||
import router from "../router";
|
import router from "@/router";
|
||||||
import tokenStore from "../store/tokenStore";
|
import tokenStore from "@/store/tokenStore";
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import DynamicPage from "./DynamicPage.vue";
|
import DynamicPage from "@/view/DynamicPage.vue";
|
||||||
const { t } = useI18n({ useScope: "global" });
|
const { t } = useI18n({ useScope: "global" });
|
||||||
|
|
||||||
const toast = useToast();
|
const toast = useToast();
|
@@ -19,12 +19,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, inject, Ref, ref } from "vue";
|
import { computed, inject, Ref, ref } from "vue";
|
||||||
import { Module } from "@/model/module.ts";
|
import { Module } from "@/model/module.ts";
|
||||||
import moduleStore from "../../store/moduleStore";
|
import moduleStore from "@/store/moduleStore";
|
||||||
import { fetchAllModules } from "@/api/fetchCourse.ts";
|
import { fetchAllModules } from "@/api/fetchCourse.ts";
|
||||||
import { deleteIndividualFeed, saveIndividualFeed } from "@/api/createFeed.ts";
|
import { deleteIndividualFeed, saveIndividualFeed } from "@/api/createFeed.ts";
|
||||||
import tokenStore from "../../store/tokenStore";
|
import tokenStore from "@/store/tokenStore";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
import ModuleTemplateDialog from "../../components/ModuleTemplateDialog.vue";
|
import ModuleTemplateDialog from "@/components/ModuleTemplateDialog.vue";
|
||||||
import { onlyWhitespace } from "@/helpers/strings.ts";
|
import { onlyWhitespace } from "@/helpers/strings.ts";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useToast } from "primevue/usetoast";
|
import { useToast } from "primevue/usetoast";
|
@@ -18,9 +18,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Ref, computed, ref, watch } from "vue";
|
import { Ref, computed, ref, watch } from "vue";
|
||||||
import { fetchRoom } from "../api/fetchRoom.ts";
|
import { fetchRoom } from "@/api/fetchRoom.ts";
|
||||||
import DynamicPage from "./DynamicPage.vue";
|
import DynamicPage from "@/view/DynamicPage.vue";
|
||||||
import RoomOccupation from "../components/RoomOccupation.vue";
|
import RoomOccupation from "@/components/RoomOccupation.vue";
|
||||||
import { computedAsync } from "@vueuse/core";
|
import { computedAsync } from "@vueuse/core";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
|
|
Reference in New Issue
Block a user