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": 0, | |
"name": "datocms-plugin-sdk", | |
"variant": "project", | |
"kind": 1, | |
"flags": {}, | |
"children": [ | |
{ | |
"id": 1, | |
"name": "Account", |
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": 0, | |
"name": "datocms-react-ui", | |
"variant": "project", | |
"kind": 1, | |
"flags": {}, | |
"children": [ | |
{ | |
"id": 137, | |
"name": "FieldGroupProps", |
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 type { RenderFieldExtensionCtx } from "datocms-plugin-sdk"; | |
import { Canvas } from "datocms-react-ui"; | |
import { useEffect, useState } from "react"; | |
type Props = { | |
ctx: RenderFieldExtensionCtx; | |
}; | |
export default function Editor({ ctx }: Props) { | |
const key = JSON.stringify([ctx.item?.id, ctx.fieldPath]); |
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": 0, | |
"name": "datocms-react-ui", | |
"variant": "project", | |
"kind": 1, | |
"flags": {}, | |
"children": [ | |
{ | |
"id": 135, | |
"name": "FieldGroupProps", |
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": 0, | |
"name": "datocms-plugin-sdk", | |
"variant": "project", | |
"kind": 1, | |
"flags": {}, | |
"children": [ | |
{ | |
"id": 1, | |
"name": "Account", |
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 { buildClient } from "@datocms/cma-client-node"; | |
import fetch from "cross-fetch"; | |
const client = buildClient({ | |
apiToken: process.env.READWRITE_DATOCMS_API_TOKEN, | |
fetchFn: fetch, | |
}); | |
async function run() { | |
for await (const delivery of client.webhookCalls.listPagedIterator({ |
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 { connect } from 'datocms-plugin-sdk'; | |
connect({ | |
buildItemPresentationInfo(item, ctx) { | |
// we only want to customize the presentation for records of a specific | |
// model | |
if (item.relationships.item_type.data.id !== '810975') { | |
return undefined; | |
} |
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
#include <stdio.h> | |
#include <string.h> | |
struct KeyPoint | |
{ | |
char key; | |
char points; | |
}; | |
struct KeyPoint rules[] = { |
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 withLayoutProps from 'utils/withLayoutProps'; | |
export const getStaticProps = withLayoutProps(async ({ params: { id } }) => { | |
const pokemon = await api.getPokemonById(id); | |
return { | |
props: { pokemon }, | |
}; | |
}); |
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
{ | |
"title": "Lettere accentate", | |
"rules": [ | |
{ | |
"description": "Option + e = è", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
NewerOlder