diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-03-23 07:38:34 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-03-23 08:14:19 +0100 |
commit | 8633f13e0af8c803cd419af2a611c41708e9c7c1 (patch) | |
tree | 41a081d0162fa7cf60a83aab18be6976f0b1d795 /core/src | |
parent | 5adfec3dc60636fe2da5577dee5299ec0fd9195c (diff) | |
download | nextcloud-server-8633f13e0af8c803cd419af2a611c41708e9c7c1.tar.gz nextcloud-server-8633f13e0af8c803cd419af2a611c41708e9c7c1.zip |
chore(eslint): fix missing import extensions
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src')
35 files changed, 115 insertions, 115 deletions
diff --git a/core/src/OC/appconfig.js b/core/src/OC/appconfig.js index 4b03f8db5fb..551259bd46c 100644 --- a/core/src/OC/appconfig.js +++ b/core/src/OC/appconfig.js @@ -26,7 +26,7 @@ */ /* eslint-disable */ - import { getValue, setValue, getApps, getKeys, deleteKey } from '../OCP/appconfig' + import { getValue, setValue, getApps, getKeys, deleteKey } from '../OCP/appconfig.js' export const appConfig = window.oc_appconfig || {} diff --git a/core/src/OC/appsettings.js b/core/src/OC/appsettings.js index a81708ca461..ee41b7c6f85 100644 --- a/core/src/OC/appsettings.js +++ b/core/src/OC/appsettings.js @@ -23,7 +23,7 @@ /* eslint-disable */ import $ from 'jquery' -import { filePath } from './routing' +import { filePath } from './routing.js' import { generateFilePath } from "@nextcloud/router" /** diff --git a/core/src/OC/backbone.js b/core/src/OC/backbone.js index 17ef1c87109..5d93ce21428 100644 --- a/core/src/OC/backbone.js +++ b/core/src/OC/backbone.js @@ -22,7 +22,7 @@ */ import VendorBackbone from 'backbone' -import { davCall, davSync } from './backbone-webdav' +import { davCall, davSync } from './backbone-webdav.js' const Backbone = VendorBackbone.noConflict() diff --git a/core/src/OC/contactsmenu.js b/core/src/OC/contactsmenu.js index 58d319a03c0..b915a3f160c 100644 --- a/core/src/OC/contactsmenu.js +++ b/core/src/OC/contactsmenu.js @@ -27,7 +27,7 @@ import _ from 'underscore' import $ from 'jquery' import { Collection, Model, View } from 'backbone' -import OC from './index' +import OC from './index.js' /** * @class Contact diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 91b0e2fffea..45e9e99049d 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -47,9 +47,9 @@ import _ from 'underscore' import $ from 'jquery' -import OC from './index' -import OCA from '../OCA/index' -import { isA11yActivation } from '../Util/a11y' +import OC from './index.js' +import OCA from '../OCA/index.js' +import { isA11yActivation } from '../Util/a11y.js' /** * this class to ease the usage of jquery dialogs diff --git a/core/src/OC/eventsource.js b/core/src/OC/eventsource.js index 537d68cb434..940b25655e4 100644 --- a/core/src/OC/eventsource.js +++ b/core/src/OC/eventsource.js @@ -29,7 +29,7 @@ /* eslint-disable */ import $ from 'jquery' -import { getToken } from './requesttoken' +import { getToken } from './requesttoken.js' /** * Create a new event source diff --git a/core/src/OC/index.js b/core/src/OC/index.js index 4ab535711ba..cc70bb550a7 100644 --- a/core/src/OC/index.js +++ b/core/src/OC/index.js @@ -24,17 +24,17 @@ import { subscribe } from '@nextcloud/event-bus' -import { addScript, addStyle } from './legacy-loader' +import { addScript, addStyle } from './legacy-loader.js' import { ajaxConnectionLostHandler, processAjaxError, registerXHRForErrorProcessing, -} from './xhr-error' -import Apps from './apps' -import { AppConfig, appConfig } from './appconfig' -import { appSettings } from './appsettings' -import appswebroots from './appswebroots' -import Backbone from './backbone' +} from './xhr-error.js' +import Apps from './apps.js' +import { AppConfig, appConfig } from './appconfig.js' +import { appSettings } from './appsettings.js' +import appswebroots from './appswebroots.js' +import Backbone from './backbone.js' import { basename, dirname, @@ -45,8 +45,8 @@ import { import { build as buildQueryString, parse as parseQueryString, -} from './query-string' -import Config from './config' +} from './query-string.js' +import Config from './config.js' import { coreApps, menuSpeed, @@ -58,30 +58,30 @@ import { PERMISSION_SHARE, PERMISSION_UPDATE, TAG_FAVORITE, -} from './constants' -import ContactsMenu from './contactsmenu' -import { currentUser, getCurrentUser } from './currentuser' -import Dialogs from './dialogs' -import EventSource from './eventsource' -import { get, set } from './get_set' -import { getCapabilities } from './capabilities' +} from './constants.js' +import ContactsMenu from './contactsmenu.js' +import { currentUser, getCurrentUser } from './currentuser.js' +import Dialogs from './dialogs.js' +import EventSource from './eventsource.js' +import { get, set } from './get_set.js' +import { getCapabilities } from './capabilities.js' import { getHost, getHostName, getPort, getProtocol, -} from './host' +} from './host.js' import { getToken as getRequestToken, -} from './requesttoken' +} from './requesttoken.js' import { hideMenus, registerMenu, showMenu, unregisterMenu, -} from './menu' -import { isUserAdmin } from './admin' -import L10N from './l10n' +} from './menu.js' +import { isUserAdmin } from './admin.js' +import L10N from './l10n.js' import { getCanonicalLocale, getLanguage, @@ -100,16 +100,16 @@ import { import { linkToRemoteBase, -} from './routing' -import msg from './msg' -import Notification from './notification' -import PasswordConfirmation from './password-confirmation' -import Plugins from './plugins' -import { theme } from './theme' -import Util from './util' -import { debug } from './debug' -import { redirect, reload } from './navigation' -import webroot from './webroot' +} from './routing.js' +import msg from './msg.js' +import Notification from './notification.js' +import PasswordConfirmation from './password-confirmation.js' +import Plugins from './plugins.js' +import { theme } from './theme.js' +import Util from './util.js' +import { debug } from './debug.js' +import { redirect, reload } from './navigation.js' +import webroot from './webroot.js' /** @namespace OC */ export default { diff --git a/core/src/OC/menu.js b/core/src/OC/menu.js index 7d4d2f91a6c..efa917decd2 100644 --- a/core/src/OC/menu.js +++ b/core/src/OC/menu.js @@ -26,7 +26,7 @@ import _ from 'underscore' /** @typedef {import('jquery')} jQuery */ import $ from 'jquery' -import { menuSpeed } from './constants' +import { menuSpeed } from './constants.js' export let currentMenu = null export let currentMenuToggle = null diff --git a/core/src/OC/password-confirmation.js b/core/src/OC/password-confirmation.js index 4aa643c19fb..45939efd227 100644 --- a/core/src/OC/password-confirmation.js +++ b/core/src/OC/password-confirmation.js @@ -27,7 +27,7 @@ import $ from 'jquery' import moment from 'moment' import { generateUrl } from '@nextcloud/router' -import OC from './index' +import OC from './index.js' /** * @namespace OC.PasswordConfirmation diff --git a/core/src/OC/util-history.js b/core/src/OC/util-history.js index a7398b4a2fc..d18b8743936 100644 --- a/core/src/OC/util-history.js +++ b/core/src/OC/util-history.js @@ -22,7 +22,7 @@ */ import _ from 'underscore' -import OC from './index' +import OC from './index.js' /** * Utility class for the history API, diff --git a/core/src/OC/util.js b/core/src/OC/util.js index 27485115f8d..8a50808b5cb 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -23,8 +23,8 @@ import moment from 'moment' -import History from './util-history' -import OC from './index' +import History from './util-history.js' +import OC from './index.js' import { formatFileSize as humanFileSize } from '@nextcloud/files' /** diff --git a/core/src/OC/xhr-error.js b/core/src/OC/xhr-error.js index 990340a1fda..a346daa6984 100644 --- a/core/src/OC/xhr-error.js +++ b/core/src/OC/xhr-error.js @@ -24,8 +24,8 @@ import _ from 'underscore' import $ from 'jquery' -import OC from './index' -import Notification from './notification' +import OC from './index.js' +import Notification from './notification.js' /** * Warn users that the connection to the server was lost temporarily diff --git a/core/src/OCA/index.js b/core/src/OCA/index.js index 1fde0dc5918..aefc85bdb72 100644 --- a/core/src/OCA/index.js +++ b/core/src/OCA/index.js @@ -20,7 +20,7 @@ * */ -import Search from './search' +import Search from './search.js' /** * Namespace for apps diff --git a/core/src/OCP/appconfig.js b/core/src/OCP/appconfig.js index 57e13048fe0..5bd8ca9efae 100644 --- a/core/src/OCP/appconfig.js +++ b/core/src/OCP/appconfig.js @@ -24,7 +24,7 @@ import $ from 'jquery' import { generateOcsUrl } from '@nextcloud/router' -import OC from '../OC/index' +import OC from '../OC/index.js' /** * @param {string} method 'post' or 'delete' diff --git a/core/src/OCP/index.js b/core/src/OCP/index.js index 12766ad4977..aee37d17030 100644 --- a/core/src/OCP/index.js +++ b/core/src/OCP/index.js @@ -24,14 +24,14 @@ import { loadState } from '@nextcloud/initial-state' -import * as AppConfig from './appconfig' -import * as Comments from './comments' -import * as WhatsNew from './whatsnew' +import * as AppConfig from './appconfig.js' +import * as Comments from './comments.js' +import * as WhatsNew from './whatsnew.js' -import Accessibility from './accessibility' -import Collaboration from './collaboration' -import Loader from './loader' -import Toast from './toast' +import Accessibility from './accessibility.js' +import Collaboration from './collaboration.js' +import Loader from './loader.js' +import Toast from './toast.js' /** @namespace OCP */ export default { diff --git a/core/src/components/AppMenu.vue b/core/src/components/AppMenu.vue index ed3a6293c57..9955663947e 100644 --- a/core/src/components/AppMenu.vue +++ b/core/src/components/AppMenu.vue @@ -64,8 +64,8 @@ <script> import { loadState } from '@nextcloud/initial-state' import { subscribe, unsubscribe } from '@nextcloud/event-bus' -import NcActions from '@nextcloud/vue/dist/Components/NcActions' -import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' export default { name: 'AppMenu', diff --git a/core/src/components/UnifiedSearch/SearchResult.vue b/core/src/components/UnifiedSearch/SearchResult.vue index 82491e42168..03496fc5d92 100644 --- a/core/src/components/UnifiedSearch/SearchResult.vue +++ b/core/src/components/UnifiedSearch/SearchResult.vue @@ -59,7 +59,7 @@ </template> <script> -import NcHighlight from '@nextcloud/vue/dist/Components/NcHighlight' +import NcHighlight from '@nextcloud/vue/dist/Components/NcHighlight.js' export default { name: 'SearchResult', diff --git a/core/src/components/login/LoginButton.vue b/core/src/components/login/LoginButton.vue index 3d3ac25de6d..54c29245469 100644 --- a/core/src/components/login/LoginButton.vue +++ b/core/src/components/login/LoginButton.vue @@ -33,7 +33,7 @@ </template> <script> -import NcButton from '@nextcloud/vue/dist/Components/NcButton' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import ArrowRight from 'vue-material-design-icons/ArrowRight.vue' export default { diff --git a/core/src/components/login/PasswordLessLoginForm.vue b/core/src/components/login/PasswordLessLoginForm.vue index 455017b8683..0a8d09d1560 100644 --- a/core/src/components/login/PasswordLessLoginForm.vue +++ b/core/src/components/login/PasswordLessLoginForm.vue @@ -48,10 +48,10 @@ import { startAuthentication, finishAuthentication, -} from '../../services/WebAuthnAuthenticationService' -import LoginButton from './LoginButton' -import InformationIcon from 'vue-material-design-icons/Information' -import LockOpenIcon from 'vue-material-design-icons/LockOpen' +} from '../../services/WebAuthnAuthenticationService.js' +import LoginButton from './LoginButton.vue' +import InformationIcon from 'vue-material-design-icons/Information.vue' +import LockOpenIcon from 'vue-material-design-icons/LockOpen.vue' class NoValidCredentials extends Error { diff --git a/core/src/components/setup/RecommendedApps.vue b/core/src/components/setup/RecommendedApps.vue index 8032d1dbdc9..984a6800475 100644 --- a/core/src/components/setup/RecommendedApps.vue +++ b/core/src/components/setup/RecommendedApps.vue @@ -80,9 +80,9 @@ import { loadState } from '@nextcloud/initial-state' import pLimit from 'p-limit' import { translate as t } from '@nextcloud/l10n' -import NcButton from '@nextcloud/vue/dist/Components/NcButton' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' -import logger from '../../logger' +import logger from '../../logger.js' const recommended = { calendar: { diff --git a/core/src/globals.js b/core/src/globals.js index 98bb6f64db8..8d60bde6eb0 100644 --- a/core/src/globals.js +++ b/core/src/globals.js @@ -24,20 +24,20 @@ */ /* eslint-disable @nextcloud/no-deprecations */ -import { initCore } from './init' +import { initCore } from './init.js' import _ from 'underscore' import $ from 'jquery' -import 'jquery-migrate/dist/jquery-migrate.min' +import 'jquery-migrate/dist/jquery-migrate.min.js' // TODO: switch to `jquery-ui` package and import widgets and effects individually // `jquery-ui-dist` is used as a workaround for the issue of missing effects -import 'jquery-ui-dist/jquery-ui' +import 'jquery-ui-dist/jquery-ui.js' import 'jquery-ui-dist/jquery-ui.css' import 'jquery-ui-dist/jquery-ui.theme.css' // END TODO import autosize from 'autosize' import Backbone from 'backbone' -import './Polyfill/tooltip' +import './Polyfill/tooltip.js' import ClipboardJS from 'clipboard' import { dav } from 'davclient.js' import Handlebars from 'handlebars' @@ -45,14 +45,14 @@ import md5 from 'blueimp-md5' import moment from 'moment' import 'select2' import 'select2/select2.css' -import 'snap.js/dist/snap' +import 'snap.js/dist/snap.js' import 'strengthify' import 'strengthify/strengthify.css' -import OC from './OC/index' -import OCP from './OCP/index' -import OCA from './OCA/index' -import { getToken as getRequestToken } from './OC/requesttoken' +import OC from './OC/index.js' +import OCP from './OCP/index.js' +import OCA from './OCA/index.js' +import { getToken as getRequestToken } from './OC/requesttoken.js' const warnIfNotTesting = function() { if (window.TESTING === undefined) { diff --git a/core/src/install.js b/core/src/install.js index 9892e45f8b6..e8432de42b0 100644 --- a/core/src/install.js +++ b/core/src/install.js @@ -24,16 +24,16 @@ import $ from 'jquery' import { translate as t } from '@nextcloud/l10n' -import { getToken } from './OC/requesttoken' -import getURLParameter from './Util/get-url-parameter' +import { getToken } from './OC/requesttoken.js' +import getURLParameter from './Util/get-url-parameter.js' -import './jquery/showpassword' +import './jquery/showpassword.js' -import 'jquery-ui/ui/widgets/button' +import 'jquery-ui/ui/widgets/button.js' import 'jquery-ui/themes/base/theme.css' import 'jquery-ui/themes/base/button.css' -import './Polyfill/tooltip' +import './Polyfill/tooltip.js' import 'strengthify' import 'strengthify/strengthify.css' diff --git a/core/src/jquery/avatar.js b/core/src/jquery/avatar.js index 12fcc7264ae..1d86e54e9d3 100644 --- a/core/src/jquery/avatar.js +++ b/core/src/jquery/avatar.js @@ -23,7 +23,7 @@ import $ from 'jquery' -import OC from '../OC' +import OC from '../OC/index.js' /** * This plugin inserts the right avatar for the user, depending on, whether a diff --git a/core/src/jquery/contactsmenu.js b/core/src/jquery/contactsmenu.js index 2cf2daec570..4026f48068d 100644 --- a/core/src/jquery/contactsmenu.js +++ b/core/src/jquery/contactsmenu.js @@ -24,7 +24,7 @@ import $ from 'jquery' -import OC from '../OC' +import OC from '../OC/index.js' import { isA11yActivation } from '../Util/a11y.js' const LIST = '' diff --git a/core/src/jquery/index.js b/core/src/jquery/index.js index 305b038ce37..c0716890cb3 100644 --- a/core/src/jquery/index.js +++ b/core/src/jquery/index.js @@ -24,17 +24,17 @@ import $ from 'jquery' -import './avatar' -import './contactsmenu' -import './exists' -import './filterattr' -import './ocdialog' -import './octemplate' -import './placeholder' -import './requesttoken' -import './selectrange' -import './showpassword' -import './ui-fixes' +import './avatar.js' +import './contactsmenu.js' +import './exists.js' +import './filterattr.js' +import './ocdialog.js' +import './octemplate.js' +import './placeholder.js' +import './requesttoken.js' +import './selectrange.js' +import './showpassword.js' +import './ui-fixes.js' import './css/jquery-ui-fixes.scss' import './css/jquery.ocdialog.scss' diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js index 9ba54d868c3..63b8082da06 100644 --- a/core/src/jquery/ocdialog.js +++ b/core/src/jquery/ocdialog.js @@ -24,7 +24,7 @@ */ import $ from 'jquery' -import { isA11yActivation } from '../Util/a11y' +import { isA11yActivation } from '../Util/a11y.js' $.widget('oc.ocdialog', { options: { diff --git a/core/src/jquery/requesttoken.js b/core/src/jquery/requesttoken.js index 07524966994..68858aa1534 100644 --- a/core/src/jquery/requesttoken.js +++ b/core/src/jquery/requesttoken.js @@ -23,7 +23,7 @@ import $ from 'jquery' -import { getToken } from '../OC/requesttoken' +import { getToken } from '../OC/requesttoken.js' $(document).on('ajaxSend', function(elm, xhr, settings) { if (settings.crossDomain === false) { diff --git a/core/src/login.js b/core/src/login.js index 6757c5e7bdd..964b26520ec 100644 --- a/core/src/login.js +++ b/core/src/login.js @@ -26,9 +26,9 @@ import Vue from 'vue' // eslint-disable-next-line no-unused-vars -import OC from './OC/index' // TODO: Not needed but L10n breaks if removed +import OC from './OC/index.js' // TODO: Not needed but L10n breaks if removed import LoginView from './views/Login.vue' -import Nextcloud from './mixins/Nextcloud' +import Nextcloud from './mixins/Nextcloud.js' Vue.mixin(Nextcloud) diff --git a/core/src/main.js b/core/src/main.js index ec23171b6ea..f76d4f0b8e1 100644 --- a/core/src/main.js +++ b/core/src/main.js @@ -24,8 +24,8 @@ */ import $ from 'jquery' -import 'core-js/stable' -import 'regenerator-runtime/runtime' +import 'core-js/stable/index.js' +import 'regenerator-runtime/runtime.js' import './Polyfill/index.js' // If you remove the line below, tests won't pass diff --git a/core/src/mixins/Nextcloud.js b/core/src/mixins/Nextcloud.js index 7fda65d3d9d..4cef2b9b09e 100644 --- a/core/src/mixins/Nextcloud.js +++ b/core/src/mixins/Nextcloud.js @@ -20,8 +20,8 @@ * */ -import L10n from '../OC/l10n' -import OC from '../OC/index' +import L10n from '../OC/l10n.js' +import OC from '../OC/index.js' export default { data() { diff --git a/core/src/recommendedapps.js b/core/src/recommendedapps.js index 89e8b930827..31179a5a4ad 100644 --- a/core/src/recommendedapps.js +++ b/core/src/recommendedapps.js @@ -24,8 +24,8 @@ import { getRequestToken } from '@nextcloud/auth' import { translate as t } from '@nextcloud/l10n' import Vue from 'vue' -import logger from './logger' -import RecommendedApps from './components/setup/RecommendedApps' +import logger from './logger.js' +import RecommendedApps from './components/setup/RecommendedApps.vue' // eslint-disable-next-line camelcase __webpack_nonce__ = btoa(getRequestToken()) diff --git a/core/src/session-heartbeat.js b/core/src/session-heartbeat.js index 4a15d7d2de9..153408b767b 100644 --- a/core/src/session-heartbeat.js +++ b/core/src/session-heartbeat.js @@ -29,8 +29,8 @@ import { loadState } from '@nextcloud/initial-state' import { getCurrentUser } from '@nextcloud/auth' import { generateUrl } from '@nextcloud/router' -import OC from './OC' -import { setToken as setRequestToken, getToken as getRequestToken } from './OC/requesttoken' +import OC from './OC/index.js' +import { setToken as setRequestToken, getToken as getRequestToken } from './OC/requesttoken.js' let config = null /** diff --git a/core/src/tests/OC/requesttoken.spec.js b/core/src/tests/OC/requesttoken.spec.js index 741dc65746b..57a3d4de3c1 100644 --- a/core/src/tests/OC/requesttoken.spec.js +++ b/core/src/tests/OC/requesttoken.spec.js @@ -24,7 +24,7 @@ import { subscribe, unsubscribe } from '@nextcloud/event-bus' -import { manageToken, setToken } from '../../OC/requesttoken' +import { manageToken, setToken } from '../../OC/requesttoken.js' describe('request token', () => { diff --git a/core/src/views/Profile.vue b/core/src/views/Profile.vue index c7571fff148..4d83421673a 100644 --- a/core/src/views/Profile.vue +++ b/core/src/views/Profile.vue @@ -155,14 +155,14 @@ import { loadState } from '@nextcloud/initial-state' import { generateUrl } from '@nextcloud/router' import { showError } from '@nextcloud/dialogs' -import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar' -import NcActions from '@nextcloud/vue/dist/Components/NcActions' -import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink' -import MapMarkerIcon from 'vue-material-design-icons/MapMarker' -import PencilIcon from 'vue-material-design-icons/Pencil' -import AccountIcon from 'vue-material-design-icons/Account' - -import PrimaryActionButton from '../components/Profile/PrimaryActionButton' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' +import MapMarkerIcon from 'vue-material-design-icons/MapMarker.vue' +import PencilIcon from 'vue-material-design-icons/Pencil.vue' +import AccountIcon from 'vue-material-design-icons/Account.vue' + +import PrimaryActionButton from '../components/Profile/PrimaryActionButton.vue' const status = loadState('core', 'status', {}) const { diff --git a/core/src/views/UnsupportedBrowser.vue b/core/src/views/UnsupportedBrowser.vue index e46c64da24c..868651a1668 100644 --- a/core/src/views/UnsupportedBrowser.vue +++ b/core/src/views/UnsupportedBrowser.vue @@ -51,8 +51,8 @@ import { generateUrl } from '@nextcloud/router' import { translate as t, translatePlural as n } from '@nextcloud/l10n' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' -import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent' -import Web from 'vue-material-design-icons/Web' +import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js' +import Web from 'vue-material-design-icons/Web.vue' import { browserStorageKey } from '../utils/RedirectUnsupportedBrowsers.js' import { supportedBrowsers } from '../services/BrowsersListService.js' |