File tree Expand file tree Collapse file tree 12 files changed +27
-208
lines changed Expand file tree Collapse file tree 12 files changed +27
-208
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 17
17
18
18
<div class =" mat-layout-grid" >
19
19
<div class =" mat-layout-grid-inner" >
20
- <div class =" mat-layout-grid-cell" >
20
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2" ></div >
21
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-8" >
21
22
<MatButton Outlined =" true" Icon =" keyboard_arrow_left" Style =" margin-bottom: 1rem;" OnClick =' () => { NavigationManager.NavigateTo($"/entries/{ActiveEntry.Id}"); }' >Back</MatButton >
22
23
<MatCard >
23
24
<MatCardContent class =" demo-mat-card-content" >
24
25
<h2 >Edit a market order</h2 >
25
- <EntryForm Edit =" true" FormModel =" @InitialOrderModel" Currency =" @ActivePortfolio.Currency" Symbol =" @ActiveEntry.Symbol" OnSubmitEventHandler =" @OnCreateOrderFormSubmit" ></EntryForm >
26
+ <EntryForm Edit =" true" FormModel =" @InitialOrderModel" Currency =" @ActivePortfolio.Currency" Symbol =" @ActiveEntry.Symbol" OnSubmitEventHandler =" @OnCreateOrderFormSubmit" ></EntryForm >
26
27
</MatCardContent >
27
28
</MatCard >
28
29
</div >
30
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2" ></div >
29
31
</div >
30
32
</div >
31
33
34
36
{
35
37
[Parameter ]
36
38
public int OrderId { get ; set ; }
37
-
39
+
38
40
protected EntryForm .NewOrderModel InitialOrderModel ;
39
41
protected Portfolio ActivePortfolio ;
40
42
protected PortfolioEntry ActiveEntry ;
41
43
protected MarketOrder ActiveMarketOrder ;
42
44
43
45
protected override void OnInitialized ()
44
46
{
45
- ActiveMarketOrder = MarketOrderService .GetMarketOrder (OrderId );
47
+ ActiveMarketOrder = MarketOrderService .GetMarketOrder (OrderId );
46
48
ActiveEntry = PortfolioEntrySerivce .GetPortfolioEntry (ActiveMarketOrder .PortfolioEntryId );
47
49
ActivePortfolio = PortfolioService .GetPortfolio (ActiveEntry .PortfolioId );
48
50
InitialOrderModel = new ();
Original file line number Diff line number Diff line change 25
25
26
26
<div class =" mat-layout-grid" >
27
27
<div class =" mat-layout-grid-inner" >
28
- <div class =" mat-layout-grid-cell" >
28
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2" ></div >
29
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-8" >
29
30
<MatButton Outlined =" true" Icon =" keyboard_arrow_left" Style =" margin-bottom:1em; margin-right: 1rem;" OnClick =' () => { NavigationManager.NavigateTo($""); }' >Back</MatButton >
30
31
<MatCard >
31
32
<MatCardContent class =" demo-mat-card-content" >
40
41
</MatCardContent >
41
42
</MatCard >
42
43
</div >
44
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2" ></div >
43
45
</div >
44
46
</div >
45
47
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 39
39
<div class =" mat-layout-grid mat-layout-grid-align-center" >
40
40
<div class =" mat-layout-grid-inner center" >
41
41
42
- <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-3 " ></div >
43
- <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-6 " >
42
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2 " ></div >
43
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-8 " >
44
44
<MatH5 >Portfolios</MatH5 >
45
45
@if (PortfoliosWithEntries == null )
46
46
{
93
93
}
94
94
}
95
95
</div >
96
- <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-3 " ></div >
96
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2 " ></div >
97
97
</div >
98
98
</div >
99
99
<MatFAB Class =" app-fab--absolute" Icon =" @MatIconNames.Add" Label =" Add a new portfolio" OnClick =' () => { NavigationManager.NavigateTo($"newportfolio");}' ></MatFAB >
Original file line number Diff line number Diff line change 17
17
18
18
<div class =" mat-layout-grid" >
19
19
<div class =" mat-layout-grid-inner" >
20
- <div class =" mat-layout-grid-cell" >
20
+ <div class =" mat-layout-grid-cell-span-2" ></div >
21
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-8" >
21
22
<MatButton Outlined =" true" Icon =" keyboard_arrow_left" Style =" margin-bottom: 1rem;" OnClick =' () => { NavigationManager.NavigateTo($"/entries/{ActiveEntry.Id}"); }' >Back</MatButton >
22
23
<MatCard >
23
24
<MatCardContent class =" demo-mat-card-content" >
24
25
<h2 >Create a new market order</h2 >
25
- <EntryForm Currency =" @ActivePortfolio.Currency" Symbol =" @ActiveEntry.Symbol" OnSubmitEventHandler =" @OnCreateOrderFormSubmit" ></EntryForm >
26
+ <EntryForm Currency =" @ActivePortfolio.Currency" Symbol =" @ActiveEntry.Symbol" OnSubmitEventHandler =" @OnCreateOrderFormSubmit" ></EntryForm >
26
27
</MatCardContent >
27
28
</MatCard >
28
29
</div >
30
+ <div class =" mat-layout-grid-cell-span-2" ></div >
29
31
</div >
30
32
</div >
31
33
34
36
{
35
37
[Parameter ]
36
38
public int EntryId { get ; set ; }
37
-
39
+
38
40
protected Portfolio ActivePortfolio = new (" " , " " , Currency .Usd );
39
41
protected PortfolioEntry ActiveEntry = new (" btc" , 1 );
40
42
Original file line number Diff line number Diff line change 16
16
17
17
<div class =" mat-layout-grid" >
18
18
<div class =" mat-layout-grid-inner" >
19
- <div class =" mat-layout-grid-cell" >
19
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2" ></div >
20
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-8" >
21
+
20
22
<MatButton Outlined =" true" Icon =" keyboard_arrow_left" Style =" margin-bottom:1em; margin-right: 1rem;" OnClick =' () => { NavigationManager.NavigateTo($""); }' >Back</MatButton >
21
23
<MatCard >
22
24
<MatCardContent class =" demo-mat-card-content" >
29
31
</MatCardContent >
30
32
</MatCard >
31
33
</div >
34
+ <div class =" mat-layout-grid-cell mat-layout-grid-cell-span-2" ></div >
32
35
</div >
33
36
</div >
34
37
Original file line number Diff line number Diff line change 30
30
31
31
<div class =" mat-layout-grid" >
32
32
<div class =" mat-layout-grid-inner" >
33
- <div class =" mat-layout-grid-cell-span-6" >
33
+ <div class =" mat-layout-grid-cell-span-2" ></div >
34
+ <div class =" mat-layout-grid-cell-span-8" >
34
35
<MatH5 ><MatButton Outlined =" true" Icon =" keyboard_arrow_left" Style =" margin-right: 1rem;" OnClick =' () => { NavigationManager.NavigateTo($"/portfolios/{Portfolio.Id}"); }' >Back to portfolio</MatButton >Manage entries of <b >@Portfolio.Name </b ></MatH5 >
35
36
<MatTextField Label =" Filter by symbol" Style =" margin-bottom: 2rem;" Icon =" filter_list" FullWidth =" true" @bind-Value =" @CryptocurrencyFilter" ></MatTextField >
36
37
@if (AvailableCryptocurrenciesWithUsage == null )
75
76
}
76
77
}
77
78
</div >
79
+ <div class =" mat-layout-grid-cell-span-2" ></div >
78
80
</div >
79
81
</div >
80
82
Original file line number Diff line number Diff line change 10
10
<head >
11
11
<meta charset =" utf-8" />
12
12
<meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
13
- <title >WebFrontend </title >
13
+ <title >Crypto portfolio tracker </title >
14
14
<base href =" ~/" />
15
15
<link href =" ServerSideBlazor.styles.css" rel =" stylesheet" />
16
16
<link href =" _content/MatBlazor/dist/matBlazor.css" rel =" stylesheet" />
Original file line number Diff line number Diff line change 2
2
3
3
<MatAppBar Style =" z-index: 100;" Class =" mat" >
4
4
<MatAppBarRow >
5
- <MatAppBarSection >
6
- <MatIconButton Icon =" menu" OnClick =" @((e) => ButtonClicked())" ></MatIconButton >
7
- <MatAppBarTitle >Material Design Blazor Template (Server-side)</MatAppBarTitle >
8
- </MatAppBarSection >
9
- <MatAppBarSection Align =" @MatAppBarSectionAlign.End" >
10
- <MatIconButton Icon =" favorite" ></MatIconButton >
5
+ <MatAppBarSection style =" justify-content : center " >
6
+ <MatAppBarTitle style =" font-size : 1.6em ; letter-spacing : 0.06rem ;" >Crypto Portfolio Tracker</MatAppBarTitle >
11
7
</MatAppBarSection >
12
8
</MatAppBarRow >
13
9
</MatAppBar >
14
10
15
11
<MatDrawerContainer >
16
- <MatHidden Breakpoint =" @MatBreakpoint.SM" Direction =" @MatHiddenDirection.Up" HiddenChanged =" @ModelDrawerHiddenChanged" >
17
- <ChildContent >
18
- <MatDrawer @bind-Opened =" @_navMenuOpened" Mode =" @MatDrawerMode.Modal" >
19
- <MatAppBarAdjust ></MatAppBarAdjust >
20
- <NavMenu />
21
- </MatDrawer >
22
- </ChildContent >
23
- <ElseContent >
24
- <MatDrawer @bind-Opened =" @_navMenuOpened" Mode =" @MatDrawerMode.Dismissible" >
25
- <MatAppBarAdjust ></MatAppBarAdjust >
26
- <NavMenu />
27
- </MatDrawer >
28
- </ElseContent >
29
- </MatHidden >
30
-
31
12
32
13
<MatDrawerContent >
33
14
<MatAppBarAdjust ></MatAppBarAdjust >
37
18
</MatDrawerContent >
38
19
39
20
</MatDrawerContainer >
40
-
41
- @code
42
- {
43
- bool _navMenuOpened = true ;
44
-
45
- void ButtonClicked ()
46
- {
47
- _navMenuOpened = ! _navMenuOpened ;
48
- }
49
-
50
- protected void ModelDrawerHiddenChanged (bool hidden )
51
- {
52
- if (! hidden )
53
- {
54
- _navMenuOpened = false ;
55
- }
56
- }
57
- }
You can’t perform that action at this time.
0 commit comments