Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Move to @nextcloud/vue named module imports to fix build of se…
…rver

webpack or babel somehow can not handle the imports otherwise as e.g. `import NcButton from '@nextcloud/vue/dist/...'`
will not yield the component but an object `{ default: ... }`.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Aug 10, 2023
commit b9c752cb117ace060b948aee38b8ba9fe9df7d26
3 changes: 1 addition & 2 deletions lib/components/DialogBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
</template>

<script setup lang="ts">
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'

import { NcModal } from '@nextcloud/vue'
import { computed, ref, useSlots } from 'vue'
import DialogButton, { type IDialogButton } from './DialogButton.vue'
import { Fragment } from 'vue-frag'
Expand Down
2 changes: 1 addition & 1 deletion lib/components/DialogButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<script setup lang="ts">
import type { AsyncComponent, Component } from 'vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import { NcButton } from '@nextcloud/vue'

export interface IDialogButton {
label: string,
Expand Down
7 changes: 3 additions & 4 deletions lib/components/FilePicker/FileList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@
import type { Node } from '@nextcloud/files'

import { getCanonicalLocale } from '@nextcloud/l10n'
import { computed, ref, type Ref } from 'vue'
import { t } from '../../l10n'
import { NcButton, NcCheckboxRadioSwitch } from '@nextcloud/vue'
import { join } from 'path'
import { t } from '../../l10n'
import { computed, ref, type Ref } from 'vue'

import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import IconSortAscending from 'vue-material-design-icons/MenuDown.vue'
import IconSortDescending from 'vue-material-design-icons/MenuUp.vue'
import LoadingTableRow from './LoadingTableRow.vue'
Expand Down
4 changes: 1 addition & 3 deletions lib/components/FilePicker/FileListRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@
</tr>
</template>
<script setup lang="ts">
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import NcDatetime from '@nextcloud/vue/dist/Components/NcDatetime.js'

import { type Node, formatFileSize } from '@nextcloud/files'
import { NcCheckboxRadioSwitch, NcDatetime } from '@nextcloud/vue'
import { computed } from 'vue'
import { t } from '../../l10n'

Expand Down
5 changes: 1 addition & 4 deletions lib/components/FilePicker/FilePickerBreadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@
<script setup lang="ts">
import IconHome from 'vue-material-design-icons/Home.vue'
import IconPlus from 'vue-material-design-icons/Plus.vue'
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js'
import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput.js'
import NcBreadcrumbs from '@nextcloud/vue/dist/Components/NcBreadcrumbs.js'
import NcBreadcrumb from '@nextcloud/vue/dist/Components/NcBreadcrumb.js'

import { NcActions, NcActionInput, NcBreadcrumbs, NcBreadcrumb } from '@nextcloud/vue'
import { computed, ref } from 'vue'
import { t } from '../../l10n'

Expand Down
4 changes: 1 addition & 3 deletions lib/components/FilePicker/FilePickerNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ import IconClock from 'vue-material-design-icons/Clock.vue'
import IconClose from 'vue-material-design-icons/Close.vue'
import IconMagnify from 'vue-material-design-icons/Magnify.vue'
import IconStar from 'vue-material-design-icons/Star.vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'

import { NcButton, NcSelect, NcTextField } from '@nextcloud/vue'
import { t } from '../../l10n'
import { computed } from 'vue'
import { Fragment } from 'vue-frag'
Expand Down