feat: Implement server-side comment preloading for improved performance and introduce new comment features including pinned comments, locked threads, and custom emojis.

This commit is contained in:
x
2026-01-25 15:12:57 +01:00
parent 68011c60de
commit bf5996d2ba
6 changed files with 108 additions and 15 deletions

View File

@@ -126,4 +126,18 @@
</div>
</div>
<div id="comments-container" data-item-id="{{ item.id }}" @if(session)data-user="{{ session.user }}"
@if(session.admin)data-is-admin="true" @endif @endif @if(item.is_comments_locked)data-is-locked="true" @endif></div>
@if(session.admin)data-is-admin="true" @endif @endif @if(item.is_comments_locked)data-is-locked="true" @endif>
<div class="comments-header">
<h3>Comments @if(item.is_comments_locked)🔒@endif</h3>
<div class="comments-controls">
<span>Loading...</span>
</div>
</div>
@if(session && session.user && !item.is_comments_locked)
<div class="comment-input main-input">
<textarea placeholder="Loading comment section..." disabled></textarea>
</div>
@endif
</div>
<script id="initial-comments" type="application/json">{{ commentsJSON }}</script>
<script id="initial-subscription" type="application/json">{{ isSubscribed }}</script>