config/
default.js
production.js
components/
button/
styles/
input/
This file contains hidden or 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 _ from 'lodash'; | |
| const wechatScript = '//res.wx.qq.com/open/js/jweixin-1.1.0.js'; | |
| export const loadSdk = () => | |
| new Promise((resolve) => { | |
| require('scriptjs')(wechatScript, () => { | |
| resolve(global.wx); | |
| }); | |
| }); |
This file contains hidden or 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
| .app { | |
| padding: 6px 20px 30px; | |
| } | |
| .subText { | |
| composes: text from "./Child.css"; | |
| color: red; | |
| } |
This file contains hidden or 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 docker-safe-rm { | |
| (docker ps -a -q -f name=$1$ || echo :) | xargs docker rm -f | |
| } |
This file contains hidden or 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
| # kill all docker process | |
| docker rm $(docker ps -a -q) | |
| # remove untaged images | |
| docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}') |
This file contains hidden or 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 { createStore } from 'reflux'; | |
| import GalleryActions from '../actions/GalleryActions' | |
| export default createStore({ | |
| init(){ | |
| this.galleryMap = {} | |
| this.listenTo(GalleryActions.listGalleries.completed, 'onGalleryListUpdate') | |
| this.listenTo(GalleryActions.getGallery.completed, 'onGalleryUpdate') |
This file contains hidden or 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 qs from 'qs' | |
| import scriptjs from 'scriptjs' | |
| const $schoolMap = document.getElementById('school-map'); | |
| const baiduMapUri = 'http://api.map.baidu.com/getscript'; | |
| const baiduMapConf = { | |
| v: '2.0', | |
| ak: 'YOUR_ACCESS_KEY' | |
| }; |
This file contains hidden or 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 Immutable from 'immutable'; | |
| import _ from 'lodash' | |
| import jsen from 'jsen' | |
| import isTypeArray from './../libs/isTypeArray'; | |
| import updateData from './../libs/updateData'; | |
| import completeSchema from './../libs/completeSchema'; | |
| function SchemaRecord(schema = {}) { |
This file contains hidden or 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
| var through = require('through'); | |
| var gutil = require('gulp-util'); | |
| var path = require('path'); | |
| module.exports = function() { | |
| var gulp = this; | |
| this.isWatching = false; | |
| this.setWatcher = function() { |
brew install docker&&brew install boot2docker.boot2docker downloadto get the lastest server iso.boot2docker initto host it to VitualBox.boot2docker upto start the boot2docker-vm. follow console and set environment variables. if you have AnyConnect VPN,DOCKER_HOSTshould be set totcp://127.0.0.1:2376and runVBoxManage controlvm boot2docker-vm natpf1 "docker,tcp,127.0.0.1,2376,,2376"docker versionto check anything is ok.