Started work on porting improvements from admin panel to channel settings

This commit is contained in:
rainbow napkin 2026-10-28 22:26:58 -04:00
parent 07018196bb
commit b83ad40490
12 changed files with 104 additions and 36 deletions

View file

@ -24,17 +24,23 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
</head>
<body>
<%- include('partial/navbar', {user}); %>
<h1 class="panel-title"><%= unescape(channel.name) %> - Channel Settings</h1>
<div class="admin-panel-container-div">
<%- include('partial/channelSettings/info.ejs', {unescape, channel}); %>
<%- include('partial/channelSettings/userList.ejs'); %>
<%- include('partial/channelSettings/banList.ejs'); %>
<%- include('partial/channelSettings/settings.ejs', {unescape, channel}); %>
<%- include('partial/channelSettings/permList.ejs', {channel}); %>
<%- include('partial/channelSettings/tokeCommandList.ejs'); %>
<%- include('partial/channelSettings/emoteList.ejs'); %>
<div id="admin-panel-list-container">
<div id="admin-nav-list">
</div>
<div class="admin-panel-container-div">
<h1 class="panel-title"><%= unescape(channel.name) %> - Channel Settings</h1>
<div class="admin-panel-container-div">
<%- include('partial/channelSettings/info.ejs', {unescape, channel}); %>
<%- include('partial/channelSettings/userList.ejs'); %>
<%- include('partial/channelSettings/banList.ejs'); %>
<%- include('partial/channelSettings/settings.ejs', {unescape, channel}); %>
<%- include('partial/channelSettings/permList.ejs', {channel}); %>
<%- include('partial/channelSettings/tokeCommandList.ejs'); %>
<%- include('partial/channelSettings/emoteList.ejs'); %>
</div>
</div>
</div>
<button href="javascript:" class="danger-button" id="chan-delete">Delete Channel</button>
<footer>
<%- include('partial/scripts', {user}); %>
<script src="/js/popup/banPopup.js"></script>

View file

@ -13,7 +13,7 @@ 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/>. %>
<div class="admin-list-div">
<div class="admin-list-div" id="chan-ban-list">
<h3 id="channel-ban-title">Channel Bans:</h3>
<div class="control-prompt">
<input placeholder="Add Username..." id="new-ban-input" class="control-prompt">

View file

@ -13,7 +13,7 @@ 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/>. %>
<div id="emote-list-div" class="admin-list-div">
<div id="chan-emote-list" class="admin-list-div">
<h3>Emote List:</h3>
<div class="control-prompt">
<%# Probably not the cleanest way to do this but fuggit %>

View file

@ -13,7 +13,7 @@ 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/>. %>
<div class="admin-list-div">
<div class="admin-list-div" id="chan-info-list">
<h3 id="channel-info-title">Channel Info:</h3>
<div class="dynamic-container" id="channel-info-div">
<span class="channel-info-span" id="channel-info-thumbnail-span">

View file

@ -13,7 +13,7 @@ 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/>. %>
<div class="admin-list-div">
<div class="admin-list-div" id="chan-perm-list">
<h3> Permissions:</h3>
<div class="dynamic-container">
<form action="javascript:" class="admin-list-field">

View file

@ -13,7 +13,7 @@ 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/>. %>
<div class="admin-list-div">
<div class="admin-list-div" id="chan-settings-list">
<h3>Channel Preferences:</h3>
<div class="dynamic-container">
<form action="javascript:" class="admin-list-field">

View file

@ -13,7 +13,7 @@ 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/>. %>
<div id="toke-command-list-div" class="admin-list-div">
<div id="chan-toke-list" class="admin-list-div">
<h3>Toke Command List:</h3>
<div class="control-prompt">
!<input placeholder="Add Command..." id="new-toke-command-input" class="control-prompt">

View file

@ -13,7 +13,7 @@ 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/>. %>
<div class="admin-list-div">
<div class="admin-list-div" id="chan-user-list">
<h3 id="channel-rank-title">Channel Ranks:</h3>
<sup id="channel-rank-sup">Users set to default channel rank 'user' will NOT be listed below.</sup>
<div class="control-prompt">