Converted pop-ups to standard HTML. None use templating features and the router was poorly written anywho.
This commit is contained in:
parent
ef0344942b
commit
878ee4bb2d
18 changed files with 35 additions and 89 deletions
|
|
@ -603,7 +603,7 @@ class queuePanel extends panelObj{
|
|||
|
||||
//Create entry title
|
||||
const entryTitle = document.createElement('p');
|
||||
entryTitle.textContent = entry[1].title;
|
||||
entryTitle.textContent = utils.unescapeEntities(entry[1].title);
|
||||
|
||||
//Tooltip generation
|
||||
//tooltip div
|
||||
|
|
|
|||
|
|
@ -1028,7 +1028,7 @@ class canopyAjaxUtils{
|
|||
|
||||
//Popup
|
||||
async getPopup(popup){
|
||||
var response = await fetch(`/popup/${popup}`,{
|
||||
var response = await fetch(`/popup/${popup}.html`,{
|
||||
method: "GET"
|
||||
});
|
||||
|
||||
|
|
|
|||
21
www/popup/addToPlaylist.html
Normal file
21
www/popup/addToPlaylist.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!-- 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/>. -->
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/popup/schedule.css"> -->
|
||||
<h3 class="popup-title">Add to Playlist From URL</h3>
|
||||
<div>
|
||||
<input id="playlist-add-media-popup-prompt" placeholder="Media URL">
|
||||
<button class="positive-button" id="playlist-add-media-popup-button">Add to playlist</button>
|
||||
</div>
|
||||
22
www/popup/changeEmail.html
Normal file
22
www/popup/changeEmail.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!-- 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/>. -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/changeEmail.css">
|
||||
<h3 id="email-change-popup-title" class="popup-title">Update Email</h3>
|
||||
<div id="email-change-popup-content">
|
||||
<p id="email-change-popup-caption">Enter new email and current password below:</p>
|
||||
<input type="email" placeholder="email" id="email-change-popup-email">
|
||||
<input type="password" placeholder="password" id="email-change-popup-password">
|
||||
</div>
|
||||
23
www/popup/changePassword.html
Normal file
23
www/popup/changePassword.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!-- 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/>. -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/changePassword.css">
|
||||
<h3 id="password-change-popup-title" class="popup-title">Update Password</h3>
|
||||
<div id="password-change-popup-content">
|
||||
<p id="password-change-popup-caption">Enter new and confirm current password below:</p>
|
||||
<input type="password" placeholder="Current Password" id="password-change-popup-old-password">
|
||||
<input type="password" placeholder="New Password" id="password-change-popup-new-password">
|
||||
<input type="password" placeholder="Confirm New Password" id="password-change-popup-confirm-new-password">
|
||||
</div>
|
||||
39
www/popup/channelUserBan.html
Normal file
39
www/popup/channelUserBan.html
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<!-- 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/>. -->
|
||||
<!-- I could turn this into partials which get called by both this and userBan but that seems like a lot of work to avoid a quick copy/pase
|
||||
even if I'm usually against that, sometimes you gotta break da rulez :P -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/ban.css">
|
||||
<h3 class="popup-title">Ban NULL</h3>
|
||||
<div class="ban-popup-content">
|
||||
<span>
|
||||
<label for="ban-popup-perm">Perma-Ban:</label>
|
||||
<input type="checkbox" name="ban-popup-perm" id="ban-popup-perm">
|
||||
</span>
|
||||
<span>
|
||||
<label id="ban-popup-expiration-prefix" for="ban-popup-expiration">Ban Expires In: </label>
|
||||
<input type="number" name="ban-popup-expiration" id="ban-popup-expiration" value="14">
|
||||
<label fid="ban-popup-expiration-postfix" or="ban-popup-expiration"> Days</label>
|
||||
</span>
|
||||
<span>
|
||||
<label id="ban-popup-alts-prefix" for="ban-popup-alts">Ban Alts: </label>
|
||||
<input type="checkbox" name="ban-popup-alts" id="ban-popup-alts" checked>
|
||||
</span>
|
||||
<span id="ban-popup-button-span">
|
||||
<button id="ban-popup-cancel-button">Cancel</button>
|
||||
<span id="ban-popup-button-span-spacer"></span>
|
||||
<button id="ban-popup-ban-button" class="danger-button">Ban</button>
|
||||
</span>
|
||||
</div>
|
||||
28
www/popup/clearMedia.html
Normal file
28
www/popup/clearMedia.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<!-- 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/>. -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/clearMedia.css">
|
||||
<h3 class="popup-title">Clear Media</h3>
|
||||
<div class="clear-media-popup-div">
|
||||
<span class="clear-media-input-span">
|
||||
<label for="clear-media-popup-start-time-prompt">Start:</label>
|
||||
<input name="clear-media-popup-start-time-prompt" type="datetime-local" id="clear-media-popup-start-time-prompt">
|
||||
</span>
|
||||
<span class="clear-media-input-span">
|
||||
<label for="clear-media-popup-end-time-prompt">End:</label>
|
||||
<input name="clear-media-popup-end-time-prompt" type="datetime-local" id="clear-media-popup-end-time-prompt">
|
||||
</span>
|
||||
<button class="danger-button" id="clear-media-popup-clear-button">Clear</button>
|
||||
</div>
|
||||
28
www/popup/newPlaylist.html
Normal file
28
www/popup/newPlaylist.html
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<!-- 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/>. -->
|
||||
<h3 class="popup-title">Create Playlist</h3>
|
||||
<div id="queue-create-playlist-popup-div">
|
||||
<input id="queue-create-playlist-popup-name" placeholder="Name">
|
||||
<textarea id="queue-create-playlist-popup-default-titles" placeholder="Default Titles"></textarea>
|
||||
<span>
|
||||
<label for="location">Save To:</label>
|
||||
<select name="location" id="queue-create-playlist-popup-location">
|
||||
<option value="Channel">Channel</option>
|
||||
<option value="User">Account</option>
|
||||
</select>
|
||||
</span>
|
||||
<button id="queue-create-playlist-popup-save" class="positive-button">Create Playlist</button>
|
||||
</div>
|
||||
24
www/popup/nukeChannel.html
Normal file
24
www/popup/nukeChannel.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!-- 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/>. -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/delete.css">
|
||||
<h3 id="delete-channel-popup-title" class="popup-title">Delete Channel</h3>
|
||||
<div>
|
||||
<p id="delete-channel-popup-content">WARNING: You are about to nuke channel '[CHANNEL]' off of the face of the fucking planet.<br>
|
||||
Enter '[CHANNEL]' below to confirm:</p>
|
||||
<span id="delete-channel-popup-prompt-span">
|
||||
<input type="text" id="delete-channel-popup-prompt">
|
||||
</span>
|
||||
</div>
|
||||
24
www/popup/nukeUser.html
Normal file
24
www/popup/nukeUser.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!-- 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/>. -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/delete.css">
|
||||
<h3 id="delete-account-popup-title" class="popup-title">Delete Account</h3>
|
||||
<div>
|
||||
<p id="delete-account-popup-content">WARNING: You are about to nuke your account off of the face of the fucking planet.<br>
|
||||
Enter your password below to confirm:</p>
|
||||
<span id="delete-account-popup-password-span">
|
||||
<input type="password" id="delete-account-popup-password">
|
||||
</span>
|
||||
</div>
|
||||
16
www/popup/placeholder.html
Normal file
16
www/popup/placeholder.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<!-- 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/>. -->
|
||||
<h1>This is a test popup!</h1>
|
||||
21
www/popup/playlistDefaultTitles.html
Normal file
21
www/popup/playlistDefaultTitles.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!-- 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/>. -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/playlistDefaultTitles.css">
|
||||
<h3 class="popup-title">Edit Playlist Default Titles</h3>
|
||||
<div id="playlist-default-titles-popup-div">
|
||||
<textarea id="playlist-default-titles-popup-prompt"></textarea>
|
||||
<button class="positive-button" id="playlist-default-media-popup-button">Change Titles</button>
|
||||
</div>
|
||||
21
www/popup/renamePlaylist.html
Normal file
21
www/popup/renamePlaylist.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!-- 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/>. -->
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/popup/schedule.css"> -->
|
||||
<h3 class="popup-title">Rename Playlist</h3>
|
||||
<div>
|
||||
<input id="playlist-rename-popup-prompt" placeholder="New Name">
|
||||
<button class="positive-button" id="playlist-rename-popup-button">Rename Playlist</button>
|
||||
</div>
|
||||
21
www/popup/scheduleMedia.html
Normal file
21
www/popup/scheduleMedia.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<!-- 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/>. -->
|
||||
<!-- <link rel="stylesheet" type="text/css" href="/css/popup/schedule.css"> -->
|
||||
<h3 class="popup-title">Schedule Media</h3>
|
||||
<div>
|
||||
<input type="datetime-local" id="schedule-media-popup-time-prompt">
|
||||
<button class="positive-button" id="schedule-media-popup-schedule-button">Schedule</button>
|
||||
</div>
|
||||
37
www/popup/userBan.html
Normal file
37
www/popup/userBan.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<!-- 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/>. -->
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/ban.css">
|
||||
<h3 class="popup-title">Ban NULL</h3>
|
||||
<div class="ban-popup-content">
|
||||
<span>
|
||||
<label for="ban-popup-perm">IP-Ban:</label>
|
||||
<input type="checkbox" name="ban-popup-ip" id="ban-popup-ip">
|
||||
</span>
|
||||
<span>
|
||||
<label for="ban-popup-perm">Perma-Ban:</label>
|
||||
<input type="checkbox" name="ban-popup-perm" id="ban-popup-perm">
|
||||
</span>
|
||||
<span>
|
||||
<label id="ban-popup-expiration-prefix" for="ban-popup-expiration">Ban Expires In: </label>
|
||||
<input type="number" name="ban-popup-expiration" id="ban-popup-expiration" value="14">
|
||||
<label fid="ban-popup-expiration-postfix" or="ban-popup-expiration"> Days</label>
|
||||
</span>
|
||||
<span id="ban-popup-button-span">
|
||||
<button id="ban-popup-cancel-button">Cancel</button>
|
||||
<span id="ban-popup-button-span-spacer"></span>
|
||||
<button id="ban-popup-ban-button" class="danger-button">Ban</button>
|
||||
</span>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue