Convert upload page to vue

This commit is contained in:
2025-05-03 20:37:15 +02:00
parent 3571f93e41
commit 457bab2c18
6 changed files with 134 additions and 19 deletions

View File

@@ -38,7 +38,6 @@ export default {
posts: [],
nlFeedbacks: [],
nlLoading: false,
user: {name:'', email:''},
baseMaps: {},
baseMap: null,
messages: null,
@@ -86,11 +85,10 @@ export default {
},
provide() {
return {
user: this.user,
project: this.project
};
},
inject: ['spot', 'projects'],
inject: ['spot', 'projects', 'user'],
mounted() {
this.spot.addPage('project', {
onResize: () => {
@@ -112,7 +110,6 @@ export default {
this.initProject();
if(bFirstLoad) this.initLightbox();
this.initFeed();
if(bFirstLoad) this.initSettings();
this.initMap();
},
initProject() {
@@ -154,9 +151,6 @@ export default {
//Scroll to post
if(this.$parent.hash.items.length == 3) this.findPost({type: this.$parent.hash.items[1], id: this.$parent.hash.items[2]});
},
initSettings() {
this.user = this.spot.vars('user');
},
async initMap() {
//Get Map Info
const aoMarkers = await this.spot.get2('markers', {id_project: this.project.id});