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
| interface IFileOwner { | |
| files: App.Collections.ITextFileDAO[]; | |
| } | |
| export const ClassUtils = { | |
| alphanumSort<T>(array: Array<T>, selector?: (obj: T) => string, sensitivity = 'base') { | |
| return array.sort((a, b) => selector(a).localeCompare(selector(b), undefined, {numeric: true, sensitivity})); | |
| }, | |
| indexArray(arr: any[]): any[] { | |
| if (arr.length === 0) { |
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 path = require('path'); | |
| var express = require('express'); | |
| var webpack = require('webpack'); | |
| var config = require('./webpack.config'); | |
| var app = express(); | |
| var compiler = webpack(config); | |
| var port = process.env.PORT || 3000; | |
| app.use(require('webpack-dev-middleware')(compiler, { |
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 path = require('path'); | |
| var express = require('express'); | |
| var webpack = require('webpack'); | |
| var config = require('./webpack.config'); | |
| var app = express(); | |
| var compiler = webpack(config); | |
| var port = process.env.PORT || 3000; | |
| app.use(require('webpack-dev-middleware')(compiler, { |
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
| { | |
| "name": "YOUR NAME", | |
| "version": "1.0.0", | |
| "description": "Boilerplate", | |
| "main": "index.js", | |
| "scripts": { | |
| "start": "./node_modules/webpack-dashboard/bin/webpack-dashboard.js -t 'React-Redux Boilerplate' -- ./node_modules/webpack-dev-server/bin/webpack-dev-server.js", | |
| "build": "rm -rf ./build && NODE_ENV=\"production\" ./node_modules/webpack/bin/webpack.js", | |
| "preview": "NODE_ENV=\"production\" ./node_modules/webpack-dashboard/bin/webpack-dashboard.js -t 'Preview Mode - React-Redux Boilerplate' -- ./node_modules/webpack-dev-server/bin/webpack-dev-server.js", | |
| }, |
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 { BrowserRoute, Match, Miss } from 'react-router'; | |
| import { MainLayout, HomePage, Other } from './components'; | |
| const MatchWithMainLayout = ({ exactly, pattern, component: Component }: any) => { | |
| return ( | |
| <Match exactly={exactly} pattern={pattern} render={(props: any) => ( | |
| <MainLayout><Component {...props} /></MainLayout> | |
| )} /> | |
| ); | |
| }; |
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 React from 'react'; | |
| import Helmet from 'react-helmet'; | |
| import { style } from 'typestyle'; | |
| import { i18n } from 'es2015-i18n-tag'; | |
| const content = style({ margin: '30px' }); | |
| export class Layout extends React.Component { | |
| static contextTypes = { | |
| Ui: React.PropTypes.object |
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
| { | |
| "compileOnSave": true, | |
| "compilerOptions": { | |
| "target": "es6", | |
| "module": "es6", | |
| "declaration": false, | |
| "noImplicitAny": true, | |
| "removeComments": false, | |
| "noLib": false, | |
| "preserveConstEnums": true, |
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
| // Generated by typings | |
| // Source: ../../../../Downloads/semantic-ui-react.d.ts | |
| declare namespace _semanticUIReact { | |
| // import ListItemContent = __ReactMDL.ListItemContent; | |
| type InputType = 'color' | 'date' | 'datetime' | 'datetime-local' | 'email' | 'number' | 'range' | 'search' | 'select' | 'password' | 'tel' | 'text' | 'time' | 'url' | 'week' | |
| type SemanticCOLORS = 'red' | 'orange' | 'yellow' | 'olive' | 'green' | 'teal' | 'blue' | 'violet' | 'purple' | 'pink' | 'brown' | 'grey' | 'black' | 'twitter' | 'google plus' | 'facebook' | |
| type SemanticSOCIAL = 'facebook' | 'google plus' | 'vk' | 'twitter' | 'linkedin' | 'instagram' | 'youtube' |
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
| (node) v8::ObjectTemplate::Set() with non-primitive values is deprecated | |
| (node) and will stop working in the next major release. | |
| ==== JS stack trace ========================================= | |
| Security context: 0x344b796c9e59 <JS Object>#0# | |
| 1: .node [module.js:568] [pc=0x235a7436c884] (this=0x80763bb0bf9 <an Object with map 0x371dbfd17d41>#1#,module=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsevents/build/Release/fse.node>) | |
| 2: load [module.js:458] [pc=0x235a74334332] (this=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsevents/build/Release/fse.node>) | |
| 3: tryModuleLoad(aka tryModuleLoad) [module.js:417] [pc=0x235a74333e5d] (this=0x344b79604189 <undefined>,module=0x2d51400e1d21 <a Module with map 0x371dbfd18319>#2#,filename=0x2d51400e1cb1 <String[83]: /Users/tomi/Github/apps/chimp-tutorial/node_modules/fsev |
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
| // file composer | |
| interface IApolloDefinition { | |
| schema: string; | |
| queries?: Object; | |
| resolvers?: Object; | |
| mutations?: Object; | |
| queryText?: string; | |
| mutationText?: string; | |
| } |