diff options
author | Varun Patil <varunpatil@ucla.edu> | 2023-05-16 15:50:25 -0700 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-05-23 22:34:14 +0200 |
commit | 66a8a9fba1b92d63b852b1606d9f3bb0400a99cf (patch) | |
tree | ceca245dd6d68d19b9050088b8e99dad8ba05582 /apps/theming/src | |
parent | 0fca8238dd86d572f0f15eaa8e8a5ea836cc76bf (diff) | |
download | nextcloud-server-66a8a9fba1b92d63b852b1606d9f3bb0400a99cf.tar.gz nextcloud-server-66a8a9fba1b92d63b852b1606d9f3bb0400a99cf.zip |
Use consistent imports for Vue components
This makes tree shaking possible
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Diffstat (limited to 'apps/theming/src')
5 files changed, 11 insertions, 19 deletions
diff --git a/apps/theming/src/AdminTheming.vue b/apps/theming/src/AdminTheming.vue index a190dfb2a6a..37eabc12774 100644 --- a/apps/theming/src/AdminTheming.vue +++ b/apps/theming/src/AdminTheming.vue @@ -112,10 +112,8 @@ <script> import { loadState } from '@nextcloud/initial-state' -import { - NcNoteCard, - NcSettingsSection, -} from '@nextcloud/vue' +import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' +import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js' import CheckboxField from './components/admin/CheckboxField.vue' import ColorPickerField from './components/admin/ColorPickerField.vue' import FileInputField from './components/admin/FileInputField.vue' diff --git a/apps/theming/src/components/admin/CheckboxField.vue b/apps/theming/src/components/admin/CheckboxField.vue index 5877614717e..fa8477a7283 100644 --- a/apps/theming/src/components/admin/CheckboxField.vue +++ b/apps/theming/src/components/admin/CheckboxField.vue @@ -43,10 +43,8 @@ </template> <script> -import { - NcCheckboxRadioSwitch, - NcNoteCard, -} from '@nextcloud/vue' +import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' +import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' import TextValueMixin from '../../mixins/admin/TextValueMixin.js' diff --git a/apps/theming/src/components/admin/ColorPickerField.vue b/apps/theming/src/components/admin/ColorPickerField.vue index fd80a45e387..7885bfeb233 100644 --- a/apps/theming/src/components/admin/ColorPickerField.vue +++ b/apps/theming/src/components/admin/ColorPickerField.vue @@ -56,11 +56,9 @@ <script> import { debounce } from 'debounce' -import { - NcButton, - NcColorPicker, - NcNoteCard, -} from '@nextcloud/vue' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcColorPicker from '@nextcloud/vue/dist/Components/NcColorPicker.js' +import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' import Undo from 'vue-material-design-icons/UndoVariant.vue' import TextValueMixin from '../../mixins/admin/TextValueMixin.js' diff --git a/apps/theming/src/components/admin/FileInputField.vue b/apps/theming/src/components/admin/FileInputField.vue index c15d1ee2c8e..8af17711141 100644 --- a/apps/theming/src/components/admin/FileInputField.vue +++ b/apps/theming/src/components/admin/FileInputField.vue @@ -80,11 +80,9 @@ import axios from '@nextcloud/axios' import { generateUrl } from '@nextcloud/router' -import { - NcButton, - NcLoadingIcon, - NcNoteCard, -} from '@nextcloud/vue' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js' +import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' import Delete from 'vue-material-design-icons/Delete.vue' import Undo from 'vue-material-design-icons/UndoVariant.vue' import Upload from 'vue-material-design-icons/Upload.vue' diff --git a/apps/theming/src/components/admin/TextField.vue b/apps/theming/src/components/admin/TextField.vue index 9a3a98fe20d..ec5ed94dc09 100644 --- a/apps/theming/src/components/admin/TextField.vue +++ b/apps/theming/src/components/admin/TextField.vue @@ -41,7 +41,7 @@ </template> <script> -import { NcTextField } from '@nextcloud/vue' +import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js' import TextValueMixin from '../../mixins/admin/TextValueMixin.js' |