This file contains hidden or 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.Collections; | |
using Dapper; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.EntityFrameworkCore.ChangeTracking; | |
using MySqlConnector; | |
using System.Data; | |
using System.Diagnostics.CodeAnalysis; | |
using System.Linq.Expressions; | |
using System.Runtime.CompilerServices; | |
using Domain.Entities; |
This file contains hidden or 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
export type Comparer<T> = (a: T, b: T) => number | |
export class Enumerable<T> implements Iterable<T> { | |
protected readonly source: Iterable<T> | |
constructor(source: Iterable<T> | (() => Generator<T, void, undefined>)) { | |
this.source = typeof source == 'function' ? source() : source | |
} | |
static range(start: number, count: number, step: number = 1) { | |
return new Enumerable(function* () { |
This file contains hidden or 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
export type Comparer<T> = (a: T, b: T) => number | |
export class Enumerable<T> implements Iterable<T> { | |
protected readonly source: Iterable<T> | |
constructor(source: Iterable<T> | (() => Generator<T, void, undefined>)) { | |
this.source = typeof source == 'function' ? source() : source | |
} | |
static from<T>(array: Iterable<T>) { | |
return new Enumerable(array) |
This file contains hidden or 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 AdminPwaEditor.Web.Client.Components.Base; | |
using Microsoft.AspNetCore.Components; | |
using Microsoft.AspNetCore.Components.Rendering; | |
namespace AdminPwaEditor.Web.Client.Components.Controls; | |
public class HighlightedText : BaseComponent | |
{ | |
[Parameter, EditorRequired] public string Text { get; set; } = ""; | |
[Parameter] public string? Highlight { get; set; } = ""; |
This file contains hidden or 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
namespace ZuperApi.ZohoIntegration.Utils; | |
public class JsonSnakeCaseNamingPolicy : System.Text.Json.JsonNamingPolicy | |
{ | |
public override string ConvertName(string name) => ToSeparatedCase(name, '_'); | |
private enum SeparatedCaseState | |
{ | |
Start, | |
Lower, |