Skip to content

Commit 8480e69

Browse files
committed
feat: standalone
1 parent e03e0fa commit 8480e69

File tree

15 files changed

+119
-123
lines changed

15 files changed

+119
-123
lines changed

frontend/src/angular/src/app/app-routing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const routes: Routes = [
2525
{
2626
path: "details",
2727
loadChildren: () =>
28-
import("./details/details.module").then((m) => m.DetailsModule),
28+
import("./details/details.routes").then((m) => m.routes),
2929
},
3030
{
3131
path: "orderbooks",
@@ -36,7 +36,7 @@ export const routes: Routes = [
3636
{
3737
path: "statistics",
3838
loadChildren: () =>
39-
import("./statistics/statistics.module").then((m) => m.StatisticsModule),
39+
import("./statistics/statistics.routes").then((m) => m.routes),
4040
},
4141
{ path: "**", component: SplashComponent },
4242
];

frontend/src/angular/src/app/details/bfdetail/bfdetail.component.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,25 @@ import { QuoteBf } from "../../common/quote-bf";
3434
import { BehaviorSubject, Observable, repeat } from "rxjs";
3535
import { DetailBase, Tuple } from "../../common/detail-base";
3636
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
37+
import { NgxLineChartsModule } from "ngx-simple-charts/line";
38+
import { CommonModule } from "@angular/common";
39+
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
40+
import { MatButtonModule } from "@angular/material/button";
41+
import { MatCheckboxModule } from "@angular/material/checkbox";
42+
import { MatRadioModule } from "@angular/material/radio";
43+
import { MatToolbarModule } from "@angular/material/toolbar";
3744

3845
@Component({
3946
selector: "app-bfdetail",
47+
imports: [
48+
CommonModule,
49+
FormsModule,
50+
ReactiveFormsModule,
51+
MatToolbarModule,
52+
MatCheckboxModule,
53+
MatRadioModule,
54+
MatButtonModule,
55+
NgxLineChartsModule],
4056
templateUrl: "./bfdetail.component.html",
4157
styleUrls: ["./bfdetail.component.scss"],
4258
animations: [
@@ -47,7 +63,6 @@ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
4763
]),
4864
]),
4965
],
50-
standalone: false
5166
})
5267
export class BfdetailComponent extends DetailBase implements OnInit {
5368
public currQuote: QuoteBf;

frontend/src/angular/src/app/details/bsdetail/bsdetail.component.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,25 @@ import { BitstampService } from "../../services/bitstamp.service";
3434
import { QuoteBs } from "../../common/quote-bs";
3535
import { DetailBase, Tuple } from "src/app/common/detail-base";
3636
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
37+
import { CommonModule } from "@angular/common";
38+
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
39+
import { MatButtonModule } from "@angular/material/button";
40+
import { MatCheckboxModule } from "@angular/material/checkbox";
41+
import { MatRadioModule } from "@angular/material/radio";
42+
import { MatToolbarModule } from "@angular/material/toolbar";
43+
import { NgxLineChartsModule } from "ngx-simple-charts/line";
3744

3845
@Component({
3946
selector: "app-bsdetail",
47+
imports: [
48+
CommonModule,
49+
FormsModule,
50+
ReactiveFormsModule,
51+
MatToolbarModule,
52+
MatCheckboxModule,
53+
MatRadioModule,
54+
MatButtonModule,
55+
NgxLineChartsModule],
4056
templateUrl: "./bsdetail.component.html",
4157
styleUrls: ["./bsdetail.component.scss"],
4258
animations: [
@@ -47,7 +63,6 @@ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
4763
]),
4864
]),
4965
],
50-
standalone: false
5166
})
5267
export class BsdetailComponent extends DetailBase implements OnInit {
5368
public currQuote: QuoteBs;

frontend/src/angular/src/app/details/cbdetail/cbdetail.component.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,25 @@ import { QuoteCb, QuoteCbSmall } from "../../common/quote-cb";
3434
import { CoinbaseService } from "../../services/coinbase.service";
3535
import { DetailBase, Tuple } from "src/app/common/detail-base";
3636
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
37+
import { MatButtonModule } from "@angular/material/button";
38+
import { CommonModule } from "@angular/common";
39+
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
40+
import { MatCheckboxModule } from "@angular/material/checkbox";
41+
import { MatRadioModule } from "@angular/material/radio";
42+
import { MatToolbarModule } from "@angular/material/toolbar";
43+
import { NgxLineChartsModule } from "ngx-simple-charts/line";
3744

3845
@Component({
3946
selector: "app-cbdetail",
47+
imports: [
48+
CommonModule,
49+
FormsModule,
50+
ReactiveFormsModule,
51+
MatToolbarModule,
52+
MatCheckboxModule,
53+
MatRadioModule,
54+
MatButtonModule,
55+
NgxLineChartsModule],
4056
templateUrl: "./cbdetail.component.html",
4157
styleUrls: ["./cbdetail.component.scss"],
4258
animations: [
@@ -47,7 +63,6 @@ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
4763
]),
4864
]),
4965
],
50-
standalone: false
5166
})
5267
export class CbdetailComponent extends DetailBase implements OnInit {
5368
public currpair: string;

frontend/src/angular/src/app/details/details.module.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

frontend/src/angular/src/app/details/details-routing.module.ts renamed to frontend/src/angular/src/app/details/details.routes.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,15 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
16-
17-
import { NgModule } from "@angular/core";
1816
import { Routes, RouterModule } from "@angular/router";
1917
import { BsdetailComponent } from "./bsdetail/bsdetail.component";
2018
import { IbdetailComponent } from "./ibdetail/ibdetail.component";
2119
import { CbdetailComponent } from "./cbdetail/cbdetail.component";
2220
import { BfdetailComponent } from "./bfdetail/bfdetail.component";
2321

24-
const routes: Routes = [
22+
export const routes: Routes = [
2523
{ path: "bsdetail/:currpair", component: BsdetailComponent },
2624
{ path: "ibdetail/:currpair", component: IbdetailComponent },
2725
{ path: "cbdetail/:currpair", component: CbdetailComponent },
2826
{ path: "bfdetail/:currpair", component: BfdetailComponent },
2927
];
30-
31-
@NgModule({
32-
imports: [RouterModule.forChild(routes)],
33-
exports: [RouterModule],
34-
})
35-
export class DetailsRoutingModule {}

frontend/src/angular/src/app/details/ibdetail/ibdetail.component.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,25 @@ import { QuoteIb } from "../../common/quote-ib";
3434
import { ItbitService } from "../../services/itbit.service";
3535
import { DetailBase, Tuple } from "src/app/common/detail-base";
3636
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
37+
import { MatButtonModule } from "@angular/material/button";
38+
import { CommonModule } from "@angular/common";
39+
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
40+
import { MatCheckboxModule } from "@angular/material/checkbox";
41+
import { MatRadioModule } from "@angular/material/radio";
42+
import { MatToolbarModule } from "@angular/material/toolbar";
43+
import { NgxLineChartsModule } from "ngx-simple-charts/line";
3744

3845
@Component({
3946
selector: "app-ibdetail",
47+
imports: [
48+
CommonModule,
49+
FormsModule,
50+
ReactiveFormsModule,
51+
MatToolbarModule,
52+
MatCheckboxModule,
53+
MatRadioModule,
54+
MatButtonModule,
55+
NgxLineChartsModule,],
4056
templateUrl: "./ibdetail.component.html",
4157
styleUrls: ["./ibdetail.component.scss"],
4258
animations: [
@@ -47,7 +63,6 @@ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
4763
]),
4864
]),
4965
],
50-
standalone: false
5166
})
5267
export class IbdetailComponent extends DetailBase implements OnInit {
5368
public currQuote: QuoteIb;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Copyright 2018 Sven Loesekann
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
13+
export * from './details.routes';

frontend/src/angular/src/app/splash/splash.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@
1414
limitations under the License.
1515
*/
1616
import { Component, OnInit, AfterViewInit } from "@angular/core";
17-
import { Router } from "@angular/router";
17+
import { Router, RouterModule } from "@angular/router";
1818
import {
1919
trigger,
2020
state,
2121
animate,
2222
transition,
2323
style,
2424
} from "@angular/animations";
25+
import { MatProgressSpinner } from "@angular/material/progress-spinner";
2526

2627
@Component({
2728
selector: "app-splash",
29+
imports: [MatProgressSpinner, RouterModule],
2830
templateUrl: "./splash.component.html",
2931
styleUrls: ["./splash.component.scss"],
3032
animations: [
@@ -35,7 +37,6 @@ import {
3537
transition("0 => 1", animate("750ms")),
3638
]),
3739
],
38-
standalone: false
3940
})
4041
export class SplashComponent implements OnInit, AfterViewInit {
4142
protected myState = false;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Copyright 2018 Sven Loesekann
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
13+
export * from './statistics.routes';

0 commit comments

Comments
 (0)