mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Created comments component.
This commit is contained in:
		
							
								
								
									
										9
									
								
								assets/js/components/comments/interface.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								assets/js/components/comments/interface.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Comments interface with the server
 | 
			
		||||
 * 
 | 
			
		||||
 * @author Pierre HUBERT
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
ComunicWeb.components.comments.interface = {
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										23
									
								
								assets/js/components/comments/ui.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								assets/js/components/comments/ui.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Comments UI
 | 
			
		||||
 * 
 | 
			
		||||
 * @author Pierre HUBERT
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
ComunicWeb.components.comments.ui = {
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Display a list comments
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @param {Object} infos Informations about the comments
 | 
			
		||||
	 * @param {int} postID The ID of the post attached to the comments
 | 
			
		||||
	 * @param {HTMLElement} target The target for the comments
 | 
			
		||||
	 */
 | 
			
		||||
	display: function(infos, postID, target){
 | 
			
		||||
		
 | 
			
		||||
		//First, get informations about the users
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										11
									
								
								assets/js/components/comments/utils.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								assets/js/components/comments/utils.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Comments utilities
 | 
			
		||||
 * 
 | 
			
		||||
 * @author Pierre HUBERT
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
ComunicWeb.components.comments.utils = {
 | 
			
		||||
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user