fixed some typos, added support for community icons

This commit is contained in:
CaramelKat
2020-05-16 02:41:30 -05:00
committed by Jay
parent a3bbf8ee29
commit ddb032726a
3 changed files with 7 additions and 7 deletions

View File

@@ -40,7 +40,7 @@ router.post('/new', upload.none(), async function (req, res, next) {
community_id: snowflake.nextId(),
is_recommended: req.body.is_recommended,
name: req.body.name,
browser_icon: req.body.browser_icon[0],
browser_icon: req.body.browser_icon,
browser_header: req.body.browser_header,
description: req.body.description,
};

View File

@@ -19,7 +19,7 @@ router.get('/', function (req, res) {
' }\n' +
'</style>\n' +
'<body>\n' +
'<h1>Miiverse Temp Admin Pannel</h1>\n' +
'<h1>Pretendo Miiverse Demo</h1>\n' +
'\n' +
'<form action="" id="communitySelection">\n' +
'</form>\n' +
@@ -87,18 +87,18 @@ router.get('/admin/communities/new', function (req, res) {
' <input type="text" id="description" name="description"><br>\n' +
' \n' +
' <label for="title_ids">USA Title ID:</label><br>\n' +
' <input type="text" id="title_ids" name="title_ids"><br>\n' +
' <input type="text" id="title_ids" name="title_ids[]"><br>\n' +
' \n' +
' <label for="title_ids">EUR Title ID:</label><br>\n' +
' <input type="text" id="title_ids" name="title_ids"><br>\n' +
' <input type="text" id="title_ids" name="title_ids[]"><br>\n' +
' \n' +
' <label for="title_ids">JPN Title ID:</label><br>\n' +
' <input type="text" id="title_ids" name="title_ids"><br>\n' +
' <input type="text" id="title_ids" name="title_ids[]"><br>\n' +
' \n' +
' <label for="icon">System Icon (B64 TGA):</label><br>\n' +
' <input type="text" id="icon" name="icon"><br>\n' +
' \n' +
' <label for="browser_icon">Browser Icon URI:</label><br>\n' +
' <label for="browser_icon">Browser Icon URL:</label><br>\n' +
' <input type="text" id="browser_icon" name="browser_icon"><br>\n' +
' \n' +
' Is Recommended?\n' +

View File

@@ -18,7 +18,7 @@ router.get('/', function (req, res) {
'<th>Screen Name</th>' +
'<th>Body Text</th>' +
'<th>Yeah Count</th>' +
'<th">Painting</th>' +
'<th>Painting</th>' +
'</tr>';
for(let i = 0; i < posts.length; i++)
{