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 { createElement, createContext, useContext } from "react"; | |
const ComponentContext = createContext({}); | |
export function createComponentProvider(componentMap) { | |
return function (props) { | |
const prevComponentMap = useContext(ComponentContext); | |
return createElement(ComponentContext.Provider, { | |
...props, | |
value: { ...prevComponentMap, ...componentMap }, |
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 { | |
createContext, | |
FC, | |
PropsWithChildren, | |
useContext, | |
useEffect, | |
} from "react"; | |
import noop from "lodash/noop"; | |
import { Updater, useImmer, History } from "../utils/useImmer"; | |
import { Journey } from "../types/journey"; |
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
{ | |
"name": "parallel-watch", | |
"version": "0.0.1", | |
"scripts": { | |
"start": "concurrently -r \"start-storybook -p 6006\" \"yarn watch-tokens\"", | |
"build-tokens": "kickstartDS tokens compile --cleanup --rc-only", | |
"watch-tokens": "chokidar \"tokens/*.json\" -c \"yarn build-tokens\"" | |
}, | |
"dependencies": { | |
"@storybook/addon-actions": "^6.5.3", |
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
{ | |
"definitions": {}, | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "https://kickstartds.com/example-demo.json", | |
"type": "object", | |
"title": "kickstartDS Example Demo task", | |
"required": [ | |
"demo" | |
], | |
"properties": { |
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 GatsbyParser = require('gatsby/dist/query/file-parser').default; | |
/** | |
* Collect all graphql fragments from a directory | |
* @see https://github.com/gatsbyjs/gatsby/issues/12155#issuecomment-618424527 | |
*/ | |
exports.collectGraphQLFragments = async (fragmentNamesToExtract, gqlPath) => { | |
const parser = new GatsbyParser(); | |
const result = await parser.parseFile(`${gqlPath}/page.fragments.js`); |
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 { InfluxDB, Point, HttpError } = require('@influxdata/influxdb-client'); | |
const url = process.env['GATSBY_INFLUX_URL'] || 'http://localhost:8086'; | |
const token = process.env['GATSBY_INFLUX_TOKEN'] || 'my-token'; | |
const org = process.env['GATSBY_INFLUX_ORG'] || 'my-org'; | |
const bucket = process.env['GATSBY_INFLUX_BUCKET'] || 'my-bucket'; | |
const db = new InfluxDB({ url, token }); | |
const isObject = (obj) => |
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
{ | |
"color": { | |
"primary": "#333", | |
"background": "#fff", | |
"foreground": "#000", | |
"link": "#1c7ed6" | |
}, | |
"font": { | |
"display": { | |
"family": "Garamond, Baskerville, 'Baskerville Old Face', 'Hoefler Text', 'Times New Roman', serif", |
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
{ | |
"data": { | |
"spotify": { | |
"me": { | |
"savedTracks": { | |
"nodes": [ | |
{ | |
"name": "Such a good day", | |
"artists": [ | |
{ |
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 "@kickstartds/core/lib/container-queries"; | |
import { Component, define } from "@kickstartds/core/lib/core"; | |
import { windowEvents } from "@kickstartds/core/lib/utils"; | |
const desktopImageOffsetAngle = 60; | |
const mobileImageOffsetAngle = 75; | |
const mobileOffsetRotateAngle = 45; | |
const backgroundRotateFactor = -0.25; | |
const maxBlur = 4; |
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
renderingOptions: | |
submitButtonLabel: Absenden | |
type: Form | |
identifier: myForm | |
label: 'My Form' | |
prototypeName: standard | |
finishers: | |
- | |
options: | |
subject: Testemail |