
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
stoicdreams.blazorframework
Advanced tools
The purpose of this Framework project is to eliminate common setup and boilerplate when creating a new website. Specifically in this case a client-only Blazor project.
This framework includes pre-built static files, such as index.html, along with a common library of .razor components and c# classes.
This project includes some basic front-end files that will behave as your site initiator.
To include these files, add the following snippet to your Project.csproj file.
<ItemGroup>
<Content Update="wwwroot\**\*">
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Update="$(PkgStoicDreams_BlazorFramework)\content\**\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
Add a AppSettings.cs (IAppSettings interface) file to your project and include with dependency injection in your Startup.cs or Program.cs file.
In your App.razor file, which is the entrypoint for your Blazor content, you will need to wrap your app content with StoicDreamsApp tag.
<StoicDreamsFrameworkEntry AppAssembly="@typeof(App).Assembly">
<HeaderQuickLinksLeft></HeaderQuickLinksLeft>
<HeaderQuickLinksMiddle></HeaderQuickLinksMiddle>
<HeaderQuickLinksRight></HeaderQuickLinksRight>
<NavRenderAfterHome></NavRenderAfterHome>
<NavRenderAfterLogin></NavRenderAfterLogin>
<NavRenderMenuOnly></NavRenderMenuOnly>
</StoicDreamsFrameworkEntry>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<base href="/" />
</head>
<body>
<app id="app" class="faded"></app>
<script src="https://cdn.myfi.ws/i/appstartup.js"></script>
<script src="_framework/blazor.webassembly.js"></script>
</body>
</html>
Add a file /wwwroot/css/site.css to your project and include any overwrites you want
:root {
--primary-dark: #000000;
--primary-glass: rgba(0,0,0,0.7);
--primary-light: #FFFFFF;
--splash-primary: #000000;
--splash-glass: rgba(0,0,0,0.7);
--splash-secondary: #FFFFFF;
--color-dark: #333;
--color-light: #FFF;
--color-link: #c0ffff;
--primary-button: #15771a;
--primary-button-offset: #FFF;
--active-button-background: #111;
--active-button-color: #EEE;
--glass-light: rgba(255,255,255,0.7);
--glass-dark: rgba(0,0,0,0.7);
--primary-page: #2626A8;
--color-page: #FFFFFF;
}
This framework allows overriding the api endpoint used from within the browser.
sessionStorage.setItem('apirooturl', '"https://localhost:7071/api/"')
localStorage.setItem('apirooturl', '"https://localhost:7071/api/"')
FAQs
Unknown package
We found that stoicdreams.blazorframework demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.