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
//ERROR: | |
ERROR in ./app/index.js | |
Module parse failed: /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/app/index.js Unexpected token (6:16) | |
You may need an appropriate loader to handle this file type. | |
| var App = require('./component/App'); | |
| | |
| ReactDOM.render(<App />, document.getElementById('oauth-manager')); | |
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
module.exports = { | |
entry : __dirname + '/app/index.js', | |
module : { | |
loaders: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
loader: 'babel-loader' | |
}, | |
{ |
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
vagrant@branch:/$ sudo systemctl status nginx.service | |
● nginx.service - A high performance web server and a reverse proxy server | |
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) | |
Active: active (running) since Fri 2017-10-20 17:27:30 UTC; 2min 37s ago | |
Main PID: 3049 (nginx) | |
CGroup: /system.slice/nginx.service | |
├─3049 nginx: master process /usr/sbin/nginx -g daemon on; master_process on | |
├─3050 nginx: worker process | |
└─3051 nginx: worker process |
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
echo "--- Add PHP Apt Repository ---" | |
sudo add-apt-repository ppa:ondrej/php | |
echo "--- Add Ubuntu (for MySQL) Apt Repository ---" | |
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' | |
echo "--- Update Apt Repositories ---" | |
sudo apt-get update | |
echo "--- Install Apt Packages ---" |
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
==> default: gpg: | |
==> default: keyring `/tmp/tmp57ztgbxe/secring.gpg' created | |
==> default: gpg: | |
==> default: keyring `/tmp/tmp57ztgbxe/pubring.gpg' created | |
==> default: gpg: | |
==> default: requesting key E5267A6C from hkp server keyserver.ubuntu.com | |
==> default: gpg: | |
==> default: /tmp/tmp57ztgbxe/trustdb.gpg: trustdb created | |
==> default: gpg: | |
==> default: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported |
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
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.37","npm":"1.4.28"}) | |
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.10.37","npm":"1.4.28"}) | |
/ | |
> [email protected] postinstall /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/js/com_oauthmanager/node_modules/webpack/node_modules/uglifyjs-webpack-plugin | |
> node lib/post_install.js | |
module.js:340 | |
throw err; | |
^ |
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
Class CustomMigration extends Migration | |
{ | |
protected function createAuditTables ($table) | |
{ | |
$table->timestamp('auditCreated_at')->useCurrent = true; | |
$table->timestamp('auditUpdated_at')->useCurrent = 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
//Sidebar.js | |
var React = require('react'); | |
var ReactRouter = require('react-router-dom'); | |
var NavLink = ReactRouter.NavLink; | |
class SideBar extends React.Component { | |
render () { | |
return ( |
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": "com_oauthmanager", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"build": "webpack --progress --colors --watch --display-error-details" | |
}, | |
"author": "", |
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 React = require('react'); | |
var ReactRouter = require('react-router-dom'); | |
var Layout = require('pages/Layout'); | |
var Index = require('pages/Index'); | |
var Router = ReactRouter.BrowserRouter; | |
var Route = ReactRouter.Route; | |
var IndexRoute = ReactRouter.IndexRoute; | |
var History = ReactRouter.hashHistory; | |