|
1 | | -import { NgModule } from '@angular/core'; |
2 | | -import { RouterModule, Routes } from '@angular/router'; |
3 | | -import {WelcomeComponent} from './welcome/welcome.component'; |
4 | | -import {ConfigureWalletComponent} from './components/configure-wallet/configure-wallet.component'; |
5 | | -import {AccountsComponent} from './components/accounts/accounts.component'; |
6 | | -import {SendComponent} from './components/send/send.component'; |
7 | | -import {AddressBookComponent} from './components/address-book/address-book.component'; |
8 | | -import {ReceiveComponent} from './components/receive/receive.component'; |
9 | | -import {ManageWalletComponent} from './components/manage-wallet/manage-wallet.component'; |
10 | | -import {ConfigureAppComponent} from './components/configure-app/configure-app.component'; |
11 | | -import {AccountDetailsComponent} from './components/account-details/account-details.component'; |
12 | | -import {TransactionDetailsComponent} from './components/transaction-details/transaction-details.component'; |
13 | | -import {ImportWalletComponent} from './components/import-wallet/import-wallet.component'; |
14 | | -import { ImportAddressBookComponent } from './components/import-address-book/import-address-book.component'; |
15 | | -import {RepresentativesComponent} from './components/representatives/representatives.component'; |
16 | | -import {SweeperComponent} from './components/sweeper/sweeper.component'; |
17 | | -import {QrScanComponent} from './components/qr-scan/qr-scan.component'; |
18 | | -import {SignComponent} from './components/sign/sign.component'; |
19 | | -import {RemoteSigningComponent} from './components/remote-signing/remote-signing.component'; |
20 | | -import {ConverterComponent} from './components/converter/converter.component'; |
21 | | -import {QrGeneratorComponent} from './components/qr-generator/qr-generator.component'; |
22 | | -import { environment } from '../environments/environment'; |
23 | | -import {ManageRepresentativesComponent} from './components/manage-representatives/manage-representatives.component'; |
24 | | -import { MultisigComponent } from './components/multisig/multisig.component'; |
25 | | -import { KeygeneratorComponent } from './components/keygenerator/keygenerator.component'; |
| 1 | +import { NgModule } from "@angular/core"; |
| 2 | +import { RouterModule, Routes } from "@angular/router"; |
| 3 | +import { WelcomeComponent } from "./welcome/welcome.component"; |
| 4 | +import { ConfigureWalletComponent } from "./components/configure-wallet/configure-wallet.component"; |
| 5 | +import { AccountsComponent } from "./components/accounts/accounts.component"; |
| 6 | +import { SendComponent } from "./components/send/send.component"; |
| 7 | +import { AddressBookComponent } from "./components/address-book/address-book.component"; |
| 8 | +import { ReceiveComponent } from "./components/receive/receive.component"; |
| 9 | +import { ManageWalletComponent } from "./components/manage-wallet/manage-wallet.component"; |
| 10 | +import { ConfigureAppComponent } from "./components/configure-app/configure-app.component"; |
| 11 | +import { AccountDetailsComponent } from "./components/account-details/account-details.component"; |
| 12 | +import { TransactionDetailsComponent } from "./components/transaction-details/transaction-details.component"; |
| 13 | +import { ImportWalletComponent } from "./components/import-wallet/import-wallet.component"; |
| 14 | +import { ImportAddressBookComponent } from "./components/import-address-book/import-address-book.component"; |
| 15 | +import { RepresentativesComponent } from "./components/representatives/representatives.component"; |
| 16 | +import { SweeperComponent } from "./components/sweeper/sweeper.component"; |
| 17 | +import { QrScanComponent } from "./components/qr-scan/qr-scan.component"; |
| 18 | +import { SignComponent } from "./components/sign/sign.component"; |
| 19 | +import { RemoteSigningComponent } from "./components/remote-signing/remote-signing.component"; |
| 20 | +import { ConverterComponent } from "./components/converter/converter.component"; |
| 21 | +import { QrGeneratorComponent } from "./components/qr-generator/qr-generator.component"; |
| 22 | +import { environment } from "../environments/environment"; |
| 23 | +import { ManageRepresentativesComponent } from "./components/manage-representatives/manage-representatives.component"; |
| 24 | +import { MultisigComponent } from "./components/multisig/multisig.component"; |
| 25 | +import { KeygeneratorComponent } from "./components/keygenerator/keygenerator.component"; |
26 | 26 |
|
27 | 27 | const routes: Routes = [ |
28 | | - { path: '', component: WelcomeComponent }, |
29 | | - { path: 'accounts', component: AccountsComponent }, |
30 | | - { path: 'account/:account', component: AccountDetailsComponent }, |
31 | | - { path: 'address-book', component: AddressBookComponent }, |
32 | | - { path: 'configure-wallet', component: ConfigureWalletComponent }, |
33 | | - { path: 'configure-app', component: ConfigureAppComponent }, |
34 | | - { path: 'import-address-book', component: ImportAddressBookComponent }, |
35 | | - { path: 'import-wallet', component: ImportWalletComponent }, |
36 | | - { path: 'manage-wallet', component: ManageWalletComponent }, |
37 | | - { path: 'qr-scan', component: QrScanComponent }, |
38 | | - { path: 'send', component: SendComponent }, |
39 | | - { path: 'receive', component: ReceiveComponent }, |
40 | | - { path: 'representatives', component: RepresentativesComponent }, |
41 | | - { path: 'manage-representatives', component: ManageRepresentativesComponent }, |
42 | | - { path: 'transaction/:transaction', component: TransactionDetailsComponent }, |
43 | | - { path: 'sweeper', component: SweeperComponent }, |
44 | | - { path: 'sign', component: SignComponent }, |
45 | | - { path: 'remote-signing', component: RemoteSigningComponent }, |
46 | | - { path: 'multisig', component: MultisigComponent }, |
47 | | - { path: 'keygenerator', component: KeygeneratorComponent }, |
48 | | - { path: 'converter', component: ConverterComponent }, |
49 | | - { path: 'qr-generator', component: QrGeneratorComponent }, |
| 28 | + { path: "", component: WelcomeComponent }, |
| 29 | + { path: "accounts", component: AccountsComponent }, |
| 30 | + { path: "account/:account", component: AccountDetailsComponent }, |
| 31 | + { path: "address-book", component: AddressBookComponent }, |
| 32 | + { path: "configure-wallet", component: ConfigureWalletComponent }, |
| 33 | + { path: "configure-app", component: ConfigureAppComponent }, |
| 34 | + { path: "import-address-book", component: ImportAddressBookComponent }, |
| 35 | + { path: "import-wallet", component: ImportWalletComponent }, |
| 36 | + { path: "manage-wallet", component: ManageWalletComponent }, |
| 37 | + { path: "qr-scan", component: QrScanComponent }, |
| 38 | + { path: "send", component: SendComponent }, |
| 39 | + { path: "receive", component: ReceiveComponent }, |
| 40 | + { path: "receive/nanonyms", component: ReceiveComponent }, |
| 41 | + { path: "representatives", component: RepresentativesComponent }, |
| 42 | + { path: "manage-representatives", component: ManageRepresentativesComponent }, |
| 43 | + { path: "transaction/:transaction", component: TransactionDetailsComponent }, |
| 44 | + { path: "sweeper", component: SweeperComponent }, |
| 45 | + { path: "sign", component: SignComponent }, |
| 46 | + { path: "remote-signing", component: RemoteSigningComponent }, |
| 47 | + { path: "multisig", component: MultisigComponent }, |
| 48 | + { path: "keygenerator", component: KeygeneratorComponent }, |
| 49 | + { path: "converter", component: ConverterComponent }, |
| 50 | + { path: "qr-generator", component: QrGeneratorComponent }, |
50 | 51 | ]; |
51 | 52 |
|
52 | 53 | @NgModule({ |
53 | 54 | imports: [ |
54 | 55 | // On the desktop apps, use hashes so it works properly using only index.html |
55 | | - RouterModule.forRoot(routes, { useHash: environment.desktop, relativeLinkResolution: 'legacy' }), |
| 56 | + RouterModule.forRoot(routes, { |
| 57 | + useHash: environment.desktop, |
| 58 | + relativeLinkResolution: "legacy", |
| 59 | + }), |
56 | 60 | ], |
57 | 61 | declarations: [], |
58 | | - exports: [RouterModule] |
| 62 | + exports: [RouterModule], |
59 | 63 | }) |
60 | | -export class AppRoutingModule { } |
61 | | - |
62 | | - |
| 64 | +export class AppRoutingModule {} |
0 commit comments