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

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