refactor: add aliases for imports
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/900/head
parent
e2e9fa9d42
commit
a9aef4eab6
38
src/App.vue
38
src/App.vue
|
@ -75,25 +75,27 @@ const NcAppNavigationItem = () => import('@nextcloud/vue/dist/Components/NcAppNa
|
||||||
|
|
||||||
import { generateUrl } from '@nextcloud/router';
|
import { generateUrl } from '@nextcloud/router';
|
||||||
|
|
||||||
import * as utils from './services/utils';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import * as nativex from './native';
|
|
||||||
import { translate as t } from './services/l10n';
|
|
||||||
import staticConfig from './services/static-config';
|
|
||||||
import UserConfig from './mixins/UserConfig';
|
|
||||||
import Timeline from './components/Timeline.vue';
|
|
||||||
import Settings from './components/Settings.vue';
|
|
||||||
import FirstStart from './components/FirstStart.vue';
|
|
||||||
import Viewer from './components/viewer/Viewer.vue';
|
|
||||||
import Sidebar from './components/Sidebar.vue';
|
|
||||||
import MobileNav from './components/MobileNav.vue';
|
|
||||||
import MobileHeader from './components/MobileHeader.vue';
|
|
||||||
|
|
||||||
import EditMetadataModal from './components/modal/EditMetadataModal.vue';
|
import Timeline from '@components/Timeline.vue';
|
||||||
import AddToAlbumModal from './components/modal/AddToAlbumModal.vue';
|
import Settings from '@components/Settings.vue';
|
||||||
import NodeShareModal from './components/modal/NodeShareModal.vue';
|
import FirstStart from '@components/FirstStart.vue';
|
||||||
import ShareModal from './components/modal/ShareModal.vue';
|
import Viewer from '@components/viewer/Viewer.vue';
|
||||||
import MoveToFolderModal from './components/modal/MoveToFolderModal.vue';
|
import Sidebar from '@components/Sidebar.vue';
|
||||||
import FaceMoveModal from './components/modal/FaceMoveModal.vue';
|
import MobileNav from '@components/MobileNav.vue';
|
||||||
|
import MobileHeader from '@components/MobileHeader.vue';
|
||||||
|
|
||||||
|
import EditMetadataModal from '@components/modal/EditMetadataModal.vue';
|
||||||
|
import AddToAlbumModal from '@components/modal/AddToAlbumModal.vue';
|
||||||
|
import NodeShareModal from '@components/modal/NodeShareModal.vue';
|
||||||
|
import ShareModal from '@components/modal/ShareModal.vue';
|
||||||
|
import MoveToFolderModal from '@components/modal/MoveToFolderModal.vue';
|
||||||
|
import FaceMoveModal from '@components/modal/FaceMoveModal.vue';
|
||||||
|
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
import * as nativex from '@native';
|
||||||
|
import { translate as t } from '@services/l10n';
|
||||||
|
import staticConfig from '@services/static-config';
|
||||||
|
|
||||||
import ImageMultiple from 'vue-material-design-icons/ImageMultiple.vue';
|
import ImageMultiple from 'vue-material-design-icons/ImageMultiple.vue';
|
||||||
import FolderIcon from 'vue-material-design-icons/Folder.vue';
|
import FolderIcon from 'vue-material-design-icons/Folder.vue';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import './bootstrap';
|
import './bootstrap';
|
||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import App from './components/admin/AdminMain.vue';
|
import App from '@components/admin/AdminMain.vue';
|
||||||
|
|
||||||
_m.mode = 'admin';
|
_m.mode = 'admin';
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,14 @@ import { generateFilePath } from '@nextcloud/router';
|
||||||
import { getRequestToken } from '@nextcloud/auth';
|
import { getRequestToken } from '@nextcloud/auth';
|
||||||
|
|
||||||
// Global components
|
// Global components
|
||||||
import XImg from './components/frame/XImg.vue';
|
import XImg from '@components/frame/XImg.vue';
|
||||||
import XLoadingIcon from './components/XLoadingIcon.vue';
|
import XLoadingIcon from '@components/XLoadingIcon.vue';
|
||||||
import VueVirtualScroller from 'vue-virtual-scroller';
|
import VueVirtualScroller from 'vue-virtual-scroller';
|
||||||
|
|
||||||
// Locals
|
// Locals
|
||||||
import router, { routes } from './router';
|
import router, { routes } from './router';
|
||||||
import { constants, initstate } from './services/utils';
|
import { constants, initstate } from '@services/utils';
|
||||||
import { translate, translatePlural } from 'services/l10n';
|
import { translate, translatePlural } from '@services/l10n';
|
||||||
|
|
||||||
// CSS for components
|
// CSS for components
|
||||||
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css';
|
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css';
|
||||||
|
|
|
@ -27,9 +27,11 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import Cluster from './frame/Cluster.vue';
|
|
||||||
import type { ICluster } from '../types';
|
import Cluster from '@components/frame/Cluster.vue';
|
||||||
import * as utils from '../services/utils';
|
|
||||||
|
import type { ICluster } from '@types';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'ClusterGrid',
|
name: 'ClusterGrid',
|
||||||
|
|
|
@ -22,9 +22,11 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
import type { ICluster } from '../types';
|
|
||||||
import Cluster from './frame/Cluster.vue';
|
import Cluster from './frame/Cluster.vue';
|
||||||
|
|
||||||
|
import type { ICluster } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'ClusterHList',
|
name: 'ClusterHList',
|
||||||
|
|
||||||
|
|
|
@ -20,17 +20,17 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import type { Route } from 'vue-router';
|
import type { Route } from 'vue-router';
|
||||||
|
|
||||||
import UserConfig from '../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import TopMatter from './top-matter/TopMatter.vue';
|
import TopMatter from '@components/top-matter/TopMatter.vue';
|
||||||
import ClusterGrid from './ClusterGrid.vue';
|
import ClusterGrid from '@components/ClusterGrid.vue';
|
||||||
import Timeline from './Timeline.vue';
|
import Timeline from '@components/Timeline.vue';
|
||||||
import EmptyContent from './top-matter/EmptyContent.vue';
|
import EmptyContent from '@components/top-matter/EmptyContent.vue';
|
||||||
import DynamicTopMatter from './top-matter/DynamicTopMatter.vue';
|
import DynamicTopMatter from '@components/top-matter/DynamicTopMatter.vue';
|
||||||
|
|
||||||
import * as dav from '../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import * as utils from '../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import type { ICluster } from '../types';
|
import type { ICluster } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'ClusterView',
|
name: 'ClusterView',
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import type { Component } from 'vue';
|
import type { Component } from 'vue';
|
||||||
|
|
||||||
import ClusterHList from './ClusterHList.vue';
|
import ClusterHList from '@components/ClusterHList.vue';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
|
|
||||||
|
@ -54,11 +54,11 @@ import CalendarIcon from 'vue-material-design-icons/Calendar.vue';
|
||||||
import MapIcon from 'vue-material-design-icons/Map.vue';
|
import MapIcon from 'vue-material-design-icons/Map.vue';
|
||||||
import CogIcon from 'vue-material-design-icons/Cog.vue';
|
import CogIcon from 'vue-material-design-icons/Cog.vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
import config from '../services/static-config';
|
import config from '@services/static-config';
|
||||||
import * as dav from '../services/dav';
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
import type { ICluster, IConfig } from '../types';
|
import type { ICluster, IConfig } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Explore',
|
name: 'Explore',
|
||||||
|
|
|
@ -46,17 +46,20 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import UserConfig from '../mixins/UserConfig';
|
|
||||||
import NcContent from '@nextcloud/vue/dist/Components/NcContent';
|
import NcContent from '@nextcloud/vue/dist/Components/NcContent';
|
||||||
import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent';
|
import NcAppContent from '@nextcloud/vue/dist/Components/NcAppContent';
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
|
|
||||||
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import banner from '../assets/banner.svg';
|
import banner from '@assets/banner.svg';
|
||||||
import type { IDay } from '../types';
|
|
||||||
import { API } from '../services/API';
|
import * as utils from '@services/utils';
|
||||||
import * as utils from '../services/utils';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
|
import type { IDay } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FirstStart',
|
name: 'FirstStart',
|
||||||
|
|
|
@ -76,9 +76,9 @@ import axios from '@nextcloud/axios';
|
||||||
import { getCanonicalLocale } from '@nextcloud/l10n';
|
import { getCanonicalLocale } from '@nextcloud/l10n';
|
||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
|
|
||||||
import UserConfig from '../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import AlbumsList from './modal/AlbumsList.vue';
|
import Cluster from '@components/frame/Cluster.vue';
|
||||||
import Cluster from './frame/Cluster.vue';
|
import AlbumsList from '@components/modal/AlbumsList.vue';
|
||||||
|
|
||||||
import EditIcon from 'vue-material-design-icons/Pencil.vue';
|
import EditIcon from 'vue-material-design-icons/Pencil.vue';
|
||||||
import CalendarIcon from 'vue-material-design-icons/Calendar.vue';
|
import CalendarIcon from 'vue-material-design-icons/Calendar.vue';
|
||||||
|
@ -87,11 +87,11 @@ import ImageIcon from 'vue-material-design-icons/Image.vue';
|
||||||
import LocationIcon from 'vue-material-design-icons/MapMarker.vue';
|
import LocationIcon from 'vue-material-design-icons/MapMarker.vue';
|
||||||
import TagIcon from 'vue-material-design-icons/Tag.vue';
|
import TagIcon from 'vue-material-design-icons/Tag.vue';
|
||||||
|
|
||||||
import * as utils from 'services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as dav from 'services/dav';
|
import * as dav from '@services/dav';
|
||||||
import { API } from 'services/API';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
import type { IAlbum, IFace, IImageInfo, IPhoto, IExif } from '../types';
|
import type { IAlbum, IFace, IImageInfo, IPhoto, IExif } from '@types';
|
||||||
|
|
||||||
interface TopField {
|
interface TopField {
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
|
@ -18,9 +18,10 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { generateUrl } from '@nextcloud/router';
|
import { generateUrl } from '@nextcloud/router';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import nextcloudsvg from '../assets/nextcloud.svg';
|
|
||||||
|
|
||||||
import * as utils from '../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import nextcloudsvg from '@assets/nextcloud.svg';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'MobileHeader',
|
name: 'MobileHeader',
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import * as nativex from '../native';
|
import * as nativex from '@native';
|
||||||
|
|
||||||
import ImageMultipleIcon from 'vue-material-design-icons/ImageMultiple.vue';
|
import ImageMultipleIcon from 'vue-material-design-icons/ImageMultiple.vue';
|
||||||
import SearchIcon from 'vue-material-design-icons/Magnify.vue';
|
import SearchIcon from 'vue-material-design-icons/Magnify.vue';
|
||||||
|
|
|
@ -51,13 +51,14 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
import { IRow, IRowType, ITick } from '../types';
|
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import { IRow, IRowType, ITick } from '@types';
|
||||||
|
|
||||||
import ScrollUpIcon from 'vue-material-design-icons/MenuUp.vue';
|
import ScrollUpIcon from 'vue-material-design-icons/MenuUp.vue';
|
||||||
import ScrollDownIcon from 'vue-material-design-icons/MenuDown.vue';
|
import ScrollDownIcon from 'vue-material-design-icons/MenuDown.vue';
|
||||||
|
|
||||||
import * as utils from '../services/utils';
|
|
||||||
|
|
||||||
const SNAP_OFFSET = -5; // Pixels to snap at
|
const SNAP_OFFSET = -5; // Pixels to snap at
|
||||||
const SNAP_MIN_ROWS = 1000; // Minimum rows to snap at
|
const SNAP_MIN_ROWS = 1000; // Minimum rows to snap at
|
||||||
const MOBILE_CURSOR_HH = 22; // Half height of the mobile cursor (CSS)
|
const MOBILE_CURSOR_HH = 22; // Half height of the mobile cursor (CSS)
|
||||||
|
|
|
@ -40,14 +40,15 @@ import { defineComponent, PropType } from 'vue';
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import UserConfig from '../mixins/UserConfig';
|
|
||||||
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';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import * as dav from '../services/dav';
|
|
||||||
import * as utils from '../services/utils';
|
import { translate as t } from '@services/l10n';
|
||||||
import * as nativex from '../native';
|
import * as dav from '@services/dav';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
import * as nativex from '@native';
|
||||||
|
|
||||||
import StarIcon from 'vue-material-design-icons/Star.vue';
|
import StarIcon from 'vue-material-design-icons/Star.vue';
|
||||||
import DownloadIcon from 'vue-material-design-icons/Download.vue';
|
import DownloadIcon from 'vue-material-design-icons/Download.vue';
|
||||||
|
@ -62,7 +63,7 @@ import AlbumsIcon from 'vue-material-design-icons/ImageAlbum.vue';
|
||||||
import AlbumRemoveIcon from 'vue-material-design-icons/BookRemove.vue';
|
import AlbumRemoveIcon from 'vue-material-design-icons/BookRemove.vue';
|
||||||
import FolderMoveIcon from 'vue-material-design-icons/FolderMove.vue';
|
import FolderMoveIcon from 'vue-material-design-icons/FolderMove.vue';
|
||||||
|
|
||||||
import { IDay, IHeadRow, IPhoto, IRow, IRowType } from '../types';
|
import { IDay, IHeadRow, IPhoto, IRow, IRowType } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The distance for which the touch selection is clamped.
|
* The distance for which the touch selection is clamped.
|
||||||
|
|
|
@ -161,18 +161,18 @@ input[type='text'] {
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import UserConfig from '../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import * as utils from '../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as nativex from '../native';
|
import * as nativex from '@native';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcAppSettingsDialog = () => import('@nextcloud/vue/dist/Components/NcAppSettingsDialog');
|
const NcAppSettingsDialog = () => import('@nextcloud/vue/dist/Components/NcAppSettingsDialog');
|
||||||
const NcAppSettingsSection = () => import('@nextcloud/vue/dist/Components/NcAppSettingsSection');
|
const NcAppSettingsSection = () => import('@nextcloud/vue/dist/Components/NcAppSettingsSection');
|
||||||
const NcCheckboxRadioSwitch = () => import('@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch');
|
const NcCheckboxRadioSwitch = () => import('@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch');
|
||||||
|
|
||||||
import MultiPathSelectionModal from './modal/MultiPathSelectionModal.vue';
|
import MultiPathSelectionModal from '@components/modal/MultiPathSelectionModal.vue';
|
||||||
|
|
||||||
import type { IConfig } from '../types';
|
import type { IConfig } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Settings',
|
name: 'Settings',
|
||||||
|
|
|
@ -21,13 +21,14 @@ import Vue, { defineComponent } from 'vue';
|
||||||
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';
|
||||||
|
|
||||||
import Metadata from './Metadata.vue';
|
import Metadata from '@components/Metadata.vue';
|
||||||
import { IPhoto } from '../types';
|
|
||||||
|
|
||||||
import * as utils from '../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import { IPhoto } from '@types';
|
||||||
|
|
||||||
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
||||||
import InfoSvg from '../assets/info.svg';
|
import InfoSvg from '@assets/info.svg';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Sidebar',
|
name: 'Sidebar',
|
||||||
|
|
|
@ -33,7 +33,7 @@ import Timeline from './Timeline.vue';
|
||||||
const MapSplitMatter = () => import('./top-matter/MapSplitMatter.vue');
|
const MapSplitMatter = () => import('./top-matter/MapSplitMatter.vue');
|
||||||
import Hammer from 'hammerjs';
|
import Hammer from 'hammerjs';
|
||||||
|
|
||||||
import * as utils from '../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'SplitTimeline',
|
name: 'SplitTimeline',
|
||||||
|
|
|
@ -95,26 +95,26 @@ import type { Route } from 'vue-router';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import { getLayout } from '../services/layout';
|
import { getLayout } from '@services/layout';
|
||||||
|
|
||||||
import UserConfig from '../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import RowHead from './frame/RowHead.vue';
|
import RowHead from '@components/frame/RowHead.vue';
|
||||||
import Photo from './frame/Photo.vue';
|
import Photo from '@components/frame/Photo.vue';
|
||||||
import ScrollerManager from './ScrollerManager.vue';
|
import ScrollerManager from '@components/ScrollerManager.vue';
|
||||||
import SelectionManager from './SelectionManager.vue';
|
import SelectionManager from '@components/SelectionManager.vue';
|
||||||
import Viewer from './viewer/Viewer.vue';
|
import Viewer from '@components/viewer/Viewer.vue';
|
||||||
|
|
||||||
import EmptyContent from './top-matter/EmptyContent.vue';
|
import EmptyContent from '@components/top-matter/EmptyContent.vue';
|
||||||
import TopMatter from './top-matter/TopMatter.vue';
|
import TopMatter from '@components/top-matter/TopMatter.vue';
|
||||||
import DynamicTopMatter from './top-matter/DynamicTopMatter.vue';
|
import DynamicTopMatter from '@components/top-matter/DynamicTopMatter.vue';
|
||||||
|
|
||||||
import * as dav from '../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import * as utils from '../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as nativex from '../native';
|
import * as nativex from '@native';
|
||||||
|
|
||||||
import { API, DaysFilterType } from '../services/API';
|
import { API, DaysFilterType } from '@services/API';
|
||||||
|
|
||||||
import { IDay, IHeadRow, IPhoto, IRow, IRowType } from '../types';
|
import { IDay, IHeadRow, IPhoto, IRow, IRowType } from '@types';
|
||||||
|
|
||||||
const SCROLL_LOAD_DELAY = 100; // Delay in loading data when scrolling
|
const SCROLL_LOAD_DELAY = 100; // Delay in loading data when scrolling
|
||||||
const DESKTOP_ROW_HEIGHT = 200; // Height of row on desktop
|
const DESKTOP_ROW_HEIGHT = 200; // Height of row on desktop
|
||||||
|
|
|
@ -26,9 +26,9 @@ import { defineComponent } from 'vue';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import staticConfig from '../../services/static-config';
|
import staticConfig from '@services/static-config';
|
||||||
|
|
||||||
import Help from './sections/Help.vue';
|
import Help from './sections/Help.vue';
|
||||||
import Exif from './sections/Exif.vue';
|
import Exif from './sections/Exif.vue';
|
||||||
|
@ -43,7 +43,7 @@ import VideoTranscoder from './sections/VideoTranscoder.vue';
|
||||||
import VideoAccel from './sections/VideoAccel.vue';
|
import VideoAccel from './sections/VideoAccel.vue';
|
||||||
|
|
||||||
import type { ISystemConfig, ISystemStatus } from './AdminTypes';
|
import type { ISystemConfig, ISystemStatus } from './AdminTypes';
|
||||||
import type { IConfig } from '../../types';
|
import type { IConfig } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Admin',
|
name: 'Admin',
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
import type { ISystemStatus, ISystemConfig, IBinaryStatus } from './AdminTypes';
|
|
||||||
import type { IConfig } from '../../types';
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
const NcCheckboxRadioSwitch = () => import('@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch');
|
const NcCheckboxRadioSwitch = () => import('@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch');
|
||||||
|
@ -8,6 +6,9 @@ const NcNoteCard = () => import('@nextcloud/vue/dist/Components/NcNoteCard');
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
|
|
||||||
|
import type { ISystemStatus, ISystemConfig, IBinaryStatus } from './AdminTypes';
|
||||||
|
import type { IConfig } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AdminMixin',
|
name: 'AdminMixin',
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import type { IConfig } from '../../types';
|
import type { IConfig } from '@types';
|
||||||
|
|
||||||
/** System configuration */
|
/** System configuration */
|
||||||
export type ISystemConfig = {
|
export type ISystemConfig = {
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -69,10 +69,10 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { API } from '../../../services/API';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
import * as utils from '../../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
import AdminMixin from '../AdminMixin';
|
import AdminMixin from '../AdminMixin';
|
||||||
|
|
||||||
|
|
|
@ -37,14 +37,14 @@ import { defineComponent, PropType } from 'vue';
|
||||||
|
|
||||||
import NcCounterBubble from '@nextcloud/vue/dist/Components/NcCounterBubble';
|
import NcCounterBubble from '@nextcloud/vue/dist/Components/NcCounterBubble';
|
||||||
|
|
||||||
import type { IAlbum, ICluster, IFace, IPhoto } from '../../types';
|
import type { IAlbum, ICluster, IFace, IPhoto } from '@types';
|
||||||
import { getPreviewUrl } from '../../services/utils/helpers';
|
import { getPreviewUrl } from '@services/utils/helpers';
|
||||||
import errorsvg from '../../assets/error.svg';
|
import errorsvg from '@assets/error.svg';
|
||||||
import plussvg from '../../assets/plus.svg';
|
import plussvg from '@assets/plus.svg';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as nativex from '@native';
|
||||||
import * as nativex from '../../native';
|
import * as utils from '@services/utils';
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,13 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
import { IFolder, IPhoto } from '../../types';
|
|
||||||
|
|
||||||
import * as utils from '../../services/utils/helpers';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
|
import * as utils from '@services/utils/helpers';
|
||||||
|
|
||||||
|
import { IFolder, IPhoto } from '@types';
|
||||||
|
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
|
||||||
import FolderIcon from 'vue-material-design-icons/Folder.vue';
|
import FolderIcon from 'vue-material-design-icons/Folder.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
|
@ -73,10 +73,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
|
|
||||||
import { IDay, IPhoto } from '../../types';
|
import * as utils from '@services/utils';
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
import errorsvg from '../../assets/error.svg';
|
|
||||||
import CheckCircleIcon from 'vue-material-design-icons/CheckCircle.vue';
|
import CheckCircleIcon from 'vue-material-design-icons/CheckCircle.vue';
|
||||||
import StarIcon from 'vue-material-design-icons/Star.vue';
|
import StarIcon from 'vue-material-design-icons/Star.vue';
|
||||||
import VideoIcon from 'vue-material-design-icons/PlayCircleOutline.vue';
|
import VideoIcon from 'vue-material-design-icons/PlayCircleOutline.vue';
|
||||||
|
@ -84,7 +82,10 @@ import LivePhotoIcon from 'vue-material-design-icons/MotionPlayOutline.vue';
|
||||||
import LocalIcon from 'vue-material-design-icons/CloudOff.vue';
|
import LocalIcon from 'vue-material-design-icons/CloudOff.vue';
|
||||||
import RawIcon from 'vue-material-design-icons/Raw.vue';
|
import RawIcon from 'vue-material-design-icons/Raw.vue';
|
||||||
|
|
||||||
import type XImg from './XImg.vue';
|
import type { IDay, IPhoto } from '@types';
|
||||||
|
import type XImg from '@components/XImg.vue';
|
||||||
|
|
||||||
|
import errorsvg from '@assets/error.svg';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Photo',
|
name: 'Photo',
|
||||||
|
|
|
@ -12,12 +12,13 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
import { IHeadRow } from '../../types';
|
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import type { IHeadRow } from '@types';
|
||||||
|
|
||||||
import CheckCircle from 'vue-material-design-icons/CheckCircle.vue';
|
import CheckCircle from 'vue-material-design-icons/CheckCircle.vue';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'RowHead',
|
name: 'RowHead',
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
import { workerImporter } from '../../worker';
|
import { workerImporter } from '../../worker';
|
||||||
import type * as w from './XImgWorker';
|
import type * as w from './XImgWorker';
|
||||||
|
|
||||||
|
|
|
@ -17,19 +17,18 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import * as dav from '../../services/dav';
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
import { showInfo } from '@nextcloud/dialogs';
|
import { showInfo } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import { IAlbum, IPhoto } from '../../types';
|
|
||||||
|
|
||||||
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
import AlbumPicker from './AlbumPicker.vue';
|
import AlbumPicker from './AlbumPicker.vue';
|
||||||
|
|
||||||
|
import * as dav from '@services/dav';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import { IAlbum, IPhoto } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AddToAlbumModal',
|
name: 'AddToAlbumModal',
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -146,9 +146,9 @@ import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
const NcListItemIcon = () => import('@nextcloud/vue/dist/Components/NcListItemIcon');
|
const NcListItemIcon = () => import('@nextcloud/vue/dist/Components/NcListItemIcon');
|
||||||
|
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as nativex from '../../native';
|
import * as nativex from '@native';
|
||||||
|
|
||||||
import { Type } from '@nextcloud/sharing';
|
import { Type } from '@nextcloud/sharing';
|
||||||
|
|
||||||
|
|
|
@ -19,12 +19,13 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import * as dav from '../../services/dav';
|
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
import AlbumForm from './AlbumForm.vue';
|
import AlbumForm from './AlbumForm.vue';
|
||||||
|
|
||||||
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AlbumCreateModal',
|
name: 'AlbumCreateModal',
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -23,15 +23,16 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
import { showError } from '@nextcloud/dialogs';
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import client from '../../services/dav/client';
|
import client from '@services/dav/client';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AlbumDeleteModal',
|
name: 'AlbumDeleteModal',
|
||||||
|
|
|
@ -94,12 +94,12 @@ import { showError } from '@nextcloud/dialogs';
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import { DateTime } from 'luxon';
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
import * as dav from '../../services/dav';
|
|
||||||
|
|
||||||
import AlbumCollaborators from './AlbumCollaborators.vue';
|
import AlbumCollaborators from './AlbumCollaborators.vue';
|
||||||
|
|
||||||
|
import { DateTime } from 'luxon';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
import Send from 'vue-material-design-icons/Send.vue';
|
import Send from 'vue-material-design-icons/Send.vue';
|
||||||
import AccountMultiplePlus from 'vue-material-design-icons/AccountMultiplePlus.vue';
|
import AccountMultiplePlus from 'vue-material-design-icons/AccountMultiplePlus.vue';
|
||||||
|
|
||||||
|
|
|
@ -75,17 +75,18 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
|
|
||||||
import AlbumForm from './AlbumForm.vue';
|
import Fuse from 'fuse.js';
|
||||||
import AlbumsList from './AlbumsList.vue';
|
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import * as dav from '../../services/dav';
|
import AlbumForm from './AlbumForm.vue';
|
||||||
import { IAlbum, IPhoto } from '../../types';
|
import AlbumsList from './AlbumsList.vue';
|
||||||
|
|
||||||
import Fuse from 'fuse.js';
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
|
import type { IAlbum, IPhoto } from '@types';
|
||||||
|
|
||||||
import PlusIcon from 'vue-material-design-icons/Plus.vue';
|
import PlusIcon from 'vue-material-design-icons/Plus.vue';
|
||||||
import CheckIcon from 'vue-material-design-icons/Check.vue';
|
import CheckIcon from 'vue-material-design-icons/Check.vue';
|
||||||
|
|
|
@ -38,7 +38,7 @@ import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
import AlbumCollaborators from './AlbumCollaborators.vue';
|
import AlbumCollaborators from './AlbumCollaborators.vue';
|
||||||
|
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AlbumShareModal',
|
name: 'AlbumShareModal',
|
||||||
|
|
|
@ -32,14 +32,13 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent, PropType } from 'vue';
|
import { defineComponent, PropType } from 'vue';
|
||||||
import { getPreviewUrl } from '../../services/utils/helpers';
|
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import type { IAlbum, IPhoto } from '../../types';
|
import type { IAlbum, IPhoto } from '@types';
|
||||||
|
|
||||||
import ImageMultipleIcon from 'vue-material-design-icons/ImageMultiple.vue';
|
import ImageMultipleIcon from 'vue-material-design-icons/ImageMultiple.vue';
|
||||||
|
|
||||||
|
@ -86,7 +85,7 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
toCoverUrl(album: IAlbum) {
|
toCoverUrl(album: IAlbum) {
|
||||||
return getPreviewUrl({
|
return utils.getPreviewUrl({
|
||||||
photo: {
|
photo: {
|
||||||
fileid: Number(album.last_added_photo),
|
fileid: Number(album.last_added_photo),
|
||||||
} as IPhoto,
|
} as IPhoto,
|
||||||
|
|
|
@ -112,11 +112,12 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { IPhoto } from '../../types';
|
|
||||||
|
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import { IPhoto } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'EditDate',
|
name: 'EditDate',
|
||||||
|
|
|
@ -23,11 +23,12 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { IExif, IPhoto } from '../../types';
|
|
||||||
|
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
|
import { IExif, IPhoto } from '@types';
|
||||||
|
|
||||||
interface IField {
|
interface IField {
|
||||||
field: keyof IExif;
|
field: keyof IExif;
|
||||||
|
|
|
@ -64,7 +64,6 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { IPhoto } from '../../types';
|
|
||||||
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
@ -74,6 +73,8 @@ import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
||||||
|
|
||||||
|
import { IPhoto } from '@types';
|
||||||
|
|
||||||
import MagnifyIcon from 'vue-material-design-icons/Magnify.vue';
|
import MagnifyIcon from 'vue-material-design-icons/Magnify.vue';
|
||||||
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
||||||
import UndoIcon from 'vue-material-design-icons/UndoVariant.vue';
|
import UndoIcon from 'vue-material-design-icons/UndoVariant.vue';
|
||||||
|
|
|
@ -49,14 +49,14 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { IExif, IImageInfo, IPhoto } from '../../types';
|
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
||||||
|
|
||||||
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
import EditDate from './EditDate.vue';
|
import EditDate from './EditDate.vue';
|
||||||
|
@ -67,9 +67,11 @@ import EditLocation from './EditLocation.vue';
|
||||||
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/dav';
|
import * as dav from '@services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
|
import { IExif, IImageInfo, IPhoto } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -17,11 +17,13 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { IPhoto } from '../../types';
|
|
||||||
import * as dav from '../../services/dav';
|
|
||||||
|
|
||||||
const NcSelectTags = () => import('@nextcloud/vue/dist/Components/NcSelectTags');
|
const NcSelectTags = () => import('@nextcloud/vue/dist/Components/NcSelectTags');
|
||||||
|
|
||||||
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'EditTags',
|
name: 'EditTags',
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -17,16 +17,16 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FaceDeleteModal',
|
name: 'FaceDeleteModal',
|
||||||
|
|
|
@ -27,16 +27,16 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FaceEditModal',
|
name: 'FaceEditModal',
|
||||||
|
|
|
@ -28,14 +28,17 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { ICluster, IFace } from '../../types';
|
import Fuse from 'fuse.js';
|
||||||
import ClusterGrid from '../ClusterGrid.vue';
|
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import * as dav from '../../services/dav';
|
import ClusterGrid from '@components/ClusterGrid.vue';
|
||||||
import Fuse from 'fuse.js';
|
|
||||||
|
import * as dav from '@services/dav';
|
||||||
|
|
||||||
|
import type { ICluster, IFace } from '@types';
|
||||||
|
|
||||||
import MagnifyIcon from 'vue-material-design-icons/Magnify.vue';
|
import MagnifyIcon from 'vue-material-design-icons/Magnify.vue';
|
||||||
|
|
||||||
|
|
|
@ -23,21 +23,22 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import Cluster from '@components/frame/Cluster.vue';
|
||||||
import { IFileInfo, IFace } from '../../types';
|
|
||||||
import Cluster from '../frame/Cluster.vue';
|
|
||||||
import FaceList from './FaceList.vue';
|
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
import FaceList from './FaceList.vue';
|
||||||
|
|
||||||
import client from '../../services/dav/client';
|
import client from '@services/dav/client';
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import { IFileInfo, IFace } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FaceMergeModal',
|
name: 'FaceMergeModal',
|
||||||
|
|
|
@ -19,19 +19,21 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import Cluster from '@components/frame/Cluster.vue';
|
||||||
import { IPhoto, IFace } from '../../types';
|
|
||||||
import Cluster from '../frame/Cluster.vue';
|
|
||||||
import FaceList from './FaceList.vue';
|
import FaceList from './FaceList.vue';
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import type { IPhoto, IFace } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FaceMoveModal',
|
name: 'FaceMoveModal',
|
||||||
|
|
|
@ -24,13 +24,12 @@
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
import type { PropType } from 'vue';
|
import type { PropType } from 'vue';
|
||||||
|
|
||||||
const NcModal = () => import('@nextcloud/vue/dist/Components/NcModal');
|
const NcModal = () => import('@nextcloud/vue/dist/Components/NcModal');
|
||||||
|
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'Modal',
|
name: 'Modal',
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'ModalMixin',
|
name: 'ModalMixin',
|
||||||
|
|
|
@ -16,17 +16,18 @@ import { defineComponent } from 'vue';
|
||||||
import { FilePickerType } from '@nextcloud/dialogs';
|
import { FilePickerType } from '@nextcloud/dialogs';
|
||||||
import { showInfo } from '@nextcloud/dialogs';
|
import { showInfo } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import * as dav from '../../services/dav';
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
import type { IPhoto } from '../../types';
|
|
||||||
|
|
||||||
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
||||||
|
|
||||||
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
|
import * as dav from '@services/dav';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'MoveToFolderModal',
|
name: 'MoveToFolderModal',
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -31,8 +31,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
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';
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
|
@ -40,6 +38,8 @@ import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
|
@ -64,17 +64,18 @@ import { defineComponent } from 'vue';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import { showSuccess } from '@nextcloud/dialogs';
|
import { showSuccess } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
||||||
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
|
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
|
||||||
|
|
||||||
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
|
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as nativex from '../../native';
|
import * as nativex from '@native';
|
||||||
|
|
||||||
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
||||||
import LinkIcon from 'vue-material-design-icons/LinkVariant.vue';
|
import LinkIcon from 'vue-material-design-icons/LinkVariant.vue';
|
||||||
|
|
|
@ -79,15 +79,17 @@ import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
const NcListItem = () => import('@nextcloud/vue/dist/Components/NcListItem');
|
||||||
|
|
||||||
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import ModalMixin from './ModalMixin';
|
import ModalMixin from './ModalMixin';
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
|
||||||
|
|
||||||
import { IPhoto } from '../../types';
|
import { API } from '@services/API';
|
||||||
import { API } from '../../services/API';
|
import * as dav from '@services/dav';
|
||||||
import * as dav from '../../services/dav';
|
import * as utils from '@services/utils';
|
||||||
import * as utils from '../../services/utils';
|
import * as nativex from '@native';
|
||||||
import * as nativex from '../../native';
|
|
||||||
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
import PhotoIcon from 'vue-material-design-icons/Image.vue';
|
import PhotoIcon from 'vue-material-design-icons/Image.vue';
|
||||||
import LargePhotoIcon from 'vue-material-design-icons/ImageArea.vue';
|
import LargePhotoIcon from 'vue-material-design-icons/ImageArea.vue';
|
||||||
|
|
|
@ -96,7 +96,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
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';
|
||||||
import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox';
|
import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox';
|
||||||
|
@ -104,11 +104,13 @@ import NcActionRadio from '@nextcloud/vue/dist/Components/NcActionRadio';
|
||||||
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import AlbumCreateModal from '../modal/AlbumCreateModal.vue';
|
import AlbumCreateModal from '@components/modal/AlbumCreateModal.vue';
|
||||||
import AlbumDeleteModal from '../modal/AlbumDeleteModal.vue';
|
import AlbumDeleteModal from '@components/modal/AlbumDeleteModal.vue';
|
||||||
import AlbumShareModal from '../modal/AlbumShareModal.vue';
|
import AlbumShareModal from '@components/modal/AlbumShareModal.vue';
|
||||||
|
|
||||||
import { downloadWithHandle } from '../../services/dav/download';
|
import { downloadWithHandle } from '@services/dav/download';
|
||||||
|
import { API } from '@services/API';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import BackIcon from 'vue-material-design-icons/ArrowLeft.vue';
|
import BackIcon from 'vue-material-design-icons/ArrowLeft.vue';
|
||||||
import DownloadIcon from 'vue-material-design-icons/Download.vue';
|
import DownloadIcon from 'vue-material-design-icons/Download.vue';
|
||||||
|
@ -119,8 +121,6 @@ import ShareIcon from 'vue-material-design-icons/ShareVariant.vue';
|
||||||
import SortIcon from 'vue-material-design-icons/SortVariant.vue';
|
import SortIcon from 'vue-material-design-icons/SortVariant.vue';
|
||||||
import SlotAlphabeticalIcon from 'vue-material-design-icons/SortAlphabeticalAscending.vue';
|
import SlotAlphabeticalIcon from 'vue-material-design-icons/SortAlphabeticalAscending.vue';
|
||||||
import SortDateIcon from 'vue-material-design-icons/SortCalendarDescending.vue';
|
import SortDateIcon from 'vue-material-design-icons/SortCalendarDescending.vue';
|
||||||
import { API } from '../../services/API';
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AlbumTopMatter',
|
name: 'AlbumTopMatter',
|
||||||
|
|
|
@ -15,7 +15,8 @@ import { defineComponent } from 'vue';
|
||||||
|
|
||||||
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';
|
||||||
import * as strings from '../../services/strings';
|
|
||||||
|
import * as strings from '@services/strings';
|
||||||
|
|
||||||
import BackIcon from 'vue-material-design-icons/ArrowLeft.vue';
|
import BackIcon from 'vue-material-design-icons/ArrowLeft.vue';
|
||||||
|
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { Component } from 'vue';
|
import { Component } from 'vue';
|
||||||
|
|
||||||
import UserMixin from '../../mixins/UserConfig';
|
import UserMixin from '@mixins/UserConfig';
|
||||||
|
|
||||||
import FolderDynamicTopMatter from './FolderDynamicTopMatter.vue';
|
import FolderDynamicTopMatter from './FolderDynamicTopMatter.vue';
|
||||||
import PlacesDynamicTopMatterVue from './PlacesDynamicTopMatter.vue';
|
import PlacesDynamicTopMatterVue from './PlacesDynamicTopMatter.vue';
|
||||||
import OnThisDay from './OnThisDay.vue';
|
import OnThisDay from './OnThisDay.vue';
|
||||||
|
|
||||||
import * as strings from '../../services/strings';
|
import * as strings from '@services/strings';
|
||||||
|
|
||||||
// Auto-hide top header on public shares if redundant
|
// Auto-hide top header on public shares if redundant
|
||||||
import './PublicShareHeader';
|
import './PublicShareHeader';
|
||||||
|
|
|
@ -15,14 +15,14 @@ import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent';
|
import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent';
|
||||||
|
|
||||||
|
import * as strings from '@services/strings';
|
||||||
|
|
||||||
import PeopleIcon from 'vue-material-design-icons/AccountMultiple.vue';
|
import PeopleIcon from 'vue-material-design-icons/AccountMultiple.vue';
|
||||||
import ImageMultipleIcon from 'vue-material-design-icons/ImageMultiple.vue';
|
import ImageMultipleIcon from 'vue-material-design-icons/ImageMultiple.vue';
|
||||||
import ArchiveIcon from 'vue-material-design-icons/PackageDown.vue';
|
import ArchiveIcon from 'vue-material-design-icons/PackageDown.vue';
|
||||||
import AlbumIcon from 'vue-material-design-icons/ImageAlbum.vue';
|
import AlbumIcon from 'vue-material-design-icons/ImageAlbum.vue';
|
||||||
import MapIcon from 'vue-material-design-icons/Map.vue';
|
import MapIcon from 'vue-material-design-icons/Map.vue';
|
||||||
|
|
||||||
import * as strings from '../../services/strings';
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'EmptyContent',
|
name: 'EmptyContent',
|
||||||
|
|
||||||
|
|
|
@ -61,22 +61,24 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
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';
|
||||||
import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox';
|
import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox';
|
||||||
|
|
||||||
import FaceEditModal from '../modal/FaceEditModal.vue';
|
import FaceEditModal from '@components/modal/FaceEditModal.vue';
|
||||||
import FaceDeleteModal from '../modal/FaceDeleteModal.vue';
|
import FaceDeleteModal from '@components/modal/FaceDeleteModal.vue';
|
||||||
import FaceMergeModal from '../modal/FaceMergeModal.vue';
|
import FaceMergeModal from '@components/modal/FaceMergeModal.vue';
|
||||||
|
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import BackIcon from 'vue-material-design-icons/ArrowLeft.vue';
|
import BackIcon from 'vue-material-design-icons/ArrowLeft.vue';
|
||||||
import EditIcon from 'vue-material-design-icons/Pencil.vue';
|
import EditIcon from 'vue-material-design-icons/Pencil.vue';
|
||||||
import DeleteIcon from 'vue-material-design-icons/Close.vue';
|
import DeleteIcon from 'vue-material-design-icons/Close.vue';
|
||||||
import MergeIcon from 'vue-material-design-icons/Merge.vue';
|
import MergeIcon from 'vue-material-design-icons/Merge.vue';
|
||||||
import UnassignedIcon from 'vue-material-design-icons/AccountQuestion.vue';
|
import UnassignedIcon from 'vue-material-design-icons/AccountQuestion.vue';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FaceTopMatter',
|
name: 'FaceTopMatter',
|
||||||
components: {
|
components: {
|
||||||
|
|
|
@ -5,15 +5,16 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
|
import UserMixin from '@mixins/UserConfig';
|
||||||
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import FolderGrid from './FolderGrid.vue';
|
import FolderGrid from './FolderGrid.vue';
|
||||||
import UserMixin from '../../mixins/UserConfig';
|
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
import type { IFolder } from '../../types';
|
import type { IFolder } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FolderDynamicTopMatter',
|
name: 'FolderDynamicTopMatter',
|
||||||
|
|
|
@ -9,10 +9,10 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import Folder from '../frame/Folder.vue';
|
import Folder from '@components/frame/Folder.vue';
|
||||||
|
|
||||||
import type { IFolder } from '../../types';
|
import type { IFolder } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'ClusterGrid',
|
name: 'ClusterGrid',
|
||||||
|
|
|
@ -46,13 +46,14 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
|
|
||||||
const NcBreadcrumbs = () => import('@nextcloud/vue/dist/Components/NcBreadcrumbs');
|
const NcBreadcrumbs = () => import('@nextcloud/vue/dist/Components/NcBreadcrumbs');
|
||||||
const NcBreadcrumb = () => import('@nextcloud/vue/dist/Components/NcBreadcrumb');
|
const NcBreadcrumb = () => import('@nextcloud/vue/dist/Components/NcBreadcrumb');
|
||||||
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';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import HomeIcon from 'vue-material-design-icons/Home.vue';
|
import HomeIcon from 'vue-material-design-icons/Home.vue';
|
||||||
import ShareIcon from 'vue-material-design-icons/ShareVariant.vue';
|
import ShareIcon from 'vue-material-design-icons/ShareVariant.vue';
|
||||||
|
|
|
@ -38,12 +38,13 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { LMap, LTileLayer, LMarker, LPopup, LIcon } from 'vue2-leaflet';
|
import { LMap, LTileLayer, LMarker, LPopup, LIcon } from 'vue2-leaflet';
|
||||||
import { latLngBounds, Icon } from 'leaflet';
|
import { latLngBounds, Icon } from 'leaflet';
|
||||||
import { IPhoto } from '../../types';
|
|
||||||
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
import 'leaflet/dist/leaflet.css';
|
import 'leaflet/dist/leaflet.css';
|
||||||
import 'leaflet-edgebuffer';
|
import 'leaflet-edgebuffer';
|
||||||
|
|
|
@ -35,9 +35,9 @@ import { defineComponent } from 'vue';
|
||||||
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';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import { IPhoto } from '../../types';
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
import LeftMoveIcon from 'vue-material-design-icons/ChevronLeft.vue';
|
import LeftMoveIcon from 'vue-material-design-icons/ChevronLeft.vue';
|
||||||
import RightMoveIcon from 'vue-material-design-icons/ChevronRight.vue';
|
import RightMoveIcon from 'vue-material-design-icons/ChevronRight.vue';
|
||||||
|
|
|
@ -12,9 +12,9 @@ import { defineComponent } from 'vue';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
|
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
import type { ICluster } from '../../types';
|
import type { ICluster } from '@types';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'PlacesDynamicTopMatter',
|
name: 'PlacesDynamicTopMatter',
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
// Shown in dynamic top matter (Timeline::viewName)
|
// Shown in dynamic top matter (Timeline::viewName)
|
||||||
const title = utils.initstate.shareTitle;
|
const title = utils.initstate.shareTitle;
|
||||||
|
|
|
@ -18,7 +18,7 @@ import ClusterTopMatter from './ClusterTopMatter.vue';
|
||||||
import FaceTopMatter from './FaceTopMatter.vue';
|
import FaceTopMatter from './FaceTopMatter.vue';
|
||||||
import AlbumTopMatter from './AlbumTopMatter.vue';
|
import AlbumTopMatter from './AlbumTopMatter.vue';
|
||||||
|
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'TopMatter',
|
name: 'TopMatter',
|
||||||
|
|
|
@ -18,10 +18,12 @@ import { FilerobotImageEditorConfig } from 'react-filerobot-image-editor';
|
||||||
|
|
||||||
import translations from './ImageEditorTranslations';
|
import translations from './ImageEditorTranslations';
|
||||||
|
|
||||||
import { API } from '../../services/API';
|
import { fetchImage } from '@components/frame/XImgCache';
|
||||||
import { IImageInfo, IPhoto } from '../../types';
|
|
||||||
import * as utils from '../../services/utils';
|
import { API } from '@services/API';
|
||||||
import { fetchImage } from '../frame/XImgCache';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import { IImageInfo, IPhoto } from '@types';
|
||||||
|
|
||||||
// Crop preset icons
|
// Crop preset icons
|
||||||
import LandscapeIcon from '@scaleflex/icons/landscape';
|
import LandscapeIcon from '@scaleflex/icons/landscape';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translations file from library source
|
* Translations file from library source
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { isLiveContent } from './PsLivePhoto';
|
||||||
import { fetchImage } from '../frame/XImgCache';
|
import { fetchImage } from '../frame/XImgCache';
|
||||||
import { PsContent, PsEvent, PsSlide } from './types';
|
import { PsContent, PsEvent, PsSlide } from './types';
|
||||||
|
|
||||||
import errorsvg from '../../assets/error.svg';
|
import errorsvg from '@assets/error.svg';
|
||||||
|
|
||||||
export default class ImageContentSetup {
|
export default class ImageContentSetup {
|
||||||
private loading = 0;
|
private loading = 0;
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
import PhotoSwipe from 'photoswipe';
|
import PhotoSwipe from 'photoswipe';
|
||||||
import PsImage from './PsImage';
|
import PsImage from './PsImage';
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
import staticConfig from '../../services/static-config';
|
import * as utils from '@services/utils';
|
||||||
|
import staticConfig from '@services/static-config';
|
||||||
|
|
||||||
import type { PsContent, PsEvent } from './types';
|
import type { PsContent, PsEvent } from './types';
|
||||||
|
|
||||||
export function isLiveContent(content: PsContent): boolean {
|
export function isLiveContent(content: PsContent): boolean {
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
import PhotoSwipe from 'photoswipe';
|
import PhotoSwipe from 'photoswipe';
|
||||||
import staticConfig from '../../services/static-config';
|
|
||||||
import * as nativex from '../../native';
|
|
||||||
import * as utils from '../../services/utils';
|
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { translate as t } from 'services/l10n';
|
|
||||||
|
|
||||||
import { API } from '../../services/API';
|
import { translate as t } from '@services/l10n';
|
||||||
|
import staticConfig from '@services/static-config';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
import * as nativex from '@native';
|
||||||
|
import { API } from '@services/API';
|
||||||
|
|
||||||
import type { PsContent, PsEvent } from './types';
|
import type { PsContent, PsEvent } from './types';
|
||||||
|
|
||||||
import Player from 'video.js/dist/types/player';
|
import Player from 'video.js/dist/types/player';
|
||||||
|
@ -155,7 +156,7 @@ class VideoContentSetup {
|
||||||
|
|
||||||
// Load videojs scripts
|
// Load videojs scripts
|
||||||
if (!_m.video.videojs) {
|
if (!_m.video.videojs) {
|
||||||
await import('../../services/videojs');
|
await import('@services/videojs');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create video element
|
// Create video element
|
||||||
|
|
|
@ -173,19 +173,16 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { IImageInfo, IPhoto, TimelineState } from '../../types';
|
import UserConfig from '@mixins/UserConfig';
|
||||||
import type { PsContent } from './types';
|
|
||||||
|
|
||||||
import UserConfig from '../../mixins/UserConfig';
|
|
||||||
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';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import { API } from '../../services/API';
|
import { API } from '@services/API';
|
||||||
import * as dav from '../../services/dav';
|
import * as dav from '@services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '@services/utils';
|
||||||
import * as nativex from '../../native';
|
import * as nativex from '@native';
|
||||||
|
|
||||||
import ImageEditor from './ImageEditor.vue';
|
import ImageEditor from './ImageEditor.vue';
|
||||||
import PhotoSwipe, { PhotoSwipeOptions } from 'photoswipe';
|
import PhotoSwipe, { PhotoSwipeOptions } from 'photoswipe';
|
||||||
|
@ -194,6 +191,9 @@ import PsImage from './PsImage';
|
||||||
import PsVideo from './PsVideo';
|
import PsVideo from './PsVideo';
|
||||||
import PsLivePhoto from './PsLivePhoto';
|
import PsLivePhoto from './PsLivePhoto';
|
||||||
|
|
||||||
|
import { IImageInfo, IPhoto, TimelineState } from '@types';
|
||||||
|
import type { PsContent } from './types';
|
||||||
|
|
||||||
import ShareIcon from 'vue-material-design-icons/ShareVariant.vue';
|
import ShareIcon from 'vue-material-design-icons/ShareVariant.vue';
|
||||||
import DeleteIcon from 'vue-material-design-icons/TrashCanOutline.vue';
|
import DeleteIcon from 'vue-material-design-icons/TrashCanOutline.vue';
|
||||||
import StarIcon from 'vue-material-design-icons/Star.vue';
|
import StarIcon from 'vue-material-design-icons/Star.vue';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import Content from 'photoswipe/dist/types/slide/content';
|
import Content from 'photoswipe/dist/types/slide/content';
|
||||||
import Slide, { _SlideData } from 'photoswipe/dist/types/slide/slide';
|
import Slide, { _SlideData } from 'photoswipe/dist/types/slide/slide';
|
||||||
import type { IPhoto, IConfig } from '../../types';
|
import type { IPhoto, IConfig } from '@types';
|
||||||
|
|
||||||
type PsAugment = {
|
type PsAugment = {
|
||||||
data: _SlideData & {
|
data: _SlideData & {
|
||||||
|
|
|
@ -4,9 +4,9 @@ import type { ComponentPublicInstance } from 'vue';
|
||||||
import type PlyrType from 'plyr';
|
import type PlyrType from 'plyr';
|
||||||
import type videojsType from 'video.js';
|
import type videojsType from 'video.js';
|
||||||
|
|
||||||
import type { IPhoto, TimelineState } from './types';
|
import type { IPhoto, TimelineState } from '@types';
|
||||||
import type { constants, initstate } from './services/utils';
|
import type { constants, initstate } from '@services/utils';
|
||||||
import type { translate, translatePlural } from 'services/l10n';
|
import type { translate, translatePlural } from '@services/l10n';
|
||||||
import type { GlobalRouteCheckers, routes } from './router';
|
import type { GlobalRouteCheckers, routes } from './router';
|
||||||
|
|
||||||
// Global exposed variables
|
// Global exposed variables
|
||||||
|
|
|
@ -2,12 +2,12 @@ import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import { API } from '../services/API';
|
import { API } from '@services/API';
|
||||||
import * as utils from '../services/utils';
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import { IConfig } from '../types';
|
|
||||||
import staticConfig from '../services/static-config';
|
import staticConfig from '../services/static-config';
|
||||||
|
|
||||||
|
import type { IConfig } from '@types';
|
||||||
|
|
||||||
const eventName: keyof utils.BusEvent = 'memories:user-config-changed';
|
const eventName: keyof utils.BusEvent = 'memories:user-config-changed';
|
||||||
|
|
||||||
const localSettings: (keyof IConfig)[] = ['square_thumbs', 'high_res_cond', 'show_face_rect', 'album_list_sort'];
|
const localSettings: (keyof IConfig)[] = ['square_thumbs', 'high_res_cond', 'show_face_rect', 'album_list_sort'];
|
||||||
|
|
|
@ -103,13 +103,13 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import * as nativex from '../native';
|
|
||||||
import * as util from '../services/utils';
|
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcCheckboxRadioSwitch = () => import('@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch');
|
const NcCheckboxRadioSwitch = () => import('@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch');
|
||||||
|
|
||||||
import banner from '../assets/banner.svg';
|
import * as util from '@services/utils';
|
||||||
|
import * as nativex from '@native';
|
||||||
|
|
||||||
|
import banner from '@assets/banner.svg';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'NXSetup',
|
name: 'NXSetup',
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
import { NAPI, nativex } from './api';
|
import { NAPI, nativex } from './api';
|
||||||
import { API } from '../services/API';
|
|
||||||
import { has } from './basic';
|
import { has } from './basic';
|
||||||
import * as utils from '../services/utils';
|
|
||||||
import type { IDay, IPhoto } from '../types';
|
import { API } from '@services/API';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
|
import type { IDay, IPhoto } from '@types';
|
||||||
|
|
||||||
/** Memcache for <dayId, Photos> */
|
/** Memcache for <dayId, Photos> */
|
||||||
const daysCache = new Map<number, IPhoto[]>();
|
const daysCache = new Map<number, IPhoto[]>();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import { BASE_URL, NAPI, nativex } from './api';
|
import { BASE_URL, NAPI, nativex } from './api';
|
||||||
import { addOrigin } from './basic';
|
import { addOrigin } from './basic';
|
||||||
import type { IPhoto } from '../types';
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Download a file from the given URL.
|
* Download a file from the given URL.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { nativex } from './api';
|
import { nativex } from './api';
|
||||||
import { addOrigin } from './basic';
|
import { addOrigin } from './basic';
|
||||||
import type { IPhoto } from '../types';
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Play a video from the given URL.
|
* Play a video from the given URL.
|
||||||
|
|
|
@ -3,14 +3,14 @@ import Vue from 'vue';
|
||||||
|
|
||||||
import { generateUrl } from '@nextcloud/router';
|
import { generateUrl } from '@nextcloud/router';
|
||||||
|
|
||||||
import Timeline from './components/Timeline.vue';
|
import Timeline from '@components/Timeline.vue';
|
||||||
import Explore from './components/Explore.vue';
|
import Explore from '@components/Explore.vue';
|
||||||
import SplitTimeline from './components/SplitTimeline.vue';
|
import SplitTimeline from '@components/SplitTimeline.vue';
|
||||||
import ClusterView from './components/ClusterView.vue';
|
import ClusterView from '@components/ClusterView.vue';
|
||||||
import NativeXSetup from './native/Setup.vue';
|
import NativeXSetup from '@native/Setup.vue';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
import { constants as c } from './services/utils';
|
import { constants as c } from '@services/utils';
|
||||||
|
|
||||||
// Routes are defined here
|
// Routes are defined here
|
||||||
export type RouteId =
|
export type RouteId =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { generateUrl } from '@nextcloud/router';
|
import { generateUrl } from '@nextcloud/router';
|
||||||
import { ClusterTypes } from '../types';
|
import { ClusterTypes } from '@types';
|
||||||
|
|
||||||
const BASE = '/apps/memories/api';
|
const BASE = '/apps/memories/api';
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,12 @@ import axios from '@nextcloud/axios';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { getLanguage } from '@nextcloud/l10n';
|
import { getLanguage } from '@nextcloud/l10n';
|
||||||
|
|
||||||
import { IAlbum, IFileInfo, IPhoto } from '../../types';
|
import { translate as t } from '@services/l10n';
|
||||||
import { translate as t } from 'services/l10n';
|
import { API } from '@services/API';
|
||||||
|
import client from '@services/dav/client';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
|
||||||
import { API } from '../API';
|
import { IAlbum, IFileInfo, IPhoto } from '@types';
|
||||||
import client from './client';
|
|
||||||
import * as utils from '../utils';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get DAV path for album
|
* Get DAV path for album
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import { API } from '../API';
|
import { API } from '../API';
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import { IFileInfo, IPhoto } from '../../types';
|
|
||||||
import { API } from '../API';
|
|
||||||
import { getAlbumFileInfos } from './albums';
|
import { getAlbumFileInfos } from './albums';
|
||||||
|
|
||||||
import client from './client';
|
import client from './client';
|
||||||
import * as utils from '../utils';
|
|
||||||
import * as nativex from '../../native';
|
import { API } from '@services/API';
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
|
import * as utils from '@services/utils';
|
||||||
|
import * as nativex from '@native';
|
||||||
|
|
||||||
|
import { IFileInfo, IPhoto } from '@types';
|
||||||
|
|
||||||
const GET_FILE_CHUNK_SIZE = 50;
|
const GET_FILE_CHUNK_SIZE = 50;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
import { translate as t } from '@services/l10n';
|
||||||
import { IPhoto } from '../../types';
|
import { API } from '@services/API';
|
||||||
import { API } from '../API';
|
import * as nativex from '@native';
|
||||||
import * as nativex from '../../native';
|
|
||||||
|
import type { IPhoto } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Download files
|
* Download files
|
||||||
|
|
|
@ -2,13 +2,15 @@ import axios from '@nextcloud/axios';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { generateUrl } from '@nextcloud/router';
|
import { generateUrl } from '@nextcloud/router';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
|
||||||
import { IFace, IPhoto } from '../../types';
|
|
||||||
import { API } from '../API';
|
|
||||||
import { constants as c } from '../utils';
|
|
||||||
import client from './client';
|
import client from './client';
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
|
|
||||||
|
import { translate as t } from '@services/l10n';
|
||||||
|
import { constants as c } from '@services/utils';
|
||||||
|
import { API } from '@services/API';
|
||||||
|
|
||||||
|
import { IFace, IPhoto } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get list of faces
|
* Get list of faces
|
||||||
* @param app Backend app to use
|
* @param app Backend app to use
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import { translate as t } from 'services/l10n';
|
|
||||||
import { IFileInfo, IPhoto } from '../../types';
|
|
||||||
import client from './client';
|
import client from './client';
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
import { constants as c } from '../utils';
|
|
||||||
|
import { translate as t } from '@services/l10n';
|
||||||
|
import { constants as c } from '@services/utils';
|
||||||
|
|
||||||
|
import type { IFileInfo, IPhoto } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Favorite a file
|
* Favorite a file
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
import { IDay, IPhoto } from '../../types';
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import * as utils from '../utils';
|
|
||||||
import { API } from '../API';
|
import * as utils from '@services/utils';
|
||||||
|
import { API } from '@services/API';
|
||||||
|
|
||||||
|
import { IDay, IPhoto } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get original onThisDay response.
|
* Get original onThisDay response.
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
import { getFiles } from './base';
|
import { getFiles } from './base';
|
||||||
import { generateUrl } from '@nextcloud/router';
|
import { generateUrl } from '@nextcloud/router';
|
||||||
import { IPhoto } from '../../types';
|
|
||||||
import { API } from '../API';
|
import { API } from '@services/API';
|
||||||
|
|
||||||
|
import { IPhoto } from '@types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open the files app with the given photo
|
* Open the files app with the given photo
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import { ICluster } from '../../types';
|
|
||||||
import { API } from '../API';
|
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
|
import { API } from '@services/API';
|
||||||
|
import { ICluster } from '@types';
|
||||||
|
|
||||||
export async function getPlaces() {
|
export async function getPlaces() {
|
||||||
return (await axios.get<ICluster[]>(API.PLACE_LIST())).data;
|
return (await axios.get<ICluster[]>(API.PLACE_LIST())).data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { IDay } from '../../types';
|
import { initstate } from '@services/utils';
|
||||||
import { initstate } from '../utils';
|
import { IDay } from '@types';
|
||||||
|
|
||||||
const { singleItem } = initstate;
|
const { singleItem } = initstate;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
import { getLanguage } from '@nextcloud/l10n';
|
import { getLanguage } from '@nextcloud/l10n';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import { ICluster } from '../../types';
|
|
||||||
import { API } from '../API';
|
|
||||||
import client from './client';
|
import client from './client';
|
||||||
import { translate as t } from 'services/l10n';
|
|
||||||
|
import { API } from '@services/API';
|
||||||
|
import { translate as t } from '@services/l10n';
|
||||||
|
|
||||||
|
import { ICluster } from '@types';
|
||||||
|
|
||||||
export interface ITag {
|
export interface ITag {
|
||||||
id: number;
|
id: number;
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue