Skip to content

Commit

Permalink
rename textures paradise to resources paradise
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua2504 committed Sep 10, 2024
1 parent 657098a commit 7552d41
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion public/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ let __menu_content = `
<li class="menuitem bold menu-dropdown">
<a href="#">${__menu_icons["wstats"]} ${_("Archive")}</a>
<div class="menuitem menu-dropdown-content">
<a href="texturesparadise.html">${__menu_icons["wstats"]} ${_("Textures Paradise")}</a>
<a href="resourcesparadise.html">${__menu_icons["wstats"]} ${_("Resources Paradise")}</a>
<a href="worldcup-event-archive.html">${__menu_icons["wstats"]} ${_("Worldcup Event Ranking Archive")}</a>
<a href="timeline.html">${__menu_icons["wstats"]} ${_("Manuka's Timeline")}</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta property="og:image" content="/CoRT/favicon_512.png">
<title>Textures Paradise - Champions of Regnum</title>
<title>Resources Paradise - Champions of Regnum</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="regnumsentinel champions regnum online trainer entrenador bosses war warzone guerra status">
<meta name="description" content="All textures, icons and images for Champions of Regnum.">
Expand Down Expand Up @@ -53,7 +53,7 @@
Here are the <a href="https://www.enable-javascript.com/">instructions how to enable JavaScript in your web browser</a>.
</noscript>
</div>
<h1 id="title">Textures Paradise</h1>
<h1 id="title">Regnum Resources Paradise</h1>
<div class="search-container">
<label for="type-filter">Filter by Type:</label>
<select id="type-filter" class="type-filter">
Expand Down
6 changes: 5 additions & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ db.query(`CREATE TABLE IF NOT EXISTS regnum_res (
logger.info('Table regnum_res created or updated');
});

const regnumRes = require('../public/data/texturesparadise/files.json');
const regnumRes = require('../public/data/resourcesparadise/files.json');

// if (Array.isArray(regnumRes.music)) {
// for (const res of regnumRes.music) {
Expand Down Expand Up @@ -669,6 +669,10 @@ if (process.env.NODE_ENV === 'production') {
setInterval(runWarstatus, 60000);
}

app.get('/texturesparadise.html', (req, res) => {
res.redirect(301, '/resourcesparadise.html' + (req._parsedUrl.search || ''));
});

// Start server
app.listen(PORT, () => {
logger.info(`Server running on ${HOST}:${PORT}`);
Expand Down

0 comments on commit 7552d41

Please sign in to comment.