+ Explore default checked state, two-way binding, and handling change events for a customizable user experience.
+
+
@@ -78,19 +92,93 @@
Two-way bound:
-
-
+
+
OnChange:
-
- Check status is: @example32Value
+ Check status is: @example52Value
+
+
+
+
+
+
+
+ Varying sizes for buttons tailored to meet diverse design needs, ensuring flexibility and visual hierarchy within your interface.
+
+
+
+
+
+
+
+
+
+ Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements.
+
+
+ Component's Style & Class:
+
+
+
+
+
+
+
+ Styles & Classes:
+
+
+
+
+
+
+
+
+
+
+
+
+ You can control the display of buttons with three settings, 'Visible' for full display, 'Hidden' for concealing buttons without altering layout, and 'Collapsed' to remove the button and its space.
+
+
+
+
Visible: [ Visible toggle button ]
+
Hidden: [ Hidden toggle button ]
+
Collapsed: [ Collapsed toggle button ]
diff --git a/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.cs b/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.cs
index e4a6ec6cd2..33cff510e3 100644
--- a/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.cs
+++ b/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.cs
@@ -120,6 +120,15 @@ public partial class BitToggleButtonDemo
Description = "The title of the BitToggleButton when it is checked.",
},
new()
+ {
+ Name = "Size",
+ Type = "BitButtonSize",
+ LinkType = LinkType.Link,
+ Href = "#button-size-enum",
+ DefaultValue = "null",
+ Description = "The size of button, Possible values: Small | Medium | Large.",
+ },
+ new()
{
Name = "Styles",
Type = "BitToggleButtonClassStyles?",
@@ -204,14 +213,47 @@ public partial class BitToggleButtonDemo
Name= "Standard",
Description="The button with black text on a white background.",
Value="1",
+ },
+ new()
+ {
+ Name= "Text",
+ Description="The button for less-pronounced actions.",
+ Value="2",
+ }
+ }
+ },
+ new()
+ {
+ Id = "button-size-enum",
+ Name = "BitButtonSize",
+ Description = "",
+ Items = new()
+ {
+ new()
+ {
+ Name= "Small",
+ Description="The small size button.",
+ Value="0",
+ },
+ new()
+ {
+ Name= "Medium",
+ Description="The medium size button.",
+ Value="1",
+ },
+ new()
+ {
+ Name= "Large",
+ Description="The large size button.",
+ Value="2",
}
}
}
};
- private bool example31Value;
- private bool example32Value;
+ private bool example51Value;
+ private bool example52Value;
private readonly string example1RazorCode = @"
@@ -222,10 +264,59 @@ public partial class BitToggleButtonDemo
OffIconName=""@BitIconName.Microphone"" OnIconName=""@BitIconName.MicOff""
ButtonStyle=""BitButtonStyle.Standard"" />
-
";
- private readonly string example1CsharpCode = @"";
+
";
private readonly string example2RazorCode = @"
+
+
";
+
+ private readonly string example3RazorCode = @"
+
+
";
+
+ private readonly string example4RazorCode = @"
+
+
";
+
+ private readonly string example5RazorCode = @"
+
+
+
+
+
+
example52Value = v""
+ OffText=""Unmute"" OnText=""Mute""
+ OffIconName=""@BitIconName.Microphone"" OnIconName=""@BitIconName.MicOff"" />
+Check status is: @example52Value";
+ private readonly string example5CsharpCode = @"
+private bool example51Value;
+private bool example52Value;";
+
+ private readonly string example6RazorCode = @"
+Small
+Medium
+Large
+
+Small
+Medium
+Large
+
+Small
+Medium
+Large";
+
+ private readonly string example7RazorCode = @"
+
@@ -257,34 +349,15 @@ public partial class BitToggleButtonDemo
+ Styles=""@(new() { Container = ""font-size: 18px;"", Icon = ""color: red;"", Text = ""color: blue;"" })"" />
";
- private readonly string example2CsharpCode = @"";
+ Classes=""@(new() { Container = ""custom-container"", Icon = ""custom-icon"", Text = ""custom-text"" })"" />";
- private readonly string example3RazorCode = @"
+ private readonly string example8RazorCode = @"
Visible: [ Visible toggle button ]
Hidden: [ Hidden toggle button ]
Collapsed: [ Collapsed toggle button ]";
-
- private readonly string example4RazorCode = @"
-
-
-
-
-
- example32Value = v""
- OffText=""Unmute"" OnText=""Mute""
- OffIconName=""@BitIconName.Microphone"" OnIconName=""@BitIconName.MicOff"" />
-Check status is: @example32Value";
- private readonly string example4CsharpCode = @"
-private bool example31Value;
-private bool example32Value;";
}
diff --git a/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.scss b/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.scss
index 24175ce582..83ab080adb 100644
--- a/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.scss
+++ b/src/BlazorUI/Demo/Client/Core/Pages/Components/Buttons/BitToggleButtonDemo.razor.scss
@@ -11,6 +11,18 @@
}
}
+.buttons-container {
+ gap: 0.5rem;
+ display: flex;
+ flex-flow: row wrap;
+ align-items: flex-start;
+}
+
+.buttons-container-grid {
+ gap: 0.5rem;
+ display: grid;
+}
+
::deep {
.custom-class {
color: aqua;
diff --git a/src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj b/src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj
index 86bbb2c779..e41e6ce6c4 100644
--- a/src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj
+++ b/src/BlazorUI/Demo/Client/Web/Bit.BlazorUI.Demo.Client.Web.csproj
@@ -34,9 +34,9 @@
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/BlazorUI/Demo/Client/Web/Extensions/HttpRequestExtensions.cs b/src/BlazorUI/Demo/Client/Web/Extensions/HttpRequestExtensions.cs
index 0f62030960..ad186f2799 100644
--- a/src/BlazorUI/Demo/Client/Web/Extensions/HttpRequestExtensions.cs
+++ b/src/BlazorUI/Demo/Client/Web/Extensions/HttpRequestExtensions.cs
@@ -4,6 +4,20 @@ namespace Microsoft.AspNetCore.Http;
public static class HttpRequestExtensions
{
+ ///
+ /// https://blog.elmah.io/how-to-get-base-url-in-asp-net-core/
+ ///
+ public static string GetBaseUrl(this HttpRequest req)
+ {
+ var uriBuilder = new UriBuilder(req.Scheme, req.Host.Host, req.Host.Port ?? -1);
+ if (uriBuilder.Uri.IsDefaultPort)
+ {
+ uriBuilder.Port = -1;
+ }
+
+ return uriBuilder.Uri.AbsoluteUri;
+ }
+
public static bool ShouldRenderStaticMode(this HttpRequest request)
{
var agent = GetLoweredUserAgent(request);
diff --git a/src/BlazorUI/Demo/Client/Web/Program.BlazorElectron.cs b/src/BlazorUI/Demo/Client/Web/Program.BlazorElectron.cs
index a6c765401b..10be3413f0 100644
--- a/src/BlazorUI/Demo/Client/Web/Program.BlazorElectron.cs
+++ b/src/BlazorUI/Demo/Client/Web/Program.BlazorElectron.cs
@@ -10,7 +10,7 @@ public partial class Program
public static WebApplication CreateHostBuilder(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
- builder.Configuration.AddJsonStream(typeof(Core.Shared.MainLayout).Assembly.GetManifestResourceStream("Bit.BlazorUI.Demo.Client.Core.appsettings.json")!);
+ builder.Configuration.AddClientConfigurations();
builder.WebHost.UseElectron(args);
builder.Services.AddElectron();
diff --git a/src/BlazorUI/Demo/Client/Web/Program.BlazorServer.cs b/src/BlazorUI/Demo/Client/Web/Program.BlazorServer.cs
index b04e87ae9f..167780e6ad 100644
--- a/src/BlazorUI/Demo/Client/Web/Program.BlazorServer.cs
+++ b/src/BlazorUI/Demo/Client/Web/Program.BlazorServer.cs
@@ -6,7 +6,7 @@ public partial class Program
public static WebApplication CreateHostBuilder(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
- builder.Configuration.AddJsonStream(typeof(Core.Shared.MainLayout).Assembly.GetManifestResourceStream("Bit.BlazorUI.Demo.Client.Core.appsettings.json")!);
+ builder.Configuration.AddClientConfigurations();
#if DEBUG
if (OperatingSystem.IsWindows())
diff --git a/src/BlazorUI/Demo/Client/Web/Program.BlazorWebAssembly.cs b/src/BlazorUI/Demo/Client/Web/Program.BlazorWebAssembly.cs
index 7699599182..eddfd42865 100644
--- a/src/BlazorUI/Demo/Client/Web/Program.BlazorWebAssembly.cs
+++ b/src/BlazorUI/Demo/Client/Web/Program.BlazorWebAssembly.cs
@@ -10,11 +10,16 @@ public partial class Program
public static WebAssemblyHost CreateHostBuilder(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault();
- builder.Configuration.AddJsonStream(typeof(Core.Shared.MainLayout).Assembly.GetManifestResourceStream("Bit.BlazorUI.Demo.Client.Core.appsettings.json")!);
+ builder.Configuration.AddClientConfigurations();
var apiServerAddressConfig = builder.Configuration.GetApiServerAddress();
- var apiServerAddress = new Uri($"{builder.HostEnvironment.BaseAddress}{apiServerAddressConfig}");
+ Uri.TryCreate(builder.Configuration.GetApiServerAddress(), UriKind.RelativeOrAbsolute, out var apiServerAddress);
+
+ if (apiServerAddress.IsAbsoluteUri is false)
+ {
+ apiServerAddress = new Uri($"{builder.HostEnvironment.BaseAddress}{apiServerAddress}");
+ }
builder.Services.AddSingleton(sp => new HttpClient(sp.GetRequiredService()) { BaseAddress = apiServerAddress });
builder.Services.AddScoped();
diff --git a/src/BlazorUI/Demo/Client/Web/Startup/Services.cs b/src/BlazorUI/Demo/Client/Web/Startup/Services.cs
index 14a8530709..787189b395 100644
--- a/src/BlazorUI/Demo/Client/Web/Startup/Services.cs
+++ b/src/BlazorUI/Demo/Client/Web/Startup/Services.cs
@@ -8,11 +8,12 @@ public static class Services
{
public static void Add(IServiceCollection services, IConfiguration configuration)
{
+ Uri.TryCreate(configuration.GetApiServerAddress(), UriKind.Absolute, out var apiServerAddress);
services.AddScoped(sp =>
{
HttpClient httpClient = new(sp.GetRequiredService())
{
- BaseAddress = new Uri(sp.GetRequiredService().GetApiServerAddress())
+ BaseAddress = apiServerAddress
};
return httpClient;
diff --git a/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.js b/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.js
index 4d94884cf4..331d4effbc 100644
--- a/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.js
+++ b/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.js
@@ -1,4 +1,4 @@
-// bit version: 7.2.0
+// bit version: 7.3.0
// https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup
// Make sure to apply all changes you make here to the service-worker.published.js file too (if required).
diff --git a/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.published.js b/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.published.js
index 7147b3952b..fcfa95e832 100644
--- a/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.published.js
+++ b/src/BlazorUI/Demo/Client/Web/wwwroot/service-worker.published.js
@@ -1,4 +1,4 @@
-// bit version: 7.2.0
+// bit version: 7.3.0
// https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup
self.assetsExclude = [
diff --git a/src/BlazorUI/Demo/Directory.Build.props b/src/BlazorUI/Demo/Directory.Build.props
index 2244c857c7..16b34f62a0 100644
--- a/src/BlazorUI/Demo/Directory.Build.props
+++ b/src/BlazorUI/Demo/Directory.Build.props
@@ -1,4 +1,4 @@
-
+
diff --git a/src/BlazorUI/Demo/Server/Api/Bit.BlazorUI.Demo.Server.Api.csproj b/src/BlazorUI/Demo/Server/Api/Bit.BlazorUI.Demo.Server.Api.csproj
index cc3149c7c4..09a27c2478 100644
--- a/src/BlazorUI/Demo/Server/Api/Bit.BlazorUI.Demo.Server.Api.csproj
+++ b/src/BlazorUI/Demo/Server/Api/Bit.BlazorUI.Demo.Server.Api.csproj
@@ -13,11 +13,11 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/BlazorUI/Demo/Server/Api/Program.cs b/src/BlazorUI/Demo/Server/Api/Program.cs
index bc36f5862a..050af97eef 100644
--- a/src/BlazorUI/Demo/Server/Api/Program.cs
+++ b/src/BlazorUI/Demo/Server/Api/Program.cs
@@ -1,5 +1,9 @@
var builder = WebApplication.CreateBuilder(args);
+#if BlazorWebAssembly
+builder.Configuration.AddClientConfigurations();
+#endif
+
#if DEBUG
if (OperatingSystem.IsWindows())
{
diff --git a/src/BlazorUI/Demo/Server/Api/Startup/Services.cs b/src/BlazorUI/Demo/Server/Api/Startup/Services.cs
index df3d99ba8c..bc392337f7 100644
--- a/src/BlazorUI/Demo/Server/Api/Startup/Services.cs
+++ b/src/BlazorUI/Demo/Server/Api/Startup/Services.cs
@@ -30,8 +30,12 @@ public static void Add(IServiceCollection services, IWebHostEnvironment env, ICo
.ConfigurePrimaryHttpMessageHandler()
.ConfigureHttpClient((sp, httpClient) =>
{
- NavigationManager navManager = sp.GetRequiredService().HttpContext!.RequestServices.GetRequiredService();
- httpClient.BaseAddress = new Uri($"{navManager.BaseUri}api/");
+ Uri.TryCreate(configuration.GetApiServerAddress(), UriKind.RelativeOrAbsolute, out var apiServerAddress);
+ if (apiServerAddress!.IsAbsoluteUri is false)
+ {
+ apiServerAddress = new Uri($"{sp.GetRequiredService().HttpContext!.Request.GetBaseUrl()}{apiServerAddress}");
+ }
+ httpClient.BaseAddress = apiServerAddress;
});
services.AddScoped();
@@ -43,7 +47,6 @@ public static void Add(IServiceCollection services, IWebHostEnvironment env, ICo
// for other usages of http client, for example calling 3rd party apis, either use services.AddHttpClient("NamedHttpClient") or services.AddHttpClient();
});
services.AddRazorPages();
- services.AddMvcCore();
#endif
services.AddCors();
diff --git a/src/BlazorUI/Demo/Shared/Bit.BlazorUI.Demo.Shared.csproj b/src/BlazorUI/Demo/Shared/Bit.BlazorUI.Demo.Shared.csproj
index fd544c0e8a..87ebc7d134 100644
--- a/src/BlazorUI/Demo/Shared/Bit.BlazorUI.Demo.Shared.csproj
+++ b/src/BlazorUI/Demo/Shared/Bit.BlazorUI.Demo.Shared.csproj
@@ -5,11 +5,11 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js
index e03cbb1bf5..c0ee5e09ac 100644
--- a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js
+++ b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js
@@ -1,4 +1,4 @@
-// bit version: 7.2.0
+// bit version: 7.3.0
self.assetsExclude = [/\.scp\.css$/, /weather\.json$/];
self.caseInsensitiveUrl = true;
diff --git a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js
index 22eea148a7..149175f193 100644
--- a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js
+++ b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js
@@ -1,4 +1,4 @@
-// bit version: 7.2.0
+// bit version: 7.3.0
self.assetsExclude = [/\.scp\.css$/, /weather\.json$/];
self.caseInsensitiveUrl = true;
diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts
index 232da0b4f8..fe2d649719 100644
--- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts
+++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts
@@ -1,4 +1,4 @@
-window['bit-bswup.progress version'] = '7.2.0';
+window['bit-bswup.progress version'] = '7.3.0';
; (function () {
(window as any).startBswupProgress = (autoReload: boolean,
diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts
index 36438cb1b4..f5d1db1c66 100644
--- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts
+++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts
@@ -1,4 +1,4 @@
-self['bit-bswup.sw version'] = '7.2.0';
+self['bit-bswup.sw version'] = '7.3.0';
interface Window {
clients: any
diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts
index cc477effff..f1498c5772 100644
--- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts
+++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts
@@ -1,4 +1,4 @@
-window['bit-bswup version'] = '7.2.0';
+window['bit-bswup version'] = '7.3.0';
declare const Blazor: any;
diff --git a/src/Bswup/FullDemo/Client/wwwroot/service-worker.js b/src/Bswup/FullDemo/Client/wwwroot/service-worker.js
index 5dc698f6e7..fa56e8abdd 100644
--- a/src/Bswup/FullDemo/Client/wwwroot/service-worker.js
+++ b/src/Bswup/FullDemo/Client/wwwroot/service-worker.js
@@ -1,4 +1,4 @@
-// bit version: 7.2.0
+// bit version: 7.3.0
// In development, always fetch from the network and do not enable offline support.
// This is because caching would make development more difficult (changes would not
diff --git a/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js b/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js
index d344e1729c..5dd9f62f48 100644
--- a/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js
+++ b/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js
@@ -1,4 +1,4 @@
-// bit version: 7.2.0
+// bit version: 7.3.0
self.assetsInclude = [];
self.assetsExclude = [/\.scp\.css$/, /weather\.json$/];
diff --git a/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts b/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts
index 0709302ee1..6a71d5ba1a 100644
--- a/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts
+++ b/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts
@@ -1,4 +1,4 @@
-window['bit-bup.progress version'] = '7.2.0';
+window['bit-bup.progress version'] = '7.3.0';
; (function () {
(window as any).startBupProgress = (showLogs: boolean, showAssets: boolean, appContainerSelector: string, hideApp: boolean, autoHide: boolean) => {
diff --git a/src/Bup/Bit.Bup/Scripts/bit-bup.ts b/src/Bup/Bit.Bup/Scripts/bit-bup.ts
index 822766dcb5..8a75489b5b 100644
--- a/src/Bup/Bit.Bup/Scripts/bit-bup.ts
+++ b/src/Bup/Bit.Bup/Scripts/bit-bup.ts
@@ -1,4 +1,4 @@
-window['bit-bup version'] = '7.2.0';
+window['bit-bup version'] = '7.3.0';
declare const Blazor: any;
diff --git a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj
index 7431a32c4c..50e95c9040 100644
--- a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj
+++ b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj
@@ -1,4 +1,4 @@
-
+
@@ -15,14 +15,14 @@
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj
index 16e7022cbb..d61615e49f 100644
--- a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj
+++ b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj
@@ -1,4 +1,4 @@
-
+
@@ -18,14 +18,14 @@
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Templates/BlazorWeb/Bit.BlazorWeb/.github/workflows/cd.yml b/src/Templates/BlazorWeb/Bit.BlazorWeb/.github/workflows/cd.yml
index 4949d7a6b4..f9b3680db7 100644
--- a/src/Templates/BlazorWeb/Bit.BlazorWeb/.github/workflows/cd.yml
+++ b/src/Templates/BlazorWeb/Bit.BlazorWeb/.github/workflows/cd.yml
@@ -35,13 +35,6 @@ jobs:
- name: Install wasm
run: cd src && dotnet workload install wasm-tools wasm-experimental
-
- - name: Update appsettings.json api server address
- uses: microsoft/variable-substitution@v1
- with:
- files: 'src/BlazorWeb.Client/appsettings.json'
- env:
- ApiServerAddress: ${{ env.API_SERVER_ADDRESS }}
- name: Generate CSS/JS files
run: dotnet build src/BlazorWeb.Client/BlazorWeb.Client.csproj -t:BeforeBuildTasks --no-restore
diff --git a/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/BlazorWeb.Client.csproj b/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/BlazorWeb.Client.csproj
index 45aefa1c47..edf9425fb8 100644
--- a/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/BlazorWeb.Client.csproj
+++ b/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/BlazorWeb.Client.csproj
@@ -30,17 +30,17 @@
-
-
-
+
+
+
-
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/Pages/Categories/AddOrEditCategoryPage.razor b/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/Pages/Categories/AddOrEditCategoryPage.razor
index da726dec3f..7f950be30a 100644
--- a/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/Pages/Categories/AddOrEditCategoryPage.razor
+++ b/src/Templates/BlazorWeb/Bit.BlazorWeb/src/BlazorWeb.Client/Pages/Categories/AddOrEditCategoryPage.razor
@@ -54,8 +54,8 @@
-
+
@Localizer[nameof(AppStrings.ResendEmail)]
-
+
}