removed portal and ctr files

This commit is contained in:
CaramelKat 2020-04-26 00:49:41 -05:00 committed by jay.poff@outlook.com
parent 238935ba54
commit fd431a5f5a
70 changed files with 38 additions and 12275 deletions

View File

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 948 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 589 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 501 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 648 B

View File

@ -1,32 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>rverse</title>
<link rel="stylesheet" type="text/css" href="/css/n3ds/style.css"/>
<script src="/js/n3ds/libs.js"/>
<script src="/js/n3ds/olv.locale-en.js"/>
<script src="/js/n3ds/olv.js"/>
</head>
<body data-user-id="User" data-is-first-post="1" data-is-first-favorite="1" data-profile-url="/users/User">
<div id="body" data-region-id="2">
<div id="welcome-start" class="guest-page">
<div class="window-page">
<div class="window welcome-window">
<div class="window-title">
<p>Welcome to the Pretendo Network Miiverse placeholder.</p>
<p>This is just being used as a testbed for CAVE API functions at the moment.</p>
</div>
<div class="window-body">
<div class="window-body-inner message">
<p>You will need a Pretendo Network ID in order to create posts or create a profile. You can't do this yet though.</p>
<a href="#" class="black-button register">Link ID</a>
<a href="#" class="more-button" data-sound="SE_CTR_COMMON_SYSAPPLET_END">Exit</a>
</div>
</div>
</div>
</div>
</div>
</div>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,441 +0,0 @@
Olv.Locale.Data = {
"olv.datetime": {
"value": "MM/dd/yyyy h:mm a"
},
"olv.datetime.n3ds.date": {
"args": [2, 3, 1],
"value": "%s/%s/%s"
},
"olv.datetime.n3ds.date %1%2%3": {
"args": [2, 3, 1],
"value": "%s/%s/%s"
},
"olv.datetime.n3ds.date [_1][_2][_3]": {
"args": [2, 3, 1],
"value": "%s/%s/%s"
},
"olv.portal.age_gate.select_label": {
"value": "Please enter your date of birth."
},
"olv.portal.album.delete_confirm": {
"value": "Are you sure you want to delete this?"
},
"olv.portal.album.save_album_image": {
"value": "Save Screenshot"
},
"olv.portal.album.save_album_image.confirm": {
"value": "The screenshot has been saved. Continue using rverse?"
},
"olv.portal.back": {
"value": "Back"
},
"olv.portal.block": {
"value": "Block"
},
"olv.portal.blocklist.add": {
"value": "Block"
},
"olv.portal.blocklist.block_confirm": {
"value": "Are you sure you want to block this user? You will no longer receive friend requests from this user, and you will be less likely to encounter him or her in games."
},
"olv.portal.blocklist.block_confirm_to.for_n3ds": {
"args": [1],
"value": "Do you want to add %s to your blocked-user list?"
},
"olv.portal.blocklist.block_confirm_to.for_n3ds %1": {
"args": [1],
"value": "Do you want to add %s to your blocked-user list?"
},
"olv.portal.blocklist.block_confirm_to.for_n3ds [_1]": {
"args": [1],
"value": "Do you want to add %s to your blocked-user list?"
},
"olv.portal.blocklist.block_successed_to": {
"args": [1],
"value": "%s has been blocked."
},
"olv.portal.blocklist.block_successed_to %1": {
"args": [1],
"value": "%s has been blocked."
},
"olv.portal.blocklist.block_successed_to [_1]": {
"args": [1],
"value": "%s has been blocked."
},
"olv.portal.blocklist.delete": {
"value": "Unblock"
},
"olv.portal.blocklist.unblock_successed_to": {
"args": [1],
"value": "%s has been unblocked."
},
"olv.portal.blocklist.unblock_successed_to %1": {
"args": [1],
"value": "%s has been unblocked."
},
"olv.portal.blocklist.unblock_successed_to [_1]": {
"args": [1],
"value": "%s has been unblocked."
},
"olv.portal.button.remove": {
"value": "Yes"
},
"olv.portal.cancel": {
"value": "Cancel"
},
"olv.portal.close": {
"value": "Close"
},
"olv.portal.confirm.remove_from_blocklist": {
"value": "Remove this user from your blocked-user list?"
},
"olv.portal.confirm.remove_from_blocklist_to": {
"args": [1],
"value": "Do you want to unblock\n%s?"
},
"olv.portal.confirm.remove_from_blocklist_to %1": {
"args": [1],
"value": "Do you want to unblock\n%s?"
},
"olv.portal.confirm.remove_from_blocklist_to [_1]": {
"args": [1],
"value": "Do you want to unblock\n%s?"
},
"olv.portal.confirm_app_jump": {
"args": [],
"value": "This will close rverse.\nAre you sure you want to proceed?"
},
"olv.portal.confirm_app_jump %1": {
"args": [],
"value": "This will close rverse.\nAre you sure you want to proceed?"
},
"olv.portal.confirm_app_jump [_1]": {
"args": [],
"value": "This will close rverse.\nAre you sure you want to proceed?"
},
"olv.portal.confirm_display_played_mark": {
"value": "If you have played the game you're posting about, your posts and comments will have a mark indicating this."
},
"olv.portal.confirm_first_favorite": {
"value": "Added to favorite communities."
},
"olv.portal.confirm_open_eshop": {
"value": "This will close rverse.\nAre you sure you want to proceed?"
},
"olv.portal.confirm_syste_update.body": {
"value": "You must connect to the Internet and perform a system update before you can use this feature.\nPerform a system update now?"
},
"olv.portal.confirm_syste_update.title": {
"value": "Please Perform a System Update"
},
"olv.portal.confirm_url_form.body": {
"value": "This web page will be displayed in the Internet browser.\n\nDo you want to close rverse and view this web page?"
},
"olv.portal.confirm_url_form.body.for_n3ds": {
"value": "This web page will be displayed in the Internet browser.\n\nDo you want to close rverse and view this web page?"
},
"olv.portal.confirm_url_form.title": {
"value": "Open Link"
},
"olv.portal.confirm_you_have_no_soft": {
"value": "You do not have this software."
},
"olv.portal.continue_miiverse": {
"value": "Continue Using rverse"
},
"olv.portal.dialog.apply_settings_done": {
"value": "Settings saved."
},
"olv.portal.edit.action.close_topic_post": {
"value": "Close for Comments"
},
"olv.portal.edit.action.close_topic_post.confirm": {
"value": "It will no longer be possible to post comments on this discussion. Is that OK? (This action cannot be reversed.)"
},
"olv.portal.edit.edit_post": {
"value": "Edit Post"
},
"olv.portal.edit.edit_reply": {
"value": "Edit Comment"
},
"olv.portal.empathy.n_added": {
"args": [1],
"args_1": [1],
"quanttype": "1_o",
"value": "%s people gave this a Yeah.",
"value_1": "%s person gave this a Yeah."
},
"olv.portal.empathy.n_added %1": {
"args": [1],
"args_1": [1],
"quanttype": "1_o",
"value": "%s people gave this a Yeah.",
"value_1": "%s person gave this a Yeah."
},
"olv.portal.empathy.n_added [_1]": {
"args": [1],
"args_1": [1],
"quanttype": "1_o",
"value": "%s people gave this a Yeah.",
"value_1": "%s person gave this a Yeah."
},
"olv.portal.empathy.you_added": {
"value": "You gave this a Yeah."
},
"olv.portal.empathy.you_and_n_added": {
"args": [1],
"args_1": [1],
"quanttype": "1_o",
"value": "You and %s other people gave this a Yeah.",
"value_1": "You and %s other person gave this a Yeah."
},
"olv.portal.empathy.you_and_n_added %1": {
"args": [1],
"args_1": [1],
"quanttype": "1_o",
"value": "You and %s other people gave this a Yeah.",
"value_1": "You and %s other person gave this a Yeah."
},
"olv.portal.empathy.you_and_n_added [_1]": {
"args": [1],
"args_1": [1],
"quanttype": "1_o",
"value": "You and %s other people gave this a Yeah.",
"value_1": "You and %s other person gave this a Yeah."
},
"olv.portal.error.500.for_n3ds": {
"value": "An error has occurred.\n\nPlease wait and try again later.\n\nIf this error continues to occur, please make note of the error code and visit support.nintendo.com."
},
"olv.portal.error.503.content": {
"value": "The server is currently\nundergoing maintenance.\n\nPlease try again later."
},
"olv.portal.error.album_limit_exceeded": {
"value": "Unable to save because the maximum number of screenshots that can be saved has been reached. Please delete some saved screenshots, and then try again."
},
"olv.portal.error.code": {
"args": [1],
"value": "Error Code: %s"
},
"olv.portal.error.code %1": {
"args": [1],
"value": "Error Code: %s"
},
"olv.portal.error.code [_1]": {
"args": [1],
"value": "Error Code: %s"
},
"olv.portal.error.daily_post_limit_exceeded": {
"value": "You have already exceeded the number of posts that you can contribute in a single day. Please try again tomorrow."
},
"olv.portal.error.failed_to_connect": {
"value": "An error has occurred."
},
"olv.portal.error.network_unavailable": {
"value": "Could not connect to the Internet.\nPlease check your network\nconnection and try again."
},
"olv.portal.error.post_time_restriction": {
"args": [],
"value": "Multiple posts cannot be made in such a short period of time. Please try posting again later."
},
"olv.portal.error.post_time_restriction %1": {
"args": [],
"value": "Multiple posts cannot be made in such a short period of time. Please try posting again later."
},
"olv.portal.error.post_time_restriction [_1]": {
"args": [],
"value": "Multiple posts cannot be made in such a short period of time. Please try posting again later."
},
"olv.portal.followlist.confirm_unfollow_to": {
"args": [1],
"value": "Stop following\n%s?"
},
"olv.portal.followlist.confirm_unfollow_to %1": {
"args": [1],
"value": "Stop following\n%s?"
},
"olv.portal.followlist.confirm_unfollow_to [_1]": {
"args": [1],
"value": "Stop following\n%s?"
},
"olv.portal.guest.alert.message": {
"value": "A Nintendo Network ID is required to use this feature. Do you want to link a Nintendo Network ID?"
},
"olv.portal.guest.alert.reight": {
"value": "Link"
},
"olv.portal.miitoo.frustrated": {
"value": "Yeah..."
},
"olv.portal.miitoo.frustrated.delete": {
"value": "Unyeah"
},
"olv.portal.miitoo.happy": {
"value": "Yeah!"
},
"olv.portal.miitoo.happy.delete": {
"value": "Unyeah"
},
"olv.portal.miitoo.like": {
"value": "Yeah\u2665"
},
"olv.portal.miitoo.like.delete": {
"value": "Unyeah"
},
"olv.portal.miitoo.normal": {
"value": "Yeah!"
},
"olv.portal.miitoo.normal.delete": {
"value": "Unyeah"
},
"olv.portal.miitoo.puzzled": {
"value": "Yeah..."
},
"olv.portal.miitoo.puzzled.delete": {
"value": "Unyeah"
},
"olv.portal.miitoo.surprised": {
"value": "Yeah!?"
},
"olv.portal.miitoo.surprised.delete": {
"value": "Unyeah"
},
"olv.portal.my_page": {
"value": "User Page"
},
"olv.portal.n3ds.ok": {
"value": "OK"
},
"olv.portal.n3ds.youtube.alert": {
"value": "You can watch this video\nif you download the\nYouTube application from\nNintendo eShop."
},
"olv.portal.n3ds.youtube.alert.patch": {
"value": "Please download the latest version of the YouTube application."
},
"olv.portal.n3ds.youtube.jump": {
"value": "Do you want to close rverse and launch YouTube?"
},
"olv.portal.offline.post.delete": {
"value": "Do you want to delete this post?"
},
"olv.portal.offline.post_form": {
"value": "Create Post"
},
"olv.portal.offline.post_form.alert": {
"value": "You cannot save any additional posts. Please delete a previously saved post before starting a new one."
},
"olv.portal.ok": {
"value": "OK"
},
"olv.portal.post.delete_confirm": {
"value": "Delete this post?"
},
"olv.portal.post.screenshot_forbidden.for_n3ds": {
"value": "This screenshot cannot be attached."
},
"olv.portal.post.screenshot_required": {
"value": "Please select a screenshot."
},
"olv.portal.profile_post": {
"value": "Favorite Post"
},
"olv.portal.profile_post.confirm_remove": {
"value": "Remove this post from your profile?\nThe original post will not be deleted."
},
"olv.portal.profile_post.confirm_update": {
"value": "Set this post as your favorite?\nPlease note, it will replace any existing favorite post."
},
"olv.portal.profile_post.confirm_update.yes": {
"value": "OK"
},
"olv.portal.profile_post.done": {
"value": "Your favorite post has been set.\nWould you like to view your profile?"
},
"olv.portal.read_more_content": {
"value": "Read More"
},
"olv.portal.reply.delete_confirm": {
"value": "Delete this comment?"
},
"olv.portal.setup": {
"value": "Set Up"
},
"olv.portal.show_more_content": {
"value": "View Entire Post"
},
"olv.portal.stop": {
"value": "Cancel"
},
"olv.portal.unfavorite_succeeded_to": {
"value": "Removed from favorites."
},
"olv.portal.unfollow": {
"value": "Unfollow"
},
"olv.portal.unfollow_succeeded_to": {
"args": [1],
"value": "You are no longer following\n%s."
},
"olv.portal.unfollow_succeeded_to %1": {
"args": [1],
"value": "You are no longer following\n%s."
},
"olv.portal.unfollow_succeeded_to [_1]": {
"args": [1],
"value": "You are no longer following\n%s."
},
"olv.portal.user.search.found_message": {
"args": [1],
"value": "Found: %s"
},
"olv.portal.user.search.found_message %1": {
"args": [1],
"value": "Found: %s"
},
"olv.portal.user.search.found_message [_1]": {
"args": [1],
"value": "Found: %s"
},
"olv.portal.user.search.go": {
"value": "View Profile"
},
"olv.portal.user.search.not_found_message": {
"args": [1],
"value": "\"%s\" could not be found.\nSelect Retry Search if you want to try again."
},
"olv.portal.user.search.not_found_message %1": {
"args": [1],
"value": "\"%s\" could not be found.\nSelect Retry Search if you want to try again."
},
"olv.portal.user.search.not_found_message [_1]": {
"args": [1],
"value": "\"%s\" could not be found.\nSelect Retry Search if you want to try again."
},
"olv.portal.welcome.select_game_skill": {
"value": "Select your skill level."
},
"olv.portal.welcome.select_luminous_opt_in": {
"value": "Please select a notification option."
},
"olv.portal.welcome.user_data": {
"value": "Please input your Username and your Nintendo Network ID to continue."
},
"olv.portal.yes": {
"value": "Yes"
},
"olv.potal.n3ds.youtube.jump": {
"value": "Do you want to close rverse and launch YouTube?"
},
"olv.welcome.check.username": {
"value": "This display name is already in use, please select another."
},
"olv.welcome.check.nnid": {
"value": "This Nintendo Network ID is already in use, please select another."
},
"olv.welcome.check.nonnid": {
"value": "This Nintendo Network ID does not exist, please select another."
},
"rverse.debug": {
"args": [1],
"value": "DEBUG:\n%s"
},
};

View File

@ -11,8 +11,6 @@ const router = express.Router();
// Router to handle the subdomain restriction
const discovery = express.Router();
const api = express.Router();
const portal = express.Router();
const ctr = express.Router();
// Create subdomains
logger.info('[MIIVERSE] Creating \'discovery\' subdomain');
@ -20,9 +18,6 @@ router.use(subdomain('discovery.olv', discovery));
logger.info('[MIIVERSE] Creating \'api\' subdomain');
router.use(subdomain('api.olv', api));
logger.info('[MIIVERSE] Creating \'portal\' subdomain');
router.use(subdomain('portal.olv', portal));
router.use(subdomain('ctr.olv', ctr));
logger.info('[MIIVERSE] Importing middleware');
discovery.use(sessionMiddleware);
@ -31,6 +26,5 @@ discovery.use(pnidMiddleware);
// Setup routes
discovery.use('/v1/endpoint', routes.DISCOVERY);
api.use('/v1/posts', routes.POST);
ctr.use('/', routes.CTR);
module.exports = router;

View File

@ -0,0 +1,38 @@
var express = require('express');
var router = express.Router();
const database = require('.../database');
/* GET post titles. */
router.get('/', function (req, res) {
/* Parse out parameters from URL and headers */
const communityID = parseInt(req.params[0].split('/')[0], 10);
const paramPack = this.decodeParamPack(req.headers["x-nintendo-parampack"]);
/* Get community details. communityID is usually 0, for some reason. */
let community = null;
if (communityID === 0) {
community = await database.getCommunityByTitleID(paramPack.title_id);
} else {
community = await DataStorage.getDataStorage()
.getCommunityByID(communityID);
}
if (!community) {
this.reqdie(res);
return;
}
/* Go to the database for posts. */
const posts = await DataStorage.getDataStorage()
.getPostsByCommunity(community, req.query.limit);
if (!posts) {
this.reqdie(res);
return;
}
/* Build formatted response and send it off. */
const response = await ResponseGen.PostsResponse(posts, community);
res.contentType("application/xml");
res.send(response);
});
module.exports = router;

View File

@ -1,49 +0,0 @@
var express = require('express');
var router = express.Router();
var path = require("path");
/* GET ctr server. */
router.get('/titles/show', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/index.html'));
});
/* GET css. */
router.get('/titles/css/n3ds/style.css', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/css/n3ds/style.css'));
});
/* GET cave emulation. */
router.get('/titles/js/src/cave-emulation.js', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/js/src/cave-emulation.js'));
});
/* GET olv.js server. */
router.get('/titles/js/n3ds/libs.js', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/js/n3ds/libs.js'));
});
/* GET olv.js server. */
router.get('/titles/js/n3ds/olv.js', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/js/n3ds/olv.js'));
});
/* GET olv.js server. */
router.get('/titles/js/n3ds/olv.locale-en.js', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/js/n3ds/olv.locale-en.js'));
});
/* GET jquery server. */
router.get('/titles/js/jquery-1.9.1.min.js', function (req, res) {
res.sendFile(path.join(__dirname + '../../../../portal/js/jquery-1.9.1.min.js'));
});
/* GET played titles. */
router.post('/settings/played_title_ids', function (req, res) {
res.sendStatus(200);
});
/* GET check update */
router.get('/check_update.json', function (req, res) {
res.sendStatus(200);
});
/* GET local list */
router.get('/local_list.json', function (req, res) {
res.sendStatus(200);
});
router.post('/posts', function (req, res) {
res.sendStatus(200);
});
module.exports = router;

View File

@ -1,5 +1,4 @@
module.exports = {
DISCOVERY: require('./discovery'),
CTR: require('./ctr'),
POST: require('./post'),
};