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 type { Config } from 'tailwindcss' | |
import typography from '@tailwindcss/typography' | |
export default <Partial<Config>>{ | |
theme: { | |
extend: { | |
typography: { | |
DEFAULT: { | |
css: { | |
'--tw-prose-body': 'hsl(var(--foreground))', |
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
// plugins/decimal-payload.ts | |
import { Decimal } from 'decimal.js' | |
export default definePayloadPlugin(() => { | |
definePayloadReducer('Decimal', data => Decimal.isDecimal(data) && data.toJSON()) | |
definePayloadReviver('Decimal', data => new Decimal(data)) | |
}) |
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
namespace System; | |
using System.Text; | |
using System.Threading; | |
public static class ConsoleEx | |
{ | |
/// <summary> | |
/// Keep track of concurrent writing. | |
/// </summary> |
This file has been truncated, but you can view the full file.
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
var e$g,t$f,n$i,r$h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:global,o$f=e$g={};function i$e(){throw new Error("setTimeout has not been defined")}function u$e(){throw new Error("clearTimeout has not been defined")}function c$d(e){if(t$f===setTimeout)return setTimeout(e,0);if((t$f===i$e||!t$f)&&setTimeout)return t$f=setTimeout,setTimeout(e,0);try{return t$f(e,0)}catch(n){try{return t$f.call(null,e,0)}catch(n){return t$f.call(this||r$h,e,0)}}}!function(){try{t$f="function"==typeof setTimeout?setTimeout:i$e;}catch(e){t$f=i$e;}try{n$i="function"==typeof clearTimeout?clearTimeout:u$e;}catch(e){n$i=u$e;}}();var l$i,s$b=[],f$h=!1,a$f=-1;function h$b(){f$h&&l$i&&(f$h=!1,l$i.length?s$b=l$i.concat(s$b):a$f=-1,s$b.length&&d$9());}function d$9(){if(!f$h){var e=c$d(h$b);f$h=!0;for(var t=s$b.length;t;){for(l$i=s$b,s$b=[];++a$f<t;)l$i&&l$i[a$f].run();a$f=-1,t=s$b.length;}l$i=null,f$h=!1,function(e){if(n$i===clearTimeout)return clearTimeout(e);if((n$i===u$e||!n$i)&&clearTimeout)return n$i=clearT |