{
"compilerOptions": {
"baseUrl": "./src",
"target": "ES6",
"jsx": "preserve",
"allowSyntheticDefaultImports": true
},
"exclude": ["build", "node_modules"]
{
"workbench.statusBar.visible": false,
"workbench.startupEditor": "none",
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Atom One Dark",
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"editor.formatOnSave": true,
componentWillReceiveProps(nextProps) {
const currLocationKey = this.props.location.key;
const nextLocationKey = nextProps.location.key;
if (currLocationKey !== nextLocationKey) {
// do the magic here
}
}
Default options for Prettier - https://prettier.io/docs/en/options.html
.prettierrc
:
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
This file contains 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
body { | |
-webkit-text-size-adjust: none; | |
} |
var keyCode = {
/**
* keypress event key-codes
*/
'keyPress': {
'GraveAccent': 96, // `
'One': 49, // 1
'Two': 50, // 2
This file contains 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
1) Copy the /MyNameSpace/ folder in your /app/libraries/ directory | |
2) Create below listed files in /app/libraries/MyNameSpace/ directory and write your code. | |
3) Add "app/libraries" to autoload classmap object in composer.json file | |
4) Run "composer dump-autoload" command with your CLI. | |
5) Add Route::get('test', function() { return Myclass::myMethod(); }); closure function to your app/routes.php file. | |
6) Visit to page http://laravel/index.php/test and see the code in action. |
NewerOlder