Just a bootstrap for setting up Angular-based pages with bootstrap.css and angular-strap preloaded.
A Pen by Michael Gilley on CodePen.
| { | |
| "workbench.colorTheme": "One Dark Pro", | |
| "window.zoomLevel": 0, | |
| "editor.fontSize": 14, | |
| "editor.rulers": [ | |
| 80, | |
| 100 | |
| ], | |
| "editor.matchBrackets": false, | |
| "workbench.iconTheme": "vscode-icons", |
| Webpack 1.14.0 - | |
| 0fc7c8e3f24ca7e080ef.0.js 173 kB 0 [emitted] | |
| e5c1b9de170b3749e7ae.main.js 950 kB 1 [emitted] main | |
| 5e5e7253128f8f39d05f.2.js 371 kB 2 [emitted] | |
| 9c25f1beb063d867795f.3.js 189 kB 3 [emitted] | |
| 8fa221ea2c5f53825993.4.js 212 kB 4 [emitted] | |
| 6a24971d1bdd638e29a4.5.js 157 kB 5 [emitted] | |
| 77bc8e86b3f0aecf5ac3.6.js 168 kB 6 [emitted] | |
| 2c0272862830fa673b27.7.js 106 kB 7 [emitted] |
| { | |
| "extends": "airbnb", | |
| "rules": { | |
| "semi": [2, "never"], | |
| "no-use-before-define": 0, | |
| "no-underscore-dangle": 0, | |
| "space-before-function-paren": [2, "always"] | |
| } | |
| } |
| no-underscore-dangle: 0 | |
| global-require: 0 | |
| no-bitwise: 0 | |
| max-len: [2, {code: 100, ignoreComments: true, ignoreTemplateLiterals: true }] | |
| consistent-return: 0 | |
| no-mixed-operators: 0 | |
| no-plusplus: 0 | |
| no-continue: 0 | |
| class-methods-use-this: 0 | |
| # comma-dangle: [2, { functions: "never", arrays: "always-multiline", objects: "always-multiline" }] |
| import { put, call, all } from 'redux-saga/effects'; | |
| import xhr from 'services/xhr'; | |
| const trailingSlashes = /\/*$/; | |
| const filterAllActions = actions => all([].concat(actions).map(a => !!a && put(a)).filter(a => a)); | |
| // Run a single api call inline | |
| // example: | |
| // yield fork(simpleApiSaga, myApi.get, { |
| import React, { Component, PropTypes } from 'react'; | |
| import Button from 'grommet/components/Button'; | |
| import Spinning from 'grommet/components/icons/Spinning'; | |
| import './styles.scss'; | |
| export const SimpleBusyButton = ({ enabled, primary, ...props }) => { | |
| const onClick = enabled ? props.onClick : undefined; | |
| const icon = enabled ? props.icon : <Spinning />; |
| import Backoff from 'backo2'; | |
| const BrowserWebSocket = global.WebSocket || global.MozWebSocket; | |
| const DEF_PING_TIMEOUT = 2 * 60 * 1000; | |
| const PONG = { op: 'PONG' }; | |
| export default class Socket { | |
| constructor(opts = {}) { | |
| this.uri = this.buildUri(opts); |
| import webpack from 'webpack' | |
| import {writeFileSync} from 'fs' | |
| import {resolve} from 'path' | |
| import config from 'webpack.config.js' | |
| import webpackDevServer from 'webpack-dev-server' | |
| config.profile = true | |
| const compiler = webpack(config) |
Just a bootstrap for setting up Angular-based pages with bootstrap.css and angular-strap preloaded.
A Pen by Michael Gilley on CodePen.
I hereby claim:
To claim this, I am signing this object: