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 /apps/files_sharing/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 'apps/files_sharing/src')
20 files changed, 72 insertions, 72 deletions
diff --git a/apps/files_sharing/src/additionalScripts.js b/apps/files_sharing/src/additionalScripts.js index 6cc039a876a..2ed4d86b64d 100644 --- a/apps/files_sharing/src/additionalScripts.js +++ b/apps/files_sharing/src/additionalScripts.js @@ -22,8 +22,8 @@ * */ -import './share' -import './sharebreadcrumbview' +import './share.js' +import './sharebreadcrumbview.js' import './style/sharebreadcrumb.scss' import './collaborationresourceshandler.js' diff --git a/apps/files_sharing/src/collaborationresources.js b/apps/files_sharing/src/collaborationresources.js index 1e6eda02a93..0175993a2f1 100644 --- a/apps/files_sharing/src/collaborationresources.js +++ b/apps/files_sharing/src/collaborationresources.js @@ -23,11 +23,11 @@ import Vue from 'vue' import Vuex from 'vuex' -import NcPopoverMenu from '@nextcloud/vue/dist/Components/NcPopoverMenu' -import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip' +import NcPopoverMenu from '@nextcloud/vue/dist/Components/NcPopoverMenu.js' +import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' import ClickOutside from 'vue-click-outside' -import View from './views/CollaborationView' +import View from './views/CollaborationView.vue' Vue.prototype.t = t Tooltip.options.defaultHtml = false diff --git a/apps/files_sharing/src/components/ExternalShareAction.vue b/apps/files_sharing/src/components/ExternalShareAction.vue index 39caa1260c8..02b9eadd6e9 100644 --- a/apps/files_sharing/src/components/ExternalShareAction.vue +++ b/apps/files_sharing/src/components/ExternalShareAction.vue @@ -29,7 +29,7 @@ </template> <script> -import Share from '../models/Share' +import Share from '../models/Share.js' export default { name: 'ExternalShareAction', diff --git a/apps/files_sharing/src/components/PersonalSettings.vue b/apps/files_sharing/src/components/PersonalSettings.vue index 526bee07324..71a439d72b5 100644 --- a/apps/files_sharing/src/components/PersonalSettings.vue +++ b/apps/files_sharing/src/components/PersonalSettings.vue @@ -43,7 +43,7 @@ import { loadState } from '@nextcloud/initial-state' import { showError } from '@nextcloud/dialogs' import axios from '@nextcloud/axios' -import SelectShareFolderDialogue from './SelectShareFolderDialogue' +import SelectShareFolderDialogue from './SelectShareFolderDialogue.vue' export default { name: 'PersonalSettings', diff --git a/apps/files_sharing/src/components/SharePermissionsEditor.vue b/apps/files_sharing/src/components/SharePermissionsEditor.vue index c5e652b2cda..41aec036baf 100644 --- a/apps/files_sharing/src/components/SharePermissionsEditor.vue +++ b/apps/files_sharing/src/components/SharePermissionsEditor.vue @@ -104,11 +104,11 @@ </template> <script> -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' -import NcActionRadio from '@nextcloud/vue/dist/Components/NcActionRadio' -import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActionRadio from '@nextcloud/vue/dist/Components/NcActionRadio.js' +import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox.js' -import SharesMixin from '../mixins/SharesMixin' +import SharesMixin from '../mixins/SharesMixin.js' import { ATOMIC_PERMISSIONS, BUNDLED_PERMISSIONS, @@ -116,10 +116,10 @@ import { permissionsSetIsValid, togglePermissions, canTogglePermissions, -} from '../lib/SharePermissionsToolBox' +} from '../lib/SharePermissionsToolBox.js' -import Tune from 'vue-material-design-icons/Tune' -import ChevronLeft from 'vue-material-design-icons/ChevronLeft' +import Tune from 'vue-material-design-icons/Tune.vue' +import ChevronLeft from 'vue-material-design-icons/ChevronLeft.vue' export default { name: 'SharePermissionsEditor', diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index 92527a8f14a..f39e55ccc51 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -137,12 +137,12 @@ </template> <script> -import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar' -import NcActions from '@nextcloud/vue/dist/Components/NcActions' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' -import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox' -import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput' -import NcActionTextEditable from '@nextcloud/vue/dist/Components/NcActionTextEditable' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox.js' +import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js' +import NcActionTextEditable from '@nextcloud/vue/dist/Components/NcActionTextEditable.js' import SharesMixin from '../mixins/SharesMixin.js' diff --git a/apps/files_sharing/src/components/SharingEntryInherited.vue b/apps/files_sharing/src/components/SharingEntryInherited.vue index dd53f4f637b..eb39597149a 100644 --- a/apps/files_sharing/src/components/SharingEntryInherited.vue +++ b/apps/files_sharing/src/components/SharingEntryInherited.vue @@ -48,15 +48,15 @@ <script> import { generateUrl } from '@nextcloud/router' import { basename } from '@nextcloud/paths' -import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' -import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink' -import NcActionText from '@nextcloud/vue/dist/Components/NcActionText' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' +import NcActionText from '@nextcloud/vue/dist/Components/NcActionText.js' // eslint-disable-next-line no-unused-vars -import Share from '../models/Share' -import SharesMixin from '../mixins/SharesMixin' -import SharingEntrySimple from '../components/SharingEntrySimple' +import Share from '../models/Share.js' +import SharesMixin from '../mixins/SharesMixin.js' +import SharingEntrySimple from '../components/SharingEntrySimple.vue' export default { name: 'SharingEntryInherited', diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue index d3b55d4991c..c7c75a6777f 100644 --- a/apps/files_sharing/src/components/SharingEntryInternal.vue +++ b/apps/files_sharing/src/components/SharingEntryInternal.vue @@ -22,8 +22,8 @@ <script> import { generateUrl } from '@nextcloud/router' import { showSuccess } from '@nextcloud/dialogs' -import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink' -import SharingEntrySimple from './SharingEntrySimple' +import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' +import SharingEntrySimple from './SharingEntrySimple.vue' export default { name: 'SharingEntryInternal', diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 7622efa6fac..e45690ba2a0 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -281,15 +281,15 @@ import { showError, showSuccess } from '@nextcloud/dialogs' import { Type as ShareTypes } from '@nextcloud/sharing' import Vue from 'vue' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' -import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox' -import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput' -import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink' -import NcActionText from '@nextcloud/vue/dist/Components/NcActionText' -import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator' -import NcActionTextEditable from '@nextcloud/vue/dist/Components/NcActionTextEditable' -import NcActions from '@nextcloud/vue/dist/Components/NcActions' -import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox.js' +import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js' +import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink.js' +import NcActionText from '@nextcloud/vue/dist/Components/NcActionText.js' +import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js' +import NcActionTextEditable from '@nextcloud/vue/dist/Components/NcActionTextEditable.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import ExternalShareAction from './ExternalShareAction.vue' import SharePermissionsEditor from './SharePermissionsEditor.vue' diff --git a/apps/files_sharing/src/components/SharingEntrySimple.vue b/apps/files_sharing/src/components/SharingEntrySimple.vue index 43a6172fb15..daff947fe80 100644 --- a/apps/files_sharing/src/components/SharingEntrySimple.vue +++ b/apps/files_sharing/src/components/SharingEntrySimple.vue @@ -40,7 +40,7 @@ </template> <script> -import NcActions from '@nextcloud/vue/dist/Components/NcActions' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' export default { name: 'SharingEntrySimple', diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index de6812c9569..fed2ee7b39a 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -52,11 +52,11 @@ import axios from '@nextcloud/axios' import debounce from 'debounce' import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js' -import Config from '../services/ConfigService' -import GeneratePassword from '../utils/GeneratePassword' -import Share from '../models/Share' -import ShareRequests from '../mixins/ShareRequests' -import ShareTypes from '../mixins/ShareTypes' +import Config from '../services/ConfigService.js' +import GeneratePassword from '../utils/GeneratePassword.js' +import Share from '../models/Share.js' +import ShareRequests from '../mixins/ShareRequests.js' +import ShareTypes from '../mixins/ShareTypes.js' export default { name: 'SharingInput', diff --git a/apps/files_sharing/src/files_sharing.js b/apps/files_sharing/src/files_sharing.js index 97174542458..0578da7f9c5 100644 --- a/apps/files_sharing/src/files_sharing.js +++ b/apps/files_sharing/src/files_sharing.js @@ -21,5 +21,5 @@ * */ -import '../js/app' -import '../js/sharedfilelist' +import '../js/app.js' +import '../js/sharedfilelist.js' diff --git a/apps/files_sharing/src/lib/SharePermissionsToolBox.spec.js b/apps/files_sharing/src/lib/SharePermissionsToolBox.spec.js index 7ae29c7134a..f66e5e7964b 100644 --- a/apps/files_sharing/src/lib/SharePermissionsToolBox.spec.js +++ b/apps/files_sharing/src/lib/SharePermissionsToolBox.spec.js @@ -29,7 +29,7 @@ import { permissionsSetIsValid, togglePermissions, canTogglePermissions, -} from '../lib/SharePermissionsToolBox' +} from '../lib/SharePermissionsToolBox.js' describe('SharePermissionsToolBox', () => { test('Adding permissions', () => { diff --git a/apps/files_sharing/src/mixins/ShareRequests.js b/apps/files_sharing/src/mixins/ShareRequests.js index 9eaad8c4161..4218eecc485 100644 --- a/apps/files_sharing/src/mixins/ShareRequests.js +++ b/apps/files_sharing/src/mixins/ShareRequests.js @@ -28,7 +28,7 @@ import 'url-search-params-polyfill' import { generateOcsUrl } from '@nextcloud/router' import axios from '@nextcloud/axios' -import Share from '../models/Share' +import Share from '../models/Share.js' const shareUrl = generateOcsUrl('apps/files_sharing/api/v1/shares') diff --git a/apps/files_sharing/src/personal-settings.js b/apps/files_sharing/src/personal-settings.js index afc35dc98dc..1142b6e5136 100644 --- a/apps/files_sharing/src/personal-settings.js +++ b/apps/files_sharing/src/personal-settings.js @@ -24,7 +24,7 @@ import Vue from 'vue' import { getRequestToken } from '@nextcloud/auth' -import PersonalSettings from './components/PersonalSettings' +import PersonalSettings from './components/PersonalSettings.vue' // eslint-disable-next-line camelcase __webpack_nonce__ = btoa(getRequestToken()) diff --git a/apps/files_sharing/src/utils/GeneratePassword.js b/apps/files_sharing/src/utils/GeneratePassword.js index 63cc68983a1..077f385d7d8 100644 --- a/apps/files_sharing/src/utils/GeneratePassword.js +++ b/apps/files_sharing/src/utils/GeneratePassword.js @@ -21,7 +21,7 @@ */ import axios from '@nextcloud/axios' -import Config from '../services/ConfigService' +import Config from '../services/ConfigService.js' import { showError, showSuccess } from '@nextcloud/dialogs' const config = new Config() diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue index b570b47e257..b61f65ae47a 100644 --- a/apps/files_sharing/src/views/SharingInherited.vue +++ b/apps/files_sharing/src/views/SharingInherited.vue @@ -47,12 +47,12 @@ <script> import { generateOcsUrl } from '@nextcloud/router' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import axios from '@nextcloud/axios' -import Share from '../models/Share' -import SharingEntryInherited from '../components/SharingEntryInherited' -import SharingEntrySimple from '../components/SharingEntrySimple' +import Share from '../models/Share.js' +import SharingEntryInherited from '../components/SharingEntryInherited.vue' +import SharingEntrySimple from '../components/SharingEntrySimple.vue' export default { name: 'SharingInherited', diff --git a/apps/files_sharing/src/views/SharingLinkList.vue b/apps/files_sharing/src/views/SharingLinkList.vue index ee7418c00d5..c3f1425cb70 100644 --- a/apps/files_sharing/src/views/SharingLinkList.vue +++ b/apps/files_sharing/src/views/SharingLinkList.vue @@ -46,9 +46,9 @@ <script> // eslint-disable-next-line no-unused-vars -import Share from '../models/Share' -import ShareTypes from '../mixins/ShareTypes' -import SharingEntryLink from '../components/SharingEntryLink' +import Share from '../models/Share.js' +import ShareTypes from '../mixins/ShareTypes.js' +import SharingEntryLink from '../components/SharingEntryLink.vue' export default { name: 'SharingLinkList', diff --git a/apps/files_sharing/src/views/SharingList.vue b/apps/files_sharing/src/views/SharingList.vue index 0635ad27635..05dc87d9b07 100644 --- a/apps/files_sharing/src/views/SharingList.vue +++ b/apps/files_sharing/src/views/SharingList.vue @@ -33,9 +33,9 @@ <script> // eslint-disable-next-line no-unused-vars -import Share from '../models/Share' -import SharingEntry from '../components/SharingEntry' -import ShareTypes from '../mixins/ShareTypes' +import Share from '../models/Share.js' +import SharingEntry from '../components/SharingEntry.vue' +import ShareTypes from '../mixins/ShareTypes.js' export default { name: 'SharingList', diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index ea25149b97e..bfaf8a766ee 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -87,21 +87,21 @@ <script> import { CollectionList } from 'nextcloud-vue-collections' import { generateOcsUrl } from '@nextcloud/router' -import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import axios from '@nextcloud/axios' import { loadState } from '@nextcloud/initial-state' -import Config from '../services/ConfigService' -import { shareWithTitle } from '../utils/SharedWithMe' -import Share from '../models/Share' -import ShareTypes from '../mixins/ShareTypes' -import SharingEntryInternal from '../components/SharingEntryInternal' -import SharingEntrySimple from '../components/SharingEntrySimple' -import SharingInput from '../components/SharingInput' - -import SharingInherited from './SharingInherited' -import SharingLinkList from './SharingLinkList' -import SharingList from './SharingList' +import Config from '../services/ConfigService.js' +import { shareWithTitle } from '../utils/SharedWithMe.js' +import Share from '../models/Share.js' +import ShareTypes from '../mixins/ShareTypes.js' +import SharingEntryInternal from '../components/SharingEntryInternal.vue' +import SharingEntrySimple from '../components/SharingEntrySimple.vue' +import SharingInput from '../components/SharingInput.vue' + +import SharingInherited from './SharingInherited.vue' +import SharingLinkList from './SharingLinkList.vue' +import SharingList from './SharingList.vue' export default { name: 'SharingTab', |