Update templates/index.html

This commit is contained in:
admin 2026-10-08 00:37:32 +00:00
parent fd808d681b
commit 627a08ced6

View File

@ -25,13 +25,11 @@
class="header-dot" class="header-dot"
aria-hidden="true" aria-hidden="true"
></span> ></span>
<div class="header-room-copy"> <div class="header-room-copy">
<div id="headerTitle" class="header-title">Feed</div> <div id="headerTitle" class="header-title">Feed</div>
<div id="headerSubtitle" class="header-subtitle">Recent activity</div> <div id="headerSubtitle" class="header-subtitle">Recent activity</div>
</div> </div>
</div> </div>
<div class="header-navigation"> <div class="header-navigation">
<button <button
id="feedButton" id="feedButton"
@ -44,7 +42,6 @@
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/>
</svg> </svg>
</button> </button>
<button <button
id="pagesButton" id="pagesButton"
class="header-action pages-button" class="header-action pages-button"
@ -59,7 +56,6 @@
</g> </g>
</svg> </svg>
</button> </button>
<button <button
id="dmsButton" id="dmsButton"
class="header-action" class="header-action"
@ -72,7 +68,6 @@
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/> <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
</svg> </svg>
</button> </button>
<button <button
id="backButton" id="backButton"
class="header-action hidden" class="header-action hidden"
@ -81,7 +76,6 @@
> >
Back Back
</button> </button>
<select <select
id="teamSelect" id="teamSelect"
class="room-select team-select" class="room-select team-select"
@ -90,7 +84,6 @@
> >
<option value="">Loading teams…</option> <option value="">Loading teams…</option>
</select> </select>
<select <select
id="roomSelect" id="roomSelect"
class="room-select channel-select" class="room-select channel-select"
@ -99,9 +92,7 @@
> >
<option value="">Loading channels…</option> <option value="">Loading channels…</option>
</select> </select>
<div id="presenceLabel" class="presence-label hidden" aria-live="polite"></div> <div id="presenceLabel" class="presence-label hidden" aria-live="polite"></div>
<button <button
id="settingsButton" id="settingsButton"
class="header-action" class="header-action"
@ -114,10 +105,8 @@
</svg> </svg>
</button> </button>
</div> </div>
<div class="header-account-wrap"> <div class="header-account-wrap">
<div id="headerAccount" class="header-account">not signed in</div> <div id="headerAccount" class="header-account">not signed in</div>
<button <button
id="logoutButton" id="logoutButton"
class="header-action hidden" class="header-action hidden"
@ -132,7 +121,6 @@
</div> </div>
</div> </div>
</header> </header>
<main <main
id="feedBox" id="feedBox"
class="feed-box" class="feed-box"
@ -144,7 +132,6 @@
<div class="empty-card">Loading activity…</div> <div class="empty-card">Loading activity…</div>
</div> </div>
</main> </main>
<main <main
id="dmBox" id="dmBox"
class="dm-box hidden" class="dm-box hidden"
@ -156,7 +143,6 @@
<div class="empty-card">Sign in to view direct messages.</div> <div class="empty-card">Sign in to view direct messages.</div>
</div> </div>
</main> </main>
<main <main
id="chatBox" id="chatBox"
class="chat-box hidden" class="chat-box hidden"
@ -164,7 +150,6 @@
aria-busy="true" aria-busy="true"
aria-label="Channel messages" aria-label="Channel messages"
></main> ></main>
<main <main
id="threadBox" id="threadBox"
class="thread-box hidden" class="thread-box hidden"
@ -172,7 +157,6 @@
aria-busy="false" aria-busy="false"
aria-label="Message thread" aria-label="Message thread"
></main> ></main>
<main <main
id="pagesBox" id="pagesBox"
class="pages-box hidden" class="pages-box hidden"
@ -180,7 +164,6 @@
aria-busy="false" aria-busy="false"
aria-label="Team pages" aria-label="Team pages"
></main> ></main>
<main <main
id="pageDetailBox" id="pageDetailBox"
class="page-detail-box hidden" class="page-detail-box hidden"
@ -188,7 +171,6 @@
aria-busy="false" aria-busy="false"
aria-label="Page details" aria-label="Page details"
></main> ></main>
<main <main
id="profileBox" id="profileBox"
class="profile-box hidden" class="profile-box hidden"
@ -196,19 +178,15 @@
aria-busy="false" aria-busy="false"
aria-label="Profile" aria-label="Profile"
></main> ></main>
<div id="newMessagesBar" class="new-messages-bar hidden"> <div id="newMessagesBar" class="new-messages-bar hidden">
<button id="jumpToLatestButton" class="small-button" type="button"> <button id="jumpToLatestButton" class="small-button" type="button">
New messages · Jump to latest New messages · Jump to latest
</button> </button>
</div> </div>
<div id="typingBar" class="typing-bar hidden" aria-live="polite"></div> <div id="typingBar" class="typing-bar hidden" aria-live="polite"></div>
<div id="composerWrap" class="composer-wrap hidden"> <div id="composerWrap" class="composer-wrap hidden">
<form id="chatForm" class="composer"> <form id="chatForm" class="composer">
<label class="sr-only" for="messageInput">Message</label> <label class="sr-only" for="messageInput">Message</label>
<div class="composer-field-wrap"> <div class="composer-field-wrap">
<textarea <textarea
id="messageInput" id="messageInput"
@ -220,13 +198,12 @@
aria-label="Message" aria-label="Message"
disabled disabled
></textarea> ></textarea>
<div id="emojiAutocomplete" class="emoji-autocomplete hidden"></div>
<div class="composer-meta"> <div class="composer-meta">
<span id="attachmentName" class="attachment-name"></span> <span id="attachmentName" class="attachment-name"></span>
<span id="messageCount" class="message-count">0 / 1000</span> <span id="messageCount" class="message-count">0 / 1000</span>
</div> </div>
</div> </div>
<label <label
id="attachmentButton" id="attachmentButton"
class="attachment-button disabled" class="attachment-button disabled"
@ -236,26 +213,22 @@
> >
+ +
</label> </label>
<input <input
id="attachmentInput" id="attachmentInput"
class="sr-only" class="sr-only"
type="file" type="file"
accept=".txt,.pdf,.png,.jpg,.jpeg,.gif,.webp" accept=".txt,.pdf,.png,.jpg,.jpeg,.gif,.webp,.mp3,.wav,.ogg,.m4a,.aac,.flac,.mp4,.webm,.mov,.m4v,.ogv"
multiple multiple
disabled disabled
> >
<button id="sendButton" class="send-button" type="submit" disabled> <button id="sendButton" class="send-button" type="submit" disabled>
Send Send
</button> </button>
</form> </form>
</div> </div>
<div id="threadComposerWrap" class="composer-wrap hidden"> <div id="threadComposerWrap" class="composer-wrap hidden">
<form id="threadForm" class="composer"> <form id="threadForm" class="composer">
<label class="sr-only" for="threadInput">Reply in thread</label> <label class="sr-only" for="threadInput">Reply in thread</label>
<div class="composer-field-wrap"> <div class="composer-field-wrap">
<textarea <textarea
id="threadInput" id="threadInput"
@ -267,13 +240,11 @@
aria-label="Reply in thread" aria-label="Reply in thread"
disabled disabled
></textarea> ></textarea>
<div class="composer-meta"> <div class="composer-meta">
<span id="threadAttachmentName" class="attachment-name"></span> <span id="threadAttachmentName" class="attachment-name"></span>
<span id="threadMessageCount" class="message-count">0 / 1000</span> <span id="threadMessageCount" class="message-count">0 / 1000</span>
</div> </div>
</div> </div>
<label <label
id="threadAttachmentButton" id="threadAttachmentButton"
class="attachment-button disabled" class="attachment-button disabled"
@ -283,23 +254,20 @@
> >
+ +
</label> </label>
<input <input
id="threadAttachmentInput" id="threadAttachmentInput"
class="sr-only" class="sr-only"
type="file" type="file"
accept=".txt,.pdf,.png,.jpg,.jpeg,.gif,.webp" accept=".txt,.pdf,.png,.jpg,.jpeg,.gif,.webp,.mp3,.wav,.ogg,.m4a,.aac,.flac,.mp4,.webm,.mov,.m4v,.ogv"
multiple multiple
disabled disabled
> >
<button id="threadSendButton" class="send-button" type="submit" disabled> <button id="threadSendButton" class="send-button" type="submit" disabled>
Reply Reply
</button> </button>
</form> </form>
</div> </div>
</div> </div>
<section <section
id="authOverlay" id="authOverlay"
class="auth-overlay" class="auth-overlay"
@ -309,9 +277,7 @@
> >
<div class="auth-card"> <div class="auth-card">
<p></p> <p></p>
<div id="authNotice" class="notice" role="status"></div> <div id="authNotice" class="notice" role="status"></div>
<label class="sr-only" for="accessKeyInput">access key</label> <label class="sr-only" for="accessKeyInput">access key</label>
<input <input
id="accessKeyInput" id="accessKeyInput"
@ -323,7 +289,6 @@
maxlength="256" maxlength="256"
placeholder="private access key" placeholder="private access key"
> >
<label class="sr-only" for="usernameInput">Username</label> <label class="sr-only" for="usernameInput">Username</label>
<input <input
id="usernameInput" id="usernameInput"
@ -335,7 +300,6 @@
maxlength="30" maxlength="30"
placeholder="username" placeholder="username"
> >
<label class="sr-only" for="passwordInput">Password</label> <label class="sr-only" for="passwordInput">Password</label>
<input <input
id="passwordInput" id="passwordInput"
@ -345,16 +309,13 @@
maxlength="256" maxlength="256"
placeholder="password" placeholder="password"
> >
<div class="auth-actions"> <div class="auth-actions">
<button id="loginButton" class="button" type="button">sign in</button> <button id="loginButton" class="button" type="button">sign in</button>
<button id="registerButton" class="button secondary" type="button">create account</button> <button id="registerButton" class="button secondary" type="button">create account</button>
</div> </div>
<p class="auth-help"></p> <p class="auth-help"></p>
</div> </div>
</section> </section>
<section <section
id="blockedOverlay" id="blockedOverlay"
class="blocked-overlay hidden" class="blocked-overlay hidden"
@ -367,7 +328,6 @@
<p id="blockedMessage">Access to this chat service is unavailable.</p> <p id="blockedMessage">Access to this chat service is unavailable.</p>
</div> </div>
</section> </section>
<section <section
id="headerMenuOverlay" id="headerMenuOverlay"
class="header-menu-overlay hidden" class="header-menu-overlay hidden"
@ -380,7 +340,6 @@
<div id="headerMenuList" class="header-menu-list"></div> <div id="headerMenuList" class="header-menu-list"></div>
</div> </div>
</section> </section>
<section <section
id="reactionPopupOverlay" id="reactionPopupOverlay"
class="reaction-popup-overlay hidden" class="reaction-popup-overlay hidden"
@ -391,7 +350,6 @@
<div class="reaction-popup-card"> <div class="reaction-popup-card">
<h2 class="reaction-popup-title">Reactions</h2> <h2 class="reaction-popup-title">Reactions</h2>
<div id="reactionPopupGrid" class="reaction-popup-grid"></div> <div id="reactionPopupGrid" class="reaction-popup-grid"></div>
<div class="reaction-popup-custom"> <div class="reaction-popup-custom">
<input <input
id="reactionCustomInput" id="reactionCustomInput"
@ -409,15 +367,12 @@
Add Add
</button> </button>
</div> </div>
<div id="reactionPopupList" class="reaction-popup-list"></div> <div id="reactionPopupList" class="reaction-popup-list"></div>
<div class="dialog-actions"> <div class="dialog-actions">
<button id="closeReactionPopupButton" class="button secondary" type="button">Close</button> <button id="closeReactionPopupButton" class="button secondary" type="button">Close</button>
</div> </div>
</div> </div>
</section> </section>
<section <section
id="mediaOverlay" id="mediaOverlay"
class="media-overlay hidden" class="media-overlay hidden"
@ -444,7 +399,6 @@
</div> </div>
</div> </div>
</section> </section>
<section <section
id="callOverlay" id="callOverlay"
class="call-overlay hidden" class="call-overlay hidden"
@ -460,11 +414,8 @@
</div> </div>
<button id="closeCallPanelButton" class="button secondary" type="button">Hide</button> <button id="closeCallPanelButton" class="button secondary" type="button">Hide</button>
</div> </div>
<div id="callPeerLabel" class="call-peer-label">No active call</div> <div id="callPeerLabel" class="call-peer-label">No active call</div>
<audio id="remoteAudio" autoplay playsinline></audio> <audio id="remoteAudio" autoplay playsinline></audio>
<div class="call-actions"> <div class="call-actions">
<button id="startCallButton" class="button" type="button">Start call</button> <button id="startCallButton" class="button" type="button">Start call</button>
<button id="answerCallButton" class="button hidden" type="button">Answer</button> <button id="answerCallButton" class="button hidden" type="button">Answer</button>
@ -473,7 +424,6 @@
</div> </div>
</div> </div>
</section> </section>
<button <button
id="adminFab" id="adminFab"
class="admin-fab" class="admin-fab"
@ -483,7 +433,6 @@
> >
# #
</button> </button>
<section <section
id="adminPanel" id="adminPanel"
class="admin-panel" class="admin-panel"
@ -498,12 +447,10 @@
<strong>Moderation</strong> <strong>Moderation</strong>
<div class="header-subtitle"></div> <div class="header-subtitle"></div>
</div> </div>
<button id="closeAdminButton" class="button secondary" type="button"> <button id="closeAdminButton" class="button secondary" type="button">
Close Close
</button> </button>
</div> </div>
<div class="admin-actions"> <div class="admin-actions">
<button id="createRoomButton" class="button" type="button">Add chat</button> <button id="createRoomButton" class="button" type="button">Add chat</button>
<button id="clearMessagesButton" class="danger-button" type="button">Clear selected room</button> <button id="clearMessagesButton" class="danger-button" type="button">Clear selected room</button>
@ -511,12 +458,10 @@
<button id="notificationsToggleButton" class="button secondary" type="button">Notifications: off</button> <button id="notificationsToggleButton" class="button secondary" type="button">Notifications: off</button>
<button id="themeButton" class="button secondary" type="button" aria-label="Choose accent color">Accent color</button> <button id="themeButton" class="button secondary" type="button" aria-label="Choose accent color">Accent color</button>
</div> </div>
<div id="adminRooms" class="admin-rooms"></div> <div id="adminRooms" class="admin-rooms"></div>
<div id="adminUsers" class="admin-users"></div> <div id="adminUsers" class="admin-users"></div>
</div> </div>
</section> </section>
<section <section
id="dialogOverlay" id="dialogOverlay"
class="dialog-overlay hidden" class="dialog-overlay hidden"
@ -530,9 +475,7 @@
<div id="dialogActions" class="dialog-actions"></div> <div id="dialogActions" class="dialog-actions"></div>
</div> </div>
</section> </section>
<div id="statusToast" class="status-toast" role="status" aria-live="polite"></div> <div id="statusToast" class="status-toast" role="status" aria-live="polite"></div>
<script src="{{ url_for('static', filename='js/00-config.js', v=asset_version) }}" defer></script> <script src="{{ url_for('static', filename='js/00-config.js', v=asset_version) }}" defer></script>
<script src="{{ url_for('static', filename='js/01-api.js', v=asset_version) }}" defer></script> <script src="{{ url_for('static', filename='js/01-api.js', v=asset_version) }}" defer></script>
<script src="{{ url_for('static', filename='js/02-chat.js', v=asset_version) }}" defer></script> <script src="{{ url_for('static', filename='js/02-chat.js', v=asset_version) }}" defer></script>
@ -547,4 +490,4 @@
<script src="{{ url_for('static', filename='js/04-main.js', v=asset_version) }}" defer></script> <script src="{{ url_for('static', filename='js/04-main.js', v=asset_version) }}" defer></script>
<script src="{{ url_for('static', filename='js/07-team-channel-adapter.js', v=asset_version) }}" defer></script> <script src="{{ url_for('static', filename='js/07-team-channel-adapter.js', v=asset_version) }}" defer></script>
</body> </body>
</html> </html>