Skip to content

Commit

Permalink
perf: Change to individual dist imports to decrease loaded component …
Browse files Browse the repository at this point in the history
…impact

Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Feb 16, 2024
1 parent 20b035b commit 65fbf49
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/Modal/Confirmation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
</NcModal>
</template>
<script>
import { NcButton, NcModal } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import { translate as t } from '@nextcloud/l10n'
export default {
Expand Down
5 changes: 4 additions & 1 deletion src/components/Modal/SaveAs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
<script>
import { translate as t } from '@nextcloud/l10n'
import { NcModal, NcButton, NcTextField } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
export default {
name: 'SaveAs',
components: {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Modal/ZoteroHint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
</template>

<script>
import { NcModal, NcButton, NcTextField } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js'
import { showError } from '@nextcloud/dialogs'
import BookOpenPageVariantOutline from 'vue-material-design-icons/BookOpenPageVariantOutline.vue'
import { savePersonalSetting } from '../../services/api.js'
Expand Down
5 changes: 4 additions & 1 deletion src/view/DocumentTargetPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@
import { getFilePickerBuilder } from '@nextcloud/dialogs'
import { generateUrl, generateOcsUrl } from '@nextcloud/router'
import axios from '@nextcloud/axios'
import { NcButton, NcEmptyContent, NcListItem, NcLoadingIcon } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcListItem from '@nextcloud/vue/dist/Components/NcListItem.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import TableOfContentsIcon from 'vue-material-design-icons/TableOfContents.vue'
export default {
Expand Down
4 changes: 3 additions & 1 deletion src/view/Office.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
</template>

<script>
import { NcButton, NcEmptyContent, NcLoadingIcon } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import AlertOctagonOutline from 'vue-material-design-icons/AlertOctagonOutline.vue'
import { loadState } from '@nextcloud/initial-state'
Expand Down

0 comments on commit 65fbf49

Please sign in to comment.