I hereby claim:
- I am rolandpeelen on github.
- I am rolandpeelen (https://keybase.io/rolandpeelen) on keybase.
- I have a public key ASAoocrfiFezSeBlqYQz7zLTPFlJZ3AuTc7OzJR65ZmWogo
To claim this, I am signing this object:
| failed Building static HTML for pages - 2.306s | |
| ERROR #95313 | |
| Building static HTML failed for path "/" | |
| See our docs page for more info on this error: https://gatsby.dev/debug-html | |
| 10 | function InvariantError(message) { |
| import * as React from "react"; | |
| import * as Js_exn from "../../node_modules/bs-platform/lib/es6/js_exn.js"; | |
| import * as Js_dict from "../../node_modules/bs-platform/lib/es6/js_dict.js"; | |
| import * as Js_json from "../../node_modules/bs-platform/lib/es6/js_json.js"; | |
| import * as Js_option from "../../node_modules/bs-platform/lib/es6/js_option.js"; | |
| import * as ApolloHooks from "../../node_modules/reason-apollo-hooks/src/ApolloHooks.bs.js"; | |
| import * as Caml_option from "../../node_modules/bs-platform/lib/es6/caml_option.js"; | |
| import * as Empty$TenzirWebsite from "./Empty.bs.js"; |
| open ButtonStyles; | |
| open ApolloHooks; | |
| open Helpers.Option; | |
| module HeaderData = [%graphql | |
| {| | |
| query { | |
| banner(where: {id: "ck42sp0oklhah0b32ryaufi7s"}) { | |
| title @bsDecoder(fn: "toReactString") | |
| subtitle @bsDecoder(fn: "toReactString") |
| import { lensPath, lensProp, compose } from 'ramda'; | |
| // Some new helper functions | |
| const append = item => array => [...(array || []), item]; | |
| const findById = id => array => array.find(item => item._id === id); | |
| const sceneLens = lensProp('scene'); | |
| const structureLens = lensProp('structure'); | |
| const objectsLens = lensProp('objects'); | |
| const groupsLens = lensProp('groups'); |
| import { lensPath, view, set, over } from 'ramda'; | |
| const objectsLens = lensPath(['scene', 'sceneStructure', 'objects']); | |
| const a = view(objectLens, state); // the state from the earlier examples | |
| /* | |
| [ | |
| { | |
| name: "Object 01", | |
| _id: "5d551b1cbaf62dd3efb16662", | |
| _mesh: "5d48270afba5945505e6e9dc", |
| import { lensPath, lensProp, compose } from 'ramda'; | |
| const objectsLens = lensPath(['scene', 'structure', 'objects']); | |
| const groupsLens = lensPath(['scene', 'structure', 'groups']); | |
| // If you use lenses all over the place, you may have some laying around allready, like these | |
| const sceneLens = lensProp('scene'); | |
| const structureLens = lensProp('structure'); | |
| const objectsLens = lensProp('objects'); | |
| const groupsLens = lensProp('groups'); |
| switch(state = defaultState, action) { | |
| case ADD_OBJECT_TO_STRUCTURE: { | |
| return { | |
| ...state, | |
| scene: { | |
| ...state.scene, | |
| structure: { | |
| ...state.scene.structure, | |
| objects: [...(state.scene.structure.objects || []), { name: 'New Object' }] | |
| } |
| const state = { | |
| isLoading: false, | |
| scene: { | |
| name: "3d Scene", | |
| _id: "5c079fd6c4ed600f4407cda1", | |
| structure: { | |
| objects: [ | |
| { | |
| name: "Object 01", | |
| _id: "5d551b1cbaf62dd3efb16662", |
I hereby claim:
To claim this, I am signing this object:
| // ********************************************** | |
| // Imports | |
| // ********************************************** | |
| const R = require('ramda') | |
| // ********************************************** | |
| // Input data | |
| // ********************************************** | |
| console.time('timer'); | |
| const roomOpen = [ |