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 Database from '$stores/db' | |
import Select from 'react-select' | |
import * as T from '../../types' | |
type HeaderState = { value: number } | |
type PropsState = { data: { items: Array<T.ItemEntry> } } | |
@Database.provide() | |
@component | |
export default class Header { |
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
'use strict' | |
/* @flow */ | |
import { Emitter, CompositeDisposable } from 'sb-event-kit' | |
import { getRandomInt } from '$helpers.js' | |
import type { Disposable } from 'sb-event-kit' | |
type Config = { | |
host: string | |
} |
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
/*! __LICENSE__ */ | |
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Horizon=e():t.Horizon=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,o){r.apply(this,[t,e,o].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){"use strict";n(89),n(88),n(90),n(91),"undefined"!=typeof window&&("undefined"!=typeof window.Rx||(window.Rx=n(10))),t.exports=n(77)},[188,74,51,9],function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")() |
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 {spring} from 'react-motion' | |
view Carousel { | |
const context = initContext(view, { | |
colors: atom() | |
}) | |
const pro = initPro(view, { | |
children: atom(), | |
width: M.defaultAtom(200), |
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
view Gallery { | |
let data | |
(async () => | |
data = await fetch.data($` | |
User { | |
pictures(first: 10) { | |
count, pictures | |
} | |
} |
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
function getSource() { | |
if (source.hasOwnProperty('length')) { | |
return new Map(source.map((item) => [item, item])) | |
} else { | |
return new Map(Object.keys(source).map((key) => [key, source[key]])) | |
} | |
} | |
function getQuery(key) { | |
return !multiple && value ? getSource().get(key) : '' |
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
➜ ~ npm install -g flint | |
npm WARN install:[email protected] ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/flint/node_modules/flint-runner/node_modules/alphanum-sort' -> '/usr/local/lib/node_modules/flint/node_modules/alphanum-sort' | |
npm WARN install:[email protected] ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/flint/node_modules/flint-runner/node_modules/amdefine' -> '/usr/local/lib/node_modules/flint/node_modules/amdefine' | |
npm WARN install:[email protected] ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/flint/node_modules/flint-runner/node_modules/ansi-styles' -> '/usr/local/lib/node_modules/flint/node_modules/ansi-styles' | |
npm WARN install:[email protected] ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/flint/node_modules/flint-runner/node_modules/ansi-wrap' -> '/usr/local/lib/node_modules/flint/node_modules/ansi-wrap' | |
npm WARN install:[email protected] ENOENT: no such file or directory, rename '/usr/local/lib/node_mo |
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 {spring} from 'react-motion' | |
view Carousel { | |
const context = initContext(view, { | |
colors: atom() | |
}) | |
const pro = initPro(view, { | |
children: atom(), | |
width: M.defaultAtom(200), |
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 = { | |
loaders: | |
[ | |
{ test: /\.css$/, loaders: ['style', 'css'] }, | |
{ test: /\.json$/, loader: "json" } | |
], | |
// resolveLoader: { | |
// root: '/Users/nw/flint/packages/runner' | |
// }, | |
resolve: { |
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 fns from './a' | |
view One { | |
var a = fns.aa() | |
} | |
view Two { | |
var b = fns.bb() | |
} |