From 4889299dd94beec8058dcd6b5708ab30c453e615 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 8 Jul 2026 09:20:51 +0200 Subject: [PATCH] remove unused file components/Cis/LvPlan/StgOrg_DEPR.js --- .../js/components/Cis/LvPlan/StgOrg_DEPR.js | 187 ------------------ 1 file changed, 187 deletions(-) delete mode 100644 public/js/components/Cis/LvPlan/StgOrg_DEPR.js diff --git a/public/js/components/Cis/LvPlan/StgOrg_DEPR.js b/public/js/components/Cis/LvPlan/StgOrg_DEPR.js deleted file mode 100644 index 02606a1db..000000000 --- a/public/js/components/Cis/LvPlan/StgOrg_DEPR.js +++ /dev/null @@ -1,187 +0,0 @@ -import FhcCalendar from "../../Calendar/LvPlan.js"; - -import ApiLvPlan from '../.././../api/factory/lvPlan.js'; -import ApiAuthinfo from '../../../api/factory/authinfo.js'; - -export const DEFAULT_MODE_LVPLAN = 'Week'; - -export default { - name: 'LvPlanStgOrg', - inject: { - cisRoot: { - from: 'cisRoot' - }, - }, - components: { - FhcCalendar, - }, - props: { - viewData: Object, - propsViewData: Object - }, - data() { - return { - studiensemester_kurzbz: null, - studiensemester_start: null, - studiensemester_ende: null, - uid: null, - isMitarbeiter: false, - isStudent: false, - listStg: [], - currentStgBezeichnung: null - }; - }, - computed:{ - currentDay() { - if (!this.propsViewData?.focus_date || isNaN(new Date(this.propsViewData?.focus_date))) - return luxon.DateTime.now().setZone(this.viewData.timezone).toISODate(); - return this.propsViewData?.focus_date; - }, - currentMode() { - if (!this.propsViewData?.mode || !['day', 'week', 'month'].includes(this.propsViewData?.mode.toLowerCase())) - return DEFAULT_MODE_LVPLAN; - return this.propsViewData?.mode; - }, - downloadLinks() { - if (!this.studiensemester_start || !this.studiensemester_ende || !this.uid) - return false; - - let type = false; - type = this.isStudent ? 'student' : type; - type = this.isMitarbeiter ? 'lektor' : type; - if (false === type) - { - return; - } - - const opts = { zone: this.viewData.timezone }; - const start = luxon.DateTime - .fromISO(this.studiensemester_start, opts) - .toUnixInteger(); - const ende = luxon.DateTime - .fromISO(this.studiensemester_ende, opts) - .toUnixInteger(); - - const download_link = FHC_JS_DATA_STORAGE_OBJECT.app_root - + 'cis/private/lvplan/stpl_kalender.php' - + '?type=' + type - + '&pers_uid=' + this.uid - + '&begin=' + start - + '&ende=' + ende; - - return [ - { title: "excel", icon: 'fa-solid fa-file-excel', link: download_link + '&format=excel' }, - { title: "csv", icon: 'fa-solid fa-file-csv', link: download_link + '&format=csv' }, - { title: "ical1", icon: 'fa-regular fa-calendar', link: download_link + '&format=ical&version=1&target=ical' }, - { title: "ical2", icon: 'fa-regular fa-calendar', link: download_link + '&format=ical&version=2&target=ical' } - ]; - } - }, - methods: { - handleChangeDate(day, newMode) { - return this.handleChangeMode(newMode, day); - }, - handleChangeMode(newMode, day) { - const mode = newMode[0].toUpperCase() + newMode.slice(1) - const focus_date = day.toISODate(); - - this.$router.push({ - name: "StgOrgLvPlan", - params: { - mode, - focus_date, - stgkz: this.propsViewData.stgkz, - sem: this.propsViewData.sem, - verband: this.propsViewData.verband, - gruppe: this.propsViewData.gruppe, - } - }); - }, - updateRange(rangeInterval) { - this.$api - .call(ApiLvPlan.studiensemesterDateInterval( - rangeInterval.end.startOf('week').toISODate() - )) - .then(res => { - this.studiensemester_kurzbz = res.data.studiensemester_kurzbz; - this.studiensemester_start = res.data.start; - this.studiensemester_ende = res.data.ende; - }); - }, - getPromiseFunc(start, end) { - return [ - this.$api.call(ApiLvPlan.eventsStgOrg(start.toISODate(), end.toISODate(), this.propsViewData.stgkz, this.propsViewData.sem, this.propsViewData.verband, this.propsViewData.gruppe)), - //local for test - /* this.$api.call(ApiLvPlan.eventsStgOrg(start.toISODate(), end.toISODate(), this.stgkz, this.sem, this.verband, this.gruppe))*/ - ]; - }, - backToDropdown(){ - this.$router.push({ - name: "OverviewLvPlan", - }); - } - }, - created(){ - this.$api - .call(ApiAuthinfo.getAuthInfo()) - .then(res => { - this.uid = res.data.uid; - this.isMitarbeiter = res.data.isMitarbeiter; - this.isStudent = res.data.isStudent; - }); - - if(this.propsViewData.stgkz) { - this.$api - .call(ApiLvPlan.getStudiengaenge()) - .then(result => { - const currentStg = result.data.find( - item => item.studiengang_kz == this.propsViewData.stgkz - ); - this.currentStgBezeichnung = currentStg.kurzbzlang + " - " + currentStg.bezeichnung; - }) - .catch(this.$fhcAlert.handleSystemError); - } - }, - template: ` -
-

{{ $p.t('LvPlan/headerLvPlanLvVerband') }}

-

{{currentStgBezeichnung}} - Semester: {{propsViewData.sem}} - Verband: {{propsViewData.verband}} - Gruppe: {{propsViewData.gruppe}} - -

-

{{ $p.t('LvPlan/noStgProvided') }}

- - - - -
- `, -}; \ No newline at end of file