<%# Canopy - The next generation of stoner streaming software
Copyright (C) 2024-2025 Rainbownapkin and the TTN Community

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>. %>

<!DOCTYPE html>
<html>
    <head>
        <%- include('partial/styles', {instance, user}); %>
        <%- include('partial/csrfToken', {csrfToken}); %>
        <link rel="stylesheet" type="text/css" href="/css/channel.css">
        <link rel="stylesheet" type="text/css" href="/css/panel.css">
        <title><%= instance %> - *DISCONNECTED*</title>
    </head>
    <body>
        <%- include('partial/navbar', {user}); %>
        <div class="channel" id="channel-flexbox">
            <%- include('partial/channel/mediaPanel') %>
            <%- include('partial/channel/chatPanel') %>
        </div>
    </body>
    <footer>
        <%- include('partial/scripts', {user}); %>
        <%# 3rd party code %>
        <script src="/socket.io/socket.io.min.js"></script>
        <script src="/lib/hls.js/hls.min.js"></script>
        <%# 1st party code %>
        <%# admin gunk %>
        <script src="/js/adminUtils.js"></script>
        <script src="/js/popup/banPopup.js"></script>
        <%# command/chat processing %>
        <script src="/js/channel/commandPreprocessor.js"></script>
        <script src="/js/channel/chatPostprocessor.js"></script>
        <%# client children %>
        <script src="/js/channel/chat.js"></script>
        <script src="/js/channel/userlist.js"></script>
        <script src="/js/channel/mediaHandler.js"></script>
        <script src="/js/channel/player.js"></script>
        <script src="/js/channel/pmHandler.js"></script>
        <script src="/js/channel/cpanel.js"></script>
        <%# panels %>
        <script src="/js/channel/panels/emotePanel.js"></script>
        <script src="/js/channel/panels/queuePanel/playlistManager.js"></script>
        <script src="/js/channel/panels/queuePanel/queuePanel.js"></script>
        <script src="/js/channel/panels/settingsPanel.js"></script>
        <script src="/js/channel/panels/pmPanel.js"></script>
        <%# main client %>
        <script src="/js/channel/channel.js"></script>
    </footer>
</html>