From 2bc29d71942e6d80d61c6c5c34bb77a6b12c32ef Mon Sep 17 00:00:00 2001 From: roguisharcanetrickster Date: Thu, 14 May 2026 11:12:10 +0700 Subject: [PATCH] remove import --- ABViewManagerCore.js | 2 +- views/ABViewGanttCore.js | 82 ---------------------------------------- 2 files changed, 1 insertion(+), 83 deletions(-) delete mode 100644 views/ABViewGanttCore.js diff --git a/ABViewManagerCore.js b/ABViewManagerCore.js index 30e38085..4cf79b40 100644 --- a/ABViewManagerCore.js +++ b/ABViewManagerCore.js @@ -38,8 +38,8 @@ var AllViews = [ // // Special Editors // - require("../platform/views/ABViewGantt"), // require("../platform/views/ABViewKanban"), + // require("../platform/views/ABViewGantt"), require("../platform/views/ABViewReportsManager"), require("../platform/views/ABViewScheduler"), diff --git a/views/ABViewGanttCore.js b/views/ABViewGanttCore.js deleted file mode 100644 index 85bb8c2a..00000000 --- a/views/ABViewGanttCore.js +++ /dev/null @@ -1,82 +0,0 @@ -const ABViewWidget = require("../../platform/views/ABViewWidget"); - -const ABViewGanttPropertyComponentDefaults = { - dataviewID: "", - // {string} - // {ABDatacollection.id} of the datacollection that contains the data for - // the Gantt chart. - - titleFieldID: "", - // {string} - // {ABFieldXXX.id} of the field that contains the value of the title - // ABFieldString, ABFieldLongText - - startDateFieldID: "", - // {string} - // {ABFieldDate.id} of the field that contains the start date - - endDateFieldID: "", - // {string} - // {ABFieldDate.id} of the field that contains the end date - - durationFieldID: "", - // {string} - // {ABFieldNumber.id} of the field that contains the duration - - progressFieldID: "", - // {string} - // {ABFieldNumber.id} of the field that marks the progress - - notesFieldID: "", - // {string} - // {ABFieldXXX.id} of the field that contains the value of the title - // ABFieldString, ABFieldLongText -}; - -const ABViewDefaults = { - key: "gantt", // {string} unique key for this view - icon: "tasks", // {string} fa-[icon] reference for this view - labelKey: "Gantt", // {string} the multilingual label key for the class label -}; - -module.exports = class ABViewGanttCore extends ABViewWidget { - /** - * @param {obj} values key=>value hash of ABView values - * @param {ABApplication} application the application object this view is under - * @param {ABViewWidget} parent the ABViewWidget this view is a child of. (can be null) - */ - constructor(values, application, parent, defaultValues) { - super(values, application, parent, defaultValues || ABViewDefaults); - } - - static common() { - return ABViewDefaults; - } - - static defaultValues() { - return ABViewGanttPropertyComponentDefaults; - } - - /** - * @method fromValues() - * - * initialze this object with the given set of values. - * @param {obj} values - */ - fromValues(values) { - super.fromValues(values); - - Object.keys(ABViewGanttPropertyComponentDefaults).forEach((k) => { - this.settings[k] = - this.settings[k] || ABViewGanttPropertyComponentDefaults[k]; - }); - } - - /** - * @method componentList - * return the list of components available on this view to display in the editor. - */ - componentList() { - return []; - } -};