aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-02-13 20:45:53 +0100
committerGitHub <noreply@github.com>2024-02-13 20:45:53 +0100
commitb63abdae8c1708693addf1dc3b2f862131e0299d (patch)
tree33df780173e211fc473e20dac987faaab4a40859 /apps/files
parent8bcc55b5dafa6d8fb71afcce4c0b1eb6efce8c8b (diff)
parent24603e5d846b74dc3b5df0e9d7cead371efe8e94 (diff)
downloadnextcloud-server-b63abdae8c1708693addf1dc3b2f862131e0299d.tar.gz
nextcloud-server-b63abdae8c1708693addf1dc3b2f862131e0299d.zip
Merge pull request #43554 from nextcloud/fix/types-import
fix: Correctly import types in Typescript files
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/components/FileEntry/FileEntryActions.vue8
-rw-r--r--apps/files/src/components/FileEntry/FileEntryPreview.vue5
-rw-r--r--apps/files/src/router/router.ts2
-rw-r--r--apps/files/src/store/selection.ts2
4 files changed, 10 insertions, 7 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryActions.vue b/apps/files/src/components/FileEntry/FileEntryActions.vue
index 5dae3509f3b..393b8fd10ce 100644
--- a/apps/files/src/components/FileEntry/FileEntryActions.vue
+++ b/apps/files/src/components/FileEntry/FileEntryActions.vue
@@ -93,18 +93,20 @@
</template>
<script lang="ts">
+import type { PropType } from 'vue'
+
import { DefaultType, FileAction, Node, NodeStatus, View, getFileActions } from '@nextcloud/files'
import { showError, showSuccess } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n'
-import Vue, { PropType } from 'vue'
-import ArrowLeftIcon from 'vue-material-design-icons/ArrowLeft.vue'
-import ChevronRightIcon from 'vue-material-design-icons/ChevronRight.vue'
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 NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
+import ArrowLeftIcon from 'vue-material-design-icons/ArrowLeft.vue'
+import ChevronRightIcon from 'vue-material-design-icons/ChevronRight.vue'
+import Vue from 'vue'
import CustomElementRender from '../CustomElementRender.vue'
import logger from '../../logger.js'
diff --git a/apps/files/src/components/FileEntry/FileEntryPreview.vue b/apps/files/src/components/FileEntry/FileEntryPreview.vue
index 7f8926e2301..25b27d2e889 100644
--- a/apps/files/src/components/FileEntry/FileEntryPreview.vue
+++ b/apps/files/src/components/FileEntry/FileEntryPreview.vue
@@ -56,14 +56,15 @@
</template>
<script lang="ts">
+import type { PropType } from 'vue'
import type { UserConfig } from '../../types.ts'
-import { File, Folder, Node, FileType } from '@nextcloud/files'
+import { Node, FileType } from '@nextcloud/files'
import { generateUrl } from '@nextcloud/router'
import { translate as t } from '@nextcloud/l10n'
import { Type as ShareType } from '@nextcloud/sharing'
-import Vue, { PropType } from 'vue'
+import Vue from 'vue'
import AccountGroupIcon from 'vue-material-design-icons/AccountGroup.vue'
import AccountPlusIcon from 'vue-material-design-icons/AccountPlus.vue'
import FileIcon from 'vue-material-design-icons/File.vue'
diff --git a/apps/files/src/router/router.ts b/apps/files/src/router/router.ts
index 4fec332cddf..836e2cae1fa 100644
--- a/apps/files/src/router/router.ts
+++ b/apps/files/src/router/router.ts
@@ -20,12 +20,12 @@
*
*/
import type { RawLocation, Route } from 'vue-router'
+import type { ErrorHandler } from 'vue-router/types/router.d.ts'
import { generateUrl } from '@nextcloud/router'
import queryString from 'query-string'
import Router from 'vue-router'
import Vue from 'vue'
-import { ErrorHandler } from 'vue-router/types/router'
Vue.use(Router)
diff --git a/apps/files/src/store/selection.ts b/apps/files/src/store/selection.ts
index e304d27340e..348ace25ae4 100644
--- a/apps/files/src/store/selection.ts
+++ b/apps/files/src/store/selection.ts
@@ -19,9 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
+import type { FileId, SelectionStore } from '../types'
import { defineStore } from 'pinia'
import Vue from 'vue'
-import { FileId, SelectionStore } from '../types'
export const useSelectionStore = defineStore('selection', {
state: () => ({