mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 20:35:16 +00:00
Deprecate movies system
This commit is contained in:
@ -32,7 +32,6 @@
|
||||
<li class="bold"><a href="#comments" class="waves-effect waves-teal">Comments</a></li>
|
||||
<li class="bold"><a href="#likes" class="waves-effect waves-teal">Likes</a></li>
|
||||
<li class="bold"><a href="#survey-responses" class="waves-effect waves-teal">Responses to surveys</a></li>
|
||||
<li class="bold"><a href="#movies" class="waves-effect waves-teal">Movies</a></li>
|
||||
<li class="bold"><a href="#all-conversations-message" class="waves-effect waves-teal">Conversations Messages (ALL)</a></li>
|
||||
<li class="bold"><a href="#conversations" class="waves-effect waves-teal">Conversations</a></li>
|
||||
</ul>
|
||||
@ -168,33 +167,6 @@
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Entire movies list -->
|
||||
<div id="movies" class="category container">
|
||||
|
||||
<h1>Your movies</h1>
|
||||
|
||||
|
||||
<table id="full-movie-list-table">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Number</th>
|
||||
<th>Name</th>
|
||||
<th>File type</th>
|
||||
<th>File size</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
<!-- Movies will go here -->
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Entire list of conversation messages -->
|
||||
<div id="all-conversations-message" class="category container">
|
||||
@ -243,7 +215,6 @@
|
||||
<script src="assets/js/categories/comments.js"></script>
|
||||
<script src="assets/js/categories/likes.js"></script>
|
||||
<script src="assets/js/categories/survey.js"></script>
|
||||
<script src="assets/js/categories/movies.js"></script>
|
||||
<script src="assets/js/categories/allConversationMessages.js"></script>
|
||||
<script src="assets/js/categories/conversations.js"></script>
|
||||
<script src="assets/js/main.js"></script>
|
||||
|
@ -1,30 +0,0 @@
|
||||
/**
|
||||
* Movies category
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
/**
|
||||
* Apply the list of movies of the user
|
||||
*/
|
||||
function ApplyMovies(){
|
||||
|
||||
let target = document.querySelector("#full-movie-list-table tbody");
|
||||
|
||||
//Process the list of movies
|
||||
data.movies.forEach(movie => {
|
||||
|
||||
createElem2({
|
||||
appendTo: target,
|
||||
type: "tr",
|
||||
innerHTML:
|
||||
"<td>" + movie.id + "</td>" +
|
||||
"<td>" + movie.name + "</td>" +
|
||||
"<td>" + movie.file_type + "</td>" +
|
||||
"<td>" + movie.size + "</td>" +
|
||||
"<td> <a href='"+getFilePathFromURL(movie.url)+"'>Open</a></td>"
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -136,21 +136,6 @@ function ApplyPosts(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
//Post with movie
|
||||
if(post.kind == "movie"){
|
||||
|
||||
//Display the movie only (movies have a dedicated tab)
|
||||
createElem2({
|
||||
appendTo: cardContent,
|
||||
type: "a",
|
||||
href: getFilePathFromURL(post.video_info.url),
|
||||
innerHTML: "Open movie"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Post with weblink
|
||||
if(post.kind == "weblink"){
|
||||
|
||||
|
@ -79,7 +79,6 @@ xhr.onload = function(){
|
||||
ApplyCommentsList();
|
||||
ApplyUserLikes();
|
||||
ApplySurveyResponses();
|
||||
ApplyMovies();
|
||||
ApplyAllConversationMessages();
|
||||
ApplyConversations();
|
||||
}
|
||||
|
Reference in New Issue
Block a user