change to guilded instead of discord
This commit is contained in:
parent
ebddd99c10
commit
23ae0c9e44
|
@ -1,7 +1,7 @@
|
|||
# PixelPlanet.fun
|
||||
|
||||
|
||||
[![Discord](https://img.shields.io/badge/Discord-Support-blue.svg)](https://pixelplanet.fun/discord) ![](https://github.com/pixelplanetdev/pixelplanet/workflows/Node%20CI/badge.svg)
|
||||
[![Guilded](https://img.shields.io/badge/Discord-Support-blue.svg)](https://pixelplanet.fun/guilded) ![](https://github.com/pixelplanetdev/pixelplanet/workflows/Node%20CI/badge.svg)
|
||||
|
||||
Official repository of [pixelplanet.fun](http://www.pixelplanet.fun).
|
||||
|
||||
|
|
|
@ -16,8 +16,9 @@ const ForgotPasswordModal = ({ login }) => (
|
|||
</p><br />
|
||||
<p style={{ textAlign: 'center' }}>
|
||||
<NewPasswordForm back={login} />
|
||||
<p>Also join our Discord:
|
||||
<a href="./discord" target="_blank">pixelplanet.fun/discord</a></p>
|
||||
<p>Consider joining us on Guilded:
|
||||
<a href="./guilded" target="_blank">pixelplanet.fun/guilded</a>
|
||||
</p>
|
||||
</p>
|
||||
</p>
|
||||
);
|
||||
|
|
|
@ -20,7 +20,7 @@ const HelpModal = () => (
|
|||
pixels and 7s on already set pixels.
|
||||
Higher zoomlevels take some time to update, the 3D globe gets updated at least once per day.
|
||||
Have fun!</p>
|
||||
<p>Discord: <a href="./discord" target="_blank" rel="noopener noreferrer">pixelplanet.fun/discord</a></p>
|
||||
<p>Guilded (recommended): <a href="./guilded" target="_blank" rel="noopener noreferrer">pixelplanet.fun/guilded</a></p>
|
||||
<p>Source on <a href="https://github.com/pixelplanetdev/pixelplanet" target="_blank" rel="noopener noreferrer">github</a></p>
|
||||
<p>Reddit: <a href="https://www.reddit.com/r/PixelPlanetFun/" target="_blank" rel="noopener noreferrer">r/PixelPlanetFun</a></p>
|
||||
<p className="modaltitle">Map Data</p>
|
||||
|
|
|
@ -17,8 +17,8 @@ const RegisterModal = ({ login }) => (
|
|||
<p className="modaltext">Register new account here</p><br />
|
||||
<p style={{ textAlign: 'center' }}>
|
||||
<SignUpForm back={login} />
|
||||
<p>Also join our Discord:
|
||||
<a href="./discord" target="_blank">pixelplanet.fun/discord</a>
|
||||
<p>Consider joining us on Guilded:
|
||||
<a href="./guilded" target="_blank">pixelplanet.fun/guilded</a>
|
||||
</p>
|
||||
</p>
|
||||
</p>
|
||||
|
|
|
@ -128,8 +128,8 @@ const UserAreaModal = ({
|
|||
)}
|
||||
</Tabs>
|
||||
)}
|
||||
<p>Also join our Discord:
|
||||
<a href="./discord" target="_blank">pixelplanet.fun/discord</a>
|
||||
<p>Consider joining us on Guilded:
|
||||
<a href="./guilded" target="_blank">pixelplanet.fun/guilded</a>
|
||||
</p>
|
||||
</p>
|
||||
);
|
||||
|
|
|
@ -37,6 +37,8 @@ export const MYSQL_PW = process.env.MYSQL_PW || 'password';
|
|||
// Social
|
||||
export const DISCORD_INVITE = process.env.DISCORD_INVITE
|
||||
|| 'https://discordapp.com/';
|
||||
export const GUILDED_INVITE = process.env.GUILDED_INVITE
|
||||
|| 'https://www.guilded.gg/';
|
||||
|
||||
// Logging
|
||||
export const LOG_MYSQL = parseInt(process.env.LOG_MYSQL, 10) || false;
|
||||
|
|
|
@ -29,7 +29,7 @@ import globeHtml from './components/Globe';
|
|||
import generateMainPage from './components/Main';
|
||||
|
||||
import { SECOND, MONTH } from './core/constants';
|
||||
import { PORT, DISCORD_INVITE } from './core/config';
|
||||
import { PORT, DISCORD_INVITE, GUILDED_INVITE } from './core/config';
|
||||
|
||||
import { ccToCoords } from './utils/location';
|
||||
import { startAllCanvasLoops } from './core/tileserver';
|
||||
|
@ -110,11 +110,14 @@ app.use(express.static(path.join(__dirname, 'public'), {
|
|||
|
||||
|
||||
//
|
||||
// Redirecct to discord
|
||||
// Redirecct to discord and guilded
|
||||
// -----------------------------------------------------------------------------
|
||||
app.use('/discord', (req, res) => {
|
||||
res.redirect(DISCORD_INVITE);
|
||||
});
|
||||
app.use('/guilded', (req, res) => {
|
||||
res.redirect(GUILDED_INVITE);
|
||||
});
|
||||
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user