refactor: viewer to one folder
parent
fe25e871e0
commit
e636a796ce
|
@ -156,7 +156,7 @@ import Photo from "./frame/Photo.vue";
|
||||||
import Tag from "./frame/Tag.vue";
|
import Tag from "./frame/Tag.vue";
|
||||||
import ScrollerManager from "./ScrollerManager.vue";
|
import ScrollerManager from "./ScrollerManager.vue";
|
||||||
import SelectionManager from "./SelectionManager.vue";
|
import SelectionManager from "./SelectionManager.vue";
|
||||||
import Viewer from "./Viewer.vue";
|
import Viewer from "./viewer/Viewer.vue";
|
||||||
import OnThisDay from "./top-matter/OnThisDay.vue";
|
import OnThisDay from "./top-matter/OnThisDay.vue";
|
||||||
import TopMatter from "./top-matter/TopMatter.vue";
|
import TopMatter from "./top-matter/TopMatter.vue";
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Prop, Mixins } from "vue-property-decorator";
|
import { Component, Prop, Mixins } from "vue-property-decorator";
|
||||||
import GlobalMixin from "../mixins/GlobalMixin";
|
import GlobalMixin from "../../mixins/GlobalMixin";
|
||||||
|
|
||||||
import { basename, dirname, extname, join } from "path";
|
import { basename, dirname, extname, join } from "path";
|
||||||
import { emit } from "@nextcloud/event-bus";
|
import { emit } from "@nextcloud/event-bus";
|
||||||
|
@ -20,7 +20,7 @@ import { FilerobotImageEditorConfig } from "react-filerobot-image-editor";
|
||||||
|
|
||||||
import translations from "./ImageEditorTranslations";
|
import translations from "./ImageEditorTranslations";
|
||||||
|
|
||||||
import { API } from "../services/API";
|
import { API } from "../../services/API";
|
||||||
|
|
||||||
let TABS, TOOLS: any;
|
let TABS, TOOLS: any;
|
||||||
type FilerobotImageEditor = import("filerobot-image-editor").default;
|
type FilerobotImageEditor = import("filerobot-image-editor").default;
|
|
@ -1,5 +1,5 @@
|
||||||
import PhotoSwipe from "photoswipe";
|
import PhotoSwipe from "photoswipe";
|
||||||
import * as utils from "../services/Utils";
|
import * as utils from "../../services/Utils";
|
||||||
|
|
||||||
function isLiveContent(content): boolean {
|
function isLiveContent(content): boolean {
|
||||||
return Boolean(content?.data?.photo?.liveid);
|
return Boolean(content?.data?.photo?.liveid);
|
|
@ -4,8 +4,9 @@ import axios from "@nextcloud/axios";
|
||||||
import { showError } from "@nextcloud/dialogs";
|
import { showError } from "@nextcloud/dialogs";
|
||||||
import { translate as t } from "@nextcloud/l10n";
|
import { translate as t } from "@nextcloud/l10n";
|
||||||
import { getCurrentUser } from "@nextcloud/auth";
|
import { getCurrentUser } from "@nextcloud/auth";
|
||||||
import { API } from "../services/API";
|
|
||||||
import { IPhoto } from "../types";
|
import { API } from "../../services/API";
|
||||||
|
import { IPhoto } from "../../types";
|
||||||
|
|
||||||
const config_noTranscode = loadState(
|
const config_noTranscode = loadState(
|
||||||
"memories",
|
"memories",
|
||||||
|
@ -133,7 +134,7 @@ class VideoContentSetup {
|
||||||
|
|
||||||
// Load videojs scripts
|
// Load videojs scripts
|
||||||
if (!globalThis.vidjs) {
|
if (!globalThis.vidjs) {
|
||||||
await import("../services/videojs");
|
await import("../../services/videojs");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create video element
|
// Create video element
|
|
@ -148,9 +148,9 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Component, Emit, Mixins } from "vue-property-decorator";
|
import { Component, Emit, Mixins } from "vue-property-decorator";
|
||||||
import GlobalMixin from "../mixins/GlobalMixin";
|
import GlobalMixin from "../../mixins/GlobalMixin";
|
||||||
|
|
||||||
import { IDay, IPhoto, IRow, IRowType } from "../types";
|
import { IDay, IPhoto, IRow, IRowType } from "../../types";
|
||||||
|
|
||||||
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
|
import NcActions from "@nextcloud/vue/dist/Components/NcActions";
|
||||||
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
|
import NcActionButton from "@nextcloud/vue/dist/Components/NcActionButton";
|
||||||
|
@ -158,10 +158,10 @@ import { subscribe, unsubscribe } from "@nextcloud/event-bus";
|
||||||
import { showError } from "@nextcloud/dialogs";
|
import { showError } from "@nextcloud/dialogs";
|
||||||
import axios from "@nextcloud/axios";
|
import axios from "@nextcloud/axios";
|
||||||
|
|
||||||
import * as dav from "../services/DavRequests";
|
import * as dav from "../../services/DavRequests";
|
||||||
import * as utils from "../services/Utils";
|
import * as utils from "../../services/Utils";
|
||||||
import { getPreviewUrl } from "../services/FileUtils";
|
import { getPreviewUrl } from "../../services/FileUtils";
|
||||||
import { getDownloadLink } from "../services/DavRequests";
|
import { getDownloadLink } from "../../services/DavRequests";
|
||||||
|
|
||||||
import ImageEditor from "./ImageEditor.vue";
|
import ImageEditor from "./ImageEditor.vue";
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ import InfoIcon from "vue-material-design-icons/InformationOutline.vue";
|
||||||
import OpenInNewIcon from "vue-material-design-icons/OpenInNew.vue";
|
import OpenInNewIcon from "vue-material-design-icons/OpenInNew.vue";
|
||||||
import TuneIcon from "vue-material-design-icons/Tune.vue";
|
import TuneIcon from "vue-material-design-icons/Tune.vue";
|
||||||
import SlideshowIcon from "vue-material-design-icons/PlayBox.vue";
|
import SlideshowIcon from "vue-material-design-icons/PlayBox.vue";
|
||||||
import { API } from "../services/API";
|
import { API } from "../../services/API";
|
||||||
|
|
||||||
const SLIDESHOW_MS = 5000;
|
const SLIDESHOW_MS = 5000;
|
||||||
|
|
Loading…
Reference in New Issue