Switch to individual vue imports

fastpreview
Varun Patil 2022-11-24 11:54:29 -08:00
parent e10198fff5
commit ba24327fa4
26 changed files with 86 additions and 44 deletions

View File

@ -39,13 +39,13 @@
<script lang="ts">
import { Component, Mixins, Watch } from "vue-property-decorator";
import {
NcContent,
NcAppContent,
NcAppNavigation,
NcAppNavigationItem,
NcAppNavigationSettings,
} from "@nextcloud/vue";
import NcContent from "@nextcloud/vue/dist/Components/NcContent";
import NcAppContent from "@nextcloud/vue/dist/Components/NcAppContent";
import NcAppNavigation from "@nextcloud/vue/dist/Components/NcAppNavigation";
import NcAppNavigationItem from "@nextcloud/vue/dist/Components/NcAppNavigationItem";
import NcAppNavigationSettings from "@nextcloud/vue/dist/Components/NcAppNavigationSettings";
import { generateUrl } from "@nextcloud/router";
import { getCurrentUser } from "@nextcloud/auth";
import { translate as t } from "@nextcloud/l10n";

View File

@ -48,7 +48,11 @@
<script lang="ts">
import { Component, Mixins } from "vue-property-decorator";
import { NcContent, NcAppContent, NcButton } from "@nextcloud/vue";
import NcContent from "@nextcloud/vue/dist/Components/NcContent";
import NcAppContent from "@nextcloud/vue/dist/Components/NcAppContent";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import { getFilePickerBuilder } from "@nextcloud/dialogs";
import { generateUrl } from "@nextcloud/router";
import { getCurrentUser } from "@nextcloud/auth";

View File

@ -48,7 +48,9 @@
import { Component, Mixins } from "vue-property-decorator";
import GlobalMixin from "../mixins/GlobalMixin";
import { NcActions, NcActionButton } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import { generateUrl } from "@nextcloud/router";
import axios from "@nextcloud/axios";
import { subscribe, unsubscribe } from "@nextcloud/event-bus";

View File

@ -52,7 +52,10 @@ import GlobalMixin from "../mixins/GlobalMixin";
import UserConfig from "../mixins/UserConfig";
import { showError } from "@nextcloud/dialogs";
import { NcActions, NcActionButton } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import { translate as t, translatePlural as n } from "@nextcloud/l10n";
import {
IDay,

View File

@ -74,7 +74,7 @@ import GlobalMixin from "../mixins/GlobalMixin";
import UserConfig from "../mixins/UserConfig";
import { getFilePickerBuilder } from "@nextcloud/dialogs";
import { NcCheckboxRadioSwitch } from "@nextcloud/vue";
import NcCheckboxRadioSwitch from "@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch";
import MultiPathSelectionModal from "./modal/MultiPathSelectionModal.vue";

View File

@ -148,7 +148,7 @@ import axios from "@nextcloud/axios";
import { showError } from "@nextcloud/dialogs";
import { subscribe, unsubscribe } from "@nextcloud/event-bus";
import { generateUrl } from "@nextcloud/router";
import { NcEmptyContent } from "@nextcloud/vue";
import NcEmptyContent from "@nextcloud/vue/dist/Components/NcEmptyContent";
import { getLayout } from "../services/Layout";
import { IDay, IFolder, IHeadRow, IPhoto, IRow, IRowType } from "../types";

View File

@ -121,7 +121,8 @@ import GlobalMixin from "../mixins/GlobalMixin";
import { IDay, IPhoto, IRow, IRowType } from "../types";
import { NcActions, NcActionButton } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import { subscribe, unsubscribe } from "@nextcloud/event-bus";
import { generateUrl } from "@nextcloud/router";
import { showError } from "@nextcloud/dialogs";

View File

@ -41,7 +41,7 @@ import { generateUrl } from "@nextcloud/router";
import { getPhotosPreviewUrl, getPreviewUrl } from "../../services/FileUtils";
import { getCurrentUser } from "@nextcloud/auth";
import { NcCounterBubble } from "@nextcloud/vue";
import NcCounterBubble from "@nextcloud/vue/dist/Components/NcCounterBubble";
import axios from "@nextcloud/axios";
import * as utils from "../../services/Utils";

View File

@ -177,14 +177,14 @@ import * as dav from "../../services/DavRequests";
import { showError } from "@nextcloud/dialogs";
import { getCurrentUser } from "@nextcloud/auth";
import { generateOcsUrl, generateUrl } from "@nextcloud/router";
import {
NcButton,
NcListItemIcon,
NcLoadingIcon,
NcPopover,
NcTextField,
NcEmptyContent,
} from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcListItemIcon from "@nextcloud/vue/dist/Components/NcListItemIcon";
import NcLoadingIcon from "@nextcloud/vue/dist/Components/NcLoadingIcon";
import NcPopover from "@nextcloud/vue/dist/Components/NcPopover";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import NcEmptyContent from "@nextcloud/vue/dist/Components/NcEmptyContent";
import { Type } from "@nextcloud/sharing";
type Collaborator = {

View File

@ -24,7 +24,8 @@
<script lang="ts">
import { Component, Emit, Mixins, Watch } from "vue-property-decorator";
import { NcButton, NcTextField } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import { showError } from "@nextcloud/dialogs";
import { getCurrentUser } from "@nextcloud/auth";
import Modal from "./Modal.vue";

View File

@ -122,7 +122,9 @@ import { Component, Emit, Mixins, Prop } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import { getCurrentUser } from "@nextcloud/auth";
import { NcButton, NcLoadingIcon, NcTextField } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcLoadingIcon from "@nextcloud/vue/dist/Components/NcLoadingIcon";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import moment from "moment";
import * as dav from "../../services/DavRequests";

View File

@ -86,7 +86,10 @@ import AlbumForm from "./AlbumForm.vue";
import Plus from "vue-material-design-icons/Plus.vue";
import ImageMultiple from "vue-material-design-icons/ImageMultiple.vue";
import { NcButton, NcListItem, NcLoadingIcon } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcListItem from "@nextcloud/vue/dist/Components/NcListItem";
import NcLoadingIcon from "@nextcloud/vue/dist/Components/NcLoadingIcon";
import { generateUrl } from "@nextcloud/router";
import { getPhotosPreviewUrl } from "../../services/FileUtils";
import { IAlbum, IPhoto } from "../../types";

View File

@ -31,7 +31,9 @@
import { Component, Emit, Mixins } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import { NcButton, NcLoadingIcon } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcLoadingIcon from "@nextcloud/vue/dist/Components/NcLoadingIcon";
import * as dav from "../../services/DavRequests";
import Modal from "./Modal.vue";

View File

@ -134,7 +134,9 @@ import { Component, Emit, Mixins } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import { IPhoto } from "../../types";
import { NcButton, NcTextField } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import { showError } from "@nextcloud/dialogs";
import { generateUrl } from "@nextcloud/router";
import { emit } from "@nextcloud/event-bus";

View File

@ -18,7 +18,10 @@
<script lang="ts">
import { Component, Emit, Mixins, Watch } from "vue-property-decorator";
import { NcButton, NcTextField } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import { showError } from "@nextcloud/dialogs";
import { getCurrentUser } from "@nextcloud/auth";
import Modal from "./Modal.vue";

View File

@ -25,7 +25,10 @@
<script lang="ts">
import { Component, Emit, Mixins, Watch } from "vue-property-decorator";
import { NcButton, NcTextField } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import { showError } from "@nextcloud/dialogs";
import { getCurrentUser } from "@nextcloud/auth";
import Modal from "./Modal.vue";

View File

@ -29,7 +29,10 @@
<script lang="ts">
import { Component, Emit, Mixins } from "vue-property-decorator";
import { NcButton, NcTextField } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import { showError } from "@nextcloud/dialogs";
import { getCurrentUser } from "@nextcloud/auth";
import { IFileInfo, ITag } from "../../types";

View File

@ -20,7 +20,9 @@
import { Component, Emit, Mixins, Prop } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import { NcButton, NcTextField } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import NcTextField from "@nextcloud/vue/dist/Components/NcTextField";
import { showError } from "@nextcloud/dialogs";
import { getCurrentUser } from "@nextcloud/auth";
import { IPhoto, ITag } from "../../types";

View File

@ -47,7 +47,7 @@ import { Component, Emit, Mixins } from "vue-property-decorator";
import axios from "@nextcloud/axios";
import { generateOcsUrl, generateUrl } from "@nextcloud/router";
import { NcButton } from "@nextcloud/vue";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import * as utils from "../../services/Utils";
import Modal from "./Modal.vue";

View File

@ -22,7 +22,7 @@
<script lang="ts">
import { Component, Emit, Prop, Vue } from "vue-property-decorator";
import { NcModal } from "@nextcloud/vue";
import NcModal from "@nextcloud/vue/dist/Components/NcModal";
import { subscribe, unsubscribe } from "@nextcloud/event-bus";
@Component({

View File

@ -39,7 +39,9 @@ import UserConfig from "../../mixins/UserConfig";
import Modal from "./Modal.vue";
import { getFilePickerBuilder } from "@nextcloud/dialogs";
import { NcActions, NcActionButton, NcButton } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import NcButton from "@nextcloud/vue/dist/Components/NcButton";
import CloseIcon from "vue-material-design-icons/Close.vue";

View File

@ -61,7 +61,9 @@ import { Component, Mixins, Watch } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import UserConfig from "../../mixins/UserConfig";
import { NcActions, NcActionButton, NcActionCheckbox } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import NcActionCheckbox from "@nextcloud/vue/dist/Components/NcActionCheckbox";
import { getCurrentUser } from "@nextcloud/auth";
import AlbumCreateModal from "../modal/AlbumCreateModal.vue";

View File

@ -56,7 +56,10 @@ import { Component, Mixins, Watch } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import UserConfig from "../../mixins/UserConfig";
import { NcActions, NcActionButton, NcActionCheckbox } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import NcActionCheckbox from "@nextcloud/vue/dist/Components/NcActionCheckbox";
import FaceEditModal from "../modal/FaceEditModal.vue";
import FaceDeleteModal from "../modal/FaceDeleteModal.vue";
import FaceMergeModal from "../modal/FaceMergeModal.vue";

View File

@ -34,12 +34,12 @@
<script lang="ts">
import { Component, Mixins, Watch } from "vue-property-decorator";
import { TopMatterFolder, TopMatterType } from "../../types";
import {
NcBreadcrumbs,
NcBreadcrumb,
NcActions,
NcActionButton,
} from "@nextcloud/vue";
import NcBreadcrumbs from "@nextcloud/vue/dist/Components/NcBreadcrumbs";
import NcBreadcrumb from "@nextcloud/vue/dist/Components/NcBreadcrumb";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import GlobalMixin from "../../mixins/GlobalMixin";
import FolderShareModal from "../modal/FolderShareModal.vue";

View File

@ -43,7 +43,9 @@
<script lang="ts">
import { Component, Emit, Mixins, Prop } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import { NcActions, NcActionButton } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import * as utils from "../../services/Utils";
import * as dav from "../../services/DavRequests";

View File

@ -14,7 +14,9 @@
import { Component, Mixins, Watch } from "vue-property-decorator";
import GlobalMixin from "../../mixins/GlobalMixin";
import { NcActions, NcActionButton } from "@nextcloud/vue";
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
import BackIcon from "vue-material-design-icons/ArrowLeft.vue";
@Component({