Skip to content

Commit 2bfb378

Browse files
committed
🔥 chore: Update Naming
1 parent c32594b commit 2bfb378

File tree

54 files changed

+158
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+158
-161
lines changed

src/SwashbucklerDiary.Maui/Platforms/Android/MainActivity.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ public class MainActivity : MauiAppCompatActivity
3131
{
3232
private SoftKeyboardAdjustResize softKeyboardAdjustResize;
3333

34-
//public override bool DispatchKeyEvent(KeyEvent e)
35-
// => NavigationButtonHandler.OnBackButtonPressed(e);
36-
3734
protected override void OnCreate(Bundle savedInstanceState)
3835
{
3936
EdgeToEdge.Enable(this);
@@ -53,7 +50,7 @@ protected override void OnCreate(Bundle savedInstanceState)
5350
SoftKeyboardAdjustResizeHelper.InitBackgroundColor(this);
5451
Platform.OnNewIntent(this.Intent);
5552

56-
OnBackPressedDispatcher.AddCallback(new MyOnBackPressedCallback(true));
53+
OnBackPressedDispatcher.AddCallback(new OnBackPressedCallback(true));
5754
}
5855

5956
protected override void OnNewIntent(Intent intent)
@@ -71,7 +68,7 @@ protected override void OnStop()
7168
softKeyboardAdjustResize.OnStop();
7269
}
7370

74-
class MyOnBackPressedCallback(bool enabled) : OnBackPressedCallback(enabled)
71+
class OnBackPressedCallback(bool enabled) : AndroidX.Activity.OnBackPressedCallback(enabled)
7572
{
7673
public override void HandleOnBackPressed()
7774
{

src/SwashbucklerDiary.Rcl.Client/Pages/Backups/WebDAVBackups/WebDAVBackupsPage.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
OnOK="SaveWebDavConfig">
9898
</WebDavConfigDialog>
9999

100-
<MDialogExtension @bind-MyValue="showUpload"
100+
<CustomMDialog @bind-MyValue="showUpload"
101101
ContentClass="rounded-lg"
102102
MaxWidth="420">
103103
<MCard>
@@ -125,9 +125,9 @@
125125
</MButton>
126126
</MCardActions>
127127
</MCard>
128-
</MDialogExtension>
128+
</CustomMDialog>
129129

130-
<MDialogExtension @bind-MyValue="showDownload"
130+
<CustomMDialog @bind-MyValue="showDownload"
131131
ContentClass="rounded-lg"
132132
MaxWidth="420"
133133
Scrollable="true">
@@ -157,5 +157,5 @@
157157
</Virtualize>
158158
</MCardText>
159159
</MCard>
160-
</MDialogExtension>
160+
</CustomMDialog>
161161

src/SwashbucklerDiary.Rcl.Client/Pages/Backups/WebDAVBackups/WebDavConfigDialog.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@namespace SwashbucklerDiary.Rcl.Pages
22
@inherits FocusDialogComponentBase
33

4-
<MDialogExtension MyValue="Visible"
4+
<CustomMDialog MyValue="Visible"
55
MyValueChanged="InternalVisibleChanged"
66
ContentClass="rounded-lg"
77
MaxWidth="480"
@@ -63,4 +63,4 @@
6363
</MCardActions>
6464
</MCard>
6565
</MForm>
66-
</MDialogExtension>
66+
</CustomMDialog>

src/SwashbucklerDiary.Rcl.Client/Pages/Export/LANTransfer/LANConfigDialog.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@namespace SwashbucklerDiary.Rcl.Pages
22
@inherits FocusDialogComponentBase
33

4-
<MDialogExtension MyValue="Visible"
4+
<CustomMDialog MyValue="Visible"
55
MyValueChanged="VisibleChanged"
66
ContentClass="rounded-lg"
77
MaxWidth="480"
@@ -69,4 +69,4 @@
6969
</MCardActions>
7070
</MCard>
7171
</MForm>
72-
</MDialogExtension>
72+
</CustomMDialog>

src/SwashbucklerDiary.Rcl/Components/DialogComponents/DateFilterDialog/DateFilterDialog.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
@namespace SwashbucklerDiary.Rcl.Components
1+
@namespace SwashbucklerDiary.Rcl.Components
22
@inherits DialogComponentBase
33

44
<MultiDisplay>
55
<MobileContent>
6-
<MBottomSheetExtension MyValue="Visible"
6+
<CustomMBottomSheet MyValue="Visible"
77
MyValueChanged="InternalVisibleChanged"
88
ContentClass="rounded-t-lg">
99
@GenCard(GenMobileCardActionsContent())
10-
</MBottomSheetExtension>
10+
</CustomMBottomSheet>
1111
</MobileContent>
1212
<DesktopContent>
13-
<MDialogExtension MyValue="Visible"
13+
<CustomMDialog MyValue="Visible"
1414
MyValueChanged="InternalVisibleChanged"
1515
ContentClass="rounded-lg"
1616
MaxWidth="420">
1717
@GenCard(GenDesktopCardActionsContent())
18-
</MDialogExtension>
18+
</CustomMDialog>
1919
</DesktopContent>
2020
</MultiDisplay>
2121

src/SwashbucklerDiary.Rcl/Components/DialogComponents/DatePickerDialog.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@namespace SwashbucklerDiary.Rcl.Components
22
@inherits DialogComponentBase
33

4-
<MDialogExtension MyValue="Visible"
4+
<CustomMDialog MyValue="Visible"
55
MyValueChanged="InternalVisibleChanged"
66
ContentClass="rounded-lg"
77
MaxWidth="420"
@@ -27,4 +27,4 @@
2727
@(I18n.T("Share.OK"))
2828
</MButton>
2929
</MDatePicker>
30-
</MDialogExtension>
30+
</CustomMDialog>

src/SwashbucklerDiary.Rcl/Components/DialogComponents/DeleteDialog.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@namespace SwashbucklerDiary.Rcl.Components
1+
@namespace SwashbucklerDiary.Rcl.Components
22
@inherits DialogComponentBase
33

4-
<MDialogExtension MyValue="Visible"
4+
<CustomMDialog MyValue="Visible"
55
MyValueChanged="InternalVisibleChanged"
66
ContentClass="rounded-lg"
77
MaxWidth="420">
@@ -25,4 +25,4 @@
2525
</MButton>
2626
</MCardActions>
2727
</MCard>
28-
</MDialogExtension>
28+
</CustomMDialog>

src/SwashbucklerDiary.Rcl/Components/DialogComponents/InputDialog.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@namespace SwashbucklerDiary.Rcl.Components
1+
@namespace SwashbucklerDiary.Rcl.Components
22
@inherits FocusDialogComponentBase
33

4-
<MDialogExtension MyValue="Visible"
4+
<CustomMDialog MyValue="Visible"
55
MyValueChanged="InternalVisibleChanged"
66
ContentClass="rounded-lg"
77
MaxWidth="420"
@@ -67,4 +67,4 @@
6767
</MButton>
6868
</MCardActions>
6969
</MCard>
70-
</MDialogExtension>
70+
</CustomMDialog>

src/SwashbucklerDiary.Rcl/Components/DialogComponents/PasswordDialog.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@namespace SwashbucklerDiary.Rcl.Components
1+
@namespace SwashbucklerDiary.Rcl.Components
22
@inherits FocusDialogComponentBase
33

4-
<MDialogExtension MyValue="Visible"
4+
<CustomMDialog MyValue="Visible"
55
MyValueChanged="InternalVisibleChanged"
66
ContentClass="rounded-lg"
77
MaxWidth="480"
@@ -63,4 +63,4 @@
6363
</MCardActions>
6464
</MCard>
6565
</MForm>
66-
</MDialogExtension>
66+
</CustomMDialog>

src/SwashbucklerDiary.Rcl/Components/DialogComponents/PreviewImageDialog/PreviewImageDialog.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@namespace SwashbucklerDiary.Rcl.Components
1+
@namespace SwashbucklerDiary.Rcl.Components
22
@inherits DialogComponentBase
33

4-
<MDialogExtension MyValue="Visible"
4+
<CustomMDialog MyValue="Visible"
55
MyValueChanged="InternalVisibleChanged"
66
Fullscreen="true"
77
Transition=""
@@ -40,4 +40,4 @@
4040
</div>
4141

4242
</MCard>
43-
</MDialogExtension>
43+
</CustomMDialog>

0 commit comments

Comments
 (0)