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 webpackConfig = require('./config-webpack.default'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const { development } = require('./variables'); | |
const { replacePlugin } = require('./util'); | |
const htmlPlugin = new HtmlWebpackPlugin({ | |
template: 'src/index.html', | |
apiUrl: development.API_URL, | |
title: development.title | |
}); |
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
// es6 | |
const client = { | |
init(adapter) { | |
this.adapter = adapter; | |
}, | |
async getSpaces() { | |
const spaces = await this.adapter.makeRequest({ | |
method: 'GET', |
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, { Component } from 'react'; | |
import Rx from 'rxjs/Rx'; | |
import './App.css'; | |
import Observable from './components/Observable'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> |
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, { Component, PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
import classnames from 'classnames'; | |
import { debounce } from 'lodash'; | |
import Logo from '../components/Logo'; | |
import EntityAvatar from './EntityAvatar'; | |
import LanguageSwitcher from '../containers/LanguageSwitcher'; | |
import UserDropDown from '../modules/user/components/UserDropDown'; |