refactor: lowercase all services
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/783/head
parent
1084c7057b
commit
aecc53841c
|
@ -28,7 +28,7 @@ import Timeline from './Timeline.vue';
|
||||||
import EmptyContent from './top-matter/EmptyContent.vue';
|
import EmptyContent from './top-matter/EmptyContent.vue';
|
||||||
import DynamicTopMatter from './top-matter/DynamicTopMatter.vue';
|
import DynamicTopMatter from './top-matter/DynamicTopMatter.vue';
|
||||||
|
|
||||||
import * as dav from '../services/DavRequests';
|
import * as dav from '../services/dav';
|
||||||
|
|
||||||
import type { ICluster } from '../types';
|
import type { ICluster } from '../types';
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ import { translate as t, translatePlural as n } from '@nextcloud/l10n';
|
||||||
import { subscribe, unsubscribe } from '@nextcloud/event-bus';
|
import { subscribe, unsubscribe } from '@nextcloud/event-bus';
|
||||||
import { getCurrentUser } from '@nextcloud/auth';
|
import { getCurrentUser } from '@nextcloud/auth';
|
||||||
|
|
||||||
import * as dav from '../services/DavRequests';
|
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';
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ import axios from '@nextcloud/axios';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { subscribe, unsubscribe } from '@nextcloud/event-bus';
|
import { subscribe, unsubscribe } from '@nextcloud/event-bus';
|
||||||
|
|
||||||
import { getLayout } from '../services/Layout';
|
import { getLayout } from '../services/layout';
|
||||||
import { IDay, IHeadRow, IPhoto, IRow, IRowType } from '../types';
|
import { IDay, IHeadRow, IPhoto, IRow, IRowType } from '../types';
|
||||||
|
|
||||||
import UserConfig from '../mixins/UserConfig';
|
import UserConfig from '../mixins/UserConfig';
|
||||||
|
@ -109,7 +109,7 @@ import EmptyContent from './top-matter/EmptyContent.vue';
|
||||||
import TopMatter from './top-matter/TopMatter.vue';
|
import TopMatter from './top-matter/TopMatter.vue';
|
||||||
import DynamicTopMatter from './top-matter/DynamicTopMatter.vue';
|
import DynamicTopMatter from './top-matter/DynamicTopMatter.vue';
|
||||||
|
|
||||||
import * as dav from '../services/DavRequests';
|
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';
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
|
|
||||||
import { showInfo } from '@nextcloud/dialogs';
|
import { showInfo } from '@nextcloud/dialogs';
|
||||||
import { emit } from '@nextcloud/event-bus';
|
import { emit } from '@nextcloud/event-bus';
|
||||||
|
|
|
@ -147,7 +147,7 @@ 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/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import * as nativex from '../../native';
|
import * as nativex from '../../native';
|
||||||
|
|
||||||
import { Type } from '@nextcloud/sharing';
|
import { Type } from '@nextcloud/sharing';
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import AlbumForm from './AlbumForm.vue';
|
import AlbumForm from './AlbumForm.vue';
|
||||||
|
|
|
@ -24,7 +24,7 @@ const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { getCurrentUser } from '@nextcloud/auth';
|
import { getCurrentUser } from '@nextcloud/auth';
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import client from '../../services/DavClient';
|
import client from '../../services/dav/client';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'AlbumDeleteModal',
|
name: 'AlbumDeleteModal',
|
||||||
|
|
|
@ -95,7 +95,7 @@ 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 { DateTime } from 'luxon';
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
|
|
||||||
import AlbumCollaborators from './AlbumCollaborators.vue';
|
import AlbumCollaborators from './AlbumCollaborators.vue';
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ 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/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import { IAlbum, IPhoto } from '../../types';
|
import { IAlbum, IPhoto } from '../../types';
|
||||||
|
|
||||||
import Fuse from 'fuse.js';
|
import Fuse from 'fuse.js';
|
||||||
|
|
|
@ -34,7 +34,7 @@ import { defineComponent } from 'vue';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
|
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
|
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import AlbumCollaborators from './AlbumCollaborators.vue';
|
import AlbumCollaborators from './AlbumCollaborators.vue';
|
||||||
|
|
|
@ -66,7 +66,7 @@ import { showError } from '@nextcloud/dialogs';
|
||||||
import { emit } from '@nextcloud/event-bus';
|
import { emit } from '@nextcloud/event-bus';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import { API } from '../../services/API';
|
import { API } from '../../services/API';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
import { IPhoto } from '../../types';
|
import { IPhoto } from '../../types';
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
|
|
||||||
const NcSelectTags = () => import('@nextcloud/vue/dist/Components/NcSelectTags');
|
const NcSelectTags = () => import('@nextcloud/vue/dist/Components/NcSelectTags');
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { getCurrentUser } from '@nextcloud/auth';
|
import { getCurrentUser } from '@nextcloud/auth';
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FaceDeleteModal',
|
name: 'FaceDeleteModal',
|
||||||
|
|
|
@ -33,7 +33,7 @@ const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { getCurrentUser } from '@nextcloud/auth';
|
import { getCurrentUser } from '@nextcloud/auth';
|
||||||
import Modal from './Modal.vue';
|
import Modal from './Modal.vue';
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'FaceEditModal',
|
name: 'FaceEditModal',
|
||||||
|
|
|
@ -34,7 +34,7 @@ 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/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import Fuse from 'fuse.js';
|
import Fuse from 'fuse.js';
|
||||||
|
|
||||||
import MagnifyIcon from 'vue-material-design-icons/Magnify.vue';
|
import MagnifyIcon from 'vue-material-design-icons/Magnify.vue';
|
||||||
|
|
|
@ -34,8 +34,8 @@ 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 client from '../../services/DavClient';
|
import client from '../../services/dav/client';
|
||||||
import * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '../../services/utils';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
|
@ -29,7 +29,7 @@ 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 * as dav from '../../services/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '../../services/utils';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
|
|
@ -16,7 +16,7 @@ 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/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import * as utils from '../../services/utils';
|
import * as utils from '../../services/utils';
|
||||||
|
|
||||||
import type { IPhoto } from '../../types';
|
import type { IPhoto } from '../../types';
|
||||||
|
|
|
@ -79,7 +79,7 @@ import UserConfig from '../../mixins/UserConfig';
|
||||||
|
|
||||||
import { IPhoto } from '../../types';
|
import { IPhoto } from '../../types';
|
||||||
import { API } from '../../services/API';
|
import { API } from '../../services/API';
|
||||||
import * as dav from '../../services/DavRequests';
|
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';
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ 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/DavRequests';
|
import * as dav from '../../services/dav';
|
||||||
import { IPhoto } from '../../types';
|
import { IPhoto } from '../../types';
|
||||||
|
|
||||||
import LeftMoveIcon from 'vue-material-design-icons/ChevronLeft.vue';
|
import LeftMoveIcon from 'vue-material-design-icons/ChevronLeft.vue';
|
||||||
|
|
|
@ -183,9 +183,8 @@ import { subscribe, unsubscribe, emit } from '@nextcloud/event-bus';
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import { getDownloadLink } from '../../services/DavRequests';
|
|
||||||
import { API } from '../../services/API';
|
import { API } from '../../services/API';
|
||||||
import * as dav from '../../services/DavRequests';
|
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';
|
||||||
|
|
||||||
|
@ -792,7 +791,7 @@ export default defineComponent({
|
||||||
|
|
||||||
// Preview aren't animated
|
// Preview aren't animated
|
||||||
if (isvideo || photo.mimetype === 'image/gif') {
|
if (isvideo || photo.mimetype === 'image/gif') {
|
||||||
previewUrl = getDownloadLink(photo);
|
previewUrl = dav.getDownloadLink(photo);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get height and width
|
// Get height and width
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
export * from './dav/base';
|
|
||||||
export * from './dav/albums';
|
|
||||||
export * from './dav/archive';
|
|
||||||
export * from './dav/download';
|
|
||||||
export * from './dav/face';
|
|
||||||
export * from './dav/favorites';
|
|
||||||
export * from './dav/onthisday';
|
|
||||||
export * from './dav/tags';
|
|
||||||
export * from './dav/other';
|
|
||||||
export * from './dav/places';
|
|
||||||
export * from './dav/single-item';
|
|
|
@ -5,7 +5,7 @@ import { translate as t } from '@nextcloud/l10n';
|
||||||
import { IAlbum, IFileInfo, IPhoto } from '../../types';
|
import { IAlbum, IFileInfo, IPhoto } from '../../types';
|
||||||
import { API } from '../API';
|
import { API } from '../API';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
import client from '../DavClient';
|
import client from './client';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get DAV path for album
|
* Get DAV path for album
|
||||||
|
|
|
@ -4,10 +4,10 @@ import { translate as t } from '@nextcloud/l10n';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
||||||
import { IFileInfo, IPhoto } from '../../types';
|
import { IFileInfo, IPhoto } from '../../types';
|
||||||
import { genFileInfo } from '../FileUtils';
|
import { genFileInfo } from '../file-utils';
|
||||||
import { API } from '../API';
|
import { API } from '../API';
|
||||||
import { getAlbumFileInfos } from './albums';
|
import { getAlbumFileInfos } from './albums';
|
||||||
import client from '../DavClient';
|
import client from './client';
|
||||||
import * as utils from '../utils';
|
import * as utils from '../utils';
|
||||||
import * as nativex from '../../native';
|
import * as nativex from '../../native';
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { translate as t } from '@nextcloud/l10n';
|
||||||
import { generateUrl } from '@nextcloud/router';
|
import { generateUrl } from '@nextcloud/router';
|
||||||
import { IFace, IPhoto } from '../../types';
|
import { IFace, IPhoto } from '../../types';
|
||||||
import { API } from '../API';
|
import { API } from '../API';
|
||||||
import client from '../DavClient';
|
import client from './client';
|
||||||
import * as utils from '../utils';
|
import * as utils from '../utils';
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { showError } from '@nextcloud/dialogs';
|
import { showError } from '@nextcloud/dialogs';
|
||||||
import { translate as t } from '@nextcloud/l10n';
|
import { translate as t } from '@nextcloud/l10n';
|
||||||
import { IFileInfo, IPhoto } from '../../types';
|
import { IFileInfo, IPhoto } from '../../types';
|
||||||
import client from '../DavClient';
|
import client from './client';
|
||||||
import * as base from './base';
|
import * as base from './base';
|
||||||
import * as utils from '../utils';
|
import * as utils from '../utils';
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
export * from './base';
|
||||||
|
export * from './albums';
|
||||||
|
export * from './archive';
|
||||||
|
export * from './download';
|
||||||
|
export * from './face';
|
||||||
|
export * from './favorites';
|
||||||
|
export * from './onthisday';
|
||||||
|
export * from './tags';
|
||||||
|
export * from './other';
|
||||||
|
export * from './places';
|
||||||
|
export * from './single-item';
|
|
@ -1,6 +1,6 @@
|
||||||
import { ICluster } from '../../types';
|
import { ICluster } from '../../types';
|
||||||
import { API } from '../API';
|
import { API } from '../API';
|
||||||
import client from '../DavClient';
|
import client from './client';
|
||||||
|
|
||||||
import { translate as t } from '@nextcloud/l10n';
|
import { translate as t } from '@nextcloud/l10n';
|
||||||
import axios from '@nextcloud/axios';
|
import axios from '@nextcloud/axios';
|
||||||
|
|
Loading…
Reference in New Issue