[BUGFIX] Update tslint.json and fix build 96/59696/5
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 13 Feb 2019 14:00:59 +0000 (15:00 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 18 Feb 2019 08:04:32 +0000 (09:04 +0100)
This patch updates the definitions in tslint.json to use current settings
for TypeScript builds.

Most of the occurred issues were fixed by executing

  cd Build
  ./node_modules/tslint/bin/tslint -c tslint.json --fix --project .

Resolves: #87709
Releases: master, 9.5
Change-Id: Iba318b438a44f6de3fdfcacfb52a5bddef9c8002
Reviewed-on: https://review.typo3.org/c/59696
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
48 files changed:
Build/tslint.json
Build/types/TYPO3/index.d.ts
typo3/sysext/adminpanel/Resources/Private/TypeScript/AdminPanel.ts
typo3/sysext/adminpanel/Resources/Private/TypeScript/Modules/Cache.ts
typo3/sysext/adminpanel/Resources/Private/TypeScript/Modules/Preview.ts
typo3/sysext/backend/Resources/Private/TypeScript/AjaxDataHandler.ts
typo3/sysext/backend/Resources/Private/TypeScript/ContextHelp.ts
typo3/sysext/backend/Resources/Private/TypeScript/ContextMenu.ts
typo3/sysext/backend/Resources/Private/TypeScript/ContextMenuActions.ts
typo3/sysext/backend/Resources/Private/TypeScript/DateTimePicker.ts
typo3/sysext/backend/Resources/Private/TypeScript/DebugConsole.ts
typo3/sysext/backend/Resources/Private/TypeScript/DocumentHeader.ts
typo3/sysext/backend/Resources/Private/TypeScript/DragUploader.ts
typo3/sysext/backend/Resources/Private/TypeScript/Enum/KeyTypes.ts
typo3/sysext/backend/Resources/Private/TypeScript/Enum/Severity.ts
typo3/sysext/backend/Resources/Private/TypeScript/Enum/Viewport/ScaffoldIdentifier.ts
typo3/sysext/backend/Resources/Private/TypeScript/Enum/Viewport/TopbarIdentifiers.ts
typo3/sysext/backend/Resources/Private/TypeScript/FormEngine/Element/SlugElement.ts
typo3/sysext/backend/Resources/Private/TypeScript/FormEngine/FieldControl/EditPopup.ts
typo3/sysext/backend/Resources/Private/TypeScript/FormEngineFlexForm.ts
typo3/sysext/backend/Resources/Private/TypeScript/FormEngineSuggest.ts
typo3/sysext/backend/Resources/Private/TypeScript/Icons.ts
typo3/sysext/backend/Resources/Private/TypeScript/ImageManipulation.ts
typo3/sysext/backend/Resources/Private/TypeScript/InfoWindow.ts
typo3/sysext/backend/Resources/Private/TypeScript/LayoutModule/DragDrop.ts
typo3/sysext/backend/Resources/Private/TypeScript/LayoutModule/Paste.ts
typo3/sysext/backend/Resources/Private/TypeScript/LiveSearch.ts
typo3/sysext/backend/Resources/Private/TypeScript/Localization.ts
typo3/sysext/backend/Resources/Private/TypeScript/LoginRefresh.ts
typo3/sysext/backend/Resources/Private/TypeScript/Modal.ts
typo3/sysext/backend/Resources/Private/TypeScript/ModuleMenu.ts
typo3/sysext/backend/Resources/Private/TypeScript/NewMultiplePages.ts
typo3/sysext/backend/Resources/Private/TypeScript/Notification.ts
typo3/sysext/backend/Resources/Private/TypeScript/OnlineMedia.ts
typo3/sysext/backend/Resources/Private/TypeScript/PageActions.ts
typo3/sysext/backend/Resources/Private/TypeScript/SplitButtons.ts
typo3/sysext/backend/Resources/Private/TypeScript/ToggleSearchToolbox.ts
typo3/sysext/backend/Resources/Private/TypeScript/Toolbar/ClearCacheMenu.ts
typo3/sysext/backend/Resources/Private/TypeScript/Toolbar/ShortcutMenu.ts
typo3/sysext/backend/Resources/Private/TypeScript/Toolbar/SystemInformationMenu.ts
typo3/sysext/backend/Resources/Private/TypeScript/ValueSlider.ts
typo3/sysext/backend/Resources/Private/TypeScript/Viewport/ContentContainer.ts
typo3/sysext/backend/Resources/Private/TypeScript/Viewport/NavigationContainer.ts
typo3/sysext/backend/Resources/Private/TypeScript/Viewport/Topbar.ts
typo3/sysext/opendocs/Resources/Private/TypeScript/Toolbar/OpendocsMenu.ts
typo3/sysext/scheduler/Resources/Private/TypeScript/Scheduler.ts
typo3/sysext/tstemplate/Resources/Private/TypeScript/TypoScriptObjectBrowser.ts
typo3/sysext/viewpage/Resources/Private/TypeScript/Main.ts

index 357391c..be5cd88 100644 (file)
@@ -17,6 +17,7 @@
                "forin": true,
                "indent": [
                        true,
+                       "spaces",
                        2
                ],
                "interface-name": false,
                ],
                "member-ordering": [
                        true,
-                       "public-before-private",
-                       "static-before-instance",
-                       "variables-before-functions"
+                       {
+                               "order": [
+                                       "public-static-field",
+                                       "public-instance-field",
+                                       "private-static-field",
+                                       "private-instance-field",
+                                       "public-constructor",
+                                       "protected-constructor",
+                                       "private-constructor",
+                                       "public-instance-method",
+                                       "protected-instance-method",
+                                       "private-instance-method"
+                               ]
+                       }
                ],
                "no-any": false,
                "no-arg": true,
                "no-require-imports": false,
                "no-string-literal": true,
                "no-switch-case-fall-through": true,
-               "trailing-comma": {
-                       "singleline": "never",
-                       "multiline": "always"
-               },
+               "trailing-comma": [
+                       true, {
+                               "multiline": "always",
+                               "singleline": "never"
+                       }
+               ],
                "no-trailing-whitespace": true,
                "no-unused-expression": true,
                "no-var-keyword": true,
index f3657e4..5d7bc50 100644 (file)
@@ -41,7 +41,7 @@ declare namespace TYPO3 {
           label: string,
           title: string,
           exclusiveValues?: string,
-          $optionEl?: JQuery
+          $optionEl?: JQuery,
         ): void;
         public reinitialize(): void;
       }
@@ -84,7 +84,7 @@ interface Window {
   $: any;
   startInModule: Array<string>;
   inline: {
-    delayedImportElement: (objectId: number, table: string, uid: number, type: string) => void
+    delayedImportElement: (objectId: number, table: string, uid: number, type: string) => void,
   };
   rawurlencode: Function;
   list_frame: Window;
index aa9ef1d..392e424 100644 (file)
@@ -15,7 +15,7 @@ namespace TYPO3 {
     zoomTarget: '[data-typo3-zoom-target]',
     zoomClose: '[data-typo3-zoom-close]',
     currentContentRole: '[data-typo3-role=typo3-adminPanel-content]',
-    contentPaneRole: '[data-typo3-role=typo3-adminPanel-content-pane]'
+    contentPaneRole: '[data-typo3-role=typo3-adminPanel-content-pane]',
   };
 
   export const AdminPanelClasses = {
@@ -26,7 +26,7 @@ namespace TYPO3 {
     activeTab: 'typo3-adminPanel-content-header-item-active',
     activePane: 'typo3-adminPanel-content-panes-item-active',
     noScroll: 'typo3-adminPanel-noscroll',
-    zoomShow: 'typo3-adminPanel-zoom-show'
+    zoomShow: 'typo3-adminPanel-zoom-show',
   };
 
   export class AdminPanel {
@@ -43,16 +43,16 @@ namespace TYPO3 {
         (moduleTrigger: HTMLElement) => {
           const moduleParent = moduleTrigger.closest(AdminPanelSelectors.moduleParentClass);
           return new AdminPanelModule(this, moduleParent, moduleTrigger);
-        }
+        },
       );
       this.popups = this.querySelectorAll(AdminPanelSelectors.popupTriggerRole).map(
-        (popupTrigger: HTMLElement) => new AdminPanelPopup(this, popupTrigger)
+        (popupTrigger: HTMLElement) => new AdminPanelPopup(this, popupTrigger),
       );
       this.panels = this.querySelectorAll(AdminPanelSelectors.panelTriggerRole).map(
         (panelTrigger: HTMLElement) => {
           const panelParent = panelTrigger.closest(AdminPanelSelectors.panelParentClass);
           return new AdminPanelPanel(panelParent, panelTrigger);
-        }
+        },
       );
       this.contentSettings = this.querySelectorAll(AdminPanelSelectors.contentSettingsTriggerRole).map(
       (contentSettingTrigger: HTMLElement) => {
@@ -60,7 +60,7 @@ namespace TYPO3 {
             .closest(AdminPanelSelectors.contentParentClass)
             .querySelector(AdminPanelSelectors.contentSettingsParentClass);
           return new AdminPanelContentSetting(contentSettingElement, contentSettingTrigger);
-        }
+        },
       );
       this.trigger = document.querySelector(AdminPanelSelectors.triggerRole) as HTMLElement;
 
@@ -356,6 +356,6 @@ namespace TYPO3 {
   window.addEventListener(
     'load',
     () => new TYPO3.AdminPanel(),
-    false
+    false,
   );
 })();
index efdfabe..b21843f 100644 (file)
@@ -24,6 +24,6 @@ namespace TYPO3 {
   window.addEventListener(
     'load',
     () => new TYPO3.Cache(),
-    false
+    false,
   );
 })();
index 4334639..0b94eea 100644 (file)
@@ -50,6 +50,6 @@ namespace TYPO3 {
   window.addEventListener(
     'load',
     () => new TYPO3.Preview(),
-    false
+    false,
   );
 })();
index 4a7cd51..24a72a2 100644 (file)
@@ -23,7 +23,7 @@ import Viewport = require('./Viewport');
 enum Identifiers {
   hide = '.t3js-record-hide',
   delete = '.t3js-record-delete',
-  icon = '.t3js-icon'
+  icon = '.t3js-icon',
 }
 
 /**
@@ -95,13 +95,13 @@ class AjaxDataHandler {
           text: $anchorElement.data('button-close-text') || TYPO3.lang['button.cancel'] || 'Cancel',
           active: true,
           btnClass: 'btn-default',
-          name: 'cancel'
+          name: 'cancel',
         },
         {
           text: $anchorElement.data('button-ok-text') || TYPO3.lang['button.delete'] || 'Delete',
           btnClass: 'btn-warning',
-          name: 'delete'
-        }
+          name: 'delete',
+        },
       ]);
       $modal.on('button.clicked', (e: JQueryEventObject): void => {
         if (e.target.getAttribute('name') === 'cancel') {
index 7ccd866..385b67f 100644 (file)
@@ -78,7 +78,7 @@ class ContextHelp {
       if (typeof description !== 'undefined' && description !== '') {
         Popover.setOptions($me, {
           title: $me.data('title'),
-          content: description
+          content: description,
         });
       } else if ($me.attr('data-loaded') === 'false' && $me.data('table')) {
         this.loadHelp($me);
@@ -127,7 +127,7 @@ class ContextHelp {
         '&table=' + $trigger.data('table') +
         '&field=' + $trigger.data('field'),
         'ContextHelpWindow',
-        'height=400,width=600,status=0,menubar=0,scrollbars=1'
+        'height=400,width=600,status=0,menubar=0,scrollbars=1',
       );
       cshWindow.focus();
       Popover.hide($trigger);
@@ -152,14 +152,14 @@ class ContextHelp {
         params: {
           action: 'getContextHelp',
           table: table,
-          field: field
-        }
+          field: field,
+        },
       }).done((data: HelpData): void => {
         const title = data.title || '';
         const content = data.content || '<p></p>';
         Popover.setOptions($trigger, {
           title: title,
-          content: content
+          content: content,
         });
         $trigger
           .attr('data-loaded', 'true')
index b837aa1..afd5c6d 100644 (file)
@@ -110,7 +110,7 @@ class ContextMenu {
         $me.data('uid'),
         $me.data('context'),
         $me.data('iteminfo'),
-        $me.data('parameters')
+        $me.data('parameters'),
       );
     });
 
@@ -225,18 +225,18 @@ class ContextMenu {
     let y = this.mousePos.Y;
     const dimsWindow = {
       width: $(window).width() - 20, // saving margin for scrollbars
-      height: $(window).height()
+      height: $(window).height(),
     };
 
     // dimensions for the context menu
     const dims = {
       width: $obj.width(),
-      height: $obj.height()
+      height: $obj.height(),
     };
 
     const relative = {
       X: this.mousePos.X - $(document).scrollLeft(),
-      Y: this.mousePos.Y - $(document).scrollTop()
+      Y: this.mousePos.Y - $(document).scrollTop(),
     };
 
     // adjusting the Y position of the layer to fit it into the window frame
@@ -336,7 +336,7 @@ class ContextMenu {
           $(obj).hide();
         }
       },
-      500
+      500,
     );
   }
 
index f82eeda..1998132 100644 (file)
@@ -46,7 +46,7 @@ class ContextMenuActions {
       top.TYPO3.settings.FormEngine.moduleUrl
         + '&edit[' + table + '][' + uid + ']=edit'
         + overrideVals
-        + '&returnUrl=' + ContextMenuActions.getReturnUrl()
+        + '&returnUrl=' + ContextMenuActions.getReturnUrl(),
     );
   }
 
@@ -86,7 +86,7 @@ class ContextMenuActions {
    */
   public static newPageWizard(table: string, uid: number): void {
     Viewport.ContentContainer.setUrl(
-      top.TYPO3.settings.NewRecord.moduleUrl + '&id=' + uid + '&pagesOnly=1&returnUrl=' + ContextMenuActions.getReturnUrl()
+      top.TYPO3.settings.NewRecord.moduleUrl + '&id=' + uid + '&pagesOnly=1&returnUrl=' + ContextMenuActions.getReturnUrl(),
     );
   }
 
@@ -104,7 +104,7 @@ class ContextMenuActions {
         type: Modal.types.ajax,
         size: Modal.sizes.medium,
         content: $wizardUrl,
-        severity: SeverityEnum.notice
+        severity: SeverityEnum.notice,
       });
     }
   }
@@ -115,7 +115,7 @@ class ContextMenuActions {
    */
   public static newRecord(table: string, uid: number): void {
     Viewport.ContentContainer.setUrl(
-      top.TYPO3.settings.FormEngine.moduleUrl + '&edit[' + table + '][-' + uid + ']=new&returnUrl=' + ContextMenuActions.getReturnUrl()
+      top.TYPO3.settings.FormEngine.moduleUrl + '&edit[' + table + '][-' + uid + ']=new&returnUrl=' + ContextMenuActions.getReturnUrl(),
     );
   }
 
@@ -125,7 +125,7 @@ class ContextMenuActions {
    */
   public static openHistoryPopUp(table: string, uid: number): void {
     Viewport.ContentContainer.setUrl(
-      top.TYPO3.settings.RecordHistory.moduleUrl + '&element=' + table + ':' + uid + '&returnUrl=' + ContextMenuActions.getReturnUrl()
+      top.TYPO3.settings.RecordHistory.moduleUrl + '&element=' + table + ':' + uid + '&returnUrl=' + ContextMenuActions.getReturnUrl(),
     );
   }
 
@@ -168,7 +168,7 @@ class ContextMenuActions {
     Viewport.ContentContainer.setUrl(
       top.TYPO3.settings.RecordCommit.moduleUrl
       + '&data[' + table + '][' + uid + '][hidden]=1'
-      + '&redirect=' + ContextMenuActions.getReturnUrl()
+      + '&redirect=' + ContextMenuActions.getReturnUrl(),
     ).done((): void => {
       Viewport.NavigationContainer.PageTree.refreshTree();
     });
@@ -182,7 +182,7 @@ class ContextMenuActions {
     Viewport.ContentContainer.setUrl(
       top.TYPO3.settings.RecordCommit.moduleUrl
       + '&data[' + table + '][' + uid + '][hidden]=0'
-      + '&redirect=' + ContextMenuActions.getReturnUrl()
+      + '&redirect=' + ContextMenuActions.getReturnUrl(),
     ).done((): void => {
       Viewport.NavigationContainer.PageTree.refreshTree();
     });
@@ -202,13 +202,13 @@ class ContextMenuActions {
           text: $(this).data('button-close-text') || TYPO3.lang['button.cancel'] || 'Cancel',
           active: true,
           btnClass: 'btn-default',
-          name: 'cancel'
+          name: 'cancel',
         },
         {
           text: $(this).data('button-ok-text') || TYPO3.lang['button.delete'] || 'Delete',
           btnClass: 'btn-warning',
-          name: 'delete'
-        }
+          name: 'delete',
+        },
       ]);
 
     $modal.on('button.clicked', (e: JQueryEventObject): void => {
@@ -216,7 +216,7 @@ class ContextMenuActions {
         Viewport.ContentContainer.setUrl(
           top.TYPO3.settings.RecordCommit.moduleUrl
           + '&redirect=' + ContextMenuActions.getReturnUrl()
-          + '&cmd[' + table + '][' + uid + '][delete]=1'
+          + '&cmd[' + table + '][' + uid + '][delete]=1',
         ).done((): void => {
           if (table === 'pages' && Viewport.NavigationContainer.PageTree) {
             if (uid === top.fsMod.recentIds.web) {
@@ -318,7 +318,7 @@ class ContextMenuActions {
         + '&redirect=' + ContextMenuActions.getReturnUrl();
 
       Viewport.ContentContainer.setUrl(
-        top.TYPO3.settings.RecordCommit.moduleUrl + url
+        top.TYPO3.settings.RecordCommit.moduleUrl + url,
       ).done((): void => {
         if (table === 'pages' && Viewport.NavigationContainer.PageTree) {
           Viewport.NavigationContainer.PageTree.refreshTree();
@@ -337,13 +337,13 @@ class ContextMenuActions {
           text: $(this).data('button-close-text') || TYPO3.lang['button.cancel'] || 'Cancel',
           active: true,
           btnClass: 'btn-default',
-          name: 'cancel'
+          name: 'cancel',
         },
         {
           text: $(this).data('button-ok-text') || TYPO3.lang['button.ok'] || 'OK',
           btnClass: 'btn-warning',
-          name: 'ok'
-        }
+          name: 'ok',
+        },
       ]);
 
     $modal.on('button.clicked', (e: JQueryEventObject): void => {
index 63da0ca..af53eb6 100644 (file)
@@ -132,8 +132,8 @@ class DateTimePicker {
         previous: 'fa fa-chevron-left',
         next: 'fa fa-chevron-right',
         today: 'fa fa-calendar-o',
-        clear: 'fa fa-trash'
-      }
+        clear: 'fa fa-trash',
+      },
     };
 
     // set options based on type
index fe6d085..dcc9050 100644 (file)
@@ -80,18 +80,18 @@ class DebugConsole {
             'aria-controls': tabIdentifier,
             'data-toggle': 'tab',
             href: '#' + tabIdentifier,
-            role: 'tab'
+            role: 'tab',
           }).text(group + ' ').append(
-            $('<span />', {'class': 'badge'})
-          )
+            $('<span />', {'class': 'badge'}),
+          ),
         ).on('shown.bs.tab', (e: Event) => {
           $(e.currentTarget).find('.badge').text('');
         });
       $debugTabs.append($tab);
       $tabContent.append(
         $('<div />', {role: 'tabpanel', 'class': 'tab-pane', id: tabIdentifier}).append(
-          $('<div />', {'class': 't3js-messages messages'})
-        )
+          $('<div />', {'class': 't3js-messages messages'}),
+        ),
       );
     }
 
@@ -121,33 +121,33 @@ class DebugConsole {
       $('<div />', {id: 'typo3-debug-console'}).append(
         $('<div />', {'class': 't3js-topbar topbar'}).append(
           $('<p />', {'class': 'pull-left'}).text(' TYPO3 Debug Console').prepend(
-            $('<span />', {'class': 'fa fa-terminal topbar-icon'})
+            $('<span />', {'class': 'fa fa-terminal topbar-icon'}),
           ).append(
-            $('<span />', {'class': 'badge'})
+            $('<span />', {'class': 'badge'}),
           ),
-          $('<div />', {'class': 't3js-buttons btn-group pull-right'})
+          $('<div />', {'class': 't3js-buttons btn-group pull-right'}),
         ),
         $('<div />').append(
           $('<div />', {role: 'tabpanel'}).append(
-            $('<ul />', {'class': 'nav nav-tabs t3js-debuggroups', role: 'tablist'})
+            $('<ul />', {'class': 'nav nav-tabs t3js-debuggroups', role: 'tablist'}),
           ),
-          $('<div />', {'class': 'tab-content t3js-debugcontent'})
-        )
+          $('<div />', {'class': 'tab-content t3js-debugcontent'}),
+        ),
       );
 
     this.addButton(
       $('<button />', {
         'class': 'btn btn-default btn-sm ' + (this.settings.autoscroll ? 'active' : ''),
-        title: TYPO3.lang['debuggerconsole.autoscroll']
+        title: TYPO3.lang['debuggerconsole.autoscroll'],
       }).append($('<span />', {'class': 't3-icon fa fa-magnet'})),
       (): void => {
         $(this).button('toggle');
         this.settings.autoscroll = !this.settings.autoscroll;
-      }
+      },
     ).addButton(
       $('<button />', {
         'class': 'btn btn-default btn-sm',
-        title: TYPO3.lang['debuggerconsole.toggle.collapse']
+        title: TYPO3.lang['debuggerconsole.toggle.collapse'],
       }).append($('<span />', {'class': 't3-icon fa fa-chevron-down'})),
       (e: Event): void => {
         let $button = $(e.currentTarget);
@@ -162,14 +162,14 @@ class DebugConsole {
           $button.attr('title', TYPO3.lang['debuggerconsole.toggle.expand']);
           $icon.toggleClass('fa-chevron-down', false).toggleClass('fa-chevron-up', true);
         }
-      }
+      },
     ).addButton(
       $('<button />', {
         'class': 'btn btn-default btn-sm',
         title: TYPO3.lang['debuggerconsole.clear']}).append($('<span />', {class: 't3-icon fa fa-undo'})),
       (): void => {
         this.flush();
-      }
+      },
     ).addButton(
       $('<button />', {
         'class': 'btn btn-default btn-sm',
@@ -177,7 +177,7 @@ class DebugConsole {
       (): void => {
         this.destroy();
         this.createDom();
-      }
+      },
     );
   }
 
index 85d742b..28425b3 100644 (file)
@@ -37,9 +37,9 @@ class DocumentHeader {
       moduleNavigationBar: '.t3js-module-docheader-bar-navigation',
       moduleButtonBar: '.t3js-module-docheader-bar-buttons',
       moduleSearchBar: '.t3js-module-docheader-bar-search',
-      moduleBody: '.t3js-module-body'
+      moduleBody: '.t3js-module-body',
 
-    }
+    },
   };
 
   constructor() {
index 3820180..e18c895 100644 (file)
@@ -32,7 +32,7 @@ enum Action {
   OVERRIDE = 'replace',
   RENAME = 'rename',
   SKIP = 'cancel',
-  USE_EXISTING = 'useExisting'
+  USE_EXISTING = 'useExisting',
 }
 
 /**
@@ -126,7 +126,7 @@ class DragUploaderPlugin {
     this.browserCapabilities = {
       fileReader: typeof FileReader !== 'undefined',
       DnD: 'draggable' in document.createElement('span'),
-      Progress: 'upload' in new XMLHttpRequest
+      Progress: 'upload' in new XMLHttpRequest,
     };
 
 
@@ -157,7 +157,7 @@ class DragUploaderPlugin {
       TYPO3.lang['file_upload.dropzonehint.message'] +
       '</p>' +
       '</div>' +
-      '</div>'
+      '</div>',
     ).click(() => {
       this.fileInput.click();
     });
@@ -257,7 +257,7 @@ class DragUploaderPlugin {
         url: TYPO3.settings.ajaxUrls.file_exists,
         data: {
           fileName: file.name,
-          fileTarget: this.target
+          fileTarget: this.target,
         },
         cache: false,
         success: (response: any) => {
@@ -266,14 +266,14 @@ class DragUploaderPlugin {
             this.askForOverride.push({
               original: response,
               uploaded: file,
-              action: this.irreObjectUid ? Action.USE_EXISTING : Action.SKIP
+              action: this.irreObjectUid ? Action.USE_EXISTING : Action.SKIP,
             });
             NProgress.inc(this.percentagePerFile);
           } else {
             // Unused var _ is necessary as "no-unused-expression" is active
             const _ = new FileQueueItem(this, file, Action.SKIP);
           }
-        }
+        },
       });
     });
 
@@ -320,7 +320,7 @@ class DragUploaderPlugin {
             $.each(data, (index: number, flashMessage: { title: string, message: string, severity: number }) => {
               Notification.showMessage(flashMessage.title, flashMessage.message, flashMessage.severity);
             });
-          }
+          },
         });
       }
     }
@@ -342,10 +342,10 @@ class DragUploaderPlugin {
             $('<th/>'),
             $('<th/>').text(TYPO3.lang['file_upload.header.originalFile']),
             $('<th/>').text(TYPO3.lang['file_upload.header.uploadedFile']),
-            $('<th/>').text(TYPO3.lang['file_upload.header.action'])
-          )
-        )
-      )
+            $('<th/>').text(TYPO3.lang['file_upload.header.action']),
+          ),
+        ),
+      ),
     );
 
     for (let i = 0; i < amountOfItems; ++i) {
@@ -354,24 +354,24 @@ class DragUploaderPlugin {
           (this.askForOverride[i].original.thumbUrl !== ''
               ? $('<img />', {src: this.askForOverride[i].original.thumbUrl, height: 40})
               : $(this.askForOverride[i].original.icon)
-          )
+          ),
         ),
         $('<td />').html(
           this.askForOverride[i].original.name + ' (' + (DragUploader.fileSizeAsString(this.askForOverride[i].original.size)) + ')' +
-          '<br>' + moment(this.askForOverride[i].original.mtime, 'x').format('YYYY-MM-DD HH:mm')
+          '<br>' + moment(this.askForOverride[i].original.mtime, 'x').format('YYYY-MM-DD HH:mm'),
         ),
         $('<td />').html(
           this.askForOverride[i].uploaded.name + ' (' + (DragUploader.fileSizeAsString(this.askForOverride[i].uploaded.size)) + ')' +
-          '<br>' + moment(this.askForOverride[i].uploaded.lastModifiedDate, 'X').format('YYYY-MM-DD HH:mm')
+          '<br>' + moment(this.askForOverride[i].uploaded.lastModifiedDate, 'X').format('YYYY-MM-DD HH:mm'),
         ),
         $('<td />').append(
           $('<select />', {class: 'form-control t3js-actions', 'data-override': i}).append(
             (this.irreObjectUid ? $('<option/>').val(Action.USE_EXISTING).text(TYPO3.lang['file_upload.actions.use_existing']) : ''),
             $('<option />').val(Action.SKIP).text(TYPO3.lang['file_upload.actions.skip']),
             $('<option />').val(Action.RENAME).text(TYPO3.lang['file_upload.actions.rename']),
-            $('<option />').val(Action.OVERRIDE).text(TYPO3.lang['file_upload.actions.override'])
-          )
-        )
+            $('<option />').val(Action.OVERRIDE).text(TYPO3.lang['file_upload.actions.override']),
+          ),
+        ),
       );
       $modalContent.find('table').append('<tbody />').append($record);
     }
@@ -383,15 +383,15 @@ class DragUploaderPlugin {
           text: $(this).data('button-close-text') || TYPO3.lang['file_upload.button.cancel'] || 'Cancel',
           active: true,
           btnClass: 'btn-default',
-          name: 'cancel'
+          name: 'cancel',
         },
         {
           text: $(this).data('button-ok-text') || TYPO3.lang['file_upload.button.continue'] || 'Continue with selected actions',
           btnClass: 'btn-warning',
-          name: 'continue'
-        }
+          name: 'continue',
+        },
       ],
-      ['modal-inner-scroll']
+      ['modal-inner-scroll'],
     );
     $modal.find('.modal-dialog').addClass('modal-lg');
 
@@ -403,9 +403,9 @@ class DragUploaderPlugin {
           (this.irreObjectUid ? $('<option/>').val(Action.USE_EXISTING).text(TYPO3.lang['file_upload.actions.all.use_existing']) : ''),
           $('<option/>').val(Action.SKIP).text(TYPO3.lang['file_upload.actions.all.skip']),
           $('<option/>').val(Action.RENAME).text(TYPO3.lang['file_upload.actions.all.rename']),
-          $('<option/>').val(Action.OVERRIDE).text(TYPO3.lang['file_upload.actions.all.override'])
-        )
-      )
+          $('<option/>').val(Action.OVERRIDE).text(TYPO3.lang['file_upload.actions.all.override']),
+        ),
+      ),
     );
 
     const uploader = this;
@@ -437,7 +437,7 @@ class DragUploaderPlugin {
           if (fileInfo.action === Action.USE_EXISTING) {
             DragUploader.addFileToIrre(
               uploader.irreObjectUid,
-              fileInfo.original
+              fileInfo.original,
             );
           } else if (fileInfo.action !== Action.SKIP) {
             // Unused var _ is necessary as "no-unused-expression" is active
@@ -507,7 +507,7 @@ class FileQueueItem {
 
     } else if (!this.checkAllowedExtensions()) {
       this.updateMessage(TYPO3.lang['file_upload.fileExtensionExpected']
-        .replace(/\{0\}/g, this.dragUploader.filesExtensionsAllowed)
+        .replace(/\{0\}/g, this.dragUploader.filesExtensionsAllowed),
       );
       this.$row.addClass('error');
     } else {
@@ -528,7 +528,7 @@ class FileQueueItem {
         cache: false,
         type: 'POST',
         success: (data: { upload?: UploadedFile[] }) => this.uploadSuccess(data),
-        error: (response: XMLHttpRequest) => this.uploadError(response)
+        error: (response: XMLHttpRequest) => this.uploadError(response),
       });
 
       s.xhr = () => {
@@ -608,14 +608,14 @@ class FileQueueItem {
           .html(
             '<a href="#" class="t3js-contextmenutrigger" data-uid="'
             + data.upload[0].id + '" data-table="sys_file">'
-            + data.upload[0].icon + '&nbsp;</span></a>'
+            + data.upload[0].icon + '&nbsp;</span></a>',
           );
       }
 
       if (this.dragUploader.irreObjectUid) {
         DragUploader.addFileToIrre(
           this.dragUploader.irreObjectUid,
-          data.upload[0]
+          data.upload[0],
         );
         setTimeout(
           () => {
@@ -672,10 +672,10 @@ class FileQueueItem {
 }
 
 class DragUploader {
+  public fileListColumnCount: number;
+  public filesExtensionsAllowed: string;
+  public fileDenyPattern: string;
   private static options: DragUploaderOptions;
-  fileListColumnCount: number;
-  filesExtensionsAllowed: string;
-  fileDenyPattern: string;
 
   public static fileSizeAsString(size: number): string {
     const sizeKB: number = size / 1024;
@@ -698,7 +698,7 @@ class DragUploader {
       irre_object,
       'sys_file',
       file.uid,
-      'file'
+      'file',
     );
   }
 
@@ -719,7 +719,7 @@ class DragUploader {
             data[options]();
           }
         });
-      }
+      },
     });
 
     $(() => {
@@ -755,7 +755,7 @@ export const initialize = function (): void {
     $.each(
       TYPO3.settings.RequireJS.PostInitializationModules['TYPO3/CMS/Backend/DragUploader'], (pos, moduleName) => {
         require([moduleName]);
-      }
+      },
     );
   }
 };
index 4581ec9..2c78c32 100644 (file)
@@ -20,5 +20,5 @@ export enum ScaffoldIdentifierEnum {
   contentModuleIframe = '.t3js-scaffold-content-module-iframe',
   contentNavigation = '.t3js-scaffold-content-navigation',
   contentNavigationDataComponent = '.t3js-scaffold-content-navigation [data-component]',
-  contentNavigationIframe = '.t3js-scaffold-content-navigation-iframe'
+  contentNavigationIframe = '.t3js-scaffold-content-navigation-iframe',
 }
index e73b8ca..bdbfac0 100644 (file)
@@ -12,5 +12,5 @@
  */
 
 export enum TopbarIdentifiersEnum {
-  buttonNavigationComponent = '.t3js-topbar-button-navigationcomponent'
+  buttonNavigationComponent = '.t3js-topbar-button-navigationcomponent',
 }
index 26297de..0908467 100644 (file)
@@ -44,7 +44,7 @@ enum Selectors {
 enum ProposalModes {
   AUTO = 'auto',
   RECREATE = 'recreate',
-  MANUAL = 'manual'
+  MANUAL = 'manual',
 }
 
 /**
@@ -160,7 +160,7 @@ class SlugElement {
         language: this.options.language,
         fieldName: this.options.fieldName,
         command: this.options.command,
-        signature: this.options.signature
+        signature: this.options.signature,
       },
       (response: Response): void => {
         if (response.hasConflicts) {
@@ -181,7 +181,7 @@ class SlugElement {
           this.$hiddenField.val(response.proposal);
         }
       },
-      'json'
+      'json',
     );
   }
 
index c75e11b..48e5745 100644 (file)
@@ -24,7 +24,7 @@ class EditPopup {
     $((): void => {
       this.controlElement = <HTMLAnchorElement>document.querySelector(controlElementId);
       this.assignedFormField = <HTMLSelectElement>document.querySelector(
-        'select[data-formengine-input-name="' + this.controlElement.dataset.element + '"]'
+        'select[data-formengine-input-name="' + this.controlElement.dataset.element + '"]',
       );
 
       if (this.assignedFormField.options.selectedIndex === -1) {
index a564446..1977949 100644 (file)
@@ -51,7 +51,7 @@ class FlexFormElement {
     flexFormToggleAllSectionsSelector: '.t3js-form-field-toggle-flexsection',
     sectionDeletedClass: 't3js-flex-section-deleted',
     allowRestructure: false, // whether the form can be modified
-    flexformId: false
+    flexformId: false,
   };
 
   private $el: JQuery;
@@ -153,7 +153,7 @@ class FlexFormElement {
       stop: () => {
         this.setActionStatus();
         $(document).trigger('flexform:sorting-changed');
-      }
+      },
     });
   }
 
@@ -252,7 +252,7 @@ $(function(): void {
         dataStructureIdentifier: me.data('datastructureidentifier'),
         flexFormSheetName: me.data('flexformsheetname'),
         flexFormFieldName: me.data('flexformfieldname'),
-        flexFormContainerName: me.data('flexformcontainername')
+        flexFormContainerName: me.data('flexformcontainername'),
       },
       success: function(response: any): void {
         me.closest('.t3-form-field-container').find('.t3-flex-container').append(response.html);
@@ -275,7 +275,7 @@ $(function(): void {
         FormEngine.reinitialize();
         FormEngine.Validation.initializeInputFields();
         FormEngine.Validation.validate();
-      }
+      },
     });
   });
 
index 35b5843..f7a918a 100644 (file)
@@ -67,7 +67,7 @@ class FormEngineSuggest {
       flexFormSheetName,
       flexFormFieldName,
       flexFormContainerName,
-      flexFormContainerFieldName
+      flexFormContainerFieldName,
     };
 
     function insertValue(element: HTMLElement): void {
@@ -103,7 +103,7 @@ class FormEngineSuggest {
         return {
           suggestions: response.map((dataItem: SuggestEntry): {value: string, data: SuggestEntry} => {
             return {value: dataItem.text, data: dataItem};
-          })
+          }),
         };
       },
       // Rendering of each item
@@ -114,7 +114,7 @@ class FormEngineSuggest {
             '</a></div>').attr({
             'data-label': suggestion.data.label,
             'data-table': suggestion.data.table,
-            'data-uid': suggestion.data.uid
+            'data-uid': suggestion.data.uid,
           })).html();
       },
       onSearchComplete: function(): void {
@@ -130,7 +130,7 @@ class FormEngineSuggest {
       },
       onSelect: function(): void {
         insertValue(<HTMLElement>(containerElement.querySelector('.autocomplete-selected a')));
-      }
+      },
     });
   }
 }
index 7e13e75..f414484 100644 (file)
@@ -18,17 +18,17 @@ enum Sizes {
   small = 'small',
   default = 'default',
   large = 'large',
-  overlay = 'overlay'
+  overlay = 'overlay',
 }
 
 enum States {
   default = 'default',
-  disabled = 'disabled'
+  disabled = 'disabled',
 }
 
 enum MarkupIdentifiers {
   default = 'default',
-  inline = 'inline'
+  inline = 'inline',
 }
 
 interface PromiseCache {
@@ -99,7 +99,7 @@ class Icons {
         url: TYPO3.settings.ajaxUrls.icons_cache,
         success: (response: string): string => {
           return response;
-        }
+        },
       }));
     }
 
@@ -119,14 +119,14 @@ class Icons {
         url: TYPO3.settings.ajaxUrls.icons,
         dataType: 'html',
         data: {
-          icon: JSON.stringify(icon)
+          icon: JSON.stringify(icon),
         },
         success: (markup: string) => {
           if (markup.indexOf('t3js-icon') !== -1 && markup.indexOf('<span class="icon-markup">') !== -1) {
             ClientStorage.set('icon_' + cacheIdentifier, markup);
           }
           return markup;
-        }
+        },
       }));
     }
     return this.getFromPromiseCache(cacheIdentifier);
index afe0f59..918491b 100644 (file)
@@ -210,7 +210,7 @@ class ImageManipulation {
         (): void => {
           this.init();
         },
-        100
+        100,
       );
     });
   }
@@ -264,7 +264,7 @@ class ImageManipulation {
         callback: (currentModal: JQuery): void => {
           $.post({
             url: imageUri,
-            data: payload
+            data: payload,
           }).done((response: string): void => {
             initCropperModal();
             currentModal.find('.t3js-modal-body').append(response).addClass('cropper');
index 76e9b5d..99a0a2b 100644 (file)
@@ -32,7 +32,7 @@ class InfoWindow {
       content: top.TYPO3.settings.ShowItem.moduleUrl
         + '&table=' + encodeURIComponent(table)
         + '&uid=' + (typeof uid === 'number' ? uid : encodeURIComponent(uid)),
-      severity: SeverityEnum.notice
+      severity: SeverityEnum.notice,
     });
   }
 }
index 0f54eae..fb7315a 100644 (file)
@@ -65,7 +65,7 @@ class DragDrop {
       },
       stop: (evt: JQueryEventObject, ui: DroppableEventUIParam): void => {
         DragDrop.onDragStop($(evt.target));
-      }
+      },
     });
 
     $(DragDrop.dropZoneIdentifier).droppable({
@@ -80,7 +80,7 @@ class DragDrop {
       },
       drop: (evt: JQueryEventObject, ui: DroppableEventUIParam): void => {
         DragDrop.onDrop($(ui.draggable), $(evt.target), evt);
-      }
+      },
     });
   }
 
@@ -205,16 +205,16 @@ class DragDrop {
             target: targetPid,
             update: {
               colPos: colPos,
-              sys_language_uid: language
-            }
-          }
+              sys_language_uid: language,
+            },
+          },
         };
         // TODO Make sure we actually have a JQuery object here, not only cast it
         DragDrop.ajaxAction($droppableElement, <JQuery>$draggableElement, parameters, copyAction);
       } else {
         parameters.data.tt_content[contentElementUid] = {
           colPos: colPos,
-          sys_language_uid: language
+          sys_language_uid: language,
         };
         parameters.cmd.tt_content[contentElementUid] = {move: targetPid};
         // fire the request, and show a message if it has failed
index 9ae2a43..422f7f7 100644 (file)
@@ -105,7 +105,7 @@ class Paste {
           btnClass: 'btn-default',
           trigger: (): void => {
             Modal.currentModal.trigger('modal-dismiss');
-          }
+          },
         },
         {
           text: TYPO3.lang['paste.modal.button.pastecopy'] || 'Copy',
@@ -113,8 +113,8 @@ class Paste {
           trigger: (): void => {
             Modal.currentModal.trigger('modal-dismiss');
             me.execute($element);
-          }
-        }
+          },
+        },
       ];
     } else {
       content = TYPO3.lang['paste.modal.paste'] || 'Do you want to move the record to this position?';
@@ -125,7 +125,7 @@ class Paste {
           btnClass: 'btn-default',
           trigger: (): void => {
             Modal.currentModal.trigger('modal-dismiss');
-          }
+          },
         },
         {
           text: TYPO3.lang['paste.modal.button.paste'] || 'Move',
@@ -133,8 +133,8 @@ class Paste {
           trigger: (): void => {
             Modal.currentModal.trigger('modal-dismiss');
             me.execute($element);
-          }
-        }
+          },
+        },
       ];
     }
     if (url !== null) {
@@ -167,9 +167,9 @@ class Paste {
         paste: 'tt_content|' + targetPid,
         update: {
           colPos: colPos,
-          sys_language_uid: language
-        }
-      }
+          sys_language_uid: language,
+        },
+      },
     };
 
     DataHandler.process(parameters).done((result: ResponseInterface): void => {
index 50ab371..174508a 100644 (file)
@@ -22,7 +22,7 @@ enum Identifiers {
   toolbarItem = '.t3js-toolbar-item-search',
   dropdownToggle = '.t3js-toolbar-search-dropdowntoggle',
   searchFieldSelector = '.t3js-topbar-navigation-search-field',
-  formSelector = '.t3js-topbar-navigation-search'
+  formSelector = '.t3js-topbar-navigation-search',
 }
 
 interface ResultItem {
@@ -60,7 +60,7 @@ class LiveSearch {
           if ($(Identifiers.toolbarItem).hasClass('open')) {
             $(Identifiers.dropdownToggle).dropdown('toggle');
           }
-        }
+        },
       });
     });
   }
@@ -91,7 +91,7 @@ class LiveSearch {
         return {
           suggestions: $.map(response, (dataItem: ResultItem): Suggestion => {
             return {value: dataItem.title, data: dataItem};
-          })
+          }),
         };
       },
       formatGroup: (suggestion: Suggestion, category: string, i: number): string => {
@@ -127,7 +127,7 @@ class LiveSearch {
             Icons.sizes.small,
             '',
             Icons.states.default,
-            Icons.markupIdentifiers.inline
+            Icons.markupIdentifiers.inline,
           ).done((markup: string): void => {
             $toolbarItem.find('.icon-apps-toolbar-menu-search').replaceWith(markup);
           });
@@ -147,7 +147,7 @@ class LiveSearch {
             Icons.sizes.small,
             '',
             Icons.states.default,
-            Icons.markupIdentifiers.inline
+            Icons.markupIdentifiers.inline,
           ).done((markup: string): void => {
             $toolbarItem.find('.icon-spinner-circle-light').replaceWith(markup);
           });
@@ -168,7 +168,7 @@ class LiveSearch {
         if ($(Identifiers.toolbarItem).hasClass('open')) {
           $(Identifiers.dropdownToggle).dropdown('toggle');
         }
-      }
+      },
     });
   }
 
index 9013950..9b51395 100644 (file)
@@ -75,7 +75,7 @@ class Localization {
               + '<div class="col-sm-9">'
               + '<p class="t3js-helptext t3js-helptext-translate text-muted">' + TYPO3.lang['localize.educate.translate'] + '</p>'
               + '</div>'
-              + '</div>'
+              + '</div>',
             );
           }
 
@@ -91,7 +91,7 @@ class Localization {
               + '<div class="col-sm-9">'
               + '<p class="t3js-helptext t3js-helptext-copy text-muted">' + TYPO3.lang['localize.educate.copy'] + '</p>'
               + '</div>'
-              + '</div>'
+              + '</div>',
             );
           }
 
@@ -102,7 +102,7 @@ class Localization {
               .replace('{0}', $triggerButton.data('page'))
               .replace('{1}', $triggerButton.data('languageName')),
             slideStep1,
-            SeverityEnum.info
+            SeverityEnum.info,
           );
           Wizard.addSlide(
             'localize-choose-language',
@@ -115,7 +115,7 @@ class Localization {
 
                 this.loadAvailableLanguages(
                   parseInt($triggerButton.data('pageId'), 10),
-                  parseInt($triggerButton.data('languageId'), 10)
+                  parseInt($triggerButton.data('languageId'), 10),
                 ).done((result: Array<LanguageRecord>): void => {
                   if (result.length === 1) {
                     // We only have one result, auto select the record and continue
@@ -147,17 +147,17 @@ class Localization {
                               name: 'language',
                               id: 'language' + languageObject.uid,
                               value: languageObject.uid,
-                              style: 'display: none;'
-                            }
-                          )
-                        )
-                      )
+                              style: 'display: none;',
+                            },
+                          ),
+                        ),
+                      ),
                     );
                   }
                   $slide.empty().append($languageButtons);
                 });
               });
-            }
+            },
           );
           Wizard.addSlide(
             'localize-summary',
@@ -169,7 +169,7 @@ class Localization {
               });
               this.getSummary(
                 parseInt($triggerButton.data('pageId'), 10),
-                parseInt($triggerButton.data('languageId'), 10)
+                parseInt($triggerButton.data('languageId'), 10),
               ).done((result: SummaryRecord): void => {
                 $slide.empty();
                 this.records = [];
@@ -199,31 +199,31 @@ class Localization {
                               id: 'record-uid-' + record.uid,
                               checked: 'checked',
                               'data-uid': record.uid,
-                              'aria-label': label
-                            })
+                              'aria-label': label,
+                            }),
                           ),
                           $('<label />', {
                             'class': 'form-control',
-                            for: 'record-uid-' + record.uid
-                          }).text(label).prepend(record.icon)
-                        )
-                      )
+                            for: 'record-uid-' + record.uid,
+                          }).text(label).prepend(record.icon),
+                        ),
+                      ),
                     );
                   });
 
                   $slide.append(
                     $('<fieldset />', {
-                      'class': 'localization-fieldset'
+                      'class': 'localization-fieldset',
                     }).append(
                       $('<label />').text(column).prepend(
                         $('<input />', {
                           'class': 't3js-localization-toggle-column',
                           type: 'checkbox',
-                          checked: 'checked'
-                        })
+                          checked: 'checked',
+                        }),
                       ),
-                      $row
-                    )
+                      $row,
+                    ),
                   );
                 });
 
@@ -263,14 +263,14 @@ class Localization {
                   $children.trigger('change');
                 });
               });
-            }
+            },
           );
 
           Wizard.addFinalProcessingSlide((): void => {
             this.localizeRecords(
               parseInt($triggerButton.data('pageId'), 10),
               parseInt($triggerButton.data('languageId'), 10),
-              this.records
+              this.records,
             ).done((): void => {
               Wizard.dismiss();
               document.location.reload();
@@ -308,8 +308,8 @@ class Localization {
       url: TYPO3.settings.ajaxUrls.page_languages,
       data: {
         pageId: pageId,
-        languageId: languageId
-      }
+        languageId: languageId,
+      },
     });
   }
 
@@ -326,8 +326,8 @@ class Localization {
       data: {
         pageId: pageId,
         destLanguageId: languageId,
-        languageId: this.sourceLanguage
-      }
+        languageId: this.sourceLanguage,
+      },
     });
   }
 
@@ -347,8 +347,8 @@ class Localization {
         srcLanguageId: this.sourceLanguage,
         destLanguageId: languageId,
         action: this.localizationMode,
-        uidList: uidList
-      }
+        uidList: uidList,
+      },
     });
   }
 }
index 4d3ac2e..5c5a9a2 100644 (file)
@@ -17,7 +17,7 @@ import Typo3Notification = require('TYPO3/CMS/Backend/Notification');
 enum MarkupIdentifiers {
   loginrefresh = 't3js-modal-loginrefresh',
   lockedModal = 't3js-modal-backendlocked',
-  loginFormModal = 't3js-modal-backendloginform'
+  loginFormModal = 't3js-modal-backendloginform',
 }
 
 // hack is required, because the Notification definition is wrong
@@ -30,8 +30,8 @@ declare var Notification: any;
 class LoginRefresh {
   private options: any = {
     modalConfig: {
-      backdrop: 'static'
-    }
+      backdrop: 'static',
+    },
   };
   private webNotification: Notification = null;
   private intervalTime: number = 60;
@@ -118,7 +118,7 @@ class LoginRefresh {
       && Notification.permission === 'granted' && document.hidden) {
       this.webNotification = new Notification(TYPO3.lang['mess.login_about_to_expire_title'], {
         body: TYPO3.lang['mess.login_about_to_expire'],
-        icon: '/typo3/sysext/backend/Resources/Public/Images/Logo.png'
+        icon: '/typo3/sysext/backend/Resources/Public/Images/Logo.png',
       });
       this.webNotification.onclick = () => {
         window.focus();
@@ -164,7 +164,7 @@ class LoginRefresh {
         TYPO3.configuration.showRefreshLoginPopup
           ? this.showLoginPopup()
           : this.$loginForm.modal(this.options.modalConfig);
-      }
+      },
     });
   }
 
@@ -175,7 +175,7 @@ class LoginRefresh {
     const vHWin = window.open(
       this.loginFramesetUrl,
       'relogin_' + Math.random().toString(16).slice(2),
-      'height=450,width=700,status=0,menubar=0,location=1'
+      'height=450,width=700,status=0,menubar=0,location=1',
     );
     if (vHWin) {
       vHWin.focus();
@@ -196,7 +196,7 @@ class LoginRefresh {
     this.$backendLockedModal = this.generateModal(MarkupIdentifiers.lockedModal);
     this.$backendLockedModal.find('.modal-header h4').text(TYPO3.lang['mess.please_wait']);
     this.$backendLockedModal.find('.modal-body').append(
-      $('<p />').text(TYPO3.lang['mess.be_locked'])
+      $('<p />').text(TYPO3.lang['mess.be_locked']),
     );
     this.$backendLockedModal.find('.modal-footer').remove();
 
@@ -217,31 +217,31 @@ class LoginRefresh {
           class: 'progress-bar progress-bar-warning progress-bar-striped active',
           role: 'progressbar',
           'aria-valuemin': '0',
-          'aria-valuemax': '100'
+          'aria-valuemax': '100',
         }).append(
-          $('<span />', {class: 'sr-only'})
-        )
-      )
+          $('<span />', {class: 'sr-only'}),
+        ),
+      ),
     );
     this.$timeoutModal.find('.modal-footer').append(
       $('<button />', {
         class: 'btn btn-default',
-        'data-action': 'logout'
+        'data-action': 'logout',
       }).text(TYPO3.lang['mess.refresh_login_logout_button']).on('click', () => {
         top.location.href = this.logoutUrl;
       }),
       $('<button />', {
         class: 'btn btn-primary t3js-active',
-        'data-action': 'refreshSession'
+        'data-action': 'refreshSession',
       }).text(TYPO3.lang['mess.refresh_login_refresh_button']).on('click', () => {
         $.ajax({
           url: TYPO3.settings.ajaxUrls.login_timedout,
           method: 'GET',
           success: () => {
             this.hideTimeoutModal();
-          }
+          },
         });
-      })
+      }),
     );
     this.registerDefaultModalEvents(this.$timeoutModal);
 
@@ -266,7 +266,7 @@ class LoginRefresh {
       $('<form />', {
         id: 'beLoginRefresh',
         method: 'POST',
-        action: TYPO3.settings.ajaxUrls.login
+        action: TYPO3.settings.ajaxUrls.login,
       }).append(
         $('<div />', {class: 'form-group'}).append(
           $('<input />', {
@@ -275,23 +275,23 @@ class LoginRefresh {
             autofocus: 'autofocus',
             class: 'form-control',
             placeholder: TYPO3.lang['mess.refresh_login_password'],
-            'data-rsa-encryption': 't3-loginrefres-userident'
-          })
+            'data-rsa-encryption': 't3-loginrefres-userident',
+          }),
         ),
         $('<input />', {type: 'hidden', name: 'username', value: TYPO3.configuration.username}),
-        $('<input />', {type: 'hidden', name: 'userident', id: 't3-loginrefres-userident'})
-      )
+        $('<input />', {type: 'hidden', name: 'userident', id: 't3-loginrefres-userident'}),
+      ),
     );
     this.$loginForm.find('.modal-footer').append(
       $('<a />', {
         href: this.logoutUrl,
-        class: 'btn btn-default'
+        class: 'btn btn-default',
       }).text(TYPO3.lang['mess.refresh_exit_button']),
       $('<button />', {type: 'button', class: 'btn btn-primary', 'data-action': 'refreshSession'})
         .text(TYPO3.lang['mess.refresh_login_button'])
         .on('click', () => {
           this.$loginForm.find('form').submit();
-        })
+        }),
     );
     this.registerDefaultModalEvents(this.$loginForm).on('submit', this.submitForm);
     $('body').append(this.$loginForm);
@@ -311,17 +311,17 @@ class LoginRefresh {
   protected generateModal(identifier: string): JQuery {
     return $('<div />', {
       id: identifier,
-      class: 't3js-modal ' + identifier + ' modal modal-type-default modal-severity-notice modal-style-light modal-size-small fade'
+      class: 't3js-modal ' + identifier + ' modal modal-type-default modal-severity-notice modal-style-light modal-size-small fade',
     }).append(
       $('<div />', {class: 'modal-dialog'}).append(
         $('<div />', {class: 'modal-content'}).append(
           $('<div />', {class: 'modal-header'}).append(
-            $('<h4 />', {class: 'modal-title'})
+            $('<h4 />', {class: 'modal-title'}),
           ),
           $('<div />', {class: 'modal-body'}),
-          $('<div />', {class: 'modal-footer'})
-        )
-      )
+          $('<div />', {class: 'modal-footer'}),
+        ),
+      ),
     );
   }
 
@@ -387,7 +387,7 @@ class LoginRefresh {
     }
 
     const postData: any = {
-      login_status: 'login'
+      login_status: 'login',
     };
     $.each($form.serializeArray(), function(i: number, field: any): void {
       postData[field.name] = field.value;
@@ -404,7 +404,7 @@ class LoginRefresh {
           Typo3Notification.error(TYPO3.lang['mess.refresh_login_failed'], TYPO3.lang['mess.refresh_login_failed_message']);
           $passwordField.focus();
         }
-      }
+      },
     });
   }
 
index 2039a27..266428a 100644 (file)
@@ -26,7 +26,7 @@ enum Identifiers {
   body = '.t3js-modal-body',
   footer = '.t3js-modal-footer',
   iframe = '.t3js-modal-iframe',
-  iconPlaceholder = '.t3js-modal-icon-placeholder'
+  iconPlaceholder = '.t3js-modal-icon-placeholder',
 }
 
 enum Sizes {
@@ -34,19 +34,19 @@ enum Sizes {
   default = 'default',
   medium = 'medium',
   large = 'large',
-  full = 'full'
+  full = 'full',
 }
 
 enum Styles {
   default = 'default',
   light = 'light',
-  dark = 'dark'
+  dark = 'dark',
 }
 
 enum Types {
   default = 'default',
   ajax = 'ajax',
-  iframe = 'iframe'
+  iframe = 'iframe',
 }
 
 interface Button {
@@ -100,7 +100,7 @@ class Modal {
     '<div class="t3js-modal-footer modal-footer"></div>' +
     '</div>' +
     '</div>' +
-    '</div>'
+    '</div>',
   );
 
   private defaultConfiguration: Configuration = {
@@ -114,7 +114,7 @@ class Modal {
     additionalCssClasses: [],
     callback: $.noop(),
     ajaxCallback: $.noop(),
-    ajaxTarget: null
+    ajaxTarget: null,
   };
 
   private readonly securityUtility: SecurityUtility;
@@ -159,13 +159,13 @@ class Modal {
           text: $(this).data('button-close-text') || TYPO3.lang['button.cancel'] || 'Cancel',
           active: true,
           btnClass: 'btn-default',
-          name: 'cancel'
+          name: 'cancel',
         },
         {
           text: $(this).data('button-ok-text') || TYPO3.lang['button.ok'] || 'OK',
           btnClass: 'btn-' + Severity.getCssClass(severity),
-          name: 'ok'
-        }
+          name: 'ok',
+        },
       );
     }
 
@@ -183,7 +183,7 @@ class Modal {
             $(e.currentTarget).trigger('confirm.button.ok');
           }
         });
-      }
+      },
     });
   }
 
@@ -204,7 +204,7 @@ class Modal {
                  buttons: Array<Object>,
                  url: string,
                  callback?: Function,
-                 target?: string
+                 target?: string,
   ): JQuery {
     return this.advanced({
       type: Types.ajax,
@@ -212,7 +212,7 @@ class Modal {
       severity,
       buttons,
       ajaxCallback: callback,
-      ajaxTarget: target
+      ajaxTarget: target,
     });
   }
 
@@ -237,7 +237,7 @@ class Modal {
       content,
       severity,
       buttons,
-      additionalCssClasses
+      additionalCssClasses,
     });
   }
 
@@ -310,7 +310,7 @@ class Modal {
             btnClass: 'btn-default',
             trigger: (): void => {
               this.currentModal.trigger('modal-dismiss');
-            }
+            },
           },
           {
             text: $element.data('button-ok-text') || TYPO3.lang['button.ok'] || 'OK',
@@ -318,8 +318,8 @@ class Modal {
             trigger: (): void => {
               this.currentModal.trigger('modal-dismiss');
               evt.target.ownerDocument.location.href = $element.data('href') || $element.attr('href');
-            }
-          }
+            },
+          },
         ],
       });
     });
@@ -361,7 +361,7 @@ class Modal {
             }
             this.currentModal.trigger('modal-loaded');
           },
-          'html'
+          'html',
         );
       });
     } else if (configuration.type === 'iframe') {
@@ -369,18 +369,18 @@ class Modal {
         $('<iframe />', {
           src: configuration.content,
           'name': 'modal_frame',
-          'class': 'modal-iframe t3js-modal-iframe'
-        })
+          'class': 'modal-iframe t3js-modal-iframe',
+        }),
       );
       currentModal.find(Identifiers.iframe).on('load', (): void => {
         currentModal.find(Identifiers.title).text(
-          (<HTMLIFrameElement>currentModal.find(Identifiers.iframe).get(0)).contentDocument.title
+          (<HTMLIFrameElement>currentModal.find(Identifiers.iframe).get(0)).contentDocument.title,
         );
       });
     } else {
       if (typeof configuration.content === 'string') {
         configuration.content = $('<p />').html(
-          this.securityUtility.encodeHtml(configuration.content)
+          this.securityUtility.encodeHtml(configuration.content),
         );
       }
       currentModal.find(Identifiers.body).append(configuration.content);
index 8a6636e..0865305 100644 (file)
@@ -118,8 +118,8 @@ class ModuleMenu {
     PersistentStorage.set(
       'BackendComponents.States.typo3-module-menu',
       {
-        collapsed: collapse
-      }
+        collapsed: collapse,
+      },
     );
 
     Viewport.doLayout();
@@ -138,7 +138,7 @@ class ModuleMenu {
       navigationComponentId: $subModuleElement.data('navigationcomponentid'),
       navigationFrameScript: $subModuleElement.data('navigationframescript'),
       navigationFrameScriptParam: $subModuleElement.data('navigationframescriptparameters'),
-      link: $subModuleElement.find('a').data('link')
+      link: $subModuleElement.find('a').data('link'),
     };
   }
 
@@ -191,7 +191,7 @@ class ModuleMenu {
     return this.loadModuleComponents(
       moduleData,
       params,
-      new ClientRequest('typo3.showModule', event)
+      new ClientRequest('typo3.showModule', event),
     );
   }
 
@@ -204,14 +204,14 @@ class ModuleMenu {
     if (top.startInModule && top.startInModule[0] && $('#' + top.startInModule[0]).length > 0) {
       deferred = this.showModule(
         top.startInModule[0],
-        top.startInModule[1]
+        top.startInModule[1],
       );
     } else {
       // fetch first module
       const $firstModule = $('.t3js-mainmodule:first');
       if ($firstModule.attr('id')) {
         deferred = this.showModule(
-          $firstModule.attr('id')
+          $firstModule.attr('id'),
         );
       }
       // else case: the main module has no entries, this is probably a backend
@@ -276,12 +276,12 @@ class ModuleMenu {
     $(document).on('click', '.t3js-topbar-button-modulemenu', (evt: JQueryEventObject): void => {
         evt.preventDefault();
         ModuleMenu.toggleMenu();
-      }
+      },
     );
     $(document).on('click', '.t3js-scaffold-content-overlay', (evt: JQueryEventObject): void => {
         evt.preventDefault();
         ModuleMenu.toggleMenu(true);
-      }
+      },
     );
     $(document).on('click', '.t3js-topbar-button-navigationcomponent', (evt: JQueryEventObject): void => {
       evt.preventDefault();
@@ -300,7 +300,7 @@ class ModuleMenu {
   private loadModuleComponents(
     moduleData: Module,
     params: string,
-    interactionRequest: InteractionRequest
+    interactionRequest: InteractionRequest,
   ): JQueryDeferred<TriggerRequest> {
     const moduleName = moduleData.name;
 
@@ -319,8 +319,8 @@ class ModuleMenu {
               moduleData.navigationFrameScriptParam,
               new TriggerRequest(
                 'typo3.loadModuleComponents',
-                interactionRequest
-              )
+                interactionRequest,
+              ),
             );
           } else {
             Viewport.NavigationContainer.hide();
@@ -334,8 +334,8 @@ class ModuleMenu {
             params,
             new TriggerRequest(
               'typo3.loadModuleComponents',
-              interactionRequest
-            )
+              interactionRequest,
+            ),
           );
 
           // compatibility
@@ -344,8 +344,8 @@ class ModuleMenu {
 
           Viewport.doLayout();
         },
-        this
-      )
+        this,
+      ),
     );
 
     return deferred;
@@ -372,7 +372,7 @@ class ModuleMenu {
         .append($('<div />', {
           'class': 'scaffold-content-navigation-component',
           'data-component': navigationComponentId,
-          id: 'navigationComponent-' + componentCssName
+          id: 'navigationComponent-' + componentCssName,
         }));
     }
 
@@ -394,7 +394,7 @@ class ModuleMenu {
     const currentUrl = Viewport.NavigationContainer.getUrl();
     const deferred = Viewport.NavigationContainer.setUrl(
       url,
-      new TriggerRequest('typo3.openInNavFrame', interactionRequest)
+      new TriggerRequest('typo3.openInNavFrame', interactionRequest),
     );
     if (currentUrl !== navUrl) {
       // if deferred is already resolved, execute directly
@@ -420,14 +420,14 @@ class ModuleMenu {
     if (top.nextLoadModuleUrl) {
       deferred = Viewport.ContentContainer.setUrl(
         top.nextLoadModuleUrl,
-        new TriggerRequest('typo3.openInContentFrame', interactionRequest)
+        new TriggerRequest('typo3.openInContentFrame', interactionRequest),
       );
       top.nextLoadModuleUrl = '';
     } else {
       const urlToLoad = url + (params ? (url.indexOf('?') !== -1 ? '&' : '?') + params : '');
       deferred = Viewport.ContentContainer.setUrl(
         urlToLoad,
-        new TriggerRequest('typo3.openInContentFrame', interactionRequest)
+        new TriggerRequest('typo3.openInContentFrame', interactionRequest),
       );
     }
 
@@ -437,7 +437,7 @@ class ModuleMenu {
 
 if (!top.TYPO3.ModuleMenu) {
   top.TYPO3.ModuleMenu = {
-    App: new ModuleMenu()
+    App: new ModuleMenu(),
   };
 }
 const moduleMenuApp = top.TYPO3.ModuleMenu;
index 903aade..5071da2 100644 (file)
@@ -17,7 +17,7 @@ enum Identifiers {
   containerSelector = '.t3js-newmultiplepages-container',
   addMoreFieldsButtonSelector = '.t3js-newmultiplepages-createnewfields',
   doktypeSelector = '.t3js-newmultiplepages-select-doktype',
-  templateRow = '.t3js-newmultiplepages-newlinetemplate'
+  templateRow = '.t3js-newmultiplepages-newlinetemplate',
 }
 
 /**
index 5eeeb58..a792b00 100644 (file)
@@ -136,7 +136,7 @@ class Notification {
       '<p class="alert-message text-pre-wrap"></p>' +
       '</div>' +
       '</div>' +
-      '</div>'
+      '</div>',
     );
     $box.find('.alert-title').text(title);
     $box.find('.alert-message').text(message);
index 4b8808b..1b508a1 100644 (file)
@@ -58,7 +58,7 @@ class OnlineMedia {
       {
         url: url,
         targetFolder: target,
-        allowed: allowed
+        allowed: allowed,
       },
       (data: Response): void => {
         if (data.file) {
@@ -72,14 +72,14 @@ class OnlineMedia {
               text: TYPO3.lang['button.ok'] || 'OK',
               btnClass: 'btn-' + Severity.getCssClass(Severity.error),
               name: 'ok',
-              active: true
-            }]
+              active: true,
+            }],
           ).on('confirm.button.ok', (): void => {
             $confirm.modal('hide');
           });
         }
         NProgress.done();
-      }
+      },
     );
   }
 
@@ -103,7 +103,7 @@ class OnlineMedia {
             .attr('placeholder', placeholder),
           $('<div>')
             .attr('class', 'help-block')
-            .html(this.securityUtility.encodeHtml(allowedHelpText, false) + '<br>' + allowedExtMarkup.join(' '))
+            .html(this.securityUtility.encodeHtml(allowedHelpText, false) + '<br>' + allowedExtMarkup.join(' ')),
         ]);
     const $modal = Modal.show(
       $currentTarget.attr('title'),
@@ -119,8 +119,8 @@ class OnlineMedia {
             $modal.modal('hide');
             this.addOnlineMedia($currentTarget, url);
           }
-        }
-      }]
+        },
+      }],
     );
 
     $modal.on('shown.bs.modal', (e: JQueryEventObject): void => {
index b34c3e5..17f3f61 100644 (file)
@@ -19,7 +19,7 @@ import NewContentElement = require('./Wizard/NewContentElement');
 enum IdentifierEnum {
   pageTitle = '.t3js-title-inlineedit',
   hiddenElements = '.t3js-hidden-record',
-  newButton = '.t3js-toggle-new-content-element-wizard'
+  newButton = '.t3js-toggle-new-content-element-wizard',
 }
 
 /**
@@ -146,7 +146,7 @@ class PageActions {
       '</span>' +
       '</div>' +
       '</div>' +
-      '</form>'
+      '</form>',
       ),
       $inputField = $inputFieldWrap.find('input');
 
index 9e4ffe2..923af42 100644 (file)
@@ -50,7 +50,7 @@ class SplitButtons {
       'button[name^="_translation_save"]',
       'a[data-name^="_translation_save"]',
       'button[name="CMD"][value^="_translation_save"]',
-      'a[data-name="CMD"][data-value^="_translation_save"]'
+      'a[data-name="CMD"][data-value^="_translation_save"]',
     ].join(',');
 
     $('.t3js-module-docheader').on('click', elements, (e: JQueryEventObject): boolean => {
index 8da015e..91565f8 100644 (file)
@@ -46,7 +46,7 @@ class ToggleSearchToolbox {
         if (searchResultShown) {
           $(this).closest('form').submit();
         }
-      }
+      },
     });
   }
 }
index f8de18f..1bf537f 100644 (file)
@@ -19,7 +19,7 @@ import Viewport = require('../Viewport');
 enum Identifiers {
   containerSelector = '#typo3-cms-backend-backend-toolbaritems-clearcachetoolbaritem',
   menuItemSelector = 'a.toolbar-cache-flush-action',
-  toolbarIconSelector = '.toolbar-item-icon .t3js-icon'
+  toolbarIconSelector = '.toolbar-item-icon .t3js-icon',
 }
 
 /**
@@ -72,10 +72,10 @@ class ClearCacheMenu {
         if (status !== 'success' || jqXHRObject.responseText !== '') {
           Notification.error(
             'An error occurred',
-            'An error occurred while clearing the cache. It is likely not all caches were cleared as expected.'
+            'An error occurred while clearing the cache. It is likely not all caches were cleared as expected.',
           );
         }
-      }
+      },
     });
   }
 }
index eb573c6..96a1d58 100644 (file)
@@ -30,7 +30,7 @@ enum Identifiers {
   shortcutFormGroupSelector = 'select[name="shortcut-group"]',
   shortcutFormSaveSelector = '.shortcut-form-save',
   shortcutFormCancelSelector = '.shortcut-form-cancel',
-  shortcutFormSelector = '.shortcut-form'
+  shortcutFormSelector = '.shortcut-form',
 }
 
 /**
@@ -60,7 +60,7 @@ class ShortcutMenu {
     confirmationText: string,
     motherModule: string,
     shortcutButton: JQuery,
-    displayName: string
+    displayName: string,
   ): void {
     if (typeof confirmationText !== 'undefined') {
       Modal.confirm(TYPO3.lang['bookmark.create'], confirmationText).on('confirm.button.ok', (e: JQueryEventObject): void => {
@@ -78,9 +78,9 @@ class ShortcutMenu {
             module: moduleName,
             url: url,
             motherModName: motherModule,
-            displayName: displayName
+            displayName: displayName,
           },
-          cache: false
+          cache: false,
         }).done((): void => {
           this.refreshMenu();
           $(Identifiers.toolbarIconSelector, Identifiers.containerSelector).replaceWith($existingIcon);
@@ -139,10 +139,10 @@ class ShortcutMenu {
         $.ajax({
           url: TYPO3.settings.ajaxUrls.shortcut_remove,
           data: {
-            shortcutId: $shortcutRecord.data('shortcutid')
+            shortcutId: $shortcutRecord.data('shortcutid'),
           },
           type: 'post',
-          cache: false
+          cache: false,
         }).done((): void => {
           // a reload is used in order to restore the original behaviour
           // e.g. remove groups that are now empty because the last one in the group
@@ -167,9 +167,9 @@ class ShortcutMenu {
       url: TYPO3.settings.ajaxUrls.shortcut_editform,
       data: {
         shortcutId: $shortcutRecord.data('shortcutid'),
-        shortcutGroup: $shortcutRecord.data('shortcutgroup')
+        shortcutGroup: $shortcutRecord.data('shortcutgroup'),
       },
-      cache: false
+      cache: false,
     }).done((data: string): void => {
       $(Identifiers.containerSelector).find(Identifiers.toolbarMenuSelector).html(data);
     });
@@ -186,10 +186,10 @@ class ShortcutMenu {
       data: {
         shortcutId: $shortcutForm.data('shortcutid'),
         shortcutTitle: $shortcutForm.find(Identifiers.shortcutFormTitleSelector).val(),
-        shortcutGroup: $shortcutForm.find(Identifiers.shortcutFormGroupSelector).val()
+        shortcutGroup: $shortcutForm.find(Identifiers.shortcutFormGroupSelector).val(),
       },
       type: 'post',
-      cache: false
+      cache: false,
     }).done((): void => {
       Notification.success(TYPO3.lang['bookmark.savedTitle'], TYPO3.lang['bookmark.savedMessage']);
       this.refreshMenu();
@@ -203,7 +203,7 @@ class ShortcutMenu {
     $.ajax({
       url: TYPO3.settings.ajaxUrls.shortcut_list,
       type: 'get',
-      cache: false
+      cache: false,
     }).done((data: string): void => {
       $(Identifiers.toolbarMenuSelector, Identifiers.containerSelector).html(data);
     });
index 81b4666..199f23b 100644 (file)
@@ -21,7 +21,7 @@ enum Identifiers {
   toolbarIconSelector = '.toolbar-item-icon .t3js-icon',
   menuContainerSelector = '.dropdown-menu',
   moduleLinks = '.t3js-systeminformation-module',
-  counter = '.t3js-systeminformation-counter'
+  counter = '.t3js-systeminformation-counter',
 }
 
 /**
@@ -81,12 +81,12 @@ class SystemInformationMenu {
       },
       complete: (): void => {
         $(Identifiers.toolbarIconSelector, Identifiers.containerSelector).replaceWith($existingIcon);
-      }
+      },
     }).done((): void => {
       // reload error data every five minutes
       this.timer = setTimeout(
         this.updateMenu,
-        1000 * 300
+        1000 * 300,
       );
     });
   }
index 1aefb57..9925b40 100644 (file)
@@ -52,7 +52,7 @@ class ValueSlider {
     const $sliders = $(this.selector);
     if ($sliders.length > 0) {
       $sliders.slider({
-        formatter: this.renderTooltipValue
+        formatter: this.renderTooltipValue,
       });
       $sliders.on('change', ValueSlider.updateValue);
     }
index 3c84ce1..d445360 100644 (file)
@@ -30,7 +30,7 @@ class ContentContainer extends AbstractContainer {
    */
   public beforeSetUrl(interactionRequest: InteractionRequest): JQueryDeferred<TriggerRequest> {
     return this.consumerScope.invoke(
-      new TriggerRequest('typo3.beforeSetUrl', interactionRequest)
+      new TriggerRequest('typo3.beforeSetUrl', interactionRequest),
     );
   }
 
@@ -49,7 +49,7 @@ class ContentContainer extends AbstractContainer {
       return deferred;
     }
     deferred = this.consumerScope.invoke(
-      new TriggerRequest('typo3.setUrl', interactionRequest)
+      new TriggerRequest('typo3.setUrl', interactionRequest),
     );
     deferred.then((): void => {
       Loader.start();
@@ -84,7 +84,7 @@ class ContentContainer extends AbstractContainer {
       return deferred;
     }
     deferred = this.consumerScope.invoke(
-      new TriggerRequest('typo3.refresh', interactionRequest)
+      new TriggerRequest('typo3.refresh', interactionRequest),
     );
     deferred.then((): void => {
       iFrame.contentWindow.location.reload(forceGet);
index 504c26f..df22dda 100644 (file)
@@ -52,7 +52,7 @@ class NavigationContainer extends AbstractContainer {
       Icons.sizes.small,
       'overlay-readonly',
       null,
-      Icons.markupIdentifiers.inline
+      Icons.markupIdentifiers.inline,
     ).done((icon: string): void => {
       $(TopbarIdentifiersEnum.buttonNavigationComponent).html(icon);
     });
@@ -80,7 +80,7 @@ class NavigationContainer extends AbstractContainer {
    */
   public setUrl(urlToLoad: string, interactionRequest: InteractionRequest): JQueryDeferred<TriggerRequest> {
     const deferred = this.consumerScope.invoke(
-      new TriggerRequest('typo3.setUrl', interactionRequest)
+      new TriggerRequest('typo3.setUrl', interactionRequest),
     );
     deferred.then((): void => {
       $(ScaffoldIdentifierEnum.scaffold).addClass('scaffold-content-navigation-expanded');
index 4d17974..1526407 100644 (file)
@@ -21,7 +21,7 @@ class Topbar {
     registerEvent: (callback: (eventHandler: JQueryEventObject) => any): void => {
       $(callback);
       $(Topbar.topbarSelector).on('t3-topbar-update', callback);
-    }
+    },
   };
 
   public static refresh(): void {
index 6cd28d8..e322f53 100644 (file)
@@ -69,7 +69,7 @@ class OpendocsMenu {
         $(Selectors.containerSelector).find(Selectors.menuContainerSelector).html(data);
         OpendocsMenu.updateNumberOfDocs();
         $(Selectors.toolbarIconSelector, Selectors.containerSelector).replaceWith($existingIcon);
-      }
+      },
     });
   }
 
@@ -100,14 +100,14 @@ class OpendocsMenu {
       type: 'post',
       cache: false,
       data: {
-        md5sum: md5sum
+        md5sum: md5sum,
       },
       success: (data: string): void => {
         $(Selectors.menuContainerSelector, Selectors.containerSelector).html(data);
         OpendocsMenu.updateNumberOfDocs();
         // Re-open the menu after closing a document
         $(Selectors.containerSelector).toggleClass('open');
-      }
+      },
     });
   }
 
index 040e07c..51a4af0 100644 (file)
@@ -158,7 +158,7 @@ class Scheduler {
 
     $('table.taskGroup-table').DataTable({
       'paging': false,
-      'searching': false
+      'searching': false,
     });
   }
 
index 99a8b56..47d2073 100644 (file)
@@ -32,7 +32,7 @@ class TypoScriptObjectBrowser {
         if (this.searchResultShown) {
           $(evt.currentTarget).closest('form').submit();
         }
-      }
+      },
     });
 
     if (self.location.hash) {
index a982ea5..0f5cc2a 100644 (file)
@@ -92,7 +92,7 @@ class ViewPage {
   private addToQueue(storageIdentifier: string, data: any): void {
     const item = {
       storageIdentifier: storageIdentifier,
-      data: data
+      data: data,
     };
     this.queue.push(item);
     if (this.queue.length >= 1) {
@@ -120,7 +120,7 @@ class ViewPage {
     this.$resizableContainer.css({
       width: width,
       height: height,
-      left: 0
+      left: 0,
     });
   }
 
@@ -128,7 +128,7 @@ class ViewPage {
     let data = {
       width: ViewPage.getCurrentWidth(),
       height: ViewPage.getCurrentHeight(),
-      label: ViewPage.getCurrentLabel()
+      label: ViewPage.getCurrentLabel(),
     };
     this.addToQueue(this.storagePrefix + 'current', data);
   }
@@ -136,7 +136,7 @@ class ViewPage {
   private persistCustomPreset(): void {
     let data = {
       width: ViewPage.getCurrentWidth(),
-      height: ViewPage.getCurrentHeight()
+      height: ViewPage.getCurrentHeight(),
     };
     $(Selectors.customSelector).data('width', data.width);
     $(Selectors.customSelector).data('height', data.height);
@@ -188,7 +188,7 @@ class ViewPage {
 
     // Initialize the jQuery UI Resizable plugin
     this.$resizableContainer.resizable({
-      handles: 'w, sw, s, se, e'
+      handles: 'w, sw, s, se, e',
     });
 
     this.$resizableContainer.on('resizestart', (evt: JQueryEventObject): void => {
@@ -208,7 +208,7 @@ class ViewPage {
       $(Selectors.inputWidthSelector).val(ui.size.width);
       $(Selectors.inputHeightSelector).val(ui.size.height);
       this.$resizableContainer.css({
-        left: 0
+        left: 0,
       });
       ViewPage.setLabel(this.defaultLabel);
     });