diff --git a/apps/comments/src/comments-app.js b/apps/comments/src/comments-app.js index c42481029ce..eca3deb8b24 100644 --- a/apps/comments/src/comments-app.js +++ b/apps/comments/src/comments-app.js @@ -20,7 +20,7 @@ * */ -import CommentsInstance from './services/CommentsInstance' +import CommentsInstance from './services/CommentsInstance.js' // Init Comments if (window.OCA && !window.OCA.Comments) { diff --git a/apps/comments/src/comments.js b/apps/comments/src/comments.js index 95e6d3d5dc7..076c42894e3 100644 --- a/apps/comments/src/comments.js +++ b/apps/comments/src/comments.js @@ -21,9 +21,9 @@ * */ -import './app' -import './templates' -import './filesplugin' -import './activitytabviewplugin' +import './app.js' +import './templates.js' +import './filesplugin.js' +import './activitytabviewplugin.js' window.OCA.Comments = OCA.Comments diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index df9a22a1709..0c9a8b1e418 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -104,17 +104,17 @@ import { getCurrentUser } from '@nextcloud/auth' import moment from '@nextcloud/moment' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' -import NcActions from '@nextcloud/vue/dist/Components/NcActions' -import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator' -import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar' -import NcButton from '@nextcloud/vue/dist/Components/NcButton' -import NcRichContenteditable from '@nextcloud/vue/dist/Components/NcRichContenteditable' -import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor' -import ArrowRight from 'vue-material-design-icons/ArrowRight' - -import Moment from './Moment' -import CommentMixin from '../mixins/CommentMixin' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcRichContenteditable from '@nextcloud/vue/dist/Components/NcRichContenteditable.js' +import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor.js' +import ArrowRight from 'vue-material-design-icons/ArrowRight.vue' + +import Moment from './Moment.vue' +import CommentMixin from '../mixins/CommentMixin.js' export default { name: 'Comment', diff --git a/apps/comments/src/mixins/CommentMixin.js b/apps/comments/src/mixins/CommentMixin.js index e029a4b589a..545625ab97e 100644 --- a/apps/comments/src/mixins/CommentMixin.js +++ b/apps/comments/src/mixins/CommentMixin.js @@ -20,9 +20,9 @@ * */ -import NewComment from '../services/NewComment' -import DeleteComment from '../services/DeleteComment' -import EditComment from '../services/EditComment' +import NewComment from '../services/NewComment.js' +import DeleteComment from '../services/DeleteComment.js' +import EditComment from '../services/EditComment.js' import { showError, showUndo, TOAST_UNDO_TIMEOUT } from '@nextcloud/dialogs' export default { diff --git a/apps/comments/src/services/CommentsInstance.js b/apps/comments/src/services/CommentsInstance.js index f5263f35c3d..82f1b77e15e 100644 --- a/apps/comments/src/services/CommentsInstance.js +++ b/apps/comments/src/services/CommentsInstance.js @@ -22,7 +22,7 @@ import { getLoggerBuilder } from '@nextcloud/logger' import { translate as t, translatePlural as n } from '@nextcloud/l10n' -import CommentsApp from '../views/Comments' +import CommentsApp from '../views/Comments.vue' import Vue from 'vue' const logger = getLoggerBuilder() diff --git a/apps/comments/src/services/DavClient.js b/apps/comments/src/services/DavClient.js index ee5aec129c1..6837ce90c56 100644 --- a/apps/comments/src/services/DavClient.js +++ b/apps/comments/src/services/DavClient.js @@ -23,7 +23,7 @@ import { createClient, getPatcher } from 'webdav' import axios from '@nextcloud/axios' -import { getRootPath } from '../utils/davUtils' +import { getRootPath } from '../utils/davUtils.js' // Add this so the server knows it is an request from the browser axios.defaults.headers['X-Requested-With'] = 'XMLHttpRequest' diff --git a/apps/comments/src/services/DeleteComment.js b/apps/comments/src/services/DeleteComment.js index 871f6b6c5b8..43d53129f72 100644 --- a/apps/comments/src/services/DeleteComment.js +++ b/apps/comments/src/services/DeleteComment.js @@ -20,7 +20,7 @@ * */ -import client from './DavClient' +import client from './DavClient.js' /** * Delete a comment diff --git a/apps/comments/src/services/EditComment.js b/apps/comments/src/services/EditComment.js index f3a2d857356..51d0d4cca65 100644 --- a/apps/comments/src/services/EditComment.js +++ b/apps/comments/src/services/EditComment.js @@ -20,7 +20,7 @@ * */ -import client from './DavClient' +import client from './DavClient.js' /** * Edit an existing comment diff --git a/apps/comments/src/services/GetComments.js b/apps/comments/src/services/GetComments.js index bf3dd31b5f1..4bdab9046a2 100644 --- a/apps/comments/src/services/GetComments.js +++ b/apps/comments/src/services/GetComments.js @@ -20,10 +20,10 @@ * */ -import { parseXML, prepareFileFromProps } from 'webdav/dist/node/tools/dav' -import { processResponsePayload } from 'webdav/dist/node/response' -import { decodeHtmlEntities } from '../utils/decodeHtmlEntities' -import client from './DavClient' +import { parseXML, prepareFileFromProps } from 'webdav/dist/node/tools/dav.js' +import { processResponsePayload } from 'webdav/dist/node/response.js' +import { decodeHtmlEntities } from '../utils/decodeHtmlEntities.js' +import client from './DavClient.js' export const DEFAULT_LIMIT = 20 /** diff --git a/apps/comments/src/services/NewComment.js b/apps/comments/src/services/NewComment.js index 27d227ed656..a7fb58e32fb 100644 --- a/apps/comments/src/services/NewComment.js +++ b/apps/comments/src/services/NewComment.js @@ -21,10 +21,10 @@ */ import { getCurrentUser } from '@nextcloud/auth' -import { getRootPath } from '../utils/davUtils' -import { decodeHtmlEntities } from '../utils/decodeHtmlEntities' +import { getRootPath } from '../utils/davUtils.js' +import { decodeHtmlEntities } from '../utils/decodeHtmlEntities.js' import axios from '@nextcloud/axios' -import client from './DavClient' +import client from './DavClient.js' /** * Retrieve the comments list diff --git a/apps/comments/src/views/Comments.vue b/apps/comments/src/views/Comments.vue index 288fe44e96b..855c9b2d4fa 100644 --- a/apps/comments/src/views/Comments.vue +++ b/apps/comments/src/views/Comments.vue @@ -86,11 +86,11 @@ import axios from '@nextcloud/axios' import VTooltip from 'v-tooltip' import Vue from 'vue' -import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent' -import NcButton from '@nextcloud/vue/dist/Components/NcButton' -import RefreshIcon from 'vue-material-design-icons/Refresh' -import MessageReplyTextIcon from 'vue-material-design-icons/MessageReplyText' -import AlertCircleOutlineIcon from 'vue-material-design-icons/AlertCircleOutline' +import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import RefreshIcon from 'vue-material-design-icons/Refresh.vue' +import MessageReplyTextIcon from 'vue-material-design-icons/MessageReplyText.vue' +import AlertCircleOutlineIcon from 'vue-material-design-icons/AlertCircleOutline.vue' import Comment from '../components/Comment.vue' import getComments, { DEFAULT_LIMIT } from '../services/GetComments.js' diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index 8d4785f1b69..4e238a51f6f 100644 --- a/apps/dashboard/src/DashboardApp.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -96,9 +96,9 @@ import { generateUrl } from '@nextcloud/router' import { getCurrentUser } from '@nextcloud/auth' import { loadState } from '@nextcloud/initial-state' import axios from '@nextcloud/axios' -import NcButton from '@nextcloud/vue/dist/Components/NcButton' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import Draggable from 'vuedraggable' -import NcModal from '@nextcloud/vue/dist/Components/NcModal' +import NcModal from '@nextcloud/vue/dist/Components/NcModal.js' import Pencil from 'vue-material-design-icons/Pencil.vue' import Vue from 'vue' diff --git a/apps/dashboard/src/main.js b/apps/dashboard/src/main.js index dc276959b11..53bff4a27bd 100644 --- a/apps/dashboard/src/main.js +++ b/apps/dashboard/src/main.js @@ -23,7 +23,7 @@ import Vue from 'vue' import DashboardApp from './DashboardApp.vue' import { translate as t } from '@nextcloud/l10n' -import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip' +import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' import { getRequestToken } from '@nextcloud/auth' // eslint-disable-next-line camelcase diff --git a/apps/dav/src/dav/client.js b/apps/dav/src/dav/client.js index ff858e0492c..b053e585ce8 100644 --- a/apps/dav/src/dav/client.js +++ b/apps/dav/src/dav/client.js @@ -1,4 +1,4 @@ -/* +/** * @copyright 2021 Christoph Wurst * * @author 2021 Christoph Wurst @@ -21,7 +21,7 @@ import * as webdav from 'webdav' import axios from '@nextcloud/axios' -import memoize from 'lodash/fp/memoize' +import memoize from 'lodash/fp/memoize.js' import { generateRemoteUrl } from '@nextcloud/router' import { getCurrentUser } from '@nextcloud/auth' diff --git a/apps/dav/src/service/CalendarService.js b/apps/dav/src/service/CalendarService.js index 2b416d6b670..9faad92f418 100644 --- a/apps/dav/src/service/CalendarService.js +++ b/apps/dav/src/service/CalendarService.js @@ -18,9 +18,9 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ -import { getClient } from '../dav/client' -import logger from './logger' -import { parseXML } from 'webdav/dist/node/tools/dav' +import { getClient } from '../dav/client.js' +import logger from './logger.js' +import { parseXML } from 'webdav/dist/node/tools/dav.js' import { slotsToVavailability, diff --git a/apps/dav/src/settings-personal-availability.js b/apps/dav/src/settings-personal-availability.js index b0d6b19aa8a..8b7bcba0c26 100644 --- a/apps/dav/src/settings-personal-availability.js +++ b/apps/dav/src/settings-personal-availability.js @@ -1,6 +1,6 @@ import Vue from 'vue' import { translate } from '@nextcloud/l10n' -import Availability from './views/Availability' +import Availability from './views/Availability.vue' Vue.prototype.$t = translate diff --git a/apps/dav/src/settings.js b/apps/dav/src/settings.js index 6744f22ad23..a99db386d69 100644 --- a/apps/dav/src/settings.js +++ b/apps/dav/src/settings.js @@ -1,7 +1,7 @@ import Vue from 'vue' import { loadState } from '@nextcloud/initial-state' import { translate } from '@nextcloud/l10n' -import CalDavSettings from './views/CalDavSettings' +import CalDavSettings from './views/CalDavSettings.vue' Vue.prototype.$t = translate diff --git a/apps/dav/src/views/Availability.vue b/apps/dav/src/views/Availability.vue index e0128a59e0a..bdc0c733c98 100644 --- a/apps/dav/src/views/Availability.vue +++ b/apps/dav/src/views/Availability.vue @@ -47,15 +47,15 @@ import { findScheduleInboxAvailability, getEmptySlots, saveScheduleInboxAvailability, -} from '../service/CalendarService' +} from '../service/CalendarService.js' import { enableUserStatusAutomation, disableUserStatusAutomation, -} from '../service/PreferenceService' -import NcButton from '@nextcloud/vue/dist/Components/NcButton' -import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch' -import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection' -import NcTimezonePicker from '@nextcloud/vue/dist/Components/NcTimezonePicker' +} from '../service/PreferenceService.js' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' +import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js' +import NcTimezonePicker from '@nextcloud/vue/dist/Components/NcTimezonePicker.js' export default { name: 'Availability', diff --git a/apps/dav/src/views/CalDavSettings.spec.js b/apps/dav/src/views/CalDavSettings.spec.js index 5c81c6259a1..7bc6e2f7b40 100644 --- a/apps/dav/src/views/CalDavSettings.spec.js +++ b/apps/dav/src/views/CalDavSettings.spec.js @@ -1,5 +1,5 @@ import { render } from '@testing-library/vue' -import CalDavSettings from './CalDavSettings' +import CalDavSettings from './CalDavSettings.vue' // eslint-disable-next-line no-unused-vars import { generateUrl } from '@nextcloud/router' diff --git a/apps/dav/src/views/CalDavSettings.vue b/apps/dav/src/views/CalDavSettings.vue index 776f32bff36..6755cbd171d 100644 --- a/apps/dav/src/views/CalDavSettings.vue +++ b/apps/dav/src/views/CalDavSettings.vue @@ -75,8 +75,8 @@ import axios from '@nextcloud/axios' import { generateUrl } from '@nextcloud/router' import { loadState } from '@nextcloud/initial-state' -import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection' -import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch' +import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js' +import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' const userSyncCalendarsDocUrl = loadState('dav', 'userSyncCalendarsDocUrl', '#') diff --git a/apps/federatedfilesharing/src/components/AdminSettings.vue b/apps/federatedfilesharing/src/components/AdminSettings.vue index 678e47012c2..6fb05d29e8f 100644 --- a/apps/federatedfilesharing/src/components/AdminSettings.vue +++ b/apps/federatedfilesharing/src/components/AdminSettings.vue @@ -65,8 +65,8 @@