mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* port 040 config, WIP * update fixtures * use taiga modal for backups too * fix: update Taiga UI and refactor everything to work * chore: package-lock * fix interfaces and mocks for interfaces * better mocks * function to transform old spec to new * delete unused fns * delete unused FE config utils * fix exports from sdk * reorganize exports * functions to translate config * rename unionSelectKey and unionValueKey * Adding in the transformation of the getConfig to the new types. * chore: add Taiga UI to preloader --------- Co-authored-by: waterplea <alexander@inkin.ru> Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: J H <dragondef@gmail.com>
60 lines
1.8 KiB
TypeScript
60 lines
1.8 KiB
TypeScript
import { NgModule } from '@angular/core'
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
|
|
import { RouteReuseStrategy } from '@angular/router'
|
|
import { HttpClientModule } from '@angular/common/http'
|
|
import { TuiAlertModule, TuiRootModule } from '@taiga-ui/core'
|
|
import { ApiService } from './services/api/api.service'
|
|
import { MockApiService } from './services/api/mock-api.service'
|
|
import { LiveApiService } from './services/api/live-api.service'
|
|
import {
|
|
IonicModule,
|
|
IonicRouteStrategy,
|
|
iosTransitionAnimation,
|
|
} from '@ionic/angular'
|
|
import { AppComponent } from './app.component'
|
|
import { AppRoutingModule } from './app-routing.module'
|
|
import { SuccessPageModule } from './pages/success/success.module'
|
|
import { HomePageModule } from './pages/home/home.module'
|
|
import { LoadingPageModule } from './pages/loading/loading.module'
|
|
import { RecoverPageModule } from './pages/recover/recover.module'
|
|
import { TransferPageModule } from './pages/transfer/transfer.module'
|
|
import { RELATIVE_URL, WorkspaceConfig } from '@start9labs/shared'
|
|
|
|
const {
|
|
useMocks,
|
|
ui: { api },
|
|
} = require('../../../../config.json') as WorkspaceConfig
|
|
|
|
@NgModule({
|
|
declarations: [AppComponent],
|
|
imports: [
|
|
BrowserAnimationsModule,
|
|
IonicModule.forRoot({
|
|
mode: 'md',
|
|
navAnimation: iosTransitionAnimation,
|
|
}),
|
|
AppRoutingModule,
|
|
HttpClientModule,
|
|
SuccessPageModule,
|
|
HomePageModule,
|
|
LoadingPageModule,
|
|
RecoverPageModule,
|
|
TransferPageModule,
|
|
TuiRootModule,
|
|
TuiAlertModule,
|
|
],
|
|
providers: [
|
|
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
|
|
{
|
|
provide: ApiService,
|
|
useClass: useMocks ? MockApiService : LiveApiService,
|
|
},
|
|
{
|
|
provide: RELATIVE_URL,
|
|
useValue: `/${api.url}/${api.version}`,
|
|
},
|
|
],
|
|
bootstrap: [AppComponent],
|
|
})
|
|
export class AppModule {}
|