Skip to content

Nolanrulesroblox/multiview.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiview.js

json data from API:


//this json assumes that the user is the author, total of 10 (only 4 shown) comments, and the logged in user has liked the post.
// SELF = the logged in user | AUTHOR = the person who made the post
[{"post_id":"QdUMx8c-launch-of-the-fourm","type":"image","title":"Launch of the Fourm!","images":"https:\/\/uc-1.nrrinc.net\/23952ffc9edd6d30fbec3c224868d8f1.jpg","post_body":"<div>Welcome to the Forum!\u00a0<\/div><div>What you can do<\/div><ul><li>Make Posts<\/li><li>Make Friends<\/li><li>Start\u00a0discussions<\/li><li>Make Profiles<\/li><li>Make the Forum Unique to you! change colors<\/li><\/ul><div><br \/><\/div><div>Soon there will be Ways to :<\/div><ul><li>Private Message Each other<\/li><li>Make your own Ads<\/li><li>Leave Comments<\/li><li>Even do Events!!<\/li><\/ul><div><br \/><\/div><div>There is Alot Coming, Stay Tooned!<\/div>","unix_time":"1651741262","metadata":null,"self":{"self_icon":"self.png","self_username":"nameofme","self_id":"124","auth":true,"isloggedin":true},"sha2":"bfd04365bedfa39cb71f820014c33cf1a12ddd1faff653a06f2affca2542cd4d","comments":{"count":10},"gen":{"gentime":1657785258,"genSERVER":"V7_r-US-S1","SSR_id":"QdUMx8c-launch-of-the-fourm"},"like":{"liked":true,"disliked":false,"likes":"","dislikes":"0"},"author":{"icon":"img.png","name":"THE NAME OF USER","id":"123"}}]

//this json assumes that the user is the author is <removed>, <removed> has left 2 comments, 1 hour apart. This is SOFT auth, no real auth is happening until a server POST request is made.
[{"name":"NRRINC","comment":"post comment","parent_id":"0","date":"1 second ago","id":"785","auth":true,"isOP":true},{"name":"NRRINC","comment":"Cool post!","parent_id":"0","date":"3 days ago","id":"777","auth":true,"isOP":true},{"name":"NRRINC","comment":"Thank you!","parent_id":"777","date":"29 seconds ago","id":"783","auth":true,"isOP":true},{"name":"NRRINC","comment":"reply of a reply","parent_id":"783","date":"16 seconds ago","id":"784","auth":true,"isOP":true}]

//this json is just a comment count.
[{"type":"total","count":4}]

end result expected:
this is upcoming project Dino Portal
image

About

post veiwer for DP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors