From fc96cbd9ad76c56b8e543e6cd58c2fbe21889c86 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 18 Jul 2020 09:23:00 +0100 Subject: [PATCH] Migration of editorsidebar to ES6 module --- package.json | 1 + src/scripts/editorsidebar.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cfb43eef24..af9bfaaf57 100644 --- a/package.json +++ b/package.json @@ -164,6 +164,7 @@ "src/plugins/backdropScreensaver/plugin.js", "src/components/filterdialog/filterdialog.js", "src/components/fetchhelper.js", + "src/scripts/editorsidebar.js", "src/scripts/globalize.js", "src/scripts/keyboardNavigation.js", "src/scripts/settings/appSettings.js", diff --git a/src/scripts/editorsidebar.js b/src/scripts/editorsidebar.js index 8168389566..ddda248c87 100644 --- a/src/scripts/editorsidebar.js +++ b/src/scripts/editorsidebar.js @@ -1,5 +1,9 @@ -define(['datetime', 'jQuery', 'globalize', 'material-icons'], function (datetime, $, globalize) { - 'use strict'; +import datetime from 'datetime'; +import $ from 'jQuery'; +import globalize from 'globalize'; +import 'material-icons'; + +/* eslint-disable indent */ function getNode(item, folderState, selected) { var htmlName = getNodeInnerHtml(item); @@ -331,4 +335,5 @@ define(['datetime', 'jQuery', 'globalize', 'material-icons'], function (datetime getCurrentItemId: getCurrentItemId, setCurrentItemId: setCurrentItemId }; -}); + +/* eslint-enable indent */