Prefix the classes in the JavaScript description editor with the "DescriptionEditor".
This commit is contained in:
parent
3431922f12
commit
63f0f28948
@ -60,7 +60,7 @@ class DescriptionEditor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The current tab
|
* The current tab
|
||||||
* @type {TabPlane}
|
* @type {DescriptionEditorTabPlane}
|
||||||
*/
|
*/
|
||||||
currentTab;
|
currentTab;
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ class DescriptionEditor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The tab planes
|
* The tab planes
|
||||||
* @type {{general: GeneralTagTab, travel: GeneralTripTab, bus: BusTripTab, recurring: RecurringTransactionTab, annotation: AnnotationTab}}
|
* @type {{general: DescriptionEditorGeneralTagTab, travel: DescriptionEditorGeneralTripTab, bus: DescriptionEditorBusTripTab, recurring: DescriptionEditorRecurringTab, annotation: DescriptionEditorAnnotationTab}}
|
||||||
*/
|
*/
|
||||||
tabPlanes = {};
|
tabPlanes = {};
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ class DescriptionEditor {
|
|||||||
// noinspection JSValidateTypes
|
// noinspection JSValidateTypes
|
||||||
this.#accountButtons = Array.from(document.getElementsByClassName(`${this.prefix}-account`));
|
this.#accountButtons = Array.from(document.getElementsByClassName(`${this.prefix}-account`));
|
||||||
|
|
||||||
for (const cls of [GeneralTagTab, GeneralTripTab, BusTripTab, RecurringTransactionTab, AnnotationTab]) {
|
for (const cls of [DescriptionEditorGeneralTagTab, DescriptionEditorGeneralTripTab, DescriptionEditorBusTripTab, DescriptionEditorRecurringTab, DescriptionEditorAnnotationTab]) {
|
||||||
const tab = new cls(this);
|
const tab = new cls(this);
|
||||||
this.tabPlanes[tab.tabId()] = tab;
|
this.tabPlanes[tab.tabId()] = tab;
|
||||||
}
|
}
|
||||||
@ -269,7 +269,7 @@ class DescriptionEditor {
|
|||||||
* @abstract
|
* @abstract
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
class TabPlane {
|
class DescriptionEditorTabPlane {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The parent description editor
|
* The parent description editor
|
||||||
@ -364,7 +364,7 @@ class TabPlane {
|
|||||||
* @abstract
|
* @abstract
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
class TagTabPlane extends TabPlane {
|
class DescriptionEditorTagTabPlane extends DescriptionEditorTabPlane {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The tag input
|
* The tag input
|
||||||
@ -522,7 +522,7 @@ class TagTabPlane extends TabPlane {
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
class GeneralTagTab extends TagTabPlane {
|
class DescriptionEditorGeneralTagTab extends DescriptionEditorTagTabPlane {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The tab ID
|
* The tab ID
|
||||||
@ -583,7 +583,7 @@ class GeneralTagTab extends TagTabPlane {
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
class GeneralTripTab extends TagTabPlane {
|
class DescriptionEditorGeneralTripTab extends DescriptionEditorTagTabPlane {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The origin
|
* The origin
|
||||||
@ -782,7 +782,7 @@ class GeneralTripTab extends TagTabPlane {
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
class BusTripTab extends TagTabPlane {
|
class DescriptionEditorBusTripTab extends DescriptionEditorTagTabPlane {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The route
|
* The route
|
||||||
@ -970,7 +970,7 @@ class BusTripTab extends TagTabPlane {
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
class RecurringTransactionTab extends TabPlane {
|
class DescriptionEditorRecurringTab extends DescriptionEditorTabPlane {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The month names
|
* The month names
|
||||||
@ -1103,7 +1103,7 @@ class RecurringTransactionTab extends TabPlane {
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
class AnnotationTab extends TabPlane {
|
class DescriptionEditorAnnotationTab extends DescriptionEditorTabPlane {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a tab plane.
|
* Constructs a tab plane.
|
||||||
|
Loading…
Reference in New Issue
Block a user