From fbe34189f645fac316dad04479d404497f1e9468 Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Fri, 19 Jul 2024 17:41:49 +0200 Subject: [PATCH] Removed non-functional premium handling code. All features now normally available. --- amd/src/page-edit-plan.js | 2 - amd/src/report-viewer-components.js | 4 +- amd/src/studyplan-editor-components.js | 129 +++---- amd/src/util/premium.js | 42 --- amd/src/util/settings.js | 4 +- classes/form/studyplan_editform.php | 15 +- classes/premium.php | 476 ------------------------- classes/studentstudyplanservice.php | 2 +- classes/studyplan.php | 2 +- coach.php | 2 - db/services.php | 12 - doc/advanced.htm | 4 +- edit-plan.php | 2 +- lang/en/local_treestudyplan.php | 25 -- lang/nl/local_treestudyplan.php | 25 -- lib.php | 5 +- result-overview.php | 5 - settings.php | 53 +-- 18 files changed, 78 insertions(+), 731 deletions(-) delete mode 100644 amd/src/util/premium.js delete mode 100644 classes/premium.php diff --git a/amd/src/page-edit-plan.js b/amd/src/page-edit-plan.js index f20ac79..dc59099 100644 --- a/amd/src/page-edit-plan.js +++ b/amd/src/page-edit-plan.js @@ -29,7 +29,6 @@ import {loadStrings} from './util/string-helper'; import {processStudyplan} from './studyplan-processor'; import {download, upload} from './downloader'; import {studyplanTiming} from './util/date-helper'; -import {premiumenabled, premiumstatus} from "./util/premium"; import mFormComponents from "./util/mform-helper"; Vue.use(mFormComponents); @@ -145,7 +144,6 @@ export function init(contextid, categoryid, options) { }, computed: { - premiumenabled, dropdownTitle() { if (this.activestudyplan && this.activestudyplan.name) { return this.activestudyplan.name; diff --git a/amd/src/report-viewer-components.js b/amd/src/report-viewer-components.js index f9efcb7..97eaf9f 100644 --- a/amd/src/report-viewer-components.js +++ b/amd/src/report-viewer-components.js @@ -17,7 +17,6 @@ import Debugger from './util/debugger'; import Config from 'core/config'; import {processStudyplan, objCopy} from './studyplan-processor'; import TSComponents from './treestudyplan-components'; -import {premiumenabled} from "./util/premium"; import FitTextVue from './util/fittext-vue'; @@ -926,7 +925,6 @@ export default { } }, methods: { - premiumenabled, formatDatetime, onLineHeightChange(lineid) { // All layers for this line have the first slot send an update message on layer height change. @@ -1044,7 +1042,7 @@ export default { >
{{ value.shortname }} -