{
"columns": [
{
"type": "month",
"values": ["01", "02", "03", "04", "05"]
},
"itemtype"
],
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 get from "lodash/get"; | |
| import isFunction from "lodash/isFunction"; | |
| import setWith from "lodash/setWith"; | |
| import updateWith from "lodash/updateWith"; | |
| export const apply = (source, [path, value]) => { | |
| const handle = isFunction(value) ? updateWith : setWith; | |
| return handle(source, path, value, Object); | |
| }; |
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
| export const fail = (reason) => Promise.resolve({ status: 'failed', reason }); | |
| export const skip = (unresolvedDependencies) => | |
| Promise.resolve({ status: 'skipped', unresolvedDependencies }); | |
| export const succeed = (value) => | |
| Promise.resolve({ status: 'resolved', value }); | |
| export const categorize = (stack, [id, { status, value }]) => { | |
| const type = status === 'resolved' ? status : 'unresolved'; |
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 { object, string } from 'yup'; | |
| import { useCallback, useMemo } from 'react'; | |
| import { Helmet as Metatags } from 'react-helmet'; | |
| import useForm from '../../../../macros/form/macro'; | |
| import { Text } from 'components/widgets/fields'; | |
| export const validationSchema = object().shape({ | |
| email: string().trim().min(3).max(255).email().required(), | |
| password: string().trim().min(10).max(50).required(), |
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 { useCallback, useEffect, useRef, useState } from 'react' | |
| import { attempt, fail, getInitialState, succeed } from './reducers' | |
| import { Validity } from './helpers' | |
| export default ({ promise }) => { | |
| const { current: controller } = useRef(new AbortController()) | |
| const [state, setState] = useState(getInitialState()) | |
| const resolve = useCallback( |
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
| { | |
| "interview": { | |
| "id": "9771aaf8-eafc-4658-b8ab-1b9eecf2f368", | |
| "candidate": { | |
| "id": "80959d1e-c507-49a2-b965-b3667c7eed48", | |
| "firstName": "Fernando", | |
| "lastName": "Camargo", | |
| "headLine": "Senior Front End", | |
| "photo": {} | |
| }, |
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 LOCAL = { email: "[email protected]", expiredPassword: true }; | |
| const DB = { | |
| preferences: { optIn: false }, | |
| notifications: { duplicated: true, something: true, fake: false }, | |
| bills: [1] | |
| }; | |
| const response = (type, res, params) => | |
| console.log(JSON.stringify({ response: { type, res, params } }, null, 2)); |
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 URL = 'domain.com/x/y/z' | |
| const PARAMS = { | |
| firstname: 'firstName', | |
| lastname: 'lastName', | |
| phone: 'phone', | |
| company: 'company', | |
| } | |
| const concat = ({ |
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
| export const content = [ | |
| { label: 'Item 1' }, | |
| { | |
| label: 'Item 2', | |
| children: [ | |
| { label: 'Item 2.1' }, | |
| { label: 'Item 2.2' }, | |
| { | |
| label: 'Item 2.3', | |
| children: [ |