From 5bee06c3961706ed26a767e9891984d1090f3541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 27 Dec 2023 11:18:26 +0100 Subject: [PATCH] style: Fix styleint errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/AdminSettings.vue | 6 +++--- src/components/SettingsSelectGroup.vue | 2 +- src/components/SettingsSelectTag.vue | 2 +- src/document.js | 12 ++++++------ src/files.js | 4 ++-- src/helpers/types.js | 1 - src/helpers/url.js | 4 ++-- src/mixins/saveAs.js | 2 +- src/view/FilesAppIntegration.js | 4 ++-- 9 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index 2c29956bac..3272d63348 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -421,7 +421,7 @@ import SettingsExternalApps from './SettingsExternalApps.vue' import SettingsInputFile from './SettingsInputFile.vue' import SettingsFontList from './SettingsFontList.vue' -import '@nextcloud/dialogs/dist/index.css' +import '@nextcloud/dialogs/style.css' import { getCallbackBaseUrl } from '../helpers/url.js' const SERVER_STATE_OK = 0 @@ -520,7 +520,7 @@ export default { }, fontHint() { return t('richdocuments', 'Make sure to set this URL: {url} in the coolwsd.xml file of your Collabora Online server to ensure the added fonts get loaded automatically.', - { url: this.fontHintUrl } + { url: this.fontHintUrl }, ) }, fontXmlHint() { @@ -719,7 +719,7 @@ export default { try { const result = await axios.post( generateFilePath('richdocuments', 'ajax', 'admin.php'), - data + data, ) this.updating = false diff --git a/src/components/SettingsSelectGroup.vue b/src/components/SettingsSelectGroup.vue index 61eb6f5dec..e20bd52ba6 100644 --- a/src/components/SettingsSelectGroup.vue +++ b/src/components/SettingsSelectGroup.vue @@ -110,7 +110,7 @@ export default { } } return this.groups[id] - } + }, ) }, update() { diff --git a/src/components/SettingsSelectTag.vue b/src/components/SettingsSelectTag.vue index 364ca51b15..ca649ed59d 100644 --- a/src/components/SettingsSelectTag.vue +++ b/src/components/SettingsSelectTag.vue @@ -188,7 +188,7 @@ export default { }, getValueObject() { return this.value.filter((tag) => tag !== '').map( - (id) => this.tags.find((tag) => tag.id === id) + (id) => this.tags.find((tag) => tag.id === id), ) }, update() { diff --git a/src/document.js b/src/document.js index 00e4d51362..fdd8901b62 100644 --- a/src/document.js +++ b/src/document.js @@ -392,7 +392,7 @@ const documentsMain = { title += `_${version}` } documentsMain.UI.showViewer( - fileId, title + fileId, title, ) } break @@ -463,7 +463,7 @@ const documentsMain = { case 'rev-history': documentsMain.UI.loadRevViewerContainer() documentsMain.UI.showViewer( - documentsMain.fileId, documentsMain.title + documentsMain.fileId, documentsMain.title, ) break case 'RD_Version_Restored': @@ -516,7 +516,7 @@ const documentsMain = { }, true, t('richdocuments', 'New filename'), - false + false, ).then(function() { const $dialog = $('.oc-dialog:visible') const $buttons = $dialog.find('.oc-dialog-buttonrow button') @@ -575,7 +575,7 @@ const documentsMain = { } documentsMain.openingLocally = true PostMessages.sendWOPIPostMessage('loolframe', 'Get_Views') - } + }, ) }, @@ -606,7 +606,7 @@ const documentsMain = { axios.post( OC.linkToOCS('apps/files/api/v1', 2) + 'openlocaleditor?format=json', - { path: documentsMain.fullPath } + { path: documentsMain.fullPath }, ).then((result) => { const url = 'nc://open/' + Config.get('userId') + '@' + getNextcloudUrl() @@ -633,7 +633,7 @@ const documentsMain = { _window.location = url this.showOpenLocalConfirmation(url, _window) } - } + }, ) }, diff --git a/src/files.js b/src/files.js index 92f2a50a3e..6e0821f713 100644 --- a/src/files.js +++ b/src/files.js @@ -60,7 +60,7 @@ const odfViewer = { timeout: 0, }) } - } + }, ) return } @@ -293,7 +293,7 @@ addEventListener('DOMContentLoaded', () => { }) odfViewer.onClose() OC.Notification.showTemporary(t('richdocuments', 'Failed to connect to {productName}. Please try again later or contact your server administrator.', - { productName: OC.getCapabilities().richdocuments.productName } + { productName: OC.getCapabilities().richdocuments.productName }, )) } break diff --git a/src/helpers/types.js b/src/helpers/types.js index 4b642e6c48..a0caed4374 100644 --- a/src/helpers/types.js +++ b/src/helpers/types.js @@ -1,4 +1,3 @@ - /* * @copyright Copyright (c) 2019 Julius Härtl * diff --git a/src/helpers/url.js b/src/helpers/url.js index e83e406691..09d637628c 100644 --- a/src/helpers/url.js +++ b/src/helpers/url.js @@ -71,7 +71,7 @@ const getDocumentUrlFromTemplate = (templateId, fileName, fileDir, fillWithTempl fileName, dir: fileDir, requesttoken: OC.requestToken, - } + }, ) } @@ -83,7 +83,7 @@ const getDocumentUrlForPublicFile = (fileName, fileId) => { fileName, fileId, requesttoken: OC.requestToken, - } + }, ) } diff --git a/src/mixins/saveAs.js b/src/mixins/saveAs.js index 0eca26b5a6..4c7de34a3e 100644 --- a/src/mixins/saveAs.js +++ b/src/mixins/saveAs.js @@ -33,7 +33,7 @@ export default { }, true, t('richdocuments', 'New filename'), - false + false, ).then(() => { const $dialog = $('.oc-dialog:visible') const $buttons = $dialog.find('.oc-dialog-buttonrow button') diff --git a/src/view/FilesAppIntegration.js b/src/view/FilesAppIntegration.js index 6b9ff0c9c2..61ca1717f7 100644 --- a/src/view/FilesAppIntegration.js +++ b/src/view/FilesAppIntegration.js @@ -482,7 +482,7 @@ export default { }, true, t('richdocuments', 'New filename'), - false + false, ).then(function() { const $dialog = parent.$('.oc-dialog:visible') const $buttons = $dialog.find('button') @@ -565,7 +565,7 @@ export default { OCP.Files.Router.name, { ...OCP.Files.Router.params, fileid: fileId }, OCP.Files.Router.query, - true + true, ) },