Commit ede0df0d6b9be0fc94ac1f31b6a8e14e459cb915

Authored by Artem Babak
1 parent aea83e19

Code restyle: single instead of double quotes, deleted unused imports

Showing 44 changed files with 170 additions and 171 deletions
... ... @@ -21,7 +21,7 @@ import { defaultHttpOptionsFromConfig, RequestConfig } from '@core/http/http-uti
21 21 import { Observable, of } from 'rxjs';
22 22 import { map } from 'rxjs/operators';
23 23 import { RuleNodeType } from '@shared/models/rule-node.models';
24   -import { RuleChainType } from "@shared/models/rule-chain.models";
  24 +import { RuleChainType } from '@shared/models/rule-chain.models';
25 25
26 26 @Injectable({
27 27 providedIn: 'root'
... ...
... ... @@ -24,7 +24,7 @@ import { DeviceProfile, DeviceProfileInfo, DeviceTransportType } from '@shared/m
24 24 import { isDefinedAndNotNull } from '@core/utils';
25 25 import {
26 26 ObjectLwM2M, ServerSecurityConfig
27   -} from "../../modules/home/components/profile/device/lwm2m/profile-config.models";
  27 +} from '../../modules/home/components/profile/device/lwm2m/profile-config.models';
28 28
29 29 @Injectable({
30 30 providedIn: 'root'
... ...
... ... @@ -21,9 +21,9 @@ import { HttpClient } from '@angular/common/http';
21 21 import { PageLink, TimePageLink } from '@shared/models/page/page-link';
22 22 import { PageData } from '@shared/models/page/page-data';
23 23 import { EntitySubtype } from '@app/shared/models/entity-type.models';
24   -import { Edge, EdgeEvent, EdgeInfo, EdgeSearchQuery } from "@shared/models/edge.models";
25   -import { EntityId } from "@shared/models/id/entity-id";
26   -import { EdgeId } from "@shared/models/id/edge-id";
  24 +import { Edge, EdgeEvent, EdgeInfo, EdgeSearchQuery } from '@shared/models/edge.models';
  25 +import { EntityId } from '@shared/models/id/entity-id';
  26 +
27 27 @Injectable({
28 28 providedIn: 'root'
29 29 })
... ...
... ... @@ -44,7 +44,7 @@ import { TranslateService } from '@ngx-translate/core';
44 44 import { EntityType } from '@shared/models/entity-type.models';
45 45 import { deepClone, snakeCase } from '@core/utils';
46 46 import { DebugRuleNodeEventBody } from '@app/shared/models/event.models';
47   -import { Edge } from "@shared/models/edge.models";
  47 +import { Edge } from '@shared/models/edge.models';
48 48
49 49 @Injectable({
50 50 providedIn: 'root'
... ...
... ... @@ -18,13 +18,13 @@ import { Injectable } from '@angular/core';
18 18 import { AuthService } from '../auth/auth.service';
19 19 import { select, Store } from '@ngrx/store';
20 20 import { AppState } from '../core.state';
21   -import { selectAuth, selectAuthUser, selectIsAuthenticated } from '../auth/auth.selectors';
  21 +import { selectAuth, selectIsAuthenticated } from '../auth/auth.selectors';
22 22 import { take } from 'rxjs/operators';
23 23 import { HomeSection, MenuSection } from '@core/services/menu.models';
24 24 import { BehaviorSubject, Observable, Subject } from 'rxjs';
25 25 import { Authority } from '@shared/models/authority.enum';
26 26 import { guid } from '@core/utils';
27   -import { AuthState } from "@core/auth/auth.models";
  27 +import { AuthState } from '@core/auth/auth.models';
28 28
29 29 @Injectable({
30 30 providedIn: 'root'
... ...
... ... @@ -43,16 +43,15 @@ import {
43 43 EventContentDialogData
44 44 } from '@home/components/event/event-content-dialog.component';
45 45 import { sortObjectKeys } from '@core/utils';
46   -import { RuleChainService } from "@core/http/rule-chain.service";
47   -import { AttributeService } from "@core/http/attribute.service";
48   -import { AttributeScope } from "@shared/models/telemetry/telemetry.models";
49   -import { EdgeDownlinkTableHeaderComponent } from "@home/components/edge/edge-downlink-table-header.component";
50   -import { EdgeService } from "@core/http/edge.service";
51   -import { map } from "rxjs/operators";
52   -import { AssetService } from "@core/http/asset.service";
53   -import { DeviceService } from "@core/http/device.service";
54   -import { EntityViewService } from "@core/http/entity-view.service";
55   -import { actionTypeTranslations } from "@shared/models/audit-log.models";
  46 +import { RuleChainService } from '@core/http/rule-chain.service';
  47 +import { AttributeService } from '@core/http/attribute.service';
  48 +import { AttributeScope } from '@shared/models/telemetry/telemetry.models';
  49 +import { EdgeDownlinkTableHeaderComponent } from '@home/components/edge/edge-downlink-table-header.component';
  50 +import { EdgeService } from '@core/http/edge.service';
  51 +import { map } from 'rxjs/operators';
  52 +import { AssetService } from '@core/http/asset.service';
  53 +import { DeviceService } from '@core/http/device.service';
  54 +import { EntityViewService } from '@core/http/entity-view.service';
56 55
57 56 export class EdgeDownlinkTableConfig extends EntityTableConfig<EdgeEvent, TimePageLink> {
58 57
... ...
... ... @@ -22,12 +22,12 @@ import { EntityId } from '@shared/models/id/entity-id';
22 22 import { EntitiesTableComponent } from '@home/components/entity/entities-table.component';
23 23 import { EdgeDownlinkTableConfig } from './edge-downlink-table-config';
24 24 import { DialogService } from '@core/services/dialog.service';
25   -import { RuleChainService } from "@core/http/rule-chain.service";
26   -import { AttributeService } from "@core/http/attribute.service";
27   -import { EdgeService } from "@core/http/edge.service";
28   -import { DeviceService } from "@core/http/device.service";
29   -import { AssetService } from "@core/http/asset.service";
30   -import { EntityViewService } from "@core/http/entity-view.service";
  25 +import { RuleChainService } from '@core/http/rule-chain.service';
  26 +import { AttributeService } from '@core/http/attribute.service';
  27 +import { EdgeService } from '@core/http/edge.service';
  28 +import { DeviceService } from '@core/http/device.service';
  29 +import { AssetService } from '@core/http/asset.service';
  30 +import { EntityViewService } from '@core/http/entity-view.service';
31 31
32 32 @Component({
33 33 selector: 'tb-edge-downlink-table',
... ...
... ... @@ -119,7 +119,7 @@ import { AwsSnsProviderConfigurationComponent } from '@home/components/sms/aws-s
119 119 import { TwilioSmsProviderConfigurationComponent } from '@home/components/sms/twilio-sms-provider-configuration.component';
120 120 import { CopyDeviceCredentialsComponent } from '@home/components/device/copy-device-credentials.component';
121 121 import { Lwm2mProfileComponentsModule } from '@home/components/profile/device/lwm2m/lwm2m-profile-components.module';
122   -import { EdgeDownlinkTableComponent } from "@home/components/edge/edge-downlink-table.component";
  122 +import { EdgeDownlinkTableComponent } from '@home/components/edge/edge-downlink-table.component';
123 123
124 124 @NgModule({
125 125 declarations:
... ...
... ... @@ -14,12 +14,12 @@
14 14 /// limitations under the License.
15 15 ///
16 16
17   -import { Component, forwardRef, Inject, Input, OnInit } from "@angular/core";
  17 +import { Component, forwardRef, Inject, Input, OnInit } from '@angular/core';
18 18
19 19 import {
20 20 ControlValueAccessor,
21 21 FormBuilder, FormGroup, NG_VALUE_ACCESSOR, NgModel, Validators
22   -} from "@angular/forms";
  22 +} from '@angular/forms';
23 23 import {
24 24 SECURITY_CONFIG_MODE,
25 25 SECURITY_CONFIG_MODE_NAMES,
... ... @@ -32,11 +32,11 @@ import {
32 32 DEFAULT_PORT_SERVER_NO_SEC,
33 33 DEFAULT_CLIENT_HOLD_OFF_TIME,
34 34 DEFAULT_ID_SERVER
35   -} from "./profile-config.models";
36   -import { Store } from "@ngrx/store";
37   -import { AppState } from "@core/core.state";
38   -import { coerceBooleanProperty } from "@angular/cdk/coercion";
39   -import { WINDOW } from "../../../../../../core/services/window.service";
  35 +} from './profile-config.models';
  36 +import { Store } from '@ngrx/store';
  37 +import { AppState } from '@core/core.state';
  38 +import { coerceBooleanProperty } from '@angular/cdk/coercion';
  39 +import { WINDOW } from '../../../../../../core/services/window.service';
40 40 import { pairwise, startWith } from 'rxjs/operators';
41 41 import { DeviceProfileService } from '@core/http/device-profile.service';
42 42
... ...
... ... @@ -34,10 +34,10 @@ import {
34 34 OBSERVE_ATTR,
35 35 TELEMETRY,
36 36 ObjectLwM2M, getDefaultProfileConfig, KEY_NAME, Instance
37   -} from "./profile-config.models";
38   -import { DeviceProfileService } from "../../../../../../core/http/device-profile.service";
39   -import { deepClone, isUndefined } from "../../../../../../core/utils";
40   -import { WINDOW } from "../../../../../../core/services/window.service";
  37 +} from './profile-config.models';
  38 +import { DeviceProfileService } from '../../../../../../core/http/device-profile.service';
  39 +import { deepClone, isUndefined } from '../../../../../../core/utils';
  40 +import { WINDOW } from '../../../../../../core/services/window.service';
41 41 import { JsonObject } from '@angular/compiler-cli/ngcc/src/packages/entry_point';
42 42 import { isNotNullOrUndefined } from 'codelyzer/util/isNotNullOrUndefined';
43 43
... ...
... ... @@ -21,23 +21,23 @@ import {
21 21 OnInit,
22 22 ViewChild,
23 23 ElementRef,
24   -} from "@angular/core";
  24 +} from '@angular/core';
25 25 import {
26 26 ControlValueAccessor,
27 27 FormBuilder,
28   - FormGroup, NG_VALIDATORS,
  28 + FormGroup,
29 29 NG_VALUE_ACCESSOR, Validators
30   -} from "@angular/forms";
31   -import { coerceBooleanProperty } from "@angular/cdk/coercion";
32   -import { Store } from "@ngrx/store";
33   -import { AppState } from "../../../../../../core/core.state";
  30 +} from '@angular/forms';
  31 +import { coerceBooleanProperty } from '@angular/cdk/coercion';
  32 +import { Store } from '@ngrx/store';
  33 +import { AppState } from '../../../../../../core/core.state';
34 34 import { MatChipList } from '@angular/material/chips';
35 35 import {
36 36 INSTANCES_ID_VALUE_MAX,
37 37 INSTANCES_ID_VALUE_MIN
38   -} from "./profile-config.models";
39   -import { TranslateService } from "@ngx-translate/core";
40   -import { DeviceProfileService } from "../../../../../../core/http/device-profile.service";
  38 +} from './profile-config.models';
  39 +import { TranslateService } from '@ngx-translate/core';
  40 +import { DeviceProfileService } from '../../../../../../core/http/device-profile.service';
41 41
42 42 @Component({
43 43 selector: 'tb-profile-lwm2m-object-add-instances-list',
... ...
... ... @@ -23,25 +23,25 @@ import {
23 23 ElementRef,
24 24 Output,
25 25 EventEmitter
26   -} from "@angular/core";
  26 +} from '@angular/core';
27 27 import {
28 28 ControlValueAccessor,
29 29 FormBuilder,
30 30 FormGroup,
31 31 NG_VALUE_ACCESSOR, Validators
32   -} from "@angular/forms";
33   -import {coerceBooleanProperty} from "@angular/cdk/coercion";
34   -import {Store} from "@ngrx/store";
35   -import {AppState} from "../../../../../../core/core.state";
  32 +} from '@angular/forms';
  33 +import {coerceBooleanProperty} from '@angular/cdk/coercion';
  34 +import {Store} from '@ngrx/store';
  35 +import {AppState} from '../../../../../../core/core.state';
36 36 import {MatChipList} from '@angular/material/chips';
37   -import {MatAutocomplete} from "@angular/material/autocomplete";
38   -import {Observable} from "rxjs";
  37 +import {MatAutocomplete} from '@angular/material/autocomplete';
  38 +import {Observable} from 'rxjs';
39 39 import {filter, map, mergeMap, share, tap} from 'rxjs/operators';
40   -import {ObjectLwM2M} from "./profile-config.models";
41   -import {TranslateService} from "@ngx-translate/core";
42   -import {DeviceProfileService} from "../../../../../../core/http/device-profile.service";
43   -import {PageLink} from "../../../../../../shared/models/page/page-link";
44   -import {Direction} from "../../../../../../shared/models/page/sort-order";
  40 +import {ObjectLwM2M} from './profile-config.models';
  41 +import {TranslateService} from '@ngx-translate/core';
  42 +import {DeviceProfileService} from '../../../../../../core/http/device-profile.service';
  43 +import {PageLink} from '../../../../../../shared/models/page/page-link';
  44 +import {Direction} from '../../../../../../shared/models/page/sort-order';
45 45
46 46 @Component({
47 47 selector: 'tb-profile-lwm2m-object-list',
... ...
... ... @@ -14,13 +14,13 @@
14 14 /// limitations under the License.
15 15 ///
16 16
17   -import { Component, EventEmitter, forwardRef, Input, OnInit, Output, ViewChild } from "@angular/core";
  17 +import { Component, forwardRef, Input, OnInit } from '@angular/core';
18 18 import {
19 19 ControlValueAccessor,
20 20 FormArray, FormBuilder,
21 21 FormGroup,
22 22 NG_VALUE_ACCESSOR, Validators
23   -} from "@angular/forms";
  23 +} from '@angular/forms';
24 24 import {
25 25 CAMEL_CASE_REGEXP,
26 26 ResourceLwM2M
... ...
... ... @@ -15,7 +15,7 @@
15 15 ///
16 16
17 17
18   -import { Component, forwardRef, Input, OnInit, Output } from "@angular/core";
  18 +import { Component, forwardRef, Input, OnInit, Output } from '@angular/core';
19 19 import {
20 20 AbstractControl,
21 21 ControlValueAccessor,
... ... @@ -24,10 +24,10 @@ import {
24 24 FormGroup,
25 25 NG_VALUE_ACCESSOR,
26 26 Validators
27   -} from "@angular/forms";
28   -import { Store } from "@ngrx/store";
29   -import { AppState } from "@core/core.state";
30   -import { coerceBooleanProperty } from "@angular/cdk/coercion";
  27 +} from '@angular/forms';
  28 +import { Store } from '@ngrx/store';
  29 +import { AppState } from '@core/core.state';
  30 +import { coerceBooleanProperty } from '@angular/cdk/coercion';
31 31 import {
32 32 ATTR,
33 33 Instance,
... ... @@ -35,7 +35,7 @@ import {
35 35 OBSERVE,
36 36 ResourceLwM2M,
37 37 TELEMETRY
38   -} from "./profile-config.models";
  38 +} from './profile-config.models';
39 39 import { isNotNullOrUndefined } from 'codelyzer/util/isNotNullOrUndefined';
40 40 import { deepClone, isUndefined } from '@core/utils';
41 41 import { MatDialog } from '@angular/material/dialog';
... ...
... ... @@ -33,14 +33,14 @@ import {
33 33 EntityNodeData,
34 34 EntityNodeDatasource
35 35 } from '@home/components/widget/lib/edges-overview-widget.models';
36   -import { EdgeService } from "@core/http/edge.service";
37   -import { EntityService } from "@core/http/entity.service";
38   -import { TranslateService } from "@ngx-translate/core";
39   -import { PageLink } from "@shared/models/page/page-link";
40   -import { BaseData, HasId } from "@shared/models/base-data";
41   -import { EntityId } from "@shared/models/id/entity-id";
42   -import { getCurrentAuthUser } from "@core/auth/auth.selectors";
43   -import { Authority } from "@shared/models/authority.enum";
  36 +import { EdgeService } from '@core/http/edge.service';
  37 +import { EntityService } from '@core/http/entity.service';
  38 +import { TranslateService } from '@ngx-translate/core';
  39 +import { PageLink } from '@shared/models/page/page-link';
  40 +import { BaseData, HasId } from '@shared/models/base-data';
  41 +import { EntityId } from '@shared/models/id/entity-id';
  42 +import { getCurrentAuthUser } from '@core/auth/auth.selectors';
  43 +import { Authority } from '@shared/models/authority.enum';
44 44
45 45 @Component({
46 46 selector: 'tb-edges-overview-widget',
... ...
... ... @@ -17,8 +17,8 @@
17 17 import { NavTreeNode } from '@shared/components/nav-tree.component';
18 18 import { Datasource } from '@shared/models/widget.models';
19 19 import { EntityType } from '@shared/models/entity-type.models';
20   -import { TranslateService } from "@ngx-translate/core";
21   -import { BaseData, HasId } from "@shared/models/base-data";
  20 +import { TranslateService } from '@ngx-translate/core';
  21 +import { BaseData, HasId } from '@shared/models/base-data';
22 22
23 23 export interface EntityNodeDatasource extends Datasource {
24 24 nodeId: string;
... ...
... ... @@ -35,7 +35,7 @@ import { TripAnimationComponent } from './trip-animation/trip-animation.componen
35 35 import { PhotoCameraInputWidgetComponent } from './lib/photo-camera-input.component';
36 36 import { GatewayFormComponent } from './lib/gateway/gateway-form.component';
37 37 import { ImportExportService } from '@home/components/import-export/import-export.service';
38   -import { EdgesOverviewWidgetComponent } from "@home/components/widget/lib/edges-overview-widget.component";
  38 +import { EdgesOverviewWidgetComponent } from '@home/components/widget/lib/edges-overview-widget.component';
39 39
40 40 @NgModule({
41 41 declarations:
... ...
... ... @@ -28,7 +28,7 @@ import { EntityViewService } from '@core/http/entity-view.service';
28 28 import { DashboardService } from '@core/http/dashboard.service';
29 29 import { DialogComponent } from '@shared/components/dialog.component';
30 30 import { Router } from '@angular/router';
31   -import { EdgeService } from "@core/http/edge.service";
  31 +import { EdgeService } from '@core/http/edge.service';
32 32
33 33 export interface AddEntitiesToCustomerDialogData {
34 34 customerId: string;
... ...
... ... @@ -21,7 +21,7 @@ import { Store } from '@ngrx/store';
21 21 import { AppState } from '@core/core.state';
22 22 import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms';
23 23 import { DeviceService } from '@core/http/device.service';
24   -import { EdgeService } from "@core/http/edge.service";
  24 +import { EdgeService } from '@core/http/edge.service';
25 25 import { EntityType } from '@shared/models/entity-type.models';
26 26 import { forkJoin, Observable } from 'rxjs';
27 27 import { AssetService } from '@core/http/asset.service';
... ... @@ -29,8 +29,8 @@ import { EntityViewService } from '@core/http/entity-view.service';
29 29 import { DashboardService } from '@core/http/dashboard.service';
30 30 import { DialogComponent } from '@shared/components/dialog.component';
31 31 import { Router } from '@angular/router';
32   -import { RuleChainService } from "@core/http/rule-chain.service";
33   -import { ruleChainType } from "@shared/models/rule-chain.models";
  32 +import { RuleChainService } from '@core/http/rule-chain.service';
  33 +import { ruleChainType } from '@shared/models/rule-chain.models';
34 34
35 35 export interface AddEntitiesToEdgeDialogData {
36 36 edgeId: string;
... ...
... ... @@ -28,7 +28,7 @@ import { AssetService } from '@core/http/asset.service';
28 28 import { EntityViewService } from '@core/http/entity-view.service';
29 29 import { DialogComponent } from '@shared/components/dialog.component';
30 30 import { Router } from '@angular/router';
31   -import { EdgeService } from "@core/http/edge.service";
  31 +import { EdgeService } from '@core/http/edge.service';
32 32
33 33 export interface AssignToCustomerDialogData {
34 34 entityIds: Array<EntityId>;
... ...
... ... @@ -20,7 +20,7 @@ import { SharedModule } from '@app/shared/shared.module';
20 20 import { AssignToCustomerDialogComponent } from '@modules/home/dialogs/assign-to-customer-dialog.component';
21 21 import { AddEntitiesToCustomerDialogComponent } from '@modules/home/dialogs/add-entities-to-customer-dialog.component';
22 22 import { HomeDialogsService } from './home-dialogs.service';
23   -import { AddEntitiesToEdgeDialogComponent } from "@home/dialogs/add-entities-to-edge-dialog.component";
  23 +import { AddEntitiesToEdgeDialogComponent } from '@home/dialogs/add-entities-to-edge-dialog.component';
24 24
25 25 @NgModule({
26 26 declarations:
... ...
... ... @@ -58,11 +58,11 @@ import { AssetId } from '@app/shared/models/id/asset-id';
58 58 import { AssetTabsComponent } from '@home/pages/asset/asset-tabs.component';
59 59 import { HomeDialogsService } from '@home/dialogs/home-dialogs.service';
60 60 import { DeviceInfo } from '@shared/models/device.models';
61   -import { EdgeService } from "@core/http/edge.service";
  61 +import { EdgeService } from '@core/http/edge.service';
62 62 import {
63 63 AddEntitiesToEdgeDialogComponent,
64 64 AddEntitiesToEdgeDialogData
65   -} from "@home/dialogs/add-entities-to-edge-dialog.component";
  65 +} from '@home/dialogs/add-entities-to-edge-dialog.component';
66 66
67 67 @Injectable()
68 68 export class AssetsTableConfigResolver implements Resolve<EntityTableConfig<AssetInfo>> {
... ...
... ... @@ -27,7 +27,7 @@ import { DashboardsTableConfigResolver } from '@modules/home/pages/dashboard/das
27 27 import { DashboardPageComponent } from '@home/pages/dashboard/dashboard-page.component';
28 28 import { BreadCrumbConfig } from '@shared/components/breadcrumb';
29 29 import { dashboardBreadcumbLabelFunction, DashboardResolver } from '@home/pages/dashboard/dashboard-routing.module';
30   -import { EdgesTableConfigResolver } from "@home/pages/edge/edges-table-config.resolver";
  30 +import { EdgesTableConfigResolver } from '@home/pages/edge/edges-table-config.resolver';
31 31
32 32 const routes: Routes = [
33 33 {
... ...
... ... @@ -99,7 +99,7 @@ import { ImportExportService } from '@home/components/import-export/import-expor
99 99 import { AuthState } from '@app/core/auth/auth.models';
100 100 import { FiltersDialogComponent, FiltersDialogData } from '@home/components/filter/filters-dialog.component';
101 101 import { Filters } from '@shared/models/query/query.models';
102   -import { AliasEntityType, EntityType } from "@shared/models/entity-type.models";
  102 +import { AliasEntityType, EntityType } from '@shared/models/entity-type.models';
103 103
104 104 // @dynamic
105 105 @Component({
... ...
... ... @@ -64,11 +64,11 @@ import {
64 64 } from '@modules/home/pages/dashboard/make-dashboard-public-dialog.component';
65 65 import { DashboardTabsComponent } from '@home/pages/dashboard/dashboard-tabs.component';
66 66 import { ImportExportService } from '@home/components/import-export/import-export.service';
67   -import { EdgeService } from "@core/http/edge.service";
  67 +import { EdgeService } from '@core/http/edge.service';
68 68 import {
69 69 AddEntitiesToEdgeDialogComponent,
70 70 AddEntitiesToEdgeDialogData
71   -} from "@home/dialogs/add-entities-to-edge-dialog.component";
  71 +} from '@home/dialogs/add-entities-to-edge-dialog.component';
72 72
73 73 @Injectable()
74 74 export class DashboardsTableConfigResolver implements Resolve<EntityTableConfig<DashboardInfo | Dashboard>> {
... ...
... ... @@ -26,7 +26,7 @@ import { HomeComponentsModule } from '@modules/home/components/home-components.m
26 26 import { DeviceTabsComponent } from '@home/pages/device/device-tabs.component';
27 27 import { SecurityConfigComponent } from '@home/pages/device/lwm2m/security-config.component';
28 28 // TODO: @nickAS21 move to device profile
29   -import {SecurityConfigServerComponent} from "@home/pages/device/lwm2m/security-config-server.component";
  29 +import { SecurityConfigServerComponent } from '@home/pages/device/lwm2m/security-config-server.component';
30 30 import { DefaultDeviceConfigurationComponent } from './data/default-device-configuration.component';
31 31 import { DeviceConfigurationComponent } from './data/device-configuration.component';
32 32 import { DeviceDataComponent } from './data/device-data.component';
... ...
... ... @@ -64,11 +64,11 @@ import { HomeDialogsService } from '@home/dialogs/home-dialogs.service';
64 64 import { DeviceWizardDialogComponent } from '@home/components/wizard/device-wizard-dialog.component';
65 65 import { BaseData, HasId } from '@shared/models/base-data';
66 66 import { isDefinedAndNotNull } from '@core/utils';
67   -import { EdgeService } from "@core/http/edge.service";
  67 +import { EdgeService } from '@core/http/edge.service';
68 68 import {
69 69 AddEntitiesToEdgeDialogComponent,
70 70 AddEntitiesToEdgeDialogData
71   -} from "@home/dialogs/add-entities-to-edge-dialog.component";
  71 +} from '@home/dialogs/add-entities-to-edge-dialog.component';
72 72
73 73 @Injectable()
74 74 export class DevicesTableConfigResolver implements Resolve<EntityTableConfig<DeviceInfo>> {
... ...
... ... @@ -14,12 +14,12 @@
14 14 /// limitations under the License.
15 15 ///
16 16
17   -import {Component, forwardRef, Inject, Input, OnInit, ViewChild} from "@angular/core";
  17 +import {Component, forwardRef, Inject, Input, OnInit, ViewChild} from '@angular/core';
18 18
19 19 import {
20 20 ControlValueAccessor,
21 21 FormBuilder, FormGroup, NG_VALUE_ACCESSOR, Validators
22   -} from "@angular/forms";
  22 +} from '@angular/forms';
23 23 import {
24 24 SECURITY_CONFIG_MODE,
25 25 SECURITY_CONFIG_MODE_NAMES,
... ... @@ -28,12 +28,12 @@ import {
28 28 DeviceCredentialsDialogLwm2mData,
29 29 LEN_MAX_PSK,
30 30 LEN_MAX_PRIVATE_KEY, LEN_MAX_PUBLIC_KEY_RPK, KEY_PRIVATE_REGEXP, LEN_MAX_PUBLIC_KEY_X509, KEY_PUBLIC_REGEXP_X509
31   -} from "@home/pages/device/lwm2m/security-config.models";
32   -import {Store} from "@ngrx/store";
33   -import {AppState} from "@core/core.state";
34   -import {MAT_DIALOG_DATA, MatDialogRef} from "@angular/material/dialog";
35   -import {PageComponent} from "@shared/components/page.component";
36   -import {MatPaginator} from "@angular/material/paginator";
  31 +} from '@home/pages/device/lwm2m/security-config.models';
  32 +import {Store} from '@ngrx/store';
  33 +import {AppState} from '@core/core.state';
  34 +import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
  35 +import {PageComponent} from '@shared/components/page.component';
  36 +import {MatPaginator} from '@angular/material/paginator';
37 37 import { TranslateService } from '@ngx-translate/core';
38 38
39 39 @Component({
... ...
... ... @@ -41,10 +41,10 @@ import {
41 41 getDefaultClientSecurityConfigType,
42 42 LEN_MAX_PSK,
43 43 LEN_MAX_PUBLIC_KEY_RPK
44   -} from "./security-config.models";
45   -import {WINDOW} from "@core/services/window.service";
46   -import {MatTabChangeEvent, MatTabGroup} from "@angular/material/tabs";
47   -import {MatTab} from "@angular/material/tabs/tab";
  44 +} from './security-config.models';
  45 +import {WINDOW} from '@core/services/window.service';
  46 +import {MatTabChangeEvent, MatTabGroup} from '@angular/material/tabs';
  47 +import {MatTab} from '@angular/material/tabs/tab';
48 48
49 49
50 50 @Component({
... ...
... ... @@ -15,27 +15,27 @@
15 15 ///
16 16
17 17 import { NgModule } from '@angular/core';
18   -import { RouterModule, Routes } from "@angular/router";
19   -import { EntitiesTableComponent } from "@home/components/entity/entities-table.component";
20   -import { Authority } from "@shared/models/authority.enum";
21   -import { EdgesTableConfigResolver } from "@home/pages/edge/edges-table-config.resolver"
22   -import { AssetsTableConfigResolver } from "@home/pages/asset/assets-table-config.resolver";
23   -import { DevicesTableConfigResolver } from "@home/pages/device/devices-table-config.resolver";
24   -import { EntityViewsTableConfigResolver } from "@home/pages/entity-view/entity-views-table-config.resolver";
25   -import { DashboardsTableConfigResolver } from "@home/pages/dashboard/dashboards-table-config.resolver";
26   -import { RuleChainsTableConfigResolver } from "@home/pages/rulechain/rulechains-table-config.resolver";
27   -import { DashboardPageComponent } from "@home/pages/dashboard/dashboard-page.component";
28   -import { dashboardBreadcumbLabelFunction, DashboardResolver } from "@home/pages/dashboard/dashboard-routing.module";
29   -import { BreadCrumbConfig } from "@shared/components/breadcrumb";
30   -import { RuleChainPageComponent } from "@home/pages/rulechain/rulechain-page.component";
31   -import { ConfirmOnExitGuard } from "@core/guards/confirm-on-exit.guard";
32   -import { ruleChainType } from "@shared/models/rule-chain.models";
  18 +import { RouterModule, Routes } from '@angular/router';
  19 +import { EntitiesTableComponent } from '@home/components/entity/entities-table.component';
  20 +import { Authority } from '@shared/models/authority.enum';
  21 +import { EdgesTableConfigResolver } from '@home/pages/edge/edges-table-config.resolver'
  22 +import { AssetsTableConfigResolver } from '@home/pages/asset/assets-table-config.resolver';
  23 +import { DevicesTableConfigResolver } from '@home/pages/device/devices-table-config.resolver';
  24 +import { EntityViewsTableConfigResolver } from '@home/pages/entity-view/entity-views-table-config.resolver';
  25 +import { DashboardsTableConfigResolver } from '@home/pages/dashboard/dashboards-table-config.resolver';
  26 +import { RuleChainsTableConfigResolver } from '@home/pages/rulechain/rulechains-table-config.resolver';
  27 +import { DashboardPageComponent } from '@home/pages/dashboard/dashboard-page.component';
  28 +import { dashboardBreadcumbLabelFunction, DashboardResolver } from '@home/pages/dashboard/dashboard-routing.module';
  29 +import { BreadCrumbConfig } from '@shared/components/breadcrumb';
  30 +import { RuleChainPageComponent } from '@home/pages/rulechain/rulechain-page.component';
  31 +import { ConfirmOnExitGuard } from '@core/guards/confirm-on-exit.guard';
  32 +import { ruleChainType } from '@shared/models/rule-chain.models';
33 33 import {
34 34 importRuleChainBreadcumbLabelFunction,
35 35 ResolvedRuleChainMetaDataResolver,
36 36 ruleChainBreadcumbLabelFunction, RuleChainImportGuard,
37 37 RuleChainResolver, RuleNodeComponentsResolver
38   -} from "@home/pages/rulechain/rulechain-routing.module";
  38 +} from '@home/pages/rulechain/rulechain-routing.module';
39 39
40 40 const routes: Routes = [
41 41 {
... ...
... ... @@ -15,11 +15,11 @@
15 15 ///
16 16
17 17 import { Component } from '@angular/core';
18   -import { EntityTableHeaderComponent } from "@home/components/entity/entity-table-header.component";
19   -import { EntityType } from "@shared/models/entity-type.models";
20   -import { Store } from "@ngrx/store";
21   -import { AppState } from "@core/core.state";
22   -import { EdgeInfo } from "@shared/models/edge.models";
  18 +import { EntityTableHeaderComponent } from '@home/components/entity/entity-table-header.component';
  19 +import { EntityType } from '@shared/models/entity-type.models';
  20 +import { Store } from '@ngrx/store';
  21 +import { AppState } from '@core/core.state';
  22 +import { EdgeInfo } from '@shared/models/edge.models';
23 23
24 24 @Component({
25 25 selector: 'tb-edge-table-header',
... ...
... ... @@ -15,10 +15,10 @@
15 15 ///
16 16
17 17 import { Component } from '@angular/core';
18   -import { Store } from "@ngrx/store";
19   -import { AppState } from "@core/core.state";
20   -import { EdgeInfo } from "@shared/models/edge.models";
21   -import { EntityTabsComponent } from "@home/components/entity/entity-tabs.component";
  18 +import { Store } from '@ngrx/store';
  19 +import { AppState } from '@core/core.state';
  20 +import { EdgeInfo } from '@shared/models/edge.models';
  21 +import { EntityTabsComponent } from '@home/components/entity/entity-tabs.component';
22 22
23 23 @Component({
24 24 selector: 'tb-edge-tabs',
... ...
... ... @@ -16,17 +16,17 @@
16 16
17 17 import { Component, Inject } from '@angular/core';
18 18 import { Store } from '@ngrx/store';
19   -import { AppState } from "@core/core.state";
20   -import { EntityComponent } from "@home/components/entity/entity.component";
21   -import { FormBuilder, FormGroup, Validators } from "@angular/forms";
22   -import { EntityType } from "@shared/models/entity-type.models";
23   -import { EdgeInfo } from "@shared/models/edge.models";
24   -import { TranslateService } from "@ngx-translate/core";
25   -import { NULL_UUID } from "@shared/models/id/has-uuid";
26   -import { ActionNotificationShow } from "@core/notification/notification.actions";
27   -import { guid, isUndefined } from "@core/utils";
28   -import { EntityTableConfig } from "@home/models/entity/entities-table-config.models";
29   -import { WINDOW } from "@core/services/window.service";
  19 +import { AppState } from '@core/core.state';
  20 +import { EntityComponent } from '@home/components/entity/entity.component';
  21 +import { FormBuilder, FormGroup, Validators } from '@angular/forms';
  22 +import { EntityType } from '@shared/models/entity-type.models';
  23 +import { EdgeInfo } from '@shared/models/edge.models';
  24 +import { TranslateService } from '@ngx-translate/core';
  25 +import { NULL_UUID } from '@shared/models/id/has-uuid';
  26 +import { ActionNotificationShow } from '@core/notification/notification.actions';
  27 +import { guid, isUndefined } from '@core/utils';
  28 +import { EntityTableConfig } from '@home/models/entity/entities-table-config.models';
  29 +import { WINDOW } from '@core/services/window.service';
30 30
31 31 @Component({
32 32 selector: 'tb-edge',
... ...
... ... @@ -17,12 +17,12 @@
17 17 import { NgModule } from '@angular/core';
18 18 import { CommonModule } from '@angular/common';
19 19 import { SharedModule } from '@shared/shared.module';
20   -import { HomeDialogsModule } from "@home/dialogs/home-dialogs.module";
21   -import { HomeComponentsModule } from "@home/components/home-components.module";
22   -import { EdgeRoutingModule } from "@home/pages/edge/edge-routing.module";
  20 +import { HomeDialogsModule } from '@home/dialogs/home-dialogs.module';
  21 +import { HomeComponentsModule } from '@home/components/home-components.module';
  22 +import { EdgeRoutingModule } from '@home/pages/edge/edge-routing.module';
23 23 import { EdgeComponent } from '@modules/home/pages/edge/edge.component';
24   -import { EdgeTableHeaderComponent } from "@home/pages/edge/edge-table-header.component";
25   -import { EdgeTabsComponent } from "@home/pages/edge/edge-tabs.component";
  24 +import { EdgeTableHeaderComponent } from '@home/pages/edge/edge-table-header.component';
  25 +import { EdgeTabsComponent } from '@home/pages/edge/edge-tabs.component';
26 26
27 27 @NgModule({
28 28 declarations: [
... ...
... ... @@ -51,13 +51,13 @@ import {
51 51 AddEntitiesToCustomerDialogData
52 52 } from '../../dialogs/add-entities-to-customer-dialog.component';
53 53 import { HomeDialogsService } from '@home/dialogs/home-dialogs.service';
54   -import { Edge, EdgeInfo } from "@shared/models/edge.models";
55   -import { EdgeService } from "@core/http/edge.service";
56   -import { EdgeComponent } from "@home/pages/edge/edge.component";
57   -import { EdgeTableHeaderComponent } from "@home/pages/edge/edge-table-header.component";
58   -import { EdgeId } from "@shared/models/id/edge-id";
59   -import { EdgeTabsComponent } from "@home/pages/edge/edge-tabs.component";
60   -import { ActionNotificationShow } from "@core/notification/notification.actions";
  54 +import { Edge, EdgeInfo } from '@shared/models/edge.models';
  55 +import { EdgeService } from '@core/http/edge.service';
  56 +import { EdgeComponent } from '@home/pages/edge/edge.component';
  57 +import { EdgeTableHeaderComponent } from '@home/pages/edge/edge-table-header.component';
  58 +import { EdgeId } from '@shared/models/id/edge-id';
  59 +import { EdgeTabsComponent } from '@home/pages/edge/edge-tabs.component';
  60 +import { ActionNotificationShow } from '@core/notification/notification.actions';
61 61
62 62 @Injectable()
63 63 export class EdgesTableConfigResolver implements Resolve<EntityTableConfig<EdgeInfo>> {
... ...
... ... @@ -56,11 +56,11 @@ import { EntityViewComponent } from '@modules/home/pages/entity-view/entity-view
56 56 import { EntityViewTableHeaderComponent } from '@modules/home/pages/entity-view/entity-view-table-header.component';
57 57 import { EntityViewId } from '@shared/models/id/entity-view-id';
58 58 import { EntityViewTabsComponent } from '@home/pages/entity-view/entity-view-tabs.component';
59   -import { EdgeService } from "@core/http/edge.service";
  59 +import { EdgeService } from '@core/http/edge.service';
60 60 import {
61 61 AddEntitiesToEdgeDialogComponent,
62 62 AddEntitiesToEdgeDialogData
63   -} from "@home/dialogs/add-entities-to-edge-dialog.component";
  63 +} from '@home/dialogs/add-entities-to-edge-dialog.component';
64 64
65 65 @Injectable()
66 66 export class EntityViewsTableConfigResolver implements Resolve<EntityTableConfig<EntityViewInfo>> {
... ...
... ... @@ -34,7 +34,7 @@ import { MODULES_MAP } from '@shared/public-api';
34 34 import { modulesMap } from '../../common/modules-map';
35 35 import { DeviceProfileModule } from './device-profile/device-profile.module';
36 36 import { ApiUsageModule } from '@home/pages/api-usage/api-usage.module';
37   -import { EdgeModule } from "@home/pages/edge/edge.module";
  37 +import { EdgeModule } from '@home/pages/edge/edge.module';
38 38
39 39 @NgModule({
40 40 exports: [
... ...
... ... @@ -38,17 +38,17 @@ import { DialogService } from '@core/services/dialog.service';
38 38 import { RuleChainTabsComponent } from '@home/pages/rulechain/rulechain-tabs.component';
39 39 import { ImportExportService } from '@home/components/import-export/import-export.service';
40 40 import { ItemBufferService } from '@core/services/item-buffer.service';
41   -import { EdgeService } from "@core/http/edge.service";
42   -import { forkJoin, Observable } from "rxjs";
  41 +import { EdgeService } from '@core/http/edge.service';
  42 +import { forkJoin, Observable } from 'rxjs';
43 43 import {
44 44 AddEntitiesToEdgeDialogComponent,
45 45 AddEntitiesToEdgeDialogData
46   -} from "@home/dialogs/add-entities-to-edge-dialog.component";
47   -import { MatDialog } from "@angular/material/dialog";
48   -import { isUndefined } from "@core/utils";
49   -import { PageLink } from "@shared/models/page/page-link";
50   -import { Edge } from "@shared/models/edge.models";
51   -import { mergeMap } from "rxjs/operators";
  46 +} from '@home/dialogs/add-entities-to-edge-dialog.component';
  47 +import { MatDialog } from '@angular/material/dialog';
  48 +import { isUndefined } from '@core/utils';
  49 +import { PageLink } from '@shared/models/page/page-link';
  50 +import { Edge } from '@shared/models/edge.models';
  51 +import { mergeMap } from 'rxjs/operators';
52 52
53 53 @Injectable()
54 54 export class RuleChainsTableConfigResolver implements Resolve<EntityTableConfig<RuleChain>> {
... ...
... ... @@ -37,8 +37,8 @@ import { getCurrentAuthState, getCurrentAuthUser } from '@app/core/auth/auth.sel
37 37 import { Authority } from '@shared/models/authority.enum';
38 38 import { DialogService } from '@core/services/dialog.service';
39 39 import { ImportExportService } from '@home/components/import-export/import-export.service';
40   -import { Direction } from "@shared/models/page/sort-order";
41   -import { map } from "rxjs/operators";
  40 +import { Direction } from '@shared/models/page/sort-order';
  41 +import { map } from 'rxjs/operators';
42 42
43 43 @Injectable()
44 44 export class WidgetsBundlesTableConfigResolver implements Resolve<EntityTableConfig<WidgetsBundle>> {
... ...
... ... @@ -27,7 +27,7 @@ import { BroadcastService } from '@app/core/services/broadcast.service';
27 27 import { coerceBooleanProperty } from '@angular/cdk/coercion';
28 28 import { AssetService } from '@core/http/asset.service';
29 29 import { EntityViewService } from '@core/http/entity-view.service';
30   -import { EdgeService } from "@core/http/edge.service";
  30 +import { EdgeService } from '@core/http/edge.service';
31 31
32 32 @Component({
33 33 selector: 'tb-entity-subtype-autocomplete',
... ...
... ... @@ -27,7 +27,7 @@ import { MatChipInputEvent, MatChipList } from '@angular/material/chips';
27 27 import { coerceBooleanProperty } from '@angular/cdk/coercion';
28 28 import { AssetService } from '@core/http/asset.service';
29 29 import { DeviceService } from '@core/http/device.service';
30   -import { EdgeService } from "@core/http/edge.service";
  30 +import { EdgeService } from '@core/http/edge.service';
31 31 import { EntityViewService } from '@core/http/entity-view.service';
32 32 import { BroadcastService } from '@core/services/broadcast.service';
33 33 import { COMMA, ENTER, SEMICOLON } from '@angular/cdk/keycodes';
... ...
... ... @@ -25,7 +25,7 @@ import { DeviceService } from '@core/http/device.service';
25 25 import { EntitySubtype, EntityType } from '@app/shared/models/entity-type.models';
26 26 import { BroadcastService } from '@app/core/services/broadcast.service';
27 27 import { AssetService } from '@core/http/asset.service';
28   -import { EdgeService } from "@core/http/edge.service";
  28 +import { EdgeService } from '@core/http/edge.service';
29 29 import { EntityViewService } from '@core/http/entity-view.service';
30 30
31 31 @Component({
... ...
... ... @@ -25,7 +25,7 @@ import { WidgetsBundle } from '@shared/models/widgets-bundle.model';
25 25 import { WidgetService } from '@core/http/widget.service';
26 26 import { isDefined } from '@core/utils';
27 27 import { NULL_UUID } from '@shared/models/id/has-uuid';
28   -import { getCurrentAuthState } from "@core/auth/auth.selectors";
  28 +import { getCurrentAuthState } from '@core/auth/auth.selectors';
29 29
30 30 @Component({
31 31 selector: 'tb-widgets-bundle-select',
... ...
... ... @@ -19,9 +19,9 @@ import { TenantId } from '@shared/models/id/tenant-id';
19 19 import { CustomerId } from '@shared/models/id/customer-id';
20 20 import { EdgeId } from '@shared/models/id/edge-id';
21 21 import { EntitySearchQuery } from '@shared/models/relation.models';
22   -import { RuleChainId } from "@shared/models/id/rule-chain-id";
23   -import { BaseEventBody } from "@shared/models/event.models";
24   -import { EventId } from "@shared/models/id/event-id";
  22 +import { RuleChainId } from '@shared/models/id/rule-chain-id';
  23 +import { BaseEventBody } from '@shared/models/event.models';
  24 +import { EventId } from '@shared/models/id/event-id';
25 25
26 26 export interface Edge extends BaseData<EdgeId> {
27 27 tenantId?: TenantId;
... ...