refactor: lowercase Utils
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/783/head
parent
fe4fd9c240
commit
1084c7057b
|
@ -73,7 +73,7 @@ import { generateUrl } from '@nextcloud/router';
|
|||
import { translate as t } from '@nextcloud/l10n';
|
||||
import { emit, subscribe } from '@nextcloud/event-bus';
|
||||
|
||||
import * as utils from './services/Utils';
|
||||
import * as utils from './services/utils';
|
||||
import * as nativex from './native';
|
||||
import router from './router';
|
||||
import staticConfig from './services/static-config';
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
import { defineComponent } from 'vue';
|
||||
import Cluster from './frame/Cluster.vue';
|
||||
import type { ICluster } from '../types';
|
||||
import * as utils from '../services/Utils';
|
||||
import * as utils from '../services/utils';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'ClusterGrid',
|
||||
|
|
|
@ -57,7 +57,7 @@ import axios from '@nextcloud/axios';
|
|||
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';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FirstStart',
|
||||
|
|
|
@ -83,8 +83,7 @@ import InfoIcon from 'vue-material-design-icons/InformationOutline.vue';
|
|||
import LocationIcon from 'vue-material-design-icons/MapMarker.vue';
|
||||
import TagIcon from 'vue-material-design-icons/Tag.vue';
|
||||
|
||||
import * as utils from '../services/Utils';
|
||||
import * as dav from '../services/DavRequests';
|
||||
import * as utils from '../services/utils';
|
||||
import { API } from '../services/API';
|
||||
|
||||
import type { IAlbum, IFace, IImageInfo, IPhoto } from '../types';
|
||||
|
|
|
@ -55,7 +55,7 @@ import { emit } from '@nextcloud/event-bus';
|
|||
import ScrollUpIcon from 'vue-material-design-icons/MenuUp.vue';
|
||||
import ScrollDownIcon from 'vue-material-design-icons/MenuDown.vue';
|
||||
|
||||
import * as utils from '../services/Utils';
|
||||
import * as utils from '../services/utils';
|
||||
|
||||
const SNAP_OFFSET = -5; // Pixels to snap at
|
||||
const SNAP_MIN_ROWS = 1000; // Minimum rows to snap at
|
||||
|
|
|
@ -53,7 +53,7 @@ import { subscribe, unsubscribe } from '@nextcloud/event-bus';
|
|||
import { getCurrentUser } from '@nextcloud/auth';
|
||||
|
||||
import * as dav from '../services/DavRequests';
|
||||
import * as utils from '../services/Utils';
|
||||
import * as utils from '../services/utils';
|
||||
import * as nativex from '../native';
|
||||
|
||||
import FaceMoveModal from './modal/FaceMoveModal.vue';
|
||||
|
|
|
@ -138,7 +138,7 @@ import { defineComponent } from 'vue';
|
|||
import { getCurrentUser } from '@nextcloud/auth';
|
||||
|
||||
import UserConfig from '../mixins/UserConfig';
|
||||
import * as utils from '../services/Utils';
|
||||
import * as utils from '../services/utils';
|
||||
import * as nativex from '../native';
|
||||
|
||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||
|
|
|
@ -110,7 +110,7 @@ import TopMatter from './top-matter/TopMatter.vue';
|
|||
import DynamicTopMatter from './top-matter/DynamicTopMatter.vue';
|
||||
|
||||
import * as dav from '../services/DavRequests';
|
||||
import * as utils from '../services/Utils';
|
||||
import * as utils from '../services/utils';
|
||||
import * as nativex from '../native';
|
||||
|
||||
import { API, DaysFilterType } from '../services/API';
|
||||
|
|
|
@ -27,7 +27,7 @@ import axios from '@nextcloud/axios';
|
|||
import { showError } from '@nextcloud/dialogs';
|
||||
|
||||
import { API } from '../../services/API';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
import staticConfig from '../../services/static-config';
|
||||
|
||||
import Help from './sections/Help.vue';
|
||||
|
|
|
@ -72,7 +72,7 @@ import { defineComponent } from 'vue';
|
|||
import { API } from '../../../services/API';
|
||||
|
||||
import { translate as t } from '@nextcloud/l10n';
|
||||
import * as utils from '../../../services/Utils';
|
||||
import * as utils from '../../../services/utils';
|
||||
|
||||
import AdminMixin from '../AdminMixin';
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
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';
|
||||
|
|
|
@ -16,7 +16,7 @@ import { IHeadRow } from '../../types';
|
|||
|
||||
import CheckCircle from 'vue-material-design-icons/CheckCircle.vue';
|
||||
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'RowHead',
|
||||
|
|
|
@ -106,7 +106,7 @@ import { IPhoto } from '../../types';
|
|||
|
||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'EditDate',
|
||||
|
|
|
@ -36,7 +36,7 @@ import FaceList from './FaceList.vue';
|
|||
import Modal from './Modal.vue';
|
||||
import client from '../../services/DavClient';
|
||||
import * as dav from '../../services/DavRequests';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FaceMergeModal',
|
||||
|
|
|
@ -30,7 +30,7 @@ import FaceList from './FaceList.vue';
|
|||
|
||||
import Modal from './Modal.vue';
|
||||
import * as dav from '../../services/DavRequests';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FaceMoveModal',
|
||||
|
|
|
@ -17,7 +17,7 @@ import { FilePickerType } from '@nextcloud/dialogs';
|
|||
import { showInfo } from '@nextcloud/dialogs';
|
||||
|
||||
import * as dav from '../../services/DavRequests';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
import type { IPhoto } from '../../types';
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import { defineComponent } from 'vue';
|
|||
|
||||
import Modal from './Modal.vue';
|
||||
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
import NcActions from '@nextcloud/vue/dist/Components/NcActions';
|
||||
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
|
||||
|
|
|
@ -72,7 +72,7 @@ import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
|
|||
import Modal from './Modal.vue';
|
||||
|
||||
import { API } from '../../services/API';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
import * as nativex from '../../native';
|
||||
|
||||
import CloseIcon from 'vue-material-design-icons/Close.vue';
|
||||
|
|
|
@ -80,7 +80,7 @@ import UserConfig from '../../mixins/UserConfig';
|
|||
import { IPhoto } from '../../types';
|
||||
import { API } from '../../services/API';
|
||||
import * as dav from '../../services/DavRequests';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
import * as nativex from '../../native';
|
||||
|
||||
import PhotoIcon from 'vue-material-design-icons/Image.vue';
|
||||
|
|
|
@ -121,7 +121,7 @@ import SortIcon from 'vue-material-design-icons/SortVariant.vue';
|
|||
import SlotAlphabeticalIcon from 'vue-material-design-icons/SortAlphabeticalAscending.vue';
|
||||
import SortDateIcon from 'vue-material-design-icons/SortCalendarDescending.vue';
|
||||
import { API } from '../../services/API';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'AlbumTopMatter',
|
||||
|
|
|
@ -78,7 +78,7 @@ import DeleteIcon from 'vue-material-design-icons/Close.vue';
|
|||
import MergeIcon from 'vue-material-design-icons/Merge.vue';
|
||||
import UnassignedIcon from 'vue-material-design-icons/AccountQuestion.vue';
|
||||
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'FaceTopMatter',
|
||||
|
|
|
@ -10,7 +10,7 @@ import axios from '@nextcloud/axios';
|
|||
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 type { IFolder } from '../../types';
|
||||
|
|
|
@ -41,7 +41,7 @@ const NcBreadcrumb = () => import('@nextcloud/vue/dist/Components/NcBreadcrumb')
|
|||
import NcActions from '@nextcloud/vue/dist/Components/NcActions';
|
||||
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 ShareIcon from 'vue-material-design-icons/ShareVariant.vue';
|
||||
|
|
|
@ -44,7 +44,7 @@ import axios from '@nextcloud/axios';
|
|||
import { subscribe, unsubscribe } from '@nextcloud/event-bus';
|
||||
|
||||
import { API } from '../../services/API';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
import 'leaflet/dist/leaflet.css';
|
||||
import 'leaflet-edgebuffer';
|
||||
|
|
|
@ -35,7 +35,7 @@ import { defineComponent } from 'vue';
|
|||
import NcActions from '@nextcloud/vue/dist/Components/NcActions';
|
||||
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton';
|
||||
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
import * as dav from '../../services/DavRequests';
|
||||
import { IPhoto } from '../../types';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import translations from './ImageEditorTranslations';
|
|||
|
||||
import { API } from '../../services/API';
|
||||
import { IImageInfo, IPhoto } from '../../types';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
import { fetchImage } from '../frame/XImgCache';
|
||||
|
||||
// Crop preset icons
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import PhotoSwipe from 'photoswipe';
|
||||
import PsImage from './PsImage';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
import staticConfig from '../../services/static-config';
|
||||
import type { PsContent, PsEvent } from './types';
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import PhotoSwipe from 'photoswipe';
|
||||
import staticConfig from '../../services/static-config';
|
||||
import * as nativex from '../../native';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
|
||||
import { showError } from '@nextcloud/dialogs';
|
||||
import { translate as t } from '@nextcloud/l10n';
|
||||
|
|
|
@ -186,7 +186,7 @@ import axios from '@nextcloud/axios';
|
|||
import { getDownloadLink } from '../../services/DavRequests';
|
||||
import { API } from '../../services/API';
|
||||
import * as dav from '../../services/DavRequests';
|
||||
import * as utils from '../../services/Utils';
|
||||
import * as utils from '../../services/utils';
|
||||
import * as nativex from '../../native';
|
||||
|
||||
import ImageEditor from './ImageEditor.vue';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { translate as t, translatePlural as n } from '@nextcloud/l10n';
|
||||
import { constants } from '../services/Utils';
|
||||
import { constants } from '../services/utils';
|
||||
import { loadState } from '@nextcloud/initial-state';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import axios from '@nextcloud/axios';
|
||||
import { constants } from './services/Utils';
|
||||
import { generateUrl } from '@nextcloud/router';
|
||||
import type { IDay, IPhoto, IImageInfo } from './types';
|
||||
const euc = encodeURIComponent;
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
export * from './utils/algo';
|
||||
export * from './utils/cache';
|
||||
export * from './utils/const';
|
||||
export * from './utils/date';
|
||||
export * from './utils/helpers';
|
||||
export * from './utils/dialog';
|
|
@ -8,7 +8,7 @@ import { genFileInfo } from '../FileUtils';
|
|||
import { API } from '../API';
|
||||
import { getAlbumFileInfos } from './albums';
|
||||
import client from '../DavClient';
|
||||
import * as utils from '../Utils';
|
||||
import * as utils from '../utils';
|
||||
import * as nativex from '../../native';
|
||||
|
||||
export const props = `
|
||||
|
|
|
@ -5,7 +5,7 @@ import { generateUrl } from '@nextcloud/router';
|
|||
import { IFace, IPhoto } from '../../types';
|
||||
import { API } from '../API';
|
||||
import client from '../DavClient';
|
||||
import * as utils from '../Utils';
|
||||
import * as utils from '../utils';
|
||||
import * as base from './base';
|
||||
|
||||
/**
|
||||
|
|
|
@ -3,7 +3,7 @@ import { translate as t } from '@nextcloud/l10n';
|
|||
import { IFileInfo, IPhoto } from '../../types';
|
||||
import client from '../DavClient';
|
||||
import * as base from './base';
|
||||
import * as utils from '../Utils';
|
||||
import * as utils from '../utils';
|
||||
|
||||
/**
|
||||
* Favorite a file
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { IDay, IPhoto } from '../../types';
|
||||
import axios from '@nextcloud/axios';
|
||||
import * as utils from '../Utils';
|
||||
import * as utils from '../utils';
|
||||
import { API } from '../API';
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,7 +4,7 @@ import { API } from './API';
|
|||
import { IConfig } from '../types';
|
||||
import { getBuilder } from '@nextcloud/browser-storage';
|
||||
import { translate as t } from '@nextcloud/l10n';
|
||||
import * as utils from './Utils';
|
||||
import * as utils from './utils';
|
||||
|
||||
import type Storage from '@nextcloud/browser-storage/dist/storage';
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
export * from './algo';
|
||||
export * from './cache';
|
||||
export * from './const';
|
||||
export * from './date';
|
||||
export * from './helpers';
|
||||
export * from './dialog';
|
|
@ -1,4 +1,4 @@
|
|||
import { type constants } from './services/Utils';
|
||||
import { type constants } from './services/utils';
|
||||
import type { translate, translatePlural } from '@nextcloud/l10n';
|
||||
|
||||
declare module 'vue' {
|
||||
|
|
Loading…
Reference in New Issue