From 71fa786842da1feb462688b2b1cb10ede370ef80 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 15 Mar 2024 16:55:01 +0100 Subject: [PATCH] lint compliance --- .../src/less2/include/sidebar-layout.less | 14 +++++--------- www/common/inner/sidebar-layout.js | 3 +-- www/newadmin/inner.js | 6 +----- www/newadmin/main.js | 2 +- 4 files changed, 8 insertions(+), 17 deletions(-) diff --git a/customize.dist/src/less2/include/sidebar-layout.less b/customize.dist/src/less2/include/sidebar-layout.less index 475e62338..742201741 100644 --- a/customize.dist/src/less2/include/sidebar-layout.less +++ b/customize.dist/src/less2/include/sidebar-layout.less @@ -127,22 +127,22 @@ margin-bottom: 0; margin-top: 0.5rem; } - th{ + th { max-width: 60vw; border: 1px solid #777; padding: 7px; } - td{ + td { padding: 2px; } - .cp-checkmark{ + .cp-checkmark { padding: 0.5rem; } - .cp-broadcast-container{ + .cp-broadcast-container { display: flex; flex-flow: column; } - .cp-broadcast-lang{ + .cp-broadcast-lang { order: 4; margin: 30px; margin-bottom: 0; @@ -150,10 +150,6 @@ flex-flow: column; align-items: baseline; } - .button.btn.primary.cp-report{ - margin-left: 10px; - cursor: pointer; - } table { .cp-strong { font-weight: bold; diff --git a/www/common/inner/sidebar-layout.js b/www/common/inner/sidebar-layout.js index 1c72dd74d..12e38b7cf 100644 --- a/www/common/inner/sidebar-layout.js +++ b/www/common/inner/sidebar-layout.js @@ -214,8 +214,7 @@ define([ sidebar.addItem = (key, get, options) => { const safeKey = keyToCamlCase(key); - get((content, config) => { - config = config || {}; + get((content) => { options = options || {}; const title = options.noTitle ? undefined : h('label.cp-item-label', { id: `cp-${app}-${key}` diff --git a/www/newadmin/inner.js b/www/newadmin/inner.js index 8e7c21dcb..eab250a4d 100644 --- a/www/newadmin/inner.js +++ b/www/newadmin/inner.js @@ -48,8 +48,6 @@ define([ var Nacl = window.nacl; var common; - var metadataMgr; - var privateData; var sFrameChan; var andThen = function (common, $container) { @@ -468,7 +466,7 @@ define([ row(archiveAccountLabel, archiveAccountButton); // archive owned documents - /* // TODO not implemented + /* // TODO not implemented var archiveDocuments = () => { justifyRestorationDialog(Messages.admin_archiveDocumentsConfirm, reason => { sframeCommand('ARCHIVE_OWNED_DOCUMENTS', { @@ -3395,8 +3393,6 @@ define([ if (!common.isAdmin()) { return; } updateStatus(waitFor()); }).nThen(function( /*waitFor*/ ) { - metadataMgr = common.getMetadataMgr(); - privateData = metadataMgr.getPrivateData(); common.setTabTitle(Messages.adminPage || 'Administration'); if (!common.isAdmin()) { diff --git a/www/newadmin/main.js b/www/newadmin/main.js index f12995861..849a3feaf 100644 --- a/www/newadmin/main.js +++ b/www/newadmin/main.js @@ -35,7 +35,7 @@ define([ category = window.location.hash.slice(1); window.location.hash = ''; } - var addData = function (obj, Cryptpad, user, Utils) { + var addData = function (obj) { if (category) { obj.category = category; } }; SFCommonO.start({