commit 679404cb98ff53c01e007e7157178bc33f13dcc9
Author: dadalmeida1 Sorry, there's nothing at this address.
+
+
+
+
+
+
+
+
+ Enchant categories:
+ Card
+
+@code {
+
+}
diff --git a/BlazorApV1/Components/Component.razor b/BlazorApV1/Components/Component.razor
new file mode 100644
index 0000000..bef1674
--- /dev/null
+++ b/BlazorApV1/Components/Component.razor
@@ -0,0 +1,5 @@
+Component
+
+@code {
+
+}
diff --git a/BlazorApV1/Components/Crafting.razor b/BlazorApV1/Components/Crafting.razor
new file mode 100644
index 0000000..b1a79b6
--- /dev/null
+++ b/BlazorApV1/Components/Crafting.razor
@@ -0,0 +1,51 @@
+
+ @Item.DisplayName
+ }
+
> Have { get; set; }
+ }
+}
diff --git a/BlazorApV1/Components/Inventory.razor b/BlazorApV1/Components/Inventory.razor
new file mode 100644
index 0000000..f1950bc
--- /dev/null
+++ b/BlazorApV1/Components/Inventory.razor
@@ -0,0 +1,59 @@
+@using BlazorApV1.Models
+
+
@Localizer["Inventory"]
+ @for (int i = 0; i < 16; i++)
+ {
+
+ @if (Item.Num > 0)
+ {
+
DeleteConfirmation
+
+@code {
+
+}
diff --git a/BlazorApV1/Modals/DeleteConfirmation.razor.cs b/BlazorApV1/Modals/DeleteConfirmation.razor.cs
new file mode 100644
index 0000000..edc62fa
--- /dev/null
+++ b/BlazorApV1/Modals/DeleteConfirmation.razor.cs
@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using BlazorApV1.Services;
+using BlazorApV1.Models;
+using Blazored.Modal;
+using Blazored.Modal.Services;
+using Microsoft.AspNetCore.Components;
+
+namespace BlazorApV1.Modals
+{
+ public partial class DeleteConfirmation
+ {
+ [CascadingParameter]
+ public BlazoredModalInstance ModalInstance { get; set; }
+
+ [Inject]
+ public IDataService DataService { get; set; }
+
+ [Parameter]
+ public int Id { get; set; }
+
+ private Item item = new Item();
+
+ protected override async Task OnInitializedAsync()
+ {
+ // Get the item
+ item = await DataService.GetById(Id);
+ }
+
+ void ConfirmDelete()
+ {
+ ModalInstance.CloseAsync(ModalResult.Ok(true));
+ }
+
+ void Cancel()
+ {
+ ModalInstance.CancelAsync();
+ }
+ }
+}
diff --git a/BlazorApV1/Models/Item.cs b/BlazorApV1/Models/Item.cs
new file mode 100644
index 0000000..1c284d5
--- /dev/null
+++ b/BlazorApV1/Models/Item.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace BlazorApV1.Models
+{
+ public class Item
+ {
+ public int Id { get; set; }
+ public string DisplayName { get; set; }
+ public string Name { get; set; }
+ public int StackSize { get; set; }
+ public int MaxDurability { get; set; }
+ public ListAdd
+
+
+ Repair with: +
+ +
++ +
+ + + diff --git a/BlazorApV1/Pages/Add.razor.cs b/BlazorApV1/Pages/Add.razor.cs new file mode 100644 index 0000000..e186d9a --- /dev/null +++ b/BlazorApV1/Pages/Add.razor.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using BlazorApV1.Services; +using Microsoft.AspNetCore.Components.Forms; +using Microsoft.AspNetCore.Components; + +namespace BlazorApV1.Pages +{ + public partial class Add + { + ///Current count: @currentCount
+ + + +@code { + private int currentCount = 0; + + private void IncrementCount() + { + currentCount++; + } +} diff --git a/BlazorApV1/Pages/Edit.razor b/BlazorApV1/Pages/Edit.razor new file mode 100644 index 0000000..f85132e --- /dev/null +++ b/BlazorApV1/Pages/Edit.razor @@ -0,0 +1,75 @@ +@page "/edit/{Id:int}" + ++ +
++ +
++ +
++ +
++ Enchant categories: +
+ Repair with: +
+ +
++ +
++ +
+ + +This component demonstrates fetching data from the server.
+ +@if (forecasts == null) +{ +Loading...
+} +else +{ +Date | +Temp. (C) | +Temp. (F) | +Summary | +
---|---|---|---|
@forecast.Date.ToShortDateString() | +@forecast.TemperatureC | +@forecast.TemperatureF | +@forecast.Summary | +
+ CurrentCulture: @CultureInfo.CurrentCulture +
++ +
+ +@code +{ + private CultureInfo[] supportedCultures = new[] + { + new CultureInfo("en-US"), + new CultureInfo("fr-FR") + }; + + private CultureInfo Culture + { + get => CultureInfo.CurrentCulture; + set + { + if (CultureInfo.CurrentUICulture == value) + { + return; + } + + var culture = value.Name.ToLower(CultureInfo.InvariantCulture); + + var uri = new Uri(this.NavigationManager.Uri).GetComponents(UriComponents.PathAndQuery, UriFormat.Unescaped); + var query = $"?culture={Uri.EscapeDataString(culture)}&" + $"redirectUri={Uri.EscapeDataString(uri)}"; + + // Redirect the user to the culture controller to set the cookie + this.NavigationManager.NavigateTo("/Culture/SetCulture" + query, forceLoad: true); + } + } +} \ No newline at end of file diff --git a/BlazorApV1/Shared/DoctorWhoLayout.razor b/BlazorApV1/Shared/DoctorWhoLayout.razor new file mode 100644 index 0000000..b64449c --- /dev/null +++ b/BlazorApV1/Shared/DoctorWhoLayout.razor @@ -0,0 +1,23 @@ +@inherits LayoutComponentBase + +`s get reset. However, we also reset the\n// bottom margin to use `rem` units instead of `em`.\n\np {\n margin-top: 0;\n margin-bottom: $paragraph-margin-bottom;\n}\n\n\n// Abbreviations\n//\n// 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin\n// 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.\n// 3. Add explicit cursor to indicate changed behavior.\n// 4. Prevent the text-decoration to be skipped.\n\nabbr[title],\nabbr[data-bs-original-title] { // 1\n text-decoration: underline dotted; // 2\n cursor: help; // 3\n text-decoration-skip-ink: none; // 4\n}\n\n\n// Address\n\naddress {\n margin-bottom: 1rem;\n font-style: normal;\n line-height: inherit;\n}\n\n\n// Lists\n\nol,\nul {\n padding-left: 2rem;\n}\n\nol,\nul,\ndl {\n margin-top: 0;\n margin-bottom: 1rem;\n}\n\nol ol,\nul ul,\nol ul,\nul ol {\n margin-bottom: 0;\n}\n\ndt {\n font-weight: $dt-font-weight;\n}\n\n// 1. Undo browser default\n\ndd {\n margin-bottom: .5rem;\n margin-left: 0; // 1\n}\n\n\n// Blockquote\n\nblockquote {\n margin: 0 0 1rem;\n}\n\n\n// Strong\n//\n// Add the correct font weight in Chrome, Edge, and Safari\n\nb,\nstrong {\n font-weight: $font-weight-bolder;\n}\n\n\n// Small\n//\n// Add the correct font size in all browsers\n\nsmall {\n @include font-size($small-font-size);\n}\n\n\n// Mark\n\nmark {\n padding: $mark-padding;\n background-color: $mark-bg;\n}\n\n\n// Sub and Sup\n//\n// Prevent `sub` and `sup` elements from affecting the line height in\n// all browsers.\n\nsub,\nsup {\n position: relative;\n @include font-size($sub-sup-font-size);\n line-height: 0;\n vertical-align: baseline;\n}\n\nsub { bottom: -.25em; }\nsup { top: -.5em; }\n\n\n// Links\n\na {\n color: $link-color;\n text-decoration: $link-decoration;\n\n &:hover {\n color: $link-hover-color;\n text-decoration: $link-hover-decoration;\n }\n}\n\n// And undo these styles for placeholder links/named anchors (without href).\n// It would be more straightforward to just use a[href] in previous block, but that\n// causes specificity issues in many other styles that are too complex to fix.\n// See https://github.com/twbs/bootstrap/issues/19402\n\na:not([href]):not([class]) {\n &,\n &:hover {\n color: inherit;\n text-decoration: none;\n }\n}\n\n\n// Code\n\npre,\ncode,\nkbd,\nsamp {\n font-family: $font-family-code;\n @include font-size(1em); // Correct the odd `em` font sizing in all browsers.\n direction: ltr #{\"/* rtl:ignore */\"};\n unicode-bidi: bidi-override;\n}\n\n// 1. Remove browser default top margin\n// 2. Reset browser default of `1em` to use `rem`s\n// 3. Don't allow content to break outside\n\npre {\n display: block;\n margin-top: 0; // 1\n margin-bottom: 1rem; // 2\n overflow: auto; // 3\n @include font-size($code-font-size);\n color: $pre-color;\n\n // Account for some code outputs that place code tags in pre tags\n code {\n @include font-size(inherit);\n color: inherit;\n word-break: normal;\n }\n}\n\ncode {\n @include font-size($code-font-size);\n color: $code-color;\n word-wrap: break-word;\n\n // Streamline the style when inside anchors to avoid broken underline and more\n a > & {\n color: inherit;\n }\n}\n\nkbd {\n padding: $kbd-padding-y $kbd-padding-x;\n @include font-size($kbd-font-size);\n color: $kbd-color;\n background-color: $kbd-bg;\n @include border-radius($border-radius-sm);\n\n kbd {\n padding: 0;\n @include font-size(1em);\n font-weight: $nested-kbd-font-weight;\n }\n}\n\n\n// Figures\n//\n// Apply a consistent margin strategy (matches our type styles).\n\nfigure {\n margin: 0 0 1rem;\n}\n\n\n// Images and content\n\nimg,\nsvg {\n vertical-align: middle;\n}\n\n\n// Tables\n//\n// Prevent double borders\n\ntable {\n caption-side: bottom;\n border-collapse: collapse;\n}\n\ncaption {\n padding-top: $table-cell-padding-y;\n padding-bottom: $table-cell-padding-y;\n color: $table-caption-color;\n text-align: left;\n}\n\n// 1. Removes font-weight bold by inheriting\n// 2. Matches default `