firebase.auth().onAuthStateChanged(user => {
if (user) {
store.dispatch('loggedUser', user);
}
new Vue(...);
});
return JSON.parse(
fs.readFileSync('./app/data/data.json')
); <------- ';'
{"navigationData":[{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"},{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"},{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"},{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"},{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"},{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"},{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"},{"name":"Link for display","url":"http://google.com"},{"name":"Looooong long items for test long plain text","url":"http://google.com"}]}
<div class="col-md-4" v-for="item in genres" :key="item.id">
<Genre :id="item.id" :name="item.name"></Genre>
</div>
<div class="container">
<img class="center" src="...">
<img class="left" src="...">
<img class="right" src="...">
</div>
.container {
display: flex;
}
.center {
order: 2;
}
.left {
order: 1;
visibility: hidden;
}
.right {
order: 3;
visibility: hidden;
}
.center:hover ~ .left,
.center:hover ~ .right {
visibility: visible;
}
wp_enqueue_style('main', get_template_directory_uri() . '/css/emmet-style.min.css', array(
'bootstrap',
'font-awesome'
), mp_emmet_get_theme_version(), 'all');
mp_emmet_get_theme_version()
filemtime($css_file)
const data = new FormData();
data.append('sampleFile', this.file);
fetch('http://localhost:3000/upload/', {
method: 'post',
body: data,
})
@change="submitFile($event.target.files[0])"
methods: {
submitFile(file) {
...
el: '.slidernav'
el: this.querySelector('.slidernav')
Vue cannot detect the following changes to an array <...> When you directly set an item with the index
this.terain[x][y] = Number(this.cursorBlock)
this.$set(this.terain[x], y, +this.cursorBlock);
// или
this.terain[x].splice(y, 1, this.cursorBlock | 0);