Skip to content

Commit

Permalink
perf: optimize @nextcloud/vue imports
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme authored and AndyScherzinger committed Jul 10, 2024
1 parent 49608f7 commit d0da812
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/SlideShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ import type { IPage } from '../pages'
import { translate as t } from '@nextcloud/l10n'
import { imagePath } from '@nextcloud/router'
import { NcButton, NcIconSvgWrapper, useIsSmallMobile } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import { useIsSmallMobile } from '@nextcloud/vue/dist/Composables/useIsMobile.js'
import { computed, ref, useCssModule, watch } from 'vue'
import { mdiArrowLeft, mdiArrowRight, mdiClose } from '@mdi/js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/KeyNotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<script setup lang="ts">
import { mdiAccountGroup, mdiBriefcaseCheck, mdiLock, mdiSwapHorizontal } from '@mdi/js'
import { translate as t } from '@nextcloud/l10n'
import { NcIconSvgWrapper } from '@nextcloud/vue'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import Card from '../Card.vue'
import WizardPage from '../WizardPage.vue'
Expand Down
3 changes: 2 additions & 1 deletion src/components/pages/SharePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
<script setup lang="ts">
import { mdiEmail } from '@mdi/js'
import { translate as t } from '@nextcloud/l10n'
import { NcButton, NcIconSvgWrapper } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import facebookSvg from '../../../img/facebook.svg?raw'
import mastodonSvg from '../../../img/mastodon.svg?raw'
Expand Down
3 changes: 2 additions & 1 deletion src/views/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@

<script setup lang="ts">
import { generateUrl } from '@nextcloud/router'
import { NcModal, useIsSmallMobile } from '@nextcloud/vue'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import { useIsSmallMobile } from '@nextcloud/vue/dist/Composables/useIsMobile.js'
import { computed, ref, watchEffect } from 'vue'
import axios from '@nextcloud/axios'
Expand Down

0 comments on commit d0da812

Please sign in to comment.