Test
View .babelrc
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
Show hidden characters
{ | |
"presets": ["next/babel", "@emotion/babel-preset-css-prop"], | |
"plugins": [ | |
[ | |
"prismjs", | |
{ | |
"languages": [ | |
"javascript", | |
"css", | |
"markup", |
View codegen.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
module.exports = { | |
overwrite: true, | |
generates: { | |
"./data/index.tsx": { | |
schema: [ | |
{ | |
"http://localhost:8081/v1/graphql": { | |
headers: { | |
"x-hasura-role": "anonymous" | |
} |
View setup.md
Consuming Package
Setup this as an .npmrc
in a consumer
always-auth=true
@github-org:registry=https://npm.pkg.github.com/github-org/
_authToken=TOKEN
//npm.pkg.github.com/:_authToken=TOKEN
View wat.jsx
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 React from "react"; | |
import ReactModal from "react-modal"; | |
import styled from "react-emotion"; | |
export interface ModalProps { | |
open: boolean; | |
contentLabel?: string; | |
onClose: Function; | |
} |
View graph.jsx
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 { StyleSheet, View, Text, ActivityIndicator } from "react-native"; | |
import Sizer from "react-native-size"; | |
import { | |
VictoryChart, | |
VictoryLine, | |
VictoryTheme, | |
VictoryAxis, | |
VictoryContainer, | |
VictoryCursorContainer, | |
Line, |
View index.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
import React from "react"; | |
import { render } from "react-dom"; | |
import { BrowserRouter, Switch, Route } from "react-router-dom"; | |
import RenderTo from "./render_to"; | |
import Header from "./components/header"; | |
import Nav from "./components/nav"; | |
import Home from "./pages/home"; | |
import AccountsReview from "./pages/accounts_review"; |
View bug.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 NavItem = styled.li( | |
{ | |
margin: "15px 0", | |
}, | |
({ sub }) => ({ | |
fontSize: ".8rem" | |
}), | |
); | |
<NavItem sub /> |
NewerOlder