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 { ListToggleComponent } from './list-toggle/list-toggle.component';
|
||||||
|
|
||||||
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
|
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 { deviceID } from './api-utils';
|
||||||
import { environment } from '../environments/environment';
|
import { environment } from '../environments/environment';
|
||||||
|
@ -2,7 +2,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { cardElevation } from '../../style';
|
import { cardElevation } from '../../style';
|
||||||
import { DonutChartComponent } from '../donut-chart/donut-chart.component';
|
import { DonutChartComponent } from '../donut-chart/donut-chart.component';
|
||||||
import Folder from '../../folder'
|
import Folder from '../../folder'
|
||||||
import { FolderService } from 'src/app/folder.service';
|
import { FolderService } from 'src/app/services/folder.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-device-chart',
|
selector: 'app-device-chart',
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import Folder from '../../folder'
|
import Folder from '../../folder'
|
||||||
import { cardElevation } from '../../style'
|
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';
|
import { DonutChartComponent } from '../donut-chart/donut-chart.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { SystemConfigService } from '../system-config.service';
|
import { SystemConfigService } from '../services/system-config.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-dashboard',
|
selector: 'app-dashboard',
|
||||||
|
@ -9,7 +9,7 @@ import {
|
|||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
import { Observable, of } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
import { tap } from 'rxjs/operators';
|
import { tap } from 'rxjs/operators';
|
||||||
import { RequestCacheService } from '../request-cache.service'
|
import { RequestCacheService } from '../services/request-cache.service'
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CachingInterceptor implements HttpInterceptor {
|
export class CachingInterceptor implements HttpInterceptor {
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
HttpInterceptor, HttpHandler, HttpRequest, HttpHeaders
|
HttpInterceptor, HttpHandler, HttpRequest, HttpHeaders
|
||||||
} from '@angular/common/http';
|
} from '@angular/common/http';
|
||||||
|
|
||||||
import { CookieService } from '../cookie.service';
|
import { CookieService } from '../services/cookie.service';
|
||||||
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -5,7 +5,7 @@ import { MatSort } from '@angular/material/sort';
|
|||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { Observable, of as observableOf, merge, Subject } from 'rxjs';
|
import { Observable, of as observableOf, merge, Subject } from 'rxjs';
|
||||||
import { Device } from '../../device';
|
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
|
* 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 { DeviceListDataSource } from './device-list-datasource';
|
||||||
import { Device } from '../../device';
|
import { Device } from '../../device';
|
||||||
import { SystemConfigService } from '../../system-config.service';
|
import { SystemConfigService } from '../../services/system-config.service';
|
||||||
import { dataTableElevation } from '../../style';
|
import { dataTableElevation } from '../../style';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import { MatSort } from '@angular/material/sort';
|
|||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { Observable, of as observableOf, merge, Subject } from 'rxjs';
|
import { Observable, of as observableOf, merge, Subject } from 'rxjs';
|
||||||
import Folder from '../../folder';
|
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
|
* 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 { FolderListDataSource } from './folder-list-datasource';
|
||||||
import Folder from '../../folder';
|
import Folder from '../../folder';
|
||||||
import { SystemConfigService } from '../../system-config.service';
|
import { SystemConfigService } from '../../services/system-config.service';
|
||||||
import { dataTableElevation } from '../../style';
|
import { dataTableElevation } from '../../style';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
|
|
||||||
|
@ -5,9 +5,9 @@ import { CookieService } from './cookie.service';
|
|||||||
import { Observable, of } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
import { map, retry, catchError } from 'rxjs/operators';
|
import { map, retry, catchError } from 'rxjs/operators';
|
||||||
|
|
||||||
import { environment } from '../environments/environment'
|
import { environment } from '../../environments/environment'
|
||||||
import { apiURL, apiRetry } from './api-utils'
|
import { apiURL, apiRetry } from '../api-utils'
|
||||||
import Folder from './folder'
|
import Folder from '../folder'
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
@ -1,8 +1,7 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { SystemConfigService } from './system-config.service';
|
import { SystemConfigService } from './system-config.service';
|
||||||
import { Observable, Subscriber } from 'rxjs';
|
import { Observable, Subscriber } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import Folder from '../folder';
|
||||||
import Folder from './folder';
|
|
||||||
import { DbStatusService } from './db-status.service';
|
import { DbStatusService } from './db-status.service';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
@ -1,6 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { config } from './mocks/mock-config'
|
import { config } from '../mocks/mock-config'
|
||||||
import { dbStatus } from './mocks/mock-db-status'
|
import { dbStatus } from '../mocks/mock-db-status'
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
@ -4,11 +4,11 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||||||
import { Observable, Subject } from 'rxjs';
|
import { Observable, Subject } from 'rxjs';
|
||||||
import { map, retry } from 'rxjs/operators';
|
import { map, retry } from 'rxjs/operators';
|
||||||
|
|
||||||
import Folder from './folder';
|
import Folder from '../folder';
|
||||||
import { Device } from './device';
|
import { Device } from '../device';
|
||||||
import { CookieService } from './cookie.service';
|
import { CookieService } from './cookie.service';
|
||||||
import { environment } from '../environments/environment'
|
import { environment } from '../../environments/environment'
|
||||||
import { apiURL, apiRetry } from './api-utils'
|
import { apiURL, apiRetry } from '../api-utils'
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
Loading…
Reference in New Issue
Block a user