diff --git a/public/content/rules.md b/public/content/rules.md new file mode 100644 index 0000000..f5b48c6 --- /dev/null +++ b/public/content/rules.md @@ -0,0 +1 @@ +* No usernames that are outright hurtful, attack any group or individual, or deliberately cross the line. diff --git a/public/news/2019-06-05-01.md b/public/news/2019-06-05-01.md index 7cb3e1d..8fe884b 100644 --- a/public/news/2019-06-05-01.md +++ b/public/news/2019-06-05-01.md @@ -2,7 +2,7 @@ Moderation Of Usernames --- _5 June 2019_ -Let's talk about something serious: user [butthole69](/profile?username=butthole69). More importantly, their cheeky (pun intended) username. +Let's talk about something serious: user \[removed for their privacy\]. More importantly, their cheeky (pun intended) username. Now, I don't mind this name in particular, although some websites might outright ban him, and other users with similarly creative names. @@ -12,5 +12,5 @@ One of the items on my wishlist is a request from a fan - in game chat. This req If you feel something breeches these rules, I can most easily be reached via my discord server here: [KR Game Studios](https://discord.gg/FQmz8TN). My username is Ratstail91. -Thanks to butthole69 for bringing this topic to my attention, even if inadvertantly. +Thanks to \[removed for their privacy\] for bringing this topic to my attention, even if inadvertantly. diff --git a/src/components/app.jsx b/src/components/app.jsx index 74e5c0d..947b026 100644 --- a/src/components/app.jsx +++ b/src/components/app.jsx @@ -74,6 +74,7 @@ export default class App extends React.Component { import('./pages/task_list.jsx')} /> import('./pages/patron_list.jsx')} /> import('./pages/news.jsx')} /> + import('./pages/rules.jsx')} /> import('./pages/page_not_found.jsx')} /> diff --git a/src/components/pages/rules.jsx b/src/components/pages/rules.jsx new file mode 100644 index 0000000..37d1116 --- /dev/null +++ b/src/components/pages/rules.jsx @@ -0,0 +1,45 @@ +import React from 'react'; + +//panels +import CommonLinks from '../panels/common_links.jsx'; +import Markdown from '../panels/markdown.jsx'; + +class Rules extends React.Component { + constructor(props) { + super(props); + this.state = { + warning: '', //TODO: unified warning? + fetch: null + }; + } + + render() { + let warningStyle = { + display: this.state.warning.length > 0 ? 'flex' : 'none' + }; + + return ( +
+
+
+ +
+ +
+
+

{this.state.warning}

+
+ + +
+
+
+ ); + } + + setWarning(s) { + this.setState({ warning: s }); + } +}; + +export default Rules; \ No newline at end of file diff --git a/src/components/pages/signup.jsx b/src/components/pages/signup.jsx index 7b34d03..f730e42 100644 --- a/src/components/pages/signup.jsx +++ b/src/components/pages/signup.jsx @@ -34,7 +34,7 @@ class Signup extends React.Component {

Remember to verify your email!

-

See the recent news post on
Moderation Of Usernames.

+

Check our rules concerning
conduct in this game.

); } diff --git a/src/components/panels/common_links.jsx b/src/components/panels/common_links.jsx index e9b422d..114f8e5 100644 --- a/src/components/panels/common_links.jsx +++ b/src/components/panels/common_links.jsx @@ -29,12 +29,13 @@ class CommonLinks extends React.Component { return (

Your Kingdom

-

Your Equipment

+

Your Equipment

Attack (Game Ladder)

Combat Log

Change Password

Task List

-

Patron List

+

Patron List

+

Rules

@@ -49,7 +50,8 @@ class CommonLinks extends React.Component {

Recover Password

Game Ladder

Task List

-

Patron List

+

Patron List

+

Rules

@@ -63,12 +65,15 @@ CommonLinks.propTypes = { onClickSignup: PropTypes.func, onClickLogin: PropTypes.func, - onClickPasswordRecover: PropTypes.func, - onClickHome: PropTypes.func, - onClickProfile: PropTypes.func, - onClickLadder: PropTypes.func, onClickPasswordChange: PropTypes.func, - onClickTaskList: PropTypes.func + onClickPasswordRecover: PropTypes.func, + onClickProfile: PropTypes.func, + onClickEquipment: PropTypes.func, + onClickLadder: PropTypes.func, + onClickCombatLog: PropTypes.func, + onClickTaskList: PropTypes.func, + onClickPatronList: PropTypes.func, + onClickRules: PropTypes.func }; function mapStoreToProps(store) {