Instalaciones
npm i sanitize-html markdown-it
npm i -D @types/markdown-it @types/sanitize-html
bun i sanitize-html markdown-it
bun i -d @types/markdown-it @types/sanitize-html
html { | |
@apply bg-gray-900 px-10; | |
} | |
body { | |
@apply mt-10; | |
} | |
h1 { | |
@apply text-3xl text-white my-5; |
/* | |
The CSS in this style tag is based off of Bear Blog's default CSS. | |
https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css | |
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md | |
*/ | |
:root { | |
--accent: #2337ff; | |
--accent-dark: #000d8a; | |
--black: 15, 18, 25; |
import axios from 'axios'; | |
import colorLib from '@kurkle/color'; | |
interface ChartOptions { | |
height?: number; | |
width?: number; | |
} | |
export const chartJsToImage = async ( | |
chartConfig: unknown, |
services: | |
db: | |
container_name: postgres_database | |
image: postgres:16.3 | |
volumes: | |
- ./postgres:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_PASSWORD=123456 | |
restart: always | |
ports: |
import { v4 as uuidV4 } from "uuid"; | |
import { uniqueNamesGenerator, Config, names } from "unique-names-generator"; | |
const config: Config = { | |
dictionaries: [names], | |
}; | |
export type Payment = { | |
id: string; | |
amount: number; |