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 webpack = require('webpack') | |
| var path = require('path') | |
| var NODE_ENV = process.env.NODE_ENV || 'development' | |
| var conf = { | |
| entry: { | |
| 'front-end': [path.join(__dirname, '/client/front/front-end.js')], | |
| 'back-end': [path.join(__dirname, '/client/back/back-end.js')] | |
| }, | |
| output: { |
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, { Component } from 'react' | |
| import Firebase from 'firebase' | |
| import { FIREBASE_URL } from '../../lib/consts' | |
| import denormalize from './lib/denormalize' | |
| export var FirebaseConnect = (ComposedComponent, collections) => class extends Component { | |
| constructor (props) { | |
| super(props) | |
| this.state = { | |
| rootRef: new Firebase(FIREBASE_URL), |
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') | |
| module.exports = { | |
| 'config': path.resolve('server', 'config', 'database.json'), | |
| 'migrations-path': path.resolve('server', 'migrations'), | |
| 'models-path': path.resolve('server', 'models'), | |
| 'seeders-path': path.resolve('server', 'seeders'), | |
| } |
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 db from './models' | |
| import del from 'del' | |
| import fs from 'fs' | |
| import path from 'path' | |
| let { sequelize } = db | |
| const migrations_path = path.join(__dirname, '/migrations/') | |
| del([migrations_path]) | |
| .then(() => { |
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 AuthStore from './AuthStore' | |
| import NotificationsStore from './NotificationsStore' | |
| import SampleStore from './SampleStore' | |
| import UIStore from './UIStore' | |
| const notificationsStore = new NotificationsStore() | |
| const stores = { | |
| notificationsStore, | |
| authStore: new AuthStore(notificationsStore), |
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
| :global .notification-enter { | |
| opacity: 0.01; | |
| } | |
| :global .notification-enter.notification-enter-active { | |
| opacity: 1; | |
| transition: opacity 500ms ease-in; | |
| } | |
| :global .notification-leave { |
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 { observable, action } from 'mobx' | |
| import objectAssign = require('object-assign') | |
| class SampleStore { | |
| constructor (data?) { | |
| if (data) { | |
| this.setData(data) | |
| } else if (window['data']) { | |
| let wData = window['data'] as any |
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
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <script> | |
| var data = {{data | safe}} | |
| </script> | |
| <title>Typescript boilerplate</title> | |
| <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel='stylesheet' /> | |
| <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css' /> |
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' | |
| class Component_1 extends React.Component { | |
| constructor (props) { | |
| super(props) | |
| this.state = { | |
| loading: 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
| function rotateMatrix (matrix = []) { | |
| return matrix[0].map( | |
| (_row, i) => getRotatedRow(i, matrix) | |
| ) | |
| } | |
| function getRotatedRow (i, matrix) { | |
| return matrix.map( | |
| (_row, y) => matrix[(matrix.length - 1) - y][i] | |
| ) |
OlderNewer