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
/* File generated automatically, do not edit. */ | |
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely'; | |
export type DBEventType = | |
'goal' | | |
'own-goal' | | |
'penalty-goal' | | |
'penalty-miss' | | |
'yellow-card' | |
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 axios from 'axios' | |
import { useOptimisticMutation } from "./useOptimisticMutation.ts" | |
type Response = boolean | |
type Error = unknown | |
type MutationVariables = {itemId: string} | |
type Items = {id: string; name: string}[] | |
type Likes = {itemId: string}[] | |
type History = {type: string}[] |
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 { Markdown } from "@/app/components/markdown"; | |
import { getComments, getPost } from "@/lib/db"; | |
import { Suspense } from "react"; | |
export default async function PostPage({ | |
params, | |
}: { | |
params: { postId: string }; | |
}) { | |
let post = await getPost(params.postId); |
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
const { Prisma } = require("@prisma/client"); | |
/** | |
* this plugin is used to automatically exclude fields from prisma queries | |
* this works with almost all prisma queries that use select and include | |
* if a custom query is used, it will not work by default, | |
* but it can by adding a $autoExclude:true to the args | |
* next to select and include, there is now exclude | |
* if a field ends with an underscore, it will be excluded unless explicitly in select or include | |
* truthy field in exclude will be excluded, even if present in select or include |
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
:root { | |
--background: var(--gray1); | |
--foreground: var(--gray12); | |
--muted: var(--gray3); | |
--muted-foreground: var(--gray10); | |
--popover: var(--gray2); | |
--popover-foreground: var(--gray11); |
Source references:
- https://github.com/sh-tiye/lexicon-fractional-index
- License: Listed as MIT on crates.io, but readme says "License: TODO".
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
#!/bin/bash | |
# Directory to store backups within | |
# Should not end with a slash and not be stored within | |
# the BookStack directory | |
BACKUP_ROOT_DIR="$HOME" | |
# Directory of the BookStack install | |
# Should not end with a slash. | |
BOOKSTACK_DIR="/var/www/bookstack" |
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 { Extension } from "@tiptap/core"; | |
export interface LineHeightOptions { | |
types: string[]; | |
heights: string[]; | |
defaultHeight: string; | |
} | |
declare module "@tiptap/core" { | |
interface Commands<ReturnType> { |
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 { Extension } from "@tiptap/core"; | |
import "@tiptap/extension-text-style"; | |
export type ColorOptions = { | |
types: string[]; | |
}; | |
declare module "@tiptap/core" { | |
interface Commands<ReturnType> { | |
backColor: { |
NewerOlder