mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-20 03:51:00 +00:00
organize services into services folder
This commit is contained in:
parent
2fe94736e6
commit
0361d303f2
@ -24,7 +24,7 @@ import { DashboardComponent } from './dashboard/dashboard.component';
|
||||
import { ListToggleComponent } from './list-toggle/list-toggle.component';
|
||||
|
||||
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
|
||||
import { InMemoryConfigDataService } from './in-memory-config-data.service';
|
||||
import { InMemoryConfigDataService } from './services/in-memory-config-data.service';
|
||||
|
||||
import { deviceID } from './api-utils';
|
||||
import { environment } from '../environments/environment';
|
||||
|
@ -2,7 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { cardElevation } from '../../style';
|
||||
import { DonutChartComponent } from '../donut-chart/donut-chart.component';
|
||||
import Folder from '../../folder'
|
||||
import { FolderService } from 'src/app/folder.service';
|
||||
import { FolderService } from 'src/app/services/folder.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-device-chart',
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import Folder from '../../folder'
|
||||
import { cardElevation } from '../../style'
|
||||
import { FolderService } from 'src/app/folder.service';
|
||||
import { FolderService } from 'src/app/services/folder.service';
|
||||
import { DonutChartComponent } from '../donut-chart/donut-chart.component';
|
||||
|
||||
@Component({
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { SystemConfigService } from '../system-config.service';
|
||||
import { SystemConfigService } from '../services/system-config.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard',
|
||||
|
@ -9,7 +9,7 @@ import {
|
||||
} from '@angular/common/http';
|
||||
import { Observable, of } from 'rxjs';
|
||||
import { tap } from 'rxjs/operators';
|
||||
import { RequestCacheService } from '../request-cache.service'
|
||||
import { RequestCacheService } from '../services/request-cache.service'
|
||||
|
||||
@Injectable()
|
||||
export class CachingInterceptor implements HttpInterceptor {
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
HttpInterceptor, HttpHandler, HttpRequest, HttpHeaders
|
||||
} from '@angular/common/http';
|
||||
|
||||
import { CookieService } from '../cookie.service';
|
||||
import { CookieService } from '../services/cookie.service';
|
||||
|
||||
|
||||
@Injectable()
|
||||
|
@ -5,7 +5,7 @@ import { MatSort } from '@angular/material/sort';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { Observable, of as observableOf, merge, Subject } from 'rxjs';
|
||||
import { Device } from '../../device';
|
||||
import { SystemConfigService } from '../../system-config.service';
|
||||
import { SystemConfigService } from '../../services/system-config.service';
|
||||
|
||||
/**
|
||||
* Data source for the DeviceList view. This class should
|
||||
|
@ -5,7 +5,7 @@ import { MatTable } from '@angular/material/table';
|
||||
|
||||
import { DeviceListDataSource } from './device-list-datasource';
|
||||
import { Device } from '../../device';
|
||||
import { SystemConfigService } from '../../system-config.service';
|
||||
import { SystemConfigService } from '../../services/system-config.service';
|
||||
import { dataTableElevation } from '../../style';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
|
@ -5,7 +5,7 @@ import { MatSort } from '@angular/material/sort';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { Observable, of as observableOf, merge, Subject } from 'rxjs';
|
||||
import Folder from '../../folder';
|
||||
import { SystemConfigService } from '../../system-config.service';
|
||||
import { SystemConfigService } from '../../services/system-config.service';
|
||||
|
||||
/**
|
||||
* Data source for the FolderList view. This class should
|
||||
|
@ -5,7 +5,7 @@ import { MatTable } from '@angular/material/table';
|
||||
|
||||
import { FolderListDataSource } from './folder-list-datasource';
|
||||
import Folder from '../../folder';
|
||||
import { SystemConfigService } from '../../system-config.service';
|
||||
import { SystemConfigService } from '../../services/system-config.service';
|
||||
import { dataTableElevation } from '../../style';
|
||||
import { Subject } from 'rxjs';
|
||||
|
||||
|
@ -5,9 +5,9 @@ import { CookieService } from './cookie.service';
|
||||
import { Observable, of } from 'rxjs';
|
||||
import { map, retry, catchError } from 'rxjs/operators';
|
||||
|
||||
import { environment } from '../environments/environment'
|
||||
import { apiURL, apiRetry } from './api-utils'
|
||||
import Folder from './folder'
|
||||
import { environment } from '../../environments/environment'
|
||||
import { apiURL, apiRetry } from '../api-utils'
|
||||
import Folder from '../folder'
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
@ -1,8 +1,7 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { SystemConfigService } from './system-config.service';
|
||||
import { Observable, Subscriber } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
import Folder from './folder';
|
||||
import Folder from '../folder';
|
||||
import { DbStatusService } from './db-status.service';
|
||||
|
||||
@Injectable({
|
@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { config } from './mocks/mock-config'
|
||||
import { dbStatus } from './mocks/mock-db-status'
|
||||
import { config } from '../mocks/mock-config'
|
||||
import { dbStatus } from '../mocks/mock-db-status'
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
@ -4,11 +4,11 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||
import { Observable, Subject } from 'rxjs';
|
||||
import { map, retry } from 'rxjs/operators';
|
||||
|
||||
import Folder from './folder';
|
||||
import { Device } from './device';
|
||||
import Folder from '../folder';
|
||||
import { Device } from '../device';
|
||||
import { CookieService } from './cookie.service';
|
||||
import { environment } from '../environments/environment'
|
||||
import { apiURL, apiRetry } from './api-utils'
|
||||
import { environment } from '../../environments/environment'
|
||||
import { apiURL, apiRetry } from '../api-utils'
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
Loading…
Reference in New Issue
Block a user