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 Paper from '@material-ui/core/Paper'; | |
import uuidv4 from 'uuid/v4'; | |
import TreeContext from './contexts/TreeContext'; | |
import Node from './components/Node'; | |
import NodeEditor from './components/NodeEditor'; | |
class Editor extends React.Component { |
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 Paper from 'material-ui/Paper'; | |
import withSession from '../hocs/withSession'; | |
class PostPreview extends React.PureComponent { | |
render() { | |
const { session } = this.props; | |
return ( | |
<Paper square elevation={1}> |
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 request = require('request-promise'); | |
const shell = require('shelljs'); | |
const dotenv = require('dotenv'); | |
const minimist = require('minimist'); | |
const yaml = require('js-yaml'); | |
const fs = require('fs'); | |
const semver = require('semver'); | |
const glob = require('glob'); | |
const snakeCase = require('snake-case'); |
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
FROM node | |
COPY package.json /tmp/package.json | |
RUN cd /tmp && npm install | |
RUN mkdir -p /src/app && cp -a /tmp/node_modules /src/app/ | |
WORKDIR /src/app | |
COPY . /src/app | |
RUN npm run build |
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
defmodule ExampleWeb.ArticleLive.Index do | |
alias Example.{Articles, Tags} | |
alias ExampleWeb.{ArticleLive, ComponentLive, Query} | |
use ExampleWeb, :live_view | |
@impl true | |
def render(assigns) do | |
~L""" | |
<div class="container max-w-screen-md mx-auto pt-6"> |