@@ -15,7 +15,7 @@ import {
15
15
} from '@nebular/theme' ;
16
16
import { NgSelectModule } from '@ng-select/ng-select' ;
17
17
import { TranslateLoader , TranslateModule } from '@ngx-translate/core' ;
18
- import * as Sentry from '@sentry/angular-ivy ' ;
18
+ import * as Sentry from '@sentry/angular' ;
19
19
import {
20
20
APIInterceptor ,
21
21
AboutModule ,
@@ -82,137 +82,138 @@ if (environment.SENTRY_DSN) {
82
82
83
83
@NgModule ( {
84
84
declarations : [ AppComponent ] ,
85
- bootstrap : [ AppComponent ] ,
86
- exports : [ ] ,
85
+ bootstrap : [ AppComponent ] ,
86
+ exports : [ ] ,
87
87
imports : [
88
88
NbLayoutModule ,
89
- AuthModule ,
90
- NbDialogModule . forRoot ( ) ,
91
- NbToastrModule . forRoot ( ) ,
92
- NbCardModule ,
93
- NbButtonModule ,
94
- BrowserModule ,
95
- BrowserAnimationsModule ,
96
- AppRoutingModule ,
97
- NbThemeModule ,
98
- NgxDesktopThemeModule ,
99
- NgxLoginModule ,
100
- SetupModule ,
101
- TimeTrackerModule ,
102
- ScreenCaptureModule ,
103
- SettingsModule ,
104
- UpdaterModule ,
105
- ImageViewerModule ,
106
- NgSelectModule ,
107
- SplashScreenModule ,
108
- ServerDownModule ,
109
- AlwaysOnModule ,
110
- TranslateModule . forRoot ( {
111
- extend : true ,
112
- loader : {
113
- provide : TranslateLoader ,
114
- useFactory : HttpLoaderFactory ,
115
- deps : [ HttpClient ]
116
- }
117
- } ) ,
118
- LanguageModule . forRoot ( ) ,
119
- NbDatepickerModule . forRoot ( ) ,
120
- AboutModule ,
121
- ActivityWatchModule ,
122
- RecapModule ,
123
- TaskTableModule ] , providers : [
124
- AppService ,
125
- NbDialogService ,
126
- AuthGuard ,
127
- NoAuthGuard ,
128
- AppModuleGuard ,
129
- AuthStrategy ,
130
- AuthService ,
131
- ServerConnectionService ,
132
- ElectronService ,
133
- LoggerService ,
134
- Store ,
135
- {
136
- provide : HTTP_INTERCEPTORS ,
137
- useClass : TokenInterceptor ,
138
- multi : true
139
- } ,
140
- {
141
- provide : HTTP_INTERCEPTORS ,
142
- useClass : TenantInterceptor ,
143
- multi : true
144
- } ,
145
- {
146
- provide : HTTP_INTERCEPTORS ,
147
- useClass : ActivityWatchInterceptor ,
148
- multi : true
149
- } ,
150
- {
151
- provide : HTTP_INTERCEPTORS ,
152
- useClass : OrganizationInterceptor ,
153
- multi : true
154
- } ,
155
- {
156
- provide : HTTP_INTERCEPTORS ,
157
- useClass : APIInterceptor ,
158
- multi : true
159
- } ,
160
- {
161
- provide : HTTP_INTERCEPTORS ,
162
- useClass : LanguageInterceptor ,
163
- multi : true
164
- } ,
165
- {
166
- provide : HTTP_INTERCEPTORS ,
167
- useClass : TimeoutInterceptor ,
168
- multi : true
169
- } ,
170
- {
171
- provide : HTTP_INTERCEPTORS ,
172
- useClass : UnauthorizedInterceptor ,
173
- multi : true
174
- } ,
175
- {
176
- provide : HTTP_INTERCEPTORS ,
177
- useClass : ServerErrorInterceptor ,
178
- multi : true
179
- } ,
180
- {
181
- provide : ErrorHandler ,
182
- useClass : ErrorHandlerService
183
- } ,
184
- provideAppInitializer ( ( ) => {
185
- const initializerFn = ( serverConnectionFactory ) (
186
- inject ( ServerConnectionService ) ,
187
- inject ( Store ) ,
188
- inject ( Router ) ,
189
- inject ( Injector )
190
- ) ;
191
- return initializerFn ( ) ;
89
+ AuthModule ,
90
+ NbDialogModule . forRoot ( ) ,
91
+ NbToastrModule . forRoot ( ) ,
92
+ NbCardModule ,
93
+ NbButtonModule ,
94
+ BrowserModule ,
95
+ BrowserAnimationsModule ,
96
+ AppRoutingModule ,
97
+ NbThemeModule ,
98
+ NgxDesktopThemeModule ,
99
+ NgxLoginModule ,
100
+ SetupModule ,
101
+ TimeTrackerModule ,
102
+ ScreenCaptureModule ,
103
+ SettingsModule ,
104
+ UpdaterModule ,
105
+ ImageViewerModule ,
106
+ NgSelectModule ,
107
+ SplashScreenModule ,
108
+ ServerDownModule ,
109
+ AlwaysOnModule ,
110
+ TranslateModule . forRoot ( {
111
+ extend : true ,
112
+ loader : {
113
+ provide : TranslateLoader ,
114
+ useFactory : HttpLoaderFactory ,
115
+ deps : [ HttpClient ]
116
+ }
192
117
} ) ,
193
- {
194
- provide : ErrorHandler ,
195
- useValue : Sentry . createErrorHandler ( {
196
- showDialog : true
197
- } )
198
- } ,
199
- {
200
- provide : Sentry . TraceService ,
201
- deps : [ Router ]
202
- } ,
203
- provideAppInitializer ( ( ) => {
204
- const initializerFn = ( ( trace : Sentry . TraceService ) => ( ) => { } ) ( inject ( Sentry . TraceService ) ) ;
205
- return initializerFn ( ) ;
206
- } ) ,
207
- { provide : DEFAULT_TIMEOUT , useValue : 80000 } ,
208
- {
209
- provide : GAUZY_ENV ,
210
- useValue : {
211
- ...gauzyEnvironment ,
212
- ...environment
213
- }
214
- } ,
215
- provideHttpClient ( withInterceptorsFromDi ( ) )
216
- ]
118
+ LanguageModule . forRoot ( ) ,
119
+ NbDatepickerModule . forRoot ( ) ,
120
+ AboutModule ,
121
+ ActivityWatchModule ,
122
+ RecapModule ,
123
+ TaskTableModule ] , providers : [
124
+ AppService ,
125
+ NbDialogService ,
126
+ AuthGuard ,
127
+ NoAuthGuard ,
128
+ AppModuleGuard ,
129
+ AuthStrategy ,
130
+ AuthService ,
131
+ ServerConnectionService ,
132
+ ElectronService ,
133
+ LoggerService ,
134
+ Store ,
135
+ {
136
+ provide : HTTP_INTERCEPTORS ,
137
+ useClass : TokenInterceptor ,
138
+ multi : true
139
+ } ,
140
+ {
141
+ provide : HTTP_INTERCEPTORS ,
142
+ useClass : TenantInterceptor ,
143
+ multi : true
144
+ } ,
145
+ {
146
+ provide : HTTP_INTERCEPTORS ,
147
+ useClass : ActivityWatchInterceptor ,
148
+ multi : true
149
+ } ,
150
+ {
151
+ provide : HTTP_INTERCEPTORS ,
152
+ useClass : OrganizationInterceptor ,
153
+ multi : true
154
+ } ,
155
+ {
156
+ provide : HTTP_INTERCEPTORS ,
157
+ useClass : APIInterceptor ,
158
+ multi : true
159
+ } ,
160
+ {
161
+ provide : HTTP_INTERCEPTORS ,
162
+ useClass : LanguageInterceptor ,
163
+ multi : true
164
+ } ,
165
+ {
166
+ provide : HTTP_INTERCEPTORS ,
167
+ useClass : TimeoutInterceptor ,
168
+ multi : true
169
+ } ,
170
+ {
171
+ provide : HTTP_INTERCEPTORS ,
172
+ useClass : UnauthorizedInterceptor ,
173
+ multi : true
174
+ } ,
175
+ {
176
+ provide : HTTP_INTERCEPTORS ,
177
+ useClass : ServerErrorInterceptor ,
178
+ multi : true
179
+ } ,
180
+ {
181
+ provide : ErrorHandler ,
182
+ useClass : ErrorHandlerService
183
+ } ,
184
+ provideAppInitializer ( ( ) => {
185
+ const initializerFn = ( serverConnectionFactory ) (
186
+ inject ( ServerConnectionService ) ,
187
+ inject ( Store ) ,
188
+ inject ( Router ) ,
189
+ inject ( Injector )
190
+ ) ;
191
+ return initializerFn ( ) ;
192
+ } ) ,
193
+ {
194
+ provide : ErrorHandler ,
195
+ useValue : Sentry . createErrorHandler ( {
196
+ showDialog : true
197
+ } )
198
+ } ,
199
+ {
200
+ provide : Sentry . TraceService ,
201
+ deps : [ Router ]
202
+ } ,
203
+ provideAppInitializer ( ( ) => {
204
+ const initializerFn = ( ( trace : Sentry . TraceService ) => ( ) => { } ) ( inject ( Sentry . TraceService ) ) ;
205
+ return initializerFn ( ) ;
206
+ } ) ,
207
+ { provide : DEFAULT_TIMEOUT , useValue : 80000 } ,
208
+ {
209
+ provide : GAUZY_ENV ,
210
+ useValue : {
211
+ ...gauzyEnvironment ,
212
+ ...environment
213
+ }
214
+ } ,
215
+ provideHttpClient ( withInterceptorsFromDi ( ) )
216
+ ]
217
217
} )
218
- export class AppModule { }
218
+ export class AppModule { }
219
+
0 commit comments