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 re | |
import os | |
def parse_proto_file(proto_file, parsed_files=None): | |
if parsed_files is None: | |
parsed_files = set() | |
if proto_file in parsed_files: | |
return "" | |
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 { | |
ConnectionEdgeBaseModel, | |
ConnectionsArguments, | |
} from './types.ts'; | |
export function applyCursorsToEdges<Edge extends ConnectionEdgeBaseModel>( | |
allEdges: Edge[], | |
before?: ConnectionEdgeBaseModel['cursor'] | undefined, | |
after?: ConnectionEdgeBaseModel['cursor'] | undefined, | |
) { |
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
useEffect(() => { | |
gsap.registerPlugin(ScrollTrigger,CSSRulePlugin) | |
// gsap.registerPlugin(CSSRulePlugin) | |
}, []) | |
useEffect(() => { | |
const sections_ = document.querySelectorAll('.gallery-container') | |
console.log(sections_) | |
let sections = gsap.utils.toArray(".gallery-container") | |
console.log(sections) |
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
{"lastUpload":"2020-08-27T10:51:29.004Z","extensionVersion":"v3.4.3"} |
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
// operations.js | |
export const allTodosSubscription = ` | |
subscription allTodosSubscription { | |
allTodos { | |
id | |
label | |
completed | |
} | |
} | |
` |
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
// ... | |
createTodo = label => { | |
const { mutations: { createTodoMutation } } = this.props | |
createTodoMutation({ variables: { label } }) | |
} | |
toggleTodo = (id, completed) => { | |
const { mutations: { updateTodoMutation } } = this.props | |
updateTodoMutation({ variables: { id, completed } }) | |
} |
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 React, { Component } from 'react' | |
import { graphql } from 'react-blips' | |
import { TodoList } from '../../components' | |
import { | |
allTodosQuery, | |
createTodoMutation, | |
updateTodoMutation, | |
} from './operations' |
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 allTodosQuery = ` | |
query allTodosQuery { | |
allTodos { | |
id | |
label | |
completed | |
} | |
} | |
` |
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 default ` | |
type Todo { | |
id: String! | |
label: String! | |
completed: Boolean | |
} | |
type Query { | |
allTodos: [Todo]! | |
} |
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 default { | |
Query: { | |
allTodos: (obj, args, { store, }) => { | |
return store.get('todos') | |
}, | |
}, | |
Mutation: { | |
createTodo: (obj, { id, label, completed = false, }, { store, }) => { | |
const newTodo = store.post('todos', { | |
id, |
NewerOlder