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
{ | |
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | |
"vcs": { | |
"enabled": true, | |
"clientKind": "git", | |
"useIgnoreFile": true | |
}, | |
"files": { | |
"ignoreUnknown": false, | |
"ignore": [] |
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
type OK<T> = { | |
data: T | |
err: null | |
} | |
type Fail<E> = { | |
data: null | |
err: E | |
} |
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
const interpolate = function(template, params) { | |
const names = Object.keys(params); | |
const vals = Object.values(params); | |
return new Function(...names, `return \`${template}\`;`)(...vals); | |
} |
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
npm install -g graphqurl | |
gq https://graphql.contentful.com/content/v1/spaces/<space_id>/environments/<environment_name> -H 'Authorization: Bearer <CONTENTFUL_ACCESS_TOKEN>' --introspect > schema.graphql |
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
[...Array(100).keys()] | |
// Output: [0, 1, 2, 3, ..., 98, 99] |
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 { EntrySys } from "@contentful/app-sdk"; | |
import { EntryMetaSysProps } from "contentful-management"; | |
export const EntryStatus = { | |
ARCHIVED: "archived", | |
PUBLISHED: "published", | |
CHANGED: "changed", | |
DRAFT: "draft", | |
} as const; |
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
const uuid = window.crypto.randomUUID(); |
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
const randomHexColor = `#${Math.floor(Math.random() * 16777215).toString(16)}`; |
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
/* CSS Custom Properties */ | |
:root { | |
--font-family: 'Georgia', serif; | |
--font-family-alt: 'Helvetica', Arial, sans-serif; | |
--font-weight: 400; | |
--font-weight-bold: 700; | |
--font-weight-black: 900; | |
/* 3:4 perfect fourth scale */ |
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
# Lando version is at least +3.0 | |
name: drupal-nine | |
recipe: drupal9 | |
services: | |
appserver: | |
webroot: web | |
xdebug: debug | |
config: | |
php: .vscode/php.ini |
NewerOlder