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 { spawn } = require('child_process') | |
const fs = require('fs') | |
const path = require('path') | |
const os = require('os') | |
// Replace with your GitHub usernames and personal access tokens | |
const sourceOrg = 'sourceOrg' | |
const sourceUser = 'sourceUser' | |
const sourceToken = 'sourceUserToken' | |
const targetOrg = 'targetOrg' |
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
{ | |
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", |
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 { FC, Fragment } from 'react' | |
import { | |
Form, | |
FormSubmit, | |
Gutter, | |
HydrateClientUser, | |
RenderFields, | |
SetStepNav, | |
SetViewActions, | |
} from '@payloadcms/ui' |
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 { FC } from 'react' | |
import { Form, FormSubmit, Gutter, RenderFields } from '@payloadcms/ui' | |
import { mapFields } from '@payloadcms/ui/utilities/buildComponentMap' | |
import { AdminViewProps, Field, WithServerSidePropsComponentProps } from 'payload' | |
import { WithServerSideProps as WithServerSidePropsGeneric } from '@payloadcms/ui/shared' | |
import { DefaultTemplate } from '@payloadcms/next/templates' | |
import { buildStateFromSchema } from '@payloadcms/ui/forms/buildStateFromSchema' | |
type WithServerSidePropsPrePopulated = React.FC< | |
Omit<WithServerSidePropsComponentProps, 'serverOnlyProps'> |
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
<?php | |
// Add the "Collapse by default" checkbox to the repeater field settings | |
add_action('acf/render_field_settings', 'add_collapse_setting_to_repeater_field', 10, 1); | |
function add_collapse_setting_to_repeater_field($field) { | |
if ($field['type'] == 'repeater') { | |
acf_render_field_setting($field, array( | |
'label' => __('Collapse by default', 'text-domain'), | |
'instructions' => __('Collapse all rows by default when editing.', 'text-domain'), | |
'type' => 'true_false', |
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 type { | |
CollectionBeforeOperationHook, | |
FileData, | |
Plugin, | |
UploadCollectionSlug, | |
} from 'payload' | |
type AspectRatios = Record<string, number> | |
type Collections = Partial<Record<UploadCollectionSlug, AspectRatios>> |
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 { resolveRelationships } from './resolveRelationships' | |
export default buildConfig({ | |
typescript: { | |
schema: [resolveRelationships], | |
}, | |
}) |