MOBILE-3585 core: Rename some helper files

main
Dani Palou 2020-11-12 15:13:47 +01:00
parent f1af6e6a6e
commit e0f16ec49b
19 changed files with 22 additions and 21 deletions

View File

@ -16,7 +16,7 @@ import { Component, OnInit } from '@angular/core';
import { NavController } from '@ionic/angular'; import { NavController } from '@ionic/angular';
import { CoreLangProvider } from '@services/lang'; import { CoreLangProvider } from '@services/lang';
import { CoreLoginHelperProvider } from '@core/login/services/helper'; import { CoreLoginHelperProvider } from '@core/login/services/login.helper';
import { CoreEvents, CoreEventSessionExpiredData } from '@singletons/events'; import { CoreEvents, CoreEventSessionExpiredData } from '@singletons/events';
import { Network, NgZone, Platform } from '@singletons/core.singletons'; import { Network, NgZone, Platform } from '@singletons/core.singletons';
import { CoreApp } from '@services/app'; import { CoreApp } from '@services/app';

View File

@ -17,7 +17,7 @@ import { NavController } from '@ionic/angular';
import { CoreSiteBasicInfo, CoreSites } from '@services/sites'; import { CoreSiteBasicInfo, CoreSites } from '@services/sites';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { Translate } from '@singletons/core.singletons'; import { Translate } from '@singletons/core.singletons';
import { CoreLoginHelper } from '@core/login/services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
import { CoreContentLinksAction } from '../../services/contentlinks.delegate'; import { CoreContentLinksAction } from '../../services/contentlinks.delegate';
import { CoreContentLinksHelper } from '../../services/contentlinks.helper'; import { CoreContentLinksHelper } from '../../services/contentlinks.helper';
import { ActivatedRoute } from '@angular/router'; import { ActivatedRoute } from '@angular/router';

View File

@ -17,7 +17,7 @@ import { NavController } from '@ionic/angular';
import { CoreSites } from '@services/sites'; import { CoreSites } from '@services/sites';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreLoginHelper } from '@core/login/services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
import { CoreContentLinksDelegate, CoreContentLinksAction } from './contentlinks.delegate'; import { CoreContentLinksDelegate, CoreContentLinksAction } from './contentlinks.delegate';
import { CoreSite } from '@classes/site'; import { CoreSite } from '@classes/site';
import { CoreMainMenu } from '@core/mainmenu/services/mainmenu'; import { CoreMainMenu } from '@core/mainmenu/services/mainmenu';

View File

@ -16,8 +16,7 @@ import { NgModule } from '@angular/core';
import { Platform } from '@ionic/angular'; import { Platform } from '@ionic/angular';
import { CoreInitDelegate } from '@services/init'; import { CoreInitDelegate } from '@services/init';
import { CoreEmulatorHelperProvider } from './services/helper'; import { CoreEmulatorHelperProvider } from './services/emulator.helper';
import { CoreEmulatorCaptureHelperProvider } from './services/capture.helper';
import { CoreEmulatorComponentsModule } from './components/components.module'; import { CoreEmulatorComponentsModule } from './components/components.module';
// Ionic Native services. // Ionic Native services.
@ -74,8 +73,6 @@ import { ZipMock } from './services/zip';
CoreEmulatorComponentsModule, CoreEmulatorComponentsModule,
], ],
providers: [ providers: [
CoreEmulatorHelperProvider,
CoreEmulatorCaptureHelperProvider,
{ {
provide: Camera, provide: Camera,
deps: [Platform], deps: [Platform],

View File

@ -23,7 +23,9 @@ import { CaptureMediaComponentInputs, CoreEmulatorCaptureMediaComponent } from '
/** /**
* Helper service with some features to capture media (image, audio, video). * Helper service with some features to capture media (image, audio, video).
*/ */
@Injectable() @Injectable({
providedIn: 'root',
})
export class CoreEmulatorCaptureHelperProvider { export class CoreEmulatorCaptureHelperProvider {
protected possibleAudioMimeTypes = { protected possibleAudioMimeTypes = {

View File

@ -25,7 +25,9 @@ import { FileTransferErrorMock } from './file-transfer';
/** /**
* Helper service for the emulator feature. It also acts as an init handler. * Helper service for the emulator feature. It also acts as an init handler.
*/ */
@Injectable() @Injectable({
providedIn: 'root',
})
export class CoreEmulatorHelperProvider implements CoreInitHandler { export class CoreEmulatorHelperProvider implements CoreInitHandler {
name = 'CoreEmulator'; name = 'CoreEmulator';

View File

@ -16,7 +16,7 @@ import { Component } from '@angular/core';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { ModalController, Translate } from '@singletons/core.singletons'; import { ModalController, Translate } from '@singletons/core.singletons';
import { CoreLoginHelperProvider } from '@core/login/services/helper'; import { CoreLoginHelperProvider } from '@core/login/services/login.helper';
/** /**
* Component that displays help to connect to a site. * Component that displays help to connect to a site.

View File

@ -16,7 +16,7 @@ import { Component } from '@angular/core';
import { CoreConfig } from '@services/config'; import { CoreConfig } from '@services/config';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreLoginHelperProvider } from '@core/login/services/helper'; import { CoreLoginHelperProvider } from '@core/login/services/login.helper';
import { ModalController } from '@singletons/core.singletons'; import { ModalController } from '@singletons/core.singletons';
/** /**

View File

@ -16,7 +16,7 @@ import { Component } from '@angular/core';
import { CoreSites } from '@services/sites'; import { CoreSites } from '@services/sites';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { CoreLoginHelper } from '@core/login/services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
import { Translate } from '@singletons/core.singletons'; import { Translate } from '@singletons/core.singletons';
/** /**

View File

@ -21,7 +21,7 @@ import { CoreApp } from '@services/app';
import { CoreSites } from '@services/sites'; import { CoreSites } from '@services/sites';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreLoginHelper, CoreLoginHelperProvider } from '@core/login/services/helper'; import { CoreLoginHelper, CoreLoginHelperProvider } from '@core/login/services/login.helper';
import { CoreConstants } from '@core/constants'; import { CoreConstants } from '@core/constants';
import { Translate } from '@singletons/core.singletons'; import { Translate } from '@singletons/core.singletons';
import { CoreSiteIdentityProvider, CoreSitePublicConfigResponse } from '@classes/site'; import { CoreSiteIdentityProvider, CoreSitePublicConfigResponse } from '@classes/site';

View File

@ -22,7 +22,7 @@ import { CoreDomUtils } from '@services/utils/dom';
import { CoreTextUtils } from '@services/utils/text'; import { CoreTextUtils } from '@services/utils/text';
import { CoreCountry, CoreUtils } from '@services/utils/utils'; import { CoreCountry, CoreUtils } from '@services/utils/utils';
import { CoreWS, CoreWSExternalWarning } from '@services/ws'; import { CoreWS, CoreWSExternalWarning } from '@services/ws';
import { AuthEmailSignupProfileFieldsCategory, AuthEmailSignupSettings, CoreLoginHelper } from '@core/login/services/helper'; import { AuthEmailSignupProfileFieldsCategory, AuthEmailSignupSettings, CoreLoginHelper } from '@core/login/services/login.helper';
import { CoreConstants } from '@core/constants'; import { CoreConstants } from '@core/constants';
import { Translate } from '@singletons/core.singletons'; import { Translate } from '@singletons/core.singletons';
import { CoreSitePublicConfigResponse } from '@classes/site'; import { CoreSitePublicConfigResponse } from '@classes/site';

View File

@ -18,7 +18,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NavController } from '@ionic/angular'; import { NavController } from '@ionic/angular';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { CoreLoginHelper } from '@core/login/services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
import { Translate, Platform } from '@singletons/core.singletons'; import { Translate, Platform } from '@singletons/core.singletons';
import { CoreWSExternalWarning } from '@services/ws'; import { CoreWSExternalWarning } from '@services/ws';

View File

@ -20,7 +20,7 @@ import { CoreInit } from '@services/init';
import { SplashScreen } from '@singletons/core.singletons'; import { SplashScreen } from '@singletons/core.singletons';
import { CoreConstants } from '@core/constants'; import { CoreConstants } from '@core/constants';
import { CoreSites } from '@/app/services/sites'; import { CoreSites } from '@/app/services/sites';
import { CoreLoginHelper } from '@/app/core/login/services/helper'; import { CoreLoginHelper } from '@/app/core/login/services/login.helper';
/** /**
* Page that displays a "splash screen" while the app is being initialized. * Page that displays a "splash screen" while the app is being initialized.

View File

@ -21,7 +21,7 @@ import { CoreApp } from '@services/app';
import { CoreSites } from '@services/sites'; import { CoreSites } from '@services/sites';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreLoginHelper } from '@core/login/services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
import { CoreSiteIdentityProvider, CoreSitePublicConfigResponse } from '@classes/site'; import { CoreSiteIdentityProvider, CoreSitePublicConfigResponse } from '@classes/site';
import { CoreEvents } from '@singletons/events'; import { CoreEvents } from '@singletons/events';
import { CoreError } from '@classes/errors/error'; import { CoreError } from '@classes/errors/error';

View File

@ -20,7 +20,7 @@ import { CoreSites } from '@services/sites';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreMimetypeUtils } from '@services/utils/mimetype'; import { CoreMimetypeUtils } from '@services/utils/mimetype';
import { CoreLoginHelper } from '@core/login/services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
import { CoreSite } from '@classes/site'; import { CoreSite } from '@classes/site';
/** /**

View File

@ -22,7 +22,7 @@ import { CoreConfig } from '@services/config';
import { CoreSites, CoreSiteCheckResponse, CoreLoginSiteInfo, CoreSitesDemoSiteData } from '@services/sites'; import { CoreSites, CoreSiteCheckResponse, CoreLoginSiteInfo, CoreSitesDemoSiteData } from '@services/sites';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreDomUtils } from '@services/utils/dom'; import { CoreDomUtils } from '@services/utils/dom';
import { CoreLoginHelper, CoreLoginHelperProvider } from '@core/login/services/helper'; import { CoreLoginHelper, CoreLoginHelperProvider } from '@core/login/services/login.helper';
import { CoreSite } from '@classes/site'; import { CoreSite } from '@classes/site';
import { CoreError } from '@classes/errors/error'; import { CoreError } from '@classes/errors/error';
import { CoreConstants } from '@core/constants'; import { CoreConstants } from '@core/constants';

View File

@ -18,7 +18,7 @@ import { Component, OnInit } from '@angular/core';
import { CoreSiteBasicInfo, CoreSites } from '@services/sites'; import { CoreSiteBasicInfo, CoreSites } from '@services/sites';
import { CoreLogger } from '@singletons/logger'; import { CoreLogger } from '@singletons/logger';
import { CoreLoginHelper } from '../../services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
/** /**
* Page that displays a "splash screen" while the app is being initialized. * Page that displays a "splash screen" while the app is being initialized.

View File

@ -18,7 +18,7 @@ import { Subscription } from 'rxjs';
import { CoreSites } from '@services/sites'; import { CoreSites } from '@services/sites';
import { CoreUtils } from '@services/utils/utils'; import { CoreUtils } from '@services/utils/utils';
import { CoreSiteInfo } from '@classes/site'; import { CoreSiteInfo } from '@classes/site';
import { CoreLoginHelper } from '@core/login/services/helper'; import { CoreLoginHelper } from '@core/login/services/login.helper';
import { CoreMainMenuDelegate, CoreMainMenuHandlerData } from '../../services/mainmenu.delegate'; import { CoreMainMenuDelegate, CoreMainMenuHandlerData } from '../../services/mainmenu.delegate';
import { CoreMainMenu, CoreMainMenuCustomItem } from '../../services/mainmenu'; import { CoreMainMenu, CoreMainMenuCustomItem } from '../../services/mainmenu';
import { CoreEventObserver, CoreEvents } from '@singletons/events'; import { CoreEventObserver, CoreEvents } from '@singletons/events';