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
/* Base styles */ | |
*, | |
::after, | |
::before { | |
box-sizing: border-box; | |
} | |
html, | |
body { |
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
// ## appsettings.json | |
// { | |
// "blablabla": "*", | |
// "Smtp": { | |
// "Host": "smtp.host.com", | |
// "Port": "587", | |
// "EnableSsl": true, | |
// "Username": "user@name.com", | |
// "Password": "password1" | |
// } |
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
/** | |
* Make this a module. | |
*/ | |
export {}; | |
/** | |
* Access the global types | |
*/ | |
declare global { | |
/** |
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
// src/environments/environment.ts | |
// | |
// const url = 'http://localhost:12345/'; | |
// export const environment = { | |
// authUrl: url + 'oauth/token', | |
// }; | |
// ../utils/httpUrlEncodingCodec.ts | |
// | |
// import {HttpParameterCodec} from "@angular/common/http"; |
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
getCurrentScriptURLParam = (name: string) => { | |
const script = document.currentScript as HTMLScriptElement || document.querySelector('script[src*="script-name.js"]'); | |
let value: string | null = ''; | |
if (script?.src) { | |
const url = new URL(script?.src); | |
value = url.searchParams.get(name); | |
} | |
return value ?? ''; | |
} |
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.Text.Json; | |
using Microsoft.AspNetCore.Mvc.ViewFeatures; | |
namespace Presentation.Common | |
{ | |
/// <summary> | |
/// Temp data extension class. | |
/// </summary> | |
public static class TempDataExtension | |
{ |
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 FluentValidation.Results; | |
namespace Application.Models | |
{ | |
/// <summary> | |
/// Service result content. | |
/// </summary> | |
/// <typeparam name="T">Result data type.</typeparam> | |
public class Result<T> | |
{ |
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
import { Vuetify, Framework } from 'vuetify/types'; | |
import VueI18n, { IVueI18n } from 'vue-i18n/types'; | |
declare module 'vue/types/vue' { | |
interface Vue { | |
$vuetify: Framework; | |
readonly $i18n: VueI18n & IVueI18n; | |
$t: typeof VueI18n.prototype.t; | |
$tc: typeof VueI18n.prototype.tc; | |
$te: typeof VueI18n.prototype.te; |
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
import { TextUtil } from '../utils' | |
import { Result, Guard } from '../../core' | |
interface UserEmailProps { | |
email: string; | |
} | |
export class UserEmail extends ValueObject<UserEmailProps> { | |
// Private constructor. No one can say "new UserEmail('diddle')" |
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
// user/services/userService.ts | |
interface User { | |
userId: string; | |
email: string; | |
firstName: string; | |
lastName: string; | |
} | |
interface IUserService { | |
getUserByUserId (userId: string): Promise<User>; |
NewerOlder