|
6 | 6 | @using BlazorAdmin.Servers.Core.Data.Entities.Notification |
7 | 7 | @using BlazorAdmin.Servers.Core.Data |
8 | 8 | @using Microsoft.EntityFrameworkCore |
| 9 | +@using BlazorAdmin.Servers.Core.Resources |
9 | 10 | @inject BlazorAdminDbContext DbContext |
10 | 11 |
|
11 | 12 | <MudContainer MaxWidth="MaxWidth.Large" Class="mt-4"> |
12 | 13 | <MudGrid> |
13 | 14 | <MudItem xs="12"> |
14 | | - <MudText Typo="Typo.h4" Class="mb-4">系统概览</MudText> |
| 15 | + <MudText Typo="Typo.h4" Class="mb-4">@_commonLoc["HomePage_Title"]</MudText> |
15 | 16 | </MudItem> |
16 | 17 |
|
17 | 18 | <MudItem xs="12" sm="6" md="3"> |
18 | 19 | <MudPaper Elevation="2" Class="pa-4" Style="height: 150px;"> |
19 | 20 | <MudStack> |
20 | 21 | <MudIcon Icon="@Icons.Material.Filled.People" Color="Color.Primary" Size="Size.Large" /> |
21 | 22 | <MudText Typo="Typo.h5">@_userCount</MudText> |
22 | | - <MudText>用户总数</MudText> |
| 23 | + <MudText>@_commonLoc["HomePage_Title"]</MudText> |
23 | 24 | </MudStack> |
24 | 25 | </MudPaper> |
25 | 26 | </MudItem> |
|
29 | 30 | <MudStack> |
30 | 31 | <MudIcon Icon="@Icons.Material.Filled.AccountTree" Color="Color.Secondary" Size="Size.Large" /> |
31 | 32 | <MudText Typo="Typo.h5">@_orgCount</MudText> |
32 | | - <MudText>组织数量</MudText> |
| 33 | + <MudText>@_commonLoc["HomePage_OrgCount"]</MudText> |
33 | 34 | </MudStack> |
34 | 35 | </MudPaper> |
35 | 36 | </MudItem> |
|
39 | 40 | <MudStack> |
40 | 41 | <MudIcon Icon="@Icons.Material.Filled.Login" Color="Color.Success" Size="Size.Large" /> |
41 | 42 | <MudText Typo="Typo.h5">@_todayLoginCount</MudText> |
42 | | - <MudText>今日登录</MudText> |
| 43 | + <MudText>@_commonLoc["HomePage_TodayLogin"]</MudText> |
43 | 44 | </MudStack> |
44 | 45 | </MudPaper> |
45 | 46 | </MudItem> |
|
49 | 50 | <MudStack> |
50 | 51 | <MudIcon Icon="@Icons.Material.Filled.History" Color="Color.Warning" Size="Size.Large" /> |
51 | 52 | <MudText Typo="Typo.h5">@_todayAuditCount</MudText> |
52 | | - <MudText>今日操作</MudText> |
| 53 | + <MudText>@_commonLoc["HomePage_TodayOperation"]</MudText> |
53 | 54 | </MudStack> |
54 | 55 | </MudPaper> |
55 | 56 | </MudItem> |
|
58 | 59 | <MudGrid> |
59 | 60 | <MudItem xs="6"> |
60 | 61 | <MudPaper Elevation="2" Class="pa-4"> |
61 | | - <MudText Typo="Typo.h6" Class="mb-4">系统通知</MudText> |
| 62 | + <MudText Typo="Typo.h6" Class="mb-4">@_commonLoc["HomePage_SystemNotification"]</MudText> |
62 | 63 | <MudList Dense="true" T="string"> |
63 | 64 | @foreach (var notification in _notifications) |
64 | 65 | { |
|
73 | 74 |
|
74 | 75 | <MudItem xs="6"> |
75 | 76 | <MudPaper Elevation="2" Class="pa-4"> |
76 | | - <MudText Typo="Typo.h6" Class="mb-4">最近登录</MudText> |
| 77 | + <MudText Typo="Typo.h6" Class="mb-4">@_commonLoc["HomePage_RecentLogin"]</MudText> |
77 | 78 | <MudList Dense="true" T="string"> |
78 | 79 | @foreach (var log in _recentLogins) |
79 | 80 | { |
|
96 | 97 |
|
97 | 98 | <MudItem xs="12"> |
98 | 99 | <MudPaper Elevation="2" Class="pa-4"> |
99 | | - <MudText Typo="Typo.h6" Class="mb-4">最近操作审计</MudText> |
| 100 | + <MudText Typo="Typo.h6" Class="mb-4">@_commonLoc["HomePage_RecentAudit"]</MudText> |
100 | 101 | <MudTable Items="_recentAudits" Dense="true" Hover="true"> |
101 | 102 | <HeaderContent> |
102 | | - <MudTh>操作类型</MudTh> |
103 | | - <MudTh>实体</MudTh> |
104 | | - <MudTh>时间</MudTh> |
| 103 | + <MudTh>@_commonLoc["HomePage_OperationType"]</MudTh> |
| 104 | + <MudTh>@_commonLoc["HomePage_Entity"]</MudTh> |
| 105 | + <MudTh>@_commonLoc["HomePage_Time"]</MudTh> |
105 | 106 | </HeaderContent> |
106 | 107 | <RowTemplate> |
107 | 108 | <MudTd> |
108 | 109 | @switch (context.Operation) |
109 | 110 | { |
110 | 111 | case 2: |
111 | | - <MudChip Color="Color.Error" Size="Size.Small" T="string">删除</MudChip> |
| 112 | + <MudChip Color="Color.Error" Size="Size.Small" T="string">@_commonLoc["HomePage_Operation_Delete"]</MudChip> |
112 | 113 | break; |
113 | 114 | case 3: |
114 | | - <MudChip Color="Color.Warning" Size="Size.Small" T="string">修改</MudChip> |
| 115 | + <MudChip Color="Color.Warning" Size="Size.Small" T="string">@_commonLoc["HomePage_Operation_Modify"]</MudChip> |
115 | 116 | break; |
116 | 117 | case 4: |
117 | | - <MudChip Color="Color.Success" Size="Size.Small" T="string">添加</MudChip> |
| 118 | + <MudChip Color="Color.Success" Size="Size.Small" T="string">@_commonLoc["HomePage_Operation_Add"]</MudChip> |
118 | 119 | break; |
119 | 120 | } |
120 | 121 | </MudTd> |
|
0 commit comments