Преглед изворни кода

fix: Do not reference gitlab

Sean Blackburn пре 10 месеци
родитељ
комит
ec0d8ecce8

+ 0 - 2
.env.development

@@ -1,5 +1,3 @@
-VITE_GITLAB_REPO=https://gitlab.com/example/repo
-VITE_GITLAB_REPO_TICKET=https://gitlab.com/example/ticket
 VITE_MODULE_SIGNUP=https://example.com/signup
 VITE_STUDENTHUB=https://example.com/studenthub
 VITE_ALL_TIMETABLES=https://example.com/timetables

+ 1 - 1
src/components/layout/HeaderBar.vue

@@ -60,7 +60,7 @@
           class="text-blue-400 underline"
           target="_blank"
           rel="noreferrer noopener"
-          :href="URLS.GITLAB_REPO_TICKET"
+          :href="URLS.CODE_REPO_TICKET"
           >Ticket</a
         >
       </p>

+ 8 - 8
src/components/modals/AdditionalInfo.vue

@@ -100,24 +100,24 @@
       <h2 class="text-2xl inline-block mr-5">Mitentwickeln</h2>
       <a
         title="Modulplaner GitLab Repo"
-        :href="URLS.GITLAB_REPO"
+        :href="URLS.CODE_REPO"
         target="_blank"
         rel="noreferrer noopener"
-        class="text-orange-600 hover:text-orange-400 transition-all duration-200"
-        ><font-awesome-icon icon="fa-brands fa-gitlab" class="text-2xl"
+        class="hover:text-orange-400 transition-all duration-200"
+        ><font-awesome-icon icon="fa-solid fa-code-branch" class="text-2xl"
       /></a>
       <p class="text-gray-600 dark:text-gray-400 py-1">
-        Der Modulplaner ist ein open-source Projekt, welches unter der
-        MIT-Lizenz veröffentlicht ist. Helfe mit, indem du Fehler meldest oder
+        Der Modulplaner ist ein open-source Projekt, welches unter der MPL 2.0
+        Lizenz veröffentlicht ist. Helfe mit, indem du Fehler meldest oder
         direkt am Code Änderungen anbringst.
       </p>
       <a
         class="external-link inline-block mt-2"
-        title="Studenthub"
-        :href="URLS.GITLAB_REPO"
+        title="Modulplaner repo"
+        :href="URLS.CODE_REPO"
         target="_blank"
         rel="noreferrer noopener"
-        >GitLab Repo
+        >Git Repo
         <font-awesome-icon
           class="ml-2"
           icon="fa-solid fa-arrow-up-right-from-square"

+ 1 - 1
src/components/modals/ClassModuleDetails.vue

@@ -20,7 +20,7 @@
       >
       <a
         title="Modulplaner GitLab Repo"
-        :href="URLS.GITLAB_REPO_TICKET"
+        :href="URLS.CODE_REPO_TICKET"
         target="_blank"
         rel="noreferrer noopener"
         class="external-link mt-5 inline-block"

+ 2 - 2
src/globals.ts

@@ -1,6 +1,6 @@
 export const URLS = {
-  GITLAB_REPO: import.meta.env.VITE_GITLAB_REPO,
-  GITLAB_REPO_TICKET: import.meta.env.VITE_GITLAB_REPO_TICKET,
+  CODE_REPO: "https://codeberg.org/Modulplaner/modulplaner",
+  CODE_REPO_TICKET: "https://codeberg.org/Modulplaner/modulplaner/issues",
   MODULE_SIGNUP: import.meta.env.VITE_MODULE_SIGNUP,
   STUDENTHUB: import.meta.env.VITE_STUDENTHUB,
   ALL_TIMETABLES: import.meta.env.VITE_ALL_TIMETABLES,

+ 32 - 30
src/main.ts

@@ -19,11 +19,15 @@ import {
   faCalendarDay,
   faChevronDown,
   faChevronRight,
+  faChevronUp,
+  faCodeBranch,
   faCog,
   faCopy,
+  faEnvelope,
   faEye,
   faFilePdf,
   faHeart,
+  faHouseLaptop,
   faInfo,
   faMagnifyingGlass,
   faMinus,
@@ -36,53 +40,51 @@ import {
   faSort,
   faSortDown,
   faSortUp,
+  faSquare,
   faTrashCan,
   faUserPlus,
   faWifi,
   faXmark,
-  faSquare,
-  faHouseLaptop,
-  faEnvelope,
-  faChevronUp,
 } from "@fortawesome/free-solid-svg-icons";
 import { faGitlab } from "@fortawesome/free-brands-svg-icons";
 import { router } from "./router";
 
-library.add(faTrashCan);
-library.add(faPlus);
-library.add(faMinus);
-library.add(faWifi);
-library.add(faSchool);
 library.add(faArrowLeft);
 library.add(faArrowRight);
-library.add(faHeart);
-library.add(faGitlab);
-library.add(faFilePdf);
-library.add(faShare);
-library.add(faCopy);
-library.add(faXmark);
-library.add(faInfo);
-library.add(faPencil);
-library.add(faSort);
-library.add(faSortUp);
-library.add(faSortDown);
-library.add(faUserPlus);
 library.add(faArrowUp);
-library.add(faInfo);
-library.add(faCog);
 library.add(faArrowUpRightFromSquare);
-library.add(faEye);
-library.add(faChevronRight);
+library.add(faBars);
+library.add(faCalendarDay);
 library.add(faChevronDown);
+library.add(faChevronRight);
+library.add(faChevronUp);
+library.add(faCodeBranch);
+library.add(faCog);
+library.add(faCopy);
+library.add(faEnvelope);
+library.add(faEye);
+library.add(faFilePdf);
+library.add(faGitlab);
+library.add(faHeart);
+library.add(faHouseLaptop);
+library.add(faInfo);
+library.add(faInfo);
 library.add(faMagnifyingGlass);
+library.add(faMinus);
+library.add(faPencil);
+library.add(faPlus);
 library.add(faPuzzlePiece);
-library.add(faBars);
+library.add(faSchool);
+library.add(faShare);
 library.add(faSitemap);
-library.add(faCalendarDay);
+library.add(faSort);
+library.add(faSortDown);
+library.add(faSortUp);
 library.add(faSquare);
-library.add(faHouseLaptop);
-library.add(faEnvelope);
-library.add(faChevronUp);
+library.add(faTrashCan);
+library.add(faUserPlus);
+library.add(faWifi);
+library.add(faXmark);
 
 const pinia = createPinia();
 const toastOptions: PluginOptions = {};