##This is a list of good alias for Laravel
use: nano ~/.bash_profile
When you have SSH'et into Vagrant
| downloadPlan() { | |
| let formData = document.getElementById("planComponent").innerHTML | |
| axios.post('/api/training-plans/download', {responseType: 'arraybuffer', data: formData}) | |
| .then(response => { | |
| this.downloadFile(response, 'customFilename') | |
| this.$toasted.show('Nu har nu downloadet planen', {type: 'success'}) | |
| }, response => { | |
| this.$toasted.show('Planen kunne ikke downloades, prøv igen', {type: 'error'}) | |
| console.warn('error from download_contract') |
| downloadPlan() { | |
| let formData = document.getElementById("planComponent").innerHTML | |
| axios.post('/api/training-plans/download', {responseType: 'arraybuffer', data: formData}) | |
| .then(response => { | |
| this.downloadFile(response, 'customFilename') | |
| this.$toasted.show('Nu har nu downloadet planen', {type: 'success'}) | |
| }, response => { | |
| this.$toasted.show('Planen kunne ikke downloades, prøv igen', {type: 'error'}) | |
| console.warn('error from download_contract') |
| <?php | |
| class BadWordFilter | |
| { | |
| /** | |
| * @var array | |
| **/ | |
| public $badWords = ['fuck', 'idiot']; |
| module.exports = { | |
| data() { | |
| return { | |
| personData: [] | |
| } | |
| }, | |
| ready() { | |
| console.log('ready'); |
| /* | |
| * This component adds domains to the DB | |
| */ | |
| module.exports = { | |
| methods: { | |
| /** | |
| * Add domain to the DB | |
| */ | |
| createDomain: function() { |
| /* | |
| * test | |
| */ | |
| Vue.component('domainKeeper-test', { | |
| template: '<p>A custom component!</p>' | |
| }); |
| var addDomain = Vue.extend({ | |
| }); |
| function updateCenterStats(cid) | |
| { | |
| console.log('clicked'); | |
| //var checkbox = $("input[type='checkbox']").val(); | |
| var checkbox = $("input[type='checkbox']").prop('checked'); | |
| console.log('checkbox: '+ checkbox); | |
| var center = null; | |
| $.ajax({ |
##This is a list of good alias for Laravel
use: nano ~/.bash_profile
When you have SSH'et into Vagrant
| // ---- | |
| // Sass (v3.4.12) | |
| // Compass (v1.0.3) | |
| // ---- | |
| /** | |
| * This file is a helper to easy make media queries. | |
| * | |
| * How to use: | |
| * @include respond-to(small) { ... } |