refactor: lowercase Utils

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/783/head
Varun Patil 2023-08-21 18:22:14 -07:00
parent fe4fd9c240
commit 1084c7057b
39 changed files with 42 additions and 44 deletions

View File

@ -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';

View File

@ -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',

View File

@ -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',

View File

@ -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';

View File

@ -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

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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',

View File

@ -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',

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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;

View File

@ -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';

View File

@ -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 = `

View File

@ -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';
/**

View File

@ -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

View 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';
/**

View File

@ -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';

View File

@ -0,0 +1,6 @@
export * from './algo';
export * from './cache';
export * from './const';
export * from './date';
export * from './helpers';
export * from './dialog';

View File

@ -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' {