diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:31:39 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-31 09:35:55 +0200 |
commit | a384b4a97a2a4444d8e2c831765dbf35c8da0db2 (patch) | |
tree | 2bd6a62f0707c85fa9bb9322e1aea90a3b0f4305 /core/src | |
parent | 0f8aca9d87db9022fe942a3d3fbb11433e152676 (diff) | |
download | nextcloud-server-a384b4a97a2a4444d8e2c831765dbf35c8da0db2.tar.gz nextcloud-server-a384b4a97a2a4444d8e2c831765dbf35c8da0db2.zip |
Bump @nextcloud/eslint-config and peers
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/util.js | 22 | ||||
-rw-r--r-- | core/src/OCP/whatsnew.js | 12 | ||||
-rw-r--r-- | core/src/components/login/PasswordLessLoginForm.vue | 2 | ||||
-rw-r--r-- | core/src/jquery/ocdialog.js | 2 | ||||
-rw-r--r-- | core/src/jquery/showpassword.js | 16 | ||||
-rw-r--r-- | core/src/systemtags/systemtagmodel.js | 10 |
6 files changed, 32 insertions, 32 deletions
diff --git a/core/src/OC/util.js b/core/src/OC/util.js index aba47065e54..5908d9f6e1f 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -81,17 +81,17 @@ export default { let bytes = null const bytesArray = { - 'b': 1, - 'k': 1024, - 'kb': 1024, - 'mb': 1024 * 1024, - 'm': 1024 * 1024, - 'gb': 1024 * 1024 * 1024, - 'g': 1024 * 1024 * 1024, - 'tb': 1024 * 1024 * 1024 * 1024, - 't': 1024 * 1024 * 1024 * 1024, - 'pb': 1024 * 1024 * 1024 * 1024 * 1024, - 'p': 1024 * 1024 * 1024 * 1024 * 1024, + b: 1, + k: 1024, + kb: 1024, + mb: 1024 * 1024, + m: 1024 * 1024, + gb: 1024 * 1024 * 1024, + g: 1024 * 1024 * 1024, + tb: 1024 * 1024 * 1024 * 1024, + t: 1024 * 1024 * 1024 * 1024, + pb: 1024 * 1024 * 1024 * 1024 * 1024, + p: 1024 * 1024 * 1024 * 1024 * 1024, } const matches = s.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i) diff --git a/core/src/OCP/whatsnew.js b/core/src/OCP/whatsnew.js index c0df8af7b3f..17c9eeabce2 100644 --- a/core/src/OCP/whatsnew.js +++ b/core/src/OCP/whatsnew.js @@ -59,14 +59,14 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { menuItem.className = 'menuitem' text = document.createElement('span') - text.innerText = t('core', 'New in') + ' ' + data['ocs']['data']['product'] + text.innerText = t('core', 'New in') + ' ' + data.ocs.data.product text.className = 'caption' menuItem.appendChild(text) icon = document.createElement('span') icon.className = 'icon-close' icon.onclick = function() { - dismiss(data['ocs']['data']['version'], dismissOptions) + dismiss(data.ocs.data.version, dismissOptions) } menuItem.appendChild(icon) @@ -74,8 +74,8 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { list.appendChild(item) // Highlights - for (const i in data['ocs']['data']['whatsNew']['regular']) { - const whatsNewTextItem = data['ocs']['data']['whatsNew']['regular'][i] + for (const i in data.ocs.data.whatsNew.regular) { + const whatsNewTextItem = data.ocs.data.whatsNew.regular[i] item = document.createElement('li') menuItem = document.createElement('span') @@ -94,11 +94,11 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { } // Changelog URL - if (!_.isUndefined(data['ocs']['data']['changelogURL'])) { + if (!_.isUndefined(data.ocs.data.changelogURL)) { item = document.createElement('li') menuItem = document.createElement('a') - menuItem.href = data['ocs']['data']['changelogURL'] + menuItem.href = data.ocs.data.changelogURL menuItem.rel = 'noreferrer noopener' menuItem.target = '_blank' diff --git a/core/src/components/login/PasswordLessLoginForm.vue b/core/src/components/login/PasswordLessLoginForm.vue index 87544e0ffff..0cd7cb81cfe 100644 --- a/core/src/components/login/PasswordLessLoginForm.vue +++ b/core/src/components/login/PasswordLessLoginForm.vue @@ -137,7 +137,7 @@ export default { publicKey.allowCredentials = publicKey.allowCredentials.map(function(data) { return { ...data, - 'id': Uint8Array.from(base64urlDecode(data.id), c => c.charCodeAt(0)), + id: Uint8Array.from(base64urlDecode(data.id), c => c.charCodeAt(0)), } }) diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js index 7e570d77f52..e08db2530e3 100644 --- a/core/src/jquery/ocdialog.js +++ b/core/src/jquery/ocdialog.js @@ -203,7 +203,7 @@ $.widget('oc.ocdialog', { lessHeight += this.$buttonrow.outerHeight(true) } this.element.css({ - 'height': 'calc(100% - ' + lessHeight + 'px)', + height: 'calc(100% - ' + lessHeight + 'px)', }) }, _createOverlay() { diff --git a/core/src/jquery/showpassword.js b/core/src/jquery/showpassword.js index 553f6e15df1..ac0a9556ae8 100644 --- a/core/src/jquery/showpassword.js +++ b/core/src/jquery/showpassword.js @@ -39,7 +39,7 @@ $.fn.extend({ showPassword(c) { // Setup callback object - const callback = { 'fn': null, 'args': {} } + const callback = { fn: null, args: {} } callback.fn = c // Clones passwords and turn the clones into text inputs @@ -52,13 +52,13 @@ $.fn.extend({ // Name added for JQuery Validation compatibility // Element name is required to avoid script warning. $clone.attr({ - 'type': 'text', - 'class': $element.attr('class'), - 'style': $element.attr('style'), - 'size': $element.attr('size'), - 'name': $element.attr('name') + '-clone', - 'tabindex': $element.attr('tabindex'), - 'autocomplete': 'off', + type: 'text', + class: $element.attr('class'), + style: $element.attr('style'), + size: $element.attr('size'), + name: $element.attr('name') + '-clone', + tabindex: $element.attr('tabindex'), + autocomplete: 'off', }) if ($element.attr('placeholder') !== undefined) { diff --git a/core/src/systemtags/systemtagmodel.js b/core/src/systemtags/systemtagmodel.js index 9b79687d3fc..f0f564e012a 100644 --- a/core/src/systemtags/systemtagmodel.js +++ b/core/src/systemtags/systemtagmodel.js @@ -36,12 +36,12 @@ }, davProperties: { - 'id': OC.Files.Client.PROPERTY_FILEID, - 'name': OC.Files.Client.PROPERTY_DISPLAYNAME, - 'userVisible': OC.Files.Client.PROPERTY_USERVISIBLE, - 'userAssignable': OC.Files.Client.PROPERTY_USERASSIGNABLE, + id: OC.Files.Client.PROPERTY_FILEID, + name: OC.Files.Client.PROPERTY_DISPLAYNAME, + userVisible: OC.Files.Client.PROPERTY_USERVISIBLE, + userAssignable: OC.Files.Client.PROPERTY_USERASSIGNABLE, // read-only, effective permissions computed by the server, - 'canAssign': OC.Files.Client.PROPERTY_CAN_ASSIGN, + canAssign: OC.Files.Client.PROPERTY_CAN_ASSIGN, }, parse(data) { |