This example is using Remix.
More information on the header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion
This example is using Remix.
More information on the header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion
This example is using Remix.
More information on the header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion
name: Create Release Branch | |
on: | |
workflow_dispatch: | |
inputs: | |
versionName: | |
description: 'Name of version (ie 5.5.0)' | |
required: true | |
versionCode: | |
description: 'Version number (50500)' | |
required: true |
Tutorial and tips for GitHub Actions workflows
NOTE This is for the Studio v2 version of the plugin
There is a Studio v3 specific version in the studio-v3 branch
A helper function that renders a custom input component for writing localised fields of content into an array.
// Run these snippets from your DevTools console | |
const {default: createClient} = await import('https://unpkg.com/@sanity/client@esm/dist/sanityClient.browser.mjs') | |
const client = createClient({projectId: '81pocpw8', dataset: 'production'}) | |
// Get all v3 ready plugins | |
await client.fetch(`*[studioVersion == 3 || defined(v3DistTag)].packageName`) | |
// Get v3 only, the listing never had a v2 version | |
await client.fetch(`*[studioVersion == 3 && studioV2Support == ""]`) |
/** | |
* Constants. | |
*/ | |
const IS_MAC = ( | |
typeof window != 'undefined' && | |
/Mac|iPod|iPhone|iPad/.test(window.navigator.platform) | |
) |
// Paste in your DevTools console to inspect the error object thrown by fetch | |
const controller = new AbortController() | |
fetch(window.location.href, {signal: controller.signal}).catch((err) => { | |
console.dir(err) | |
console.assert(err.name === 'AbortError', `${err.name} === 'AbortError'`) | |
console.assert(err.code === 20, `${err.code} === 20`) | |
console.assert( | |
err.message === 'The user aborted a request.', | |
`${err.message} === 'The user aborted a request.'` | |
) |
{"imports":{"@podium/browser":"https://unpkg.com/browse/@podium/[email protected]/src/index.js"}} |
// Plan on making a react/web component that reuses the layout logic from the worklet to lay out and | |
// reoder a css columns top down layout to a ltr flow | |
// From https://github.com/GoogleChromeLabs/houdini-samples | |
registerLayout( | |
'masonry', | |
class { | |
static get inputProperties() { | |
return ['--padding', '--columns']; |