Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Oct 19, 2024
2 parents 8cd7f1c + 07ac9f9 commit dbd1314
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,28 @@
}
else if (ErrorContent is null)
{
<div class="main">
<div class="header">
<BitButton OnClick="Recover" IconName="@BitIconName.ChromeClose" Variant="BitVariant.Text" />
</div>
<div>
<img src="_content/Boilerplate.Client.Core/images/icons/error-triangle.svg" />
</div>
<h1 class="title">@localizer[nameof(AppStrings.SomethingWentWrong)]</h1>
@if (showException)
{
<div class="exception">@CurrentException?.ToString()</div>
}
<div class="buttons">
<BitButton OnClick="Refresh">@localizer[nameof(AppStrings.Refresh)]</BitButton>
<BitButton OnClick="GoHome" Variant="BitVariant.Outline">@localizer[nameof(AppStrings.Home)]</BitButton>
</div>
</div>
<main>
<BitStack Alignment="BitAlignment.Center">
<BitImage Src="_content/Boilerplate.Client.Core/images/icons/error-triangle.svg" />

<BitText Color="BitColor.Error" Typography="BitTypography.H3">
@localizer[nameof(AppStrings.SomethingWentWrong)]
</BitText>

@if (showException)
{
<div class="exception">
@CurrentException?.ToString()
</div>
}

<BitStack Horizontal Alignment="BitAlignment.Center" AutoHeight>
<BitButton OnClick="Refresh">@localizer[nameof(AppStrings.Refresh)]</BitButton>
<BitButton OnClick="GoHome" Variant="BitVariant.Outline">@localizer[nameof(AppStrings.Home)]</BitButton>
<BitButton OnClick="Recover" Variant="BitVariant.Outline">@localizer[nameof(AppStrings.Recover)]</BitButton>
</BitStack>
</BitStack>
</main>
}
else
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
@import '../../Styles/abstracts/_functions.scss';
@import '../../Styles/abstracts/_bit-css-variables.scss';

.main {
main {
width: 100%;
display: flex;
padding: rem2(8px);
text-align: center;
max-width: rem2(800px);
max-height: rem2(600px);
flex-direction: column;
border-radius: rem2(4px);
background-color: $bit-color-background-primary;
}

.header {
text-align: end;
}

.title {
color: $bit-color-error;
height: 100%;
}

.exception {
width: 90%;
overflow: auto;
white-space: pre;
text-align: start;
margin: rem2(24px);
}

.buttons {
margin-bottom: rem2(24px);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
--app-inset-bottom: env(safe-area-inset-bottom);
--app-inset-left: env(safe-area-inset-left);
--app-inset-right: env(safe-area-inset-right);

@include lt-md {
height: 100%;
}
}

.inset-top {
Expand All @@ -26,6 +22,7 @@

.inset-main {
width: 100%;
height: 100%;
display: flex;
min-height: 100%;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ main {
}

.stack {
width: 100%;
display: flex;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</BitStack>
</section>

<BitDialog OnOk="DeleteAccount"
<BitDialog OnOk="WrapHandled(DeleteAccount)"
@bind-IsOpen="isDialogOpen"
OkText="@Localizer[nameof(AppStrings.Yes)]"
CancelText="@Localizer[nameof(AppStrings.No)]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
</BitStack>
</section>

<BitDialog OnOk="DeleteTodoItem"
<BitDialog OnOk="WrapHandled(DeleteTodoItem)"
@bind-IsOpen="isDeleteDialogOpen"
OkText="@Localizer[nameof(AppStrings.Yes)]"
CancelText="@Localizer[nameof(AppStrings.No)]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</AuthorizeRouteView>
</Found>
<NotFound>
<RouteDataPublisher RouteData="@null" />
<NotFoundPage />
</NotFound>
<Navigating>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@
</data>
<data name="Refresh" xml:space="preserve">
<value>تلاش مجدد</value>
</data>
<data name="Recover" xml:space="preserve">
<value>بازیابی</value>
</data>
<data name="SomethingWentWrong" xml:space="preserve">
<value>اوه! به نظر مشکلی پیش اومده...</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@
</data>
<data name="Refresh" xml:space="preserve">
<value>Opfrissen</value>
</data>
<data name="Recover" xml:space="preserve">
<value>Herstellen</value>
</data>
<data name="SomethingWentWrong" xml:space="preserve">
<value>Oeps, er is iets misgegaan...</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@
</data>
<data name="Refresh" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="Recover" xml:space="preserve">
<value>Recover</value>
</data>
<data name="SomethingWentWrong" xml:space="preserve">
<value>Oops, something went wrong...</value>
Expand Down

0 comments on commit dbd1314

Please sign in to comment.