Version 0.1
It does:
- Changes the port of the SSH server.
- Adds an admin user.
- Adds the user to SUDO-ers and disables the need of a password.
- Adds that SSH-port to UFW and enables it.
export default function ($f7, reopenPopup = true) { | |
if (module.hot) { | |
module.hot.addStatusHandler(status => { | |
if (status === 'idle') { | |
const activePopup = document.querySelector('.modal-in') | |
// next tick | |
setTimeout(() => { | |
// remove all popup backdrops if all popups are closed | |
if (!document.querySelectorAll('.modal-in').length) { |
git clone https://github.com/nolimits4web/Framework7-Vue
Framework7-Vue
npm install
npm run dist
npm remove Framework7-Vue
npm link <path to Framework7-Vue>
That's it!
// just an example. A cleaner way is to wrap the showLine-stuff in a dedicated component | |
<template> | |
<div> | |
<my-line v-if="showLine" :data="lineData" :options="options"> | |
</div> | |
</template> | |
<script> | |
export default { | |
data () { |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
To reduce the number of chunks of your project build with Nuxt.js add the next lines:
if (!this.dev) {
config.plugins.push(new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 3
}))
}
right under extend (config, ctx) {
of nuxt.config.js
.
Then build your project with npm run build
. Et voilà, No more than 3 chunks :-)
/** | |
* HTTP Server Settings | |
* (sails.config.http) | |
* | |
* Configuration for the underlying HTTP server in Sails. | |
* Only applies to HTTP requests (not WebSockets) | |
* | |
* For more information on configuration, check out: | |
* http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.http.html | |
*/ |
// config/autoreload.js | |
module.exports.autoreload = { | |
active: true, | |
usePolling: false, | |
dirs: [ | |
"api/models", | |
"api/controllers", | |
"api/services", | |
"config/locales" | |
], |
// tasks/register/compileAssets.js | |
module.exports = function (grunt) { | |
grunt.registerTask('compileAssets', [ | |
'clean:dev', | |
'jst:dev', | |
'less:dev', | |
'copy:dev', | |
'coffee:dev', | |
'stylus:dev' | |
]); |
import game from './game'; | |
import PlayerEntity from './entities/player'; | |
import PlayScreen from './screens/play'; | |
import TitleScreen from './screens/title'; | |
class Bootstrap { | |
constructor() { | |
// Initialize the video. |