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
# Admin API key goes here | |
KEY="[FIND ME IN THE ADMIN SETTINGS]" | |
# Split the key into ID and SECRET | |
TMPIFS=$IFS | |
IFS=':' read ID SECRET <<< "$KEY" | |
IFS=$TMPIFS | |
# Prepare header and payload | |
NOW=$(date +'%s') |
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
.field:before, .customer .field:before,.field:after, .customer .field:after { | |
display: none !important; | |
} | |
.customer .field input, .customer select, .field__input, .select__select { | |
box-shadow: -1px 0px 0px 1px #C0C0C0 !important; | |
border: 1px solid #000; | |
} |
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
{ | |
"id": "lhn1hp8aqiulsb1pji", | |
"name": "Screenshot -> Resize & Bordered", | |
"description": "", | |
"color": "green", | |
"actions": [ | |
{ | |
"id": "ljmha6c33u1ov3tam9o", | |
"command": { | |
"name": "getCurrentSelection", |
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
{ | |
"black": { | |
"value": "#000000", | |
"type": "color" | |
}, | |
"white": { | |
"value": "#ffffff", | |
"type": "color" | |
}, | |
"slate": { |
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 React from 'react' | |
const VideoEmbedPreview = ({ value }) => { | |
const url = value.url | |
const responsiveVideoContainer = { | |
padding: "56.25% 0 0 0", | |
position: "relative" | |
} |
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
//Hook into the createSchemaCustomization API | |
//This hook runs after all our nodes have been created | |
exports.createSchemaCustomization = ({ actions, schema }) => { | |
//The createTypes action allows us to create custom types | |
//and modify existing ones | |
const { createTypes } = actions | |
// Create our schema customizations | |
const typeDefs = [ | |
// Replace "SanityReview" with your _typename of your post type |
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
<div tw="md:w-full"> | |
<div | |
tw="md:mx-8 md:mx-auto md:grid md:grid-cols-1 md:grid-cols-2 md:font-serif md:border-b" | |
css={{ | |
width: 'min(100ch, calc(100% - 64px))', | |
gridRowGap: 8, | |
}} | |
> | |
</div> | |
</div> |
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
https://dev.to/amanhimself/setup-macbook-m1-for-web-and-react-native-development-8la |
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
// Load variables from `.env` as soon as possible | |
require('dotenv').config({ | |
path: `.env.${process.env.NODE_ENV || 'development'}` | |
}) | |
const clientConfig = require('./client-config') | |
const isProd = process.env.NODE_ENV === 'production' | |
// Portable Text Serialization | |
const PortableText = require("@sanity/block-content-to-html") |
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 escapeStringRegexp = require("escape-string-regexp") | |
// const pagePath = `content` | |
// const indexName = `Pages` | |
const pageQuery = `{ | |
pages: allMdx { | |
edges { | |
node { | |
id |
NewerOlder