diff --git a/README.md b/README.md index ed7cbcc..068a188 100644 --- a/README.md +++ b/README.md @@ -116,9 +116,9 @@ Configuration takes place in the environment variables that are defined in ecosy Notes: - HOST / PORT is the host on which the ppfun server is listening. In example: If you have a reverse proxy on the same machine, HOST should still be unset or localhost, because it's where the proxy forwards to. -- to be able to use USE_PROXYCHECK effectively, you have to have an account on proxycheck.io and PROXYCHECK_KEY set. -- Admins are users with 0cd and access to `Admintools`in their User Menu for image-upload and whatever -- You can find out the id of a user by looking into the logs (i.e. `info: {ip} / {id} wants to place 2 in (1701, -8315)`) when he places a pixel or by checking the MySql Users database +- to be able to use USE_PROXYCHECK you have to have an account on proxycheck.io and set PROXYCHECK_KEY. +- Admins are users with 0cd and access to `Admintools`in their User Menu +- You can find out the id of a user by wiriting a message in chat and pinging - pixelplanet uses the unix command sendmail for sending verification and password reset mails. If you don't want to set up your own mail server, look into [ssmtp](https://wiki.archlinux.org/title/SSMTP), which provides a sendmail interface that forwards to other providers like gmail. - default configuartion values can be seen in `src/core/config.js` - The HTML for SocialMedia logins is in src/componets/UserAreaModal.js , delete stuff from there if you don't need it. The HTML for the Help Screen is in src/components/HelpModal.js diff --git a/src/components/Admintools.jsx b/src/components/Admintools.jsx index e630503..f3cd530 100644 --- a/src/components/Admintools.jsx +++ b/src/components/Admintools.jsx @@ -84,7 +84,7 @@ function Admintools() { }, []); return ( -
+
{resp && (
{resp.split('\n').map((line) => ( diff --git a/src/components/Converter.jsx b/src/components/Converter.jsx index 4d60321..b2f124c 100644 --- a/src/components/Converter.jsx +++ b/src/components/Converter.jsx @@ -186,7 +186,7 @@ function Converter() { const gimpLink = GIMP; return ( -
+
{t`Choose Canvas`}:  { + const sel = e.target; + selectCanvas(sel.options[sel.selectedIndex].value); + }} > - {t`Close`} - -
- )} -

{t`Check who placed in an area`}

-

{t`Canvas`}:  - + {` ${t`Interval`}: `} + { + const newInterval = evt.target.value.trim(); + selectInterval(newInterval); + keepState.interval = newInterval; + }} + /> + {` ${t`IID (optional)`}: `} + { + const newIid = evt.target.value.trim(); + selectIid(newIid); + keepState.iid = newIid; + }} + /> +

+

+ {t`Top-left corner`} (X_Y):  + { + const co = evt.target.value.trim(); + selectTLCoords(co); + keepState.tlcoords = co; + }} + /> +

+

+ {t`Bottom-right corner`} (X_Y):  + { + const co = evt.target.value.trim(); + selectBRCoords(co); + keepState.brcoords = co; + }} + /> +

+ - + > + {(submitting) ? '...' : t`Get Users`} + +

{(rows && columns && types) && ( @@ -391,7 +395,7 @@ function ModWatchtools() { )} -
+ ); } diff --git a/src/components/Modtools.jsx b/src/components/Modtools.jsx index ac17be9..6d0c688 100644 --- a/src/components/Modtools.jsx +++ b/src/components/Modtools.jsx @@ -30,7 +30,7 @@ function Modtools() { return ( <> -
+
{parts.map((part, ind) => ( } ))} +
-
{Content && } ); diff --git a/src/components/Rankings.jsx b/src/components/Rankings.jsx index 5f1fb29..46fd3a4 100644 --- a/src/components/Rankings.jsx +++ b/src/components/Rankings.jsx @@ -20,7 +20,7 @@ const Rankings = () => { return ( <> -
+
( ); })} -
+
{children.map((child) => { if (!child.props || child.props.label !== activeTab) { return undefined; diff --git a/src/components/UserAreaContent.jsx b/src/components/UserAreaContent.jsx index d30e793..59f675f 100644 --- a/src/components/UserAreaContent.jsx +++ b/src/components/UserAreaContent.jsx @@ -56,7 +56,7 @@ const UserAreaContent = () => { const Area = AREAS[area]; return ( -
+