Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of #2250 manually applied #2252

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
- Update dependencies (stylelint-config-idiomatic-ordering) by @dependabot
- Update code styling by @dependabot
- Update dependency @nextcloud/router by @dependabot
- Backport of #2250 to use correct imports of NC core components
[#2252](https://github.com/nextcloud/cookbook/pull/2252) @seyfeb


## 0.10.4 - 2023-12-05
Expand Down
13 changes: 7 additions & 6 deletions src/components/AppControls/AppControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,13 @@
<script setup>
import { computed, ref } from 'vue';
import { useRoute } from 'vue-router/composables';
import NcActions from '@nextcloud/vue/dist/Components/NcActions';
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
// Cannot use `Button` else get `vue/no-reserved-component-names` eslint errors
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput';
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon';
import {
NcActions,
NcActionButton,
NcActionInput,
NcLoadingIcon,
NcButton,
} from '@nextcloud/vue';

import PencilIcon from 'icons/Pencil.vue';
import LoadingIcon from 'icons/Loading.vue';
Expand Down
3 changes: 1 addition & 2 deletions src/components/AppInvalidGuest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
</template>

<script setup>
import NcContent from '@nextcloud/vue/dist/Components/NcContent';
import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent';
import { NcContent, NcAppContent } from '@nextcloud/vue';
import { getFilePickerBuilder, FilePickerType } from '@nextcloud/dialogs';

const selectFolder = () => {
Expand Down
3 changes: 1 addition & 2 deletions src/components/AppMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

<script setup>
import { getCurrentInstance, onMounted, onUnmounted, ref } from 'vue';
import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent';
import NcContent from '@nextcloud/vue/dist/Components/NcContent';
import { NcAppContent, NcContent } from '@nextcloud/vue';
import AppControls from 'cookbook/components/AppControls/AppControls.vue';
import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus';
import AppNavi from './AppNavi.vue';
Expand Down
14 changes: 8 additions & 6 deletions src/components/AppNavi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,14 @@ import {
} from 'vue';

import { emit } from '@nextcloud/event-bus';
import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput';
import NcAppNavigation from '@nextcloud/vue/dist/Components/NcAppNavigation';
import NcAppNavigationCaption from '@nextcloud/vue/dist/Components/NcAppNavigationCaption';
import NcAppNavigationItem from '@nextcloud/vue/dist/Components/NcAppNavigationItem';
import NcAppNavigationNew from '@nextcloud/vue/dist/Components/NcAppNavigationNew';
import NcCounterBubble from '@nextcloud/vue/dist/Components/NcCounterBubble';
import {
NcActionInput,
NcAppNavigation,
NcAppNavigationCaption,
NcAppNavigationItem,
NcAppNavigationNew,
NcCounterBubble,
} from '@nextcloud/vue';

import PlusIcon from 'icons/Plus.vue';

Expand Down
2 changes: 1 addition & 1 deletion src/components/FormComponents/EditMultiselect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</template>

<script setup>
import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect';
import { NcMultiselect } from '@nextcloud/vue';

defineProps({
fieldLabel: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</template>

<script setup>
import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect';
import { NcMultiselect } from '@nextcloud/vue';
import { ref, defineProps, defineEmits, nextTick, watch } from 'vue';

const emits = defineEmits(['input']);
Expand Down
3 changes: 1 addition & 2 deletions src/components/List/EmptyList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
<script setup>
import { computed } from 'vue';
import RecipeIcon from 'vue-material-design-icons/ChefHat.vue';
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent';
import { NcButton, NcEmptyContent } from '@nextcloud/vue';
import { useRoute } from 'vue-router/composables';
import useDelayedDisplay, {
DelayedDisplayProps,
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/RecipeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<script setup>
import { computed, onMounted, ref } from 'vue';
import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect';
import { NcMultiselect } from '@nextcloud/vue';
import { useStore } from '../../store';
import { normalize as normalizeString } from '../../js/string-utils';
import EmptyList from './EmptyList.vue';
Expand Down
10 changes: 6 additions & 4 deletions src/components/Modals/SettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ import {
import { subscribe, unsubscribe } from '@nextcloud/event-bus';
import { getFilePickerBuilder } from '@nextcloud/dialogs';

import NcAppSettingsDialog from '@nextcloud/vue/dist/Components/NcAppSettingsDialog';
import NcAppSettingsSection from '@nextcloud/vue/dist/Components/NcAppSettingsSection';
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
import { NcLoadingIcon as LoadingIcon } from '@nextcloud/vue';
import {
NcAppSettingsDialog,
NcAppSettingsSection,
NcButton,
NcLoadingIcon as LoadingIcon,
} from '@nextcloud/vue';
import ReloadIcon from 'icons/Cached.vue';

import api from 'cookbook/js/api-interface';
Expand Down
3 changes: 1 addition & 2 deletions src/components/Modals/SimpleAlertModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
</template>

<script setup>
import NcModal from '@nextcloud/vue/dist/Components/NcModal';
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
import { NcModal, NcButton } from '@nextcloud/vue';
</script>

<script>
Expand Down
3 changes: 1 addition & 2 deletions src/components/Modals/SimpleConfirmModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
</template>

<script setup>
import NcModal from '@nextcloud/vue/dist/Components/NcModal';
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
import { NcModal, NcButton } from '@nextcloud/vue';
</script>

<script>
Expand Down
3 changes: 1 addition & 2 deletions src/components/RecipeEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ import {
useRoute,
} from 'vue-router/composables';

import NcActions from '@nextcloud/vue/dist/Components/NcActions';
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
import { NcActions, NcActionButton } from '@nextcloud/vue';

import api from 'cookbook/js/api-interface';
import helpers from 'cookbook/js/helper';
Expand Down
2 changes: 1 addition & 1 deletion src/components/RecipeView/RecipeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ import normalizeMarkdown from 'cookbook/js/title-rename';
import { showSimpleAlertModal } from 'cookbook/js/modals';
import yieldCalculator from 'cookbook/js/yieldCalculator';
import ContentCopyIcon from 'icons/ContentCopy.vue';
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
import { NcButton } from '@nextcloud/vue';
import { useStore } from '../../store';
import emitter from '../../bus';
import { parseDateTime } from '../../composables/dateTimeHandling';
Expand Down
Loading