refactor: move SettingsProvider into package 'settings'

This commit is contained in:
Sebastian Lange
2019-01-11 12:23:36 +01:00
parent d5fa2fd9a5
commit b3ca8a2744
9 changed files with 10 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 StApps
* Copyright (C) 2018, 2019 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -21,7 +21,7 @@ import {Platform} from '@ionic/angular';
import {TranslateService} from '@ngx-translate/core';
import {AppComponent} from './app.component';
import {SettingsProvider} from './modules/settingsProvider/settings.provider';
import {SettingsProvider} from './modules/settings/settings.provider';
describe('AppComponent', () => {

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 StApps
* Copyright (C) 2018, 2019 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -19,7 +19,7 @@ import {Platform} from '@ionic/angular';
import {TranslateService} from '@ngx-translate/core';
import {SCLanguageCode} from '@openstapps/core';
import {SettingsProvider} from './modules/settingsProvider/settings.provider';
import {SettingsProvider} from './modules/settings/settings.provider';
@Component({
selector: 'app-root',

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 StApps
* Copyright (C) 2018, 2019 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -29,7 +29,6 @@ import {AppComponent} from './app.component';
import {DataModule} from './modules/data/data.module';
import {MenuModule} from './modules/menu/menu.module';
import {SettingsModule} from './modules/settings/settings.module';
import {SettingsProviderModule} from './modules/settingsProvider/settingsProvider.module';
import {StorageModule} from './modules/storage/storage.module';
export function createTranslateLoader(http: HttpClient) {
@@ -44,7 +43,6 @@ export function createTranslateLoader(http: HttpClient) {
DataModule,
MenuModule,
SettingsModule,
SettingsProviderModule,
TranslateModule.forRoot({
loader: {
deps: [HttpClient],

View File

@@ -21,7 +21,7 @@ import {
SCSetting,
SCSettingMeta,
} from '@openstapps/core';
import {SettingsProvider} from '../../settingsProvider/settings.provider';
import {SettingsProvider} from '../settings.provider';
@Component({
selector: 'stapps-settings-item',

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 StApps
* Copyright (C) 2018, 2019 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
@@ -15,7 +15,7 @@
import {Component, OnInit} from '@angular/core';
import {LangChangeEvent, TranslateService} from '@ngx-translate/core';
import {SCLanguageName, SCSettingMeta} from '@openstapps/core';
import {SettingsCache, SettingsProvider} from '../../settingsProvider/settings.provider';
import {SettingsCache, SettingsProvider} from '../settings.provider';
@Component({
selector: 'stapps-settings-page',

View File

@@ -22,6 +22,7 @@ import {TranslateModule} from '@ngx-translate/core';
import {SettingsItemComponent} from './item/settings-item.component';
import {SettingsPageComponent} from './page/settings-page.component';
import {SettingsProvider} from './settings.provider';
const settingsRoutes: Routes = [
{ path: 'settings', component: SettingsPageComponent },
@@ -41,6 +42,7 @@ const settingsRoutes: Routes = [
],
providers: [
Geolocation,
SettingsProvider,
],
})
export class SettingsModule {}

View File

@@ -1,27 +0,0 @@
/*
* Copyright (C) 2018 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { NgModule } from '@angular/core';
import { IonicStorageModule } from '@ionic/storage';
import { SettingsProvider } from './settings.provider';
@NgModule({
imports: [
IonicStorageModule.forRoot(),
],
providers: [
SettingsProvider,
],
})
export class SettingsProviderModule {}