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
| html { | |
| font-size: 16px; | |
| } | |
| body { | |
| background-color: #fff; | |
| } | |
| h1, h2, h3, h4, h5, h6, p, a, span { | |
| font-weight: normal; |
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 { takeEvery, delay } from 'redux-saga' | |
| import { call, put } from 'redux-saga/effects' | |
| import { CHECK_APP } from 'constants/actionTypes' | |
| export function* rootSaga() { | |
| yield [ | |
| initSaga(), |
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 webpackDevMiddleware = require('webpack-dev-middleware') | |
| var webpackHotMiddleware = require('webpack-hot-middleware') | |
| var config = require('./webpack.config') | |
| var app = new (require('express'))() | |
| var port = 3000 | |
| var compiler = webpack(config) | |
| app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath })) |
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
| #!/bin/bash | |
| ./ngrok/ngrok http --region eu -host-header=rewrite sitename.com:80 |
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
| #!/bin/bash | |
| echo '' | |
| echo 'Building Front-End app ...' | |
| echo '--------------------------------------------' | |
| echo '1. install Webpack, Webpack-dev-server and Bower globally:' | |
| echo '' | |
| sudo npm install webpack webpack-dev-server bower -g |
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
| Math.floor(Math.random() * (max - min + 1)) + min; |
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 app = new (require('express'))() | |
| var port = 3000 | |
| app.get("/", function(req, res) { | |
| res.sendFile(__dirname + '/index.html') | |
| }) | |
| app.listen(port, function(error) { | |
| if (error) { | |
| console.error(error) |
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
| // Container.js | |
| import Form from './Form'; | |
| export default class Container extends Component { | |
| render() { | |
| const props = { | |
| initialValues: {firstName: 'toto'}, | |
| }; |
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
| let defaultItems = [ | |
| { | |
| index: 1, | |
| title: 'Book', | |
| count: '20', | |
| price: '30 $', | |
| infoText: 'A book is a set of written, printed, illustrated, or blank sheets, made of ink, paper, parchment, or other materials, fastened together to hinge at one side. A single sheet within a book is a leaf, and each side of a leaf is a page. A set of text-filled or illustrated pages produced in electronic format is known as an electronic book, or e-book.', | |
| }, | |
| { |
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
| {"status":3,"message":"Trying to get property of non-object","data":[{"file":"\/home\/vagrant\/mount\/backend\/app\/Http\/Controllers\/UserController.php","line":180,"function":"Laravel\\Lumen\\Concerns\\{closure}","class":"Laravel\\Lumen\\Application","type":"-\u003E","args":[8,"Trying to get property of non-object","\/home\/vagrant\/mount\/backend\/app\/Http\/Controllers\/UserController.php",180,{"request":{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},"xauth":"$2y$10$AUxsl9PXdno4vLWHdXVdV.NhTiMr1doQoRRa13Q3HeGTOySzCIEye","redis":{},"user":null}]},{"function":"currentUser","class":"App\\Http\\Controllers\\UserController","type":"-\u003E","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/home\/vagrant\/mount\/backend\/vendor\/illuminate\/container\/Container.php","line":507,"function":"call_user_func_array","args":[[{},"currentUser"],[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cooki |