From 234b9759c5691182d7a426d49329c6132c08ea9f Mon Sep 17 00:00:00 2001 From: Devlin Junker Date: Thu, 10 Nov 2022 18:28:09 -0800 Subject: fix linting Signed-off-by: Devlin Junker --- .editorconfig | 2 +- css/explore.css | 57 +++++++++++++++++++++++----------------- src/components/AdminSettings.vue | 2 +- src/main-admin.js | 6 ++--- 4 files changed, 38 insertions(+), 29 deletions(-) diff --git a/.editorconfig b/.editorconfig index bac177253..cc94165ab 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,7 @@ trim_trailing_whitespace = true end_of_line = lf insert_final_newline = true -[*.{php,html}] +[*.{php,html,css}] indent_style = space indent_size = 4 charset = utf-8 diff --git a/css/explore.css b/css/explore.css index 03efb07b0..b9894e425 100644 --- a/css/explore.css +++ b/css/explore.css @@ -8,50 +8,59 @@ * @copyright 2020, Jan C. Borchardt, https://jancborchardt.net * @copyright Bernhard Posselt 2014 */ + /** * Explore styles */ .explore #app-content-wrapper { - height: 100%; + height: 100%; } #explore { - height: 100%; - width: 100%; - padding: 45px 0 45px 45px; + height: 100%; + width: 100%; + padding: 45px 0 45px 45px; } + #explore .grid-item { - width: 300px; - border: 2px solid var(--color-border); - border-radius: var(--border-radius-large); - margin: 0 24px 24px 0; - padding: 24px; + width: 300px; + border: 2px solid var(--color-border); + border-radius: var(--border-radius-large); + margin: 0 24px 24px 0; + padding: 24px; } + #explore .grid-item .explore-title { - background-repeat: no-repeat; - background-position: 0 center; - background-size: 24px; - padding-left: 32px; + background-repeat: no-repeat; + background-position: 0 center; + background-size: 24px; + padding-left: 32px; } + #explore .grid-item .explore-title a { - word-wrap: break-word; + word-wrap: break-word; } -#explore .grid-item .explore-title a:hover, #explore .grid-item .explore-title a:focus { - text-decoration: underline; + +#explore .grid-item .explore-title a:hover, +#explore .grid-item .explore-title a:focus { + text-decoration: underline; } + #explore .grid-item .explore-logo { - text-align: center; - margin-top: 25px; + text-align: center; + margin-top: 25px; } + #explore .grid-item .explore-logo img { - width: 100%; + width: 100%; } + #explore .grid-item .explore-subscribe { - margin-top: 16px; - max-width: 100%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + margin-top: 16px; + max-width: 100%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } /*# sourceMappingURL=explore.css.map */ diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index 5be7a6823..ee14dc005 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -57,7 +57,7 @@ SPDX-Licence-Identifier: AGPL-3.0-or-later import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js' import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js' -import { loadState } from '@nextcloud/initial-state' +// import { loadState } from '@nextcloud/initial-state' import { showError, showSuccess } from '@nextcloud/dialogs' import axios from '@nextcloud/axios' import { generateOcsUrl } from '@nextcloud/router' diff --git a/src/main-admin.js b/src/main-admin.js index c5883565e..8df148f3c 100644 --- a/src/main-admin.js +++ b/src/main-admin.js @@ -2,13 +2,13 @@ // SPDX-Licence-Identifier: AGPL-3.0-or-later import Vue from 'vue' -import { getRequestToken } from '@nextcloud/auth' -import { translate as t } from '@nextcloud/l10n' +// import { getRequestToken } from '@nextcloud/auth' +// import { translate as t } from '@nextcloud/l10n' import AdminSettings from './components/AdminSettings.vue' // eslint-disable-next-line -__webpack_nonce__ = btoa(getRequestToken()) +__webpack_nonce__ = btoa(getRequestToken()); Vue.mixin({ methods: { -- cgit v1.2.3