Updated vue.js version
This commit is contained in:
parent
a140b57cd2
commit
da5490a923
@ -73,7 +73,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<script src="js/current-films.js"></script>
|
<script src="js/current-films.js"></script>
|
||||||
<script src="js/guide.js"></script>
|
<script src="js/guide.js"></script>
|
||||||
<script src="js/vue.min.js"></script>
|
<script src="js/vue.global.prod.js"></script>
|
||||||
<script src="js/script-guide.js"></script>
|
<script src="js/script-guide.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -63,7 +63,7 @@
|
|||||||
</aside>
|
</aside>
|
||||||
<ul v-cloak>
|
<ul v-cloak>
|
||||||
<li v-for="film in films">
|
<li v-for="film in films">
|
||||||
<img :src="'images/small/' + film.image" :srcset="'images/small/' + film.image + ' 1x, images/' + film.image + ' 2x'" :alt="film.name" loading="lazy">
|
<img :src="'images/small/' + film.image" :srcset="'images/small/' + film.image + ' 1x, images/' + film.image + ' 2x'" :alt="film.name">
|
||||||
<h2>{{film.name}}</h2>
|
<h2>{{film.name}}</h2>
|
||||||
<p>
|
<p>
|
||||||
<span v-if="film.description">{{film.description}}</span>
|
<span v-if="film.description">{{film.description}}</span>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
<script src="js/current-films.js"></script>
|
<script src="js/current-films.js"></script>
|
||||||
<script src="js/vue.min.js"></script>
|
<script src="js/vue.global.prod.js"></script>
|
||||||
<script src="js/script-index.js"></script>
|
<script src="js/script-index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -1,9 +1,10 @@
|
|||||||
const app = new Vue({
|
Vue.createApp({
|
||||||
el: "#guide",
|
data() {
|
||||||
data: {
|
return {
|
||||||
currentfilms: currentfilms,
|
currentfilms: currentfilms,
|
||||||
guide: guide,
|
guide: guide,
|
||||||
step: 1
|
step: 1
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
films: function() {
|
films: function() {
|
||||||
@ -57,4 +58,4 @@ const app = new Vue({
|
|||||||
this.step = step;
|
this.step = step;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}).mount('#guide');
|
||||||
@ -1,12 +1,13 @@
|
|||||||
const app = new Vue({
|
Vue.createApp({
|
||||||
el: "#app",
|
data() {
|
||||||
data: {
|
return {
|
||||||
currentfilms: currentfilms,
|
currentfilms: currentfilms,
|
||||||
search: '',
|
search: '',
|
||||||
type: 'all',
|
type: 'all',
|
||||||
format: 'all',
|
format: 'all',
|
||||||
sortBy: 'popularity',
|
sortBy: 'popularity',
|
||||||
sortDir: 'desc'
|
sortDir: 'desc'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
searchedfilms: function() {
|
searchedfilms: function() {
|
||||||
@ -79,4 +80,4 @@ const app = new Vue({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}).mount('#app');
|
||||||
@ -1,10 +1,11 @@
|
|||||||
const app = new Vue({
|
Vue.createApp({
|
||||||
el: "#random",
|
data() {
|
||||||
data: {
|
return {
|
||||||
currentfilms: currentfilms,
|
currentfilms: currentfilms,
|
||||||
tick: 0,
|
tick: 0,
|
||||||
selected: 0,
|
selected: 0,
|
||||||
show: false
|
show: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
films: function() {
|
films: function() {
|
||||||
@ -13,7 +14,7 @@ const app = new Vue({
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatPrice: function(price) {
|
formatPrice: function(price) {
|
||||||
return "€".repeat(price);
|
return '€'.repeat(price);
|
||||||
},
|
},
|
||||||
shuffle: function() {
|
shuffle: function() {
|
||||||
if(this.tick++ < 25) {
|
if(this.tick++ < 25) {
|
||||||
@ -25,4 +26,4 @@ const app = new Vue({
|
|||||||
this.show = true;
|
this.show = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}).mount('#random');
|
||||||
15754
js/vue.global.js
Normal file
15754
js/vue.global.js
Normal file
File diff suppressed because it is too large
Load Diff
1
js/vue.global.prod.js
Normal file
1
js/vue.global.prod.js
Normal file
File diff suppressed because one or more lines are too long
6
js/vue.min.js
vendored
6
js/vue.min.js
vendored
File diff suppressed because one or more lines are too long
@ -71,7 +71,7 @@
|
|||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
<script src="js/current-films.js"></script>
|
<script src="js/current-films.js"></script>
|
||||||
<script src="js/vue.min.js"></script>
|
<script src="js/vue.global.prod.js"></script>
|
||||||
<script src="js/script-random.js"></script>
|
<script src="js/script-random.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user