export const convertVal = val => { if (typeof val === 'string') { // 解析布尔 if (val === 'true' || val === 'false') {13 changes: 7 additions & 6 deletions 13 lib/db/getSiteData.js Original file line numberDiff line numberDiff line change @@ -236,12 +236,13 @@ fu...
searchParams: { [key: string]: string | string[] | undefined } }) { const dataSource = toDataSource(params.dataSource.toUpperCase()); if (!isOAuthDataSource(dataSource)) { return notFound(); } // TODO: Move Google Drive to use this oauth-callback as well. It will simplify redi...
Progression, is absolutely dedicated to guitar notation duties. Guitar staves can be notated with tab, staff notation, or both together, and in the same way that the Virtual Fretboard adapts to non-standard instrument tunings and string dispositions, so can tab staves. ...
type BlockSerializer = ( block: NotionBlock, ) => string | false | Promise<string | false>;PropertySerializersMap with Notion Property Type (like "heading_1", "to_do", "code") as key and PropertySerializer as value.PropertySerializerPropertySerializer that takes a Notion property object as...
color-convert "^1.9.3" color-string "^1.6.0" color-convert "^2.0.1" color-string "^1.9.0" commander@^6.2.0: version "6.2.1" @@ -1041,11 +1023,6 @@ concat-map@0.0.1: resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" integrity "sha1-2Klr13/Wjfd5...
We want something that converts well into a static site, can be hosted on github for free using the github.io domain, and can have both pages and blog posts and be configured pretty easily. Why Notion and Astro I use Notion for all my notes, and it did not make sense for me to ...
"escape-string-regexp": "^1.0.5", "supports-color": "^5.3.0" }, "engines": { "node": ">=4" } }, "node_modules/@babel/highlight/node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integ...
@@ -409,6 +415,15 @@ export async function convertBody() { const isUrl = (str: string) => str.startsWith("http") function parseTextChildren(el: Element): any[] { const result = [] if (isElementNode(el) && isSpanElement(el) && el.dataset.formula) { result.push({ type: "equ...
nextjs friendly notion blog. Contribute to im-ian/notion-blog development by creating an account on GitHub.
export const isLegalNotionImgFormat = (url?: string) => url ? /\.(png|jpg|jpeg|gif|tif|tiff|bmp|svg|heic)$/.test(url) : false : false export const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)) 60...