mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 11:03:04 +00:00 
			
		
		
		
	Dummy data on default current_picture to avoid javascript errors
This commit is contained in:
		@@ -19,9 +19,21 @@ document.addEventListener("alpine:init", () => {
 | 
				
			|||||||
    identifications: [],
 | 
					    identifications: [],
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * The currently displayed picture
 | 
					     * The currently displayed picture
 | 
				
			||||||
 | 
					     * Default dummy data are pre-loaded to avoid javascript error
 | 
				
			||||||
 | 
					     * when loading the page at the beginning
 | 
				
			||||||
     * @type Picture
 | 
					     * @type Picture
 | 
				
			||||||
     **/
 | 
					     **/
 | 
				
			||||||
    current_picture: undefined,
 | 
					    current_picture: {
 | 
				
			||||||
 | 
					      is_moderated: true,
 | 
				
			||||||
 | 
					      id: null,
 | 
				
			||||||
 | 
					      name: "",
 | 
				
			||||||
 | 
					      display_name: "",
 | 
				
			||||||
 | 
					      compressed_url: "",
 | 
				
			||||||
 | 
					      profile_url: "",
 | 
				
			||||||
 | 
					      full_size_url: "",
 | 
				
			||||||
 | 
					      owner: "",
 | 
				
			||||||
 | 
					      date: new Date(),
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * The picture which will be displayed next if the user press the "next" button
 | 
					     * The picture which will be displayed next if the user press the "next" button
 | 
				
			||||||
     * @type ?Picture
 | 
					     * @type ?Picture
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user