Started work on emotes panel
This commit is contained in:
parent
6a10bf3dea
commit
633884534c
9 changed files with 242 additions and 7 deletions
20
src/controllers/panel/emoteController.js
Normal file
20
src/controllers/panel/emoteController.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*Canopy - The next generation of stoner streaming software
|
||||
Copyright (C) 2024 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/>.*/
|
||||
|
||||
//root index functions
|
||||
module.exports.get = async function(req, res){
|
||||
res.render('partial/panels/emote', {});
|
||||
}
|
||||
|
|
@ -20,6 +20,7 @@ const { Router } = require('express');
|
|||
|
||||
//local imports
|
||||
const placeholderController = require("../controllers/panel/placeholderController");
|
||||
const emoteController = require("../controllers/panel/emoteController");
|
||||
const popoutContainerController = require("../controllers/panel/popoutContainerController");
|
||||
|
||||
//globals
|
||||
|
|
@ -27,6 +28,7 @@ const router = Router();
|
|||
|
||||
//routing functions
|
||||
router.get('/placeholder', placeholderController.get);
|
||||
router.get('/emote', emoteController.get);
|
||||
router.get('/popoutContainer', popoutContainerController.get);
|
||||
|
||||
module.exports = router;
|
||||
|
|
|
|||
|
|
@ -127,6 +127,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.-->
|
|||
<script src="/js/channel/userlist.js"></script>
|
||||
<script src="/js/channel/player.js"></script>
|
||||
<script src="/js/channel/cpanel.js"></script>
|
||||
<script src="/js/channel/panels/emotePanel.js"></script>
|
||||
<script src="/js/channel/channel.js"></script>
|
||||
</footer>
|
||||
</html>
|
||||
34
src/views/partial/panels/emote.ejs
Normal file
34
src/views/partial/panels/emote.ejs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<!--Canopy - The next generation of stoner streaming software
|
||||
Copyright (C) 2024 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/panel/emote.css">
|
||||
<span class="title-span">
|
||||
<span class="title-filler-span"></span>
|
||||
<h3>Site Emotes <i class="bi-caret-down-fill" id="site-emotes-toggle"></i></h3>
|
||||
<span class="title-filler-span"></span>
|
||||
</span>
|
||||
<div class="emote-panel-list" id="emote-panel-site-list"></div>
|
||||
<span class="title-span">
|
||||
<span class="title-filler-span"></span>
|
||||
<h3>Channel Emotes <i class="bi-caret-down-fill" id="chan-emotes-toggle"></i></h3>
|
||||
<span class="title-filler-span"></span>
|
||||
</span>
|
||||
<div class="emote-panel-list" id="emote-panel-chan-list"></div>
|
||||
<span class="title-span">
|
||||
<span class="title-filler-span"></span>
|
||||
<h3>Personal Emotes <i class="bi-caret-down-fill" id="personal-emotes-toggle"></i></h3>
|
||||
<span class="title-filler-span"></span>
|
||||
</span>
|
||||
<div class="emote-panel-list" id="emote-panel-personal-list"></div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue