This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script type="module"> | |
import { CreateMLCEngine } from "https://esm.run/@mlc-ai/web-llm"; | |
// Callback function to update model loading progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Data.Entity; | |
using System.Globalization; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Text.RegularExpressions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.banner { | |
font-size: 32px; | |
background-color: red; | |
color: white; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class ConfigurationExtensions | |
{ | |
/// <summary> | |
/// Adds a JSON configuration source to builder | |
/// </summary> | |
/// <param name="config"></param> | |
/// <param name="configResourceName"></param> | |
/// <returns>The IConfigurationBuilder</returns> | |
public static IConfigurationBuilder AddJsonResource(this IConfigurationBuilder config, string configResourceName) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class StringBuilderExtensions { | |
public static StringBuilder AppendWhen(this StringBuilder sb, string value, bool predicate) { | |
if(predicate) { | |
sb.Append(value); | |
} | |
return sb; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "~@progress/kendo-theme-bootstrap/dist/all"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*highlight the small rows*/ | |
.main-layout > div:nth-child(4n-1), .main-layout > div:nth-child(4n) { | |
background: #777 | |
} | |
.main-layout > div { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
border-radius: 5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/" | |
@using System.ComponentModel.DataAnnotations | |
@inject NavigationManager NavigationManager | |
<div class="demo-section auto"> | |
@if (ValidSubmit) | |
{ | |
<div class="demo-alert demo-alert-success" role="alert"> | |
The form was submitted successfully. | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme | |
{ | |
Description = | |
"JWT Authorization header using the Bearer scheme. \r\n\r\n Enter 'Bearer' [space] and then your token in the text input below.\r\n\r\nExample: \"Bearer 12345abcdef\"", | |
Name = "Authorization", | |
In = ParameterLocation.Header, | |
Type = SecuritySchemeType.ApiKey, | |
Scheme = "Bearer" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RemoteAuthenticatorView Action="@Action"> | |
<LoggingIn> | |
<span>Logging you in...</span> | |
</LoggingIn> | |
<CompletingLoggingIn> | |
<span>Checking permissions...</span> | |
</CompletingLoggingIn> | |
<LogInFailed> | |
<span>Sorry, your login failed. Please try again or contact support.</span> | |
</LogInFailed> |
NewerOlder