1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
import { BrowserModule } from '@angular/platform-browser';
import {NgModule, ViewEncapsulation} from '@angular/core';
import {AdminLteConf } from './admin-lte.conf';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { CoreModule } from './core/core.module';
import {DropdownModule, LayoutModule, LayoutService, LayoutState, LayoutStore} from 'library/angular-admin-lte/src';
import {environment} from '../environments/environment';
import {AuthModule, TokenInterceptorService} from 'globunet-angular/core';
import {HTTP_INTERCEPTORS, HttpClient, HttpClientModule} from '@angular/common/http';
import {LoginComponent} from './pages/login/login.component';
import {ImageComponent} from './pages/image/image.component';
import { LoadingPageModule, CircleModule } from 'angular-loading-page';
import { DashboardComponent } from './pages/dashboard/dashboard.component';
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
import {TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ToastrModule } from 'ng6-toastr-notifications';
import { Ng2SmartTableModule } from 'ng2-smart-table';
import { FormsModule } from '@angular/forms';
import {Ng2TableActionComponent} from './pages/common/table-action/ng2-table-action.component';
import {RepositoryComponent} from './pages/repository/repository.component';
import {FormInputComponent} from './pages/common/forms/form-input.component';
import {HardwareComponentComponent} from './pages/hardware-component/hardware-component.component';
import { HardwareComponent } from './pages/hardware/hardware.component';
import { HardwareComponentsComponent } from './pages/hardware/hardware-components/hardware-components.component';
import { HardwareProfilesComponent } from './pages/hardware/hardware-profiles/hardware-profiles.component';
import { HardwareTypesComponent } from './pages/hardware/hardware-types/hardware-types.component';
import {HardwareProfilesTableComponent} from './pages/hardware/hardware-profiles/profiles-table/hardware-profiles-table.component';
import {HardwareProfilesGroupComponent} from './pages/hardware/hardware-profiles/profiles-group/hardware-profiles-group.component';
import {HardwareComponentsTableComponent} from './pages/hardware/hardware-components/hardware-components-table/hardware-components-table.component';
import {HardwareComponentsGroupComponent} from './pages/hardware/hardware-components/hardware-components-group/hardware-components-group.component';
import {HardwareProfileComponent} from './pages/hardware-profile/hardware-profile.component';
import {IcheckDirective} from './pages/common/directive/icheck.directive';
import {OrganizationalUnitComponent} from './pages/organizational-unit/organizational-unit.component';
import {OuGroupComponent} from './pages/organizational-unit/ou-group/ou-group.component';
import {OuClientComponent} from './pages/organizational-unit/ou-clients/ou-client.component';
import {CommandComponent} from './pages/command/command.component';
import {EditCommandComponent} from './pages/command/edit-command/edit-command.component';
import {FixedToolboxBarDirective} from './pages/common/directive/fixed-toolbox-bar.directive';
import { OgInformationOptionsComponent } from './pages/common/og-options/og-information-options/og-information-options.component';
import { OgCommandsOptionsComponent } from './pages/common/og-options/og-commands-options/og-commands-options.component';
import { OgExecuteCommandOptionsComponent } from './pages/common/og-options/og-execute-command-options/og-execute-command-options.component';
import { OgHardwareComponentsOptionsComponent } from './pages/common/og-options/og-hardware-components-options/og-hardware-components-options.component';
import { OgHardwareProfileOptionsComponent } from './pages/common/og-options/og-hardware-profile-options/og-hardware-profile-options.component';
import { OgHardwareTypesOptionsComponent } from './pages/common/og-options/og-hardware-types-options/og-hardware-types-options.component';
import { OgOuOptionsComponent } from './pages/common/og-options/og-ou-options/og-ou-options.component';
import { OgSelectedClientsComponent } from './pages/common/og-options/og-selected-clients/og-selected-clients.component';
import {OgOuGeneralOptionsComponent} from './pages/common/og-options/og-ou-general-options/og-ou-general-options.component';
import {TraceComponent} from './pages/trace/trace.component';
import {OgCommandsPipe} from './pages/common/pipes/og-commands.pipe';
import {NetbootComponent} from './pages/netboot/netboot.component';
import {NetbootEditComponent} from './pages/netboot/edit/netboot-edit.component';
import {ImageEditComponent} from './pages/image/edit/image-edit.component';
import {ProfileComponent} from './pages/profile/profile.component';
import {layoutProvider} from '../../library/angular-admin-lte/src/lib/layout/layout.provider';
import {OrganizationalUnitEditComponent} from './pages/organizational-unit/edit/organizational-unit-edit.component';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
import {ClientComponent} from './pages/client/client.component';
import {ChartsModule} from 'ng2-charts';
import {ClientDhcpComponent} from './pages/client/dhcp/client-dhcp.component';
import {DeployImageCommandComponent} from './pages/command/deploy-image-command/deploy-image-command.component';
import {MenuComponent} from './pages/menu/menu.component';
import {MenuEditComponent} from './pages/menu/edit/menu-edit.component';
import {SoftwareComponentComponent} from './pages/software-component/software-component.component';
import {SoftwareComponent} from './pages/software/software.component';
import {SoftwareComponentsComponent} from './pages/software/software-components/software-components.component';
import {SoftwareProfilesComponent} from './pages/software/software-profiles/software-profiles.component';
import {SoftwareProfileComponent} from './pages/software-profile/software-profile.component';
import {SoftwareTypesComponent} from './pages/software/software-types/software-types.component';
import {SoftwareProfilesTableComponent} from './pages/software/software-profiles/software-profiles-table/software-profiles-table.component';
import {SoftwareProfilesGroupComponent} from './pages/software/software-profiles/software-profiles-group/software-profiles-group.component';
import {SoftwareComponentsTableComponent} from './pages/software/software-components/software-components-table/software-components-table.component';
import {SoftwareComponentsGroupComponent} from './pages/software/software-components/software-components-group/software-components-group.component';
import {LoginCommandComponent} from './pages/command/login-command/login-command.component';
import {ExecuteCommandComponent} from './pages/command/execute-command/execute-command.component';
import {CreateImageCommandComponent} from './pages/command/create-image-command/create-image-command.component';
import {DeleteCacheImageCommandComponent} from './pages/command/delete-cache-image-command/delete-cache-image-command.component';
import {FormatCommandComponent} from './pages/command/format-command/format-command.component';
import {PartitionFormatCommandComponent} from './pages/command/partition-format-command/partition-format-command.component';
import {ColResizableDirective} from './pages/common/directive/col-resizable.directive';
@NgModule({
declarations: [
AppComponent,
LoginComponent,
ImageComponent,
ImageEditComponent,
MenuComponent,
MenuEditComponent,
DashboardComponent,
RepositoryComponent,
OrganizationalUnitComponent,
OrganizationalUnitEditComponent,
Ng2TableActionComponent,
FormInputComponent,
HardwareComponentComponent,
HardwareComponent,
HardwareComponentsComponent,
HardwareProfilesComponent,
HardwareProfileComponent,
HardwareTypesComponent,
HardwareProfilesTableComponent,
HardwareProfilesGroupComponent,
HardwareComponentsTableComponent,
HardwareComponentsGroupComponent,
SoftwareComponentComponent,
SoftwareComponent,
SoftwareComponentsComponent,
SoftwareProfilesComponent,
SoftwareProfileComponent,
SoftwareTypesComponent,
SoftwareProfilesTableComponent,
SoftwareProfilesGroupComponent,
SoftwareComponentsTableComponent,
SoftwareComponentsGroupComponent,
OuGroupComponent,
OuClientComponent,
ClientComponent,
ClientDhcpComponent,
CommandComponent,
DeployImageCommandComponent,
LoginCommandComponent,
ExecuteCommandComponent,
CreateImageCommandComponent,
DeleteCacheImageCommandComponent,
FormatCommandComponent,
PartitionFormatCommandComponent,
EditCommandComponent,
IcheckDirective,
FixedToolboxBarDirective,
ColResizableDirective,
OgInformationOptionsComponent,
OgCommandsOptionsComponent,
OgExecuteCommandOptionsComponent,
OgHardwareComponentsOptionsComponent,
OgHardwareProfileOptionsComponent,
OgHardwareTypesOptionsComponent,
OgOuOptionsComponent,
OgSelectedClientsComponent,
OgOuGeneralOptionsComponent,
TraceComponent,
NetbootComponent,
NetbootEditComponent,
ProfileComponent,
OgCommandsPipe
],
entryComponents: [
AppComponent,
LoginComponent,
ImageComponent,
ImageEditComponent,
MenuComponent,
MenuEditComponent,
OrganizationalUnitComponent,
OrganizationalUnitEditComponent,
Ng2TableActionComponent,
HardwareProfilesTableComponent,
HardwareProfilesGroupComponent,
HardwareComponentsTableComponent,
HardwareComponentsGroupComponent,
SoftwareProfilesTableComponent,
SoftwareProfilesGroupComponent,
SoftwareComponentsTableComponent,
SoftwareComponentsGroupComponent,
OuGroupComponent,
OuClientComponent,
ClientComponent,
ClientDhcpComponent,
CommandComponent,
DeployImageCommandComponent,
LoginCommandComponent,
ExecuteCommandComponent,
CreateImageCommandComponent,
DeleteCacheImageCommandComponent,
FormatCommandComponent,
PartitionFormatCommandComponent,
EditCommandComponent,
OgOuGeneralOptionsComponent,
TraceComponent,
NetbootComponent,
NetbootEditComponent,
ProfileComponent
],
imports: [
BrowserModule,
AppRoutingModule,
CoreModule,
DropdownModule,
LayoutModule.forRoot(AdminLteConf.staticConf),
LoadingPageModule, CircleModule,
BrowserAnimationsModule,
HttpClientModule,
AuthModule.forRoot(environment),
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: createTranslateLoader,
deps: [HttpClient]
}
}),
ToastrModule.forRoot(),
Ng2SmartTableModule,
FormsModule,
ChartsModule
],
providers: [
{provide: HTTP_INTERCEPTORS, useClass: TokenInterceptorService, multi: true}
],
bootstrap: [AppComponent]
})
export class AppModule {}
platformBrowserDynamic().bootstrapModule(AppModule, [
{
defaultEncapsulation: ViewEncapsulation.None
}
]);
export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
|