+ return
Class
@@ -597,76 +598,76 @@ function AdminPanel(p) {
Database Audit
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -689,7 +690,7 @@ function DamageCalculator(p) {
//const [update,setUpdate] = useState(false)
useEffect(()=>{
- axios.get(BACKEND_URL+"/augment")
+ axios.get(p.BACKENDURL+"/augment")
.then((data)=>{
var augmentData = {}
data.data.rows.forEach((entry)=>{augmentData[entry.name]=entry})
@@ -826,9 +827,7 @@ function DamageCalculator(p) {
>
}
-function TooltipTest(p) {
- return <>This is some tooltip info! Does it get larger as we add more content? Or does it stay puny.>
-}
+
function App() {
@@ -884,51 +883,48 @@ function App() {
const [effective,setEffective] = useState(127)
const [modalOpen,setModalOpen] = useState(true)
- const [testMode,setTestMode] = useState(false)
-
+
+ const [BACKENDURL,setBACKENDURL]=useState(process.env.REACT_APP_GITPOD_WORKSPACE_URL||process.env.REACT_APP_BACKENDURL||'https://projectdivar.com:4504')
+ const [TESTMODE,setTESTMODE] = useState(false)
+
return (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- Modal content goes here.{BACKEND_URL}
-
}
- >Mouseover Me! I need more width to make this work.
-
- {setTestMode(t.target.checked)}}/>Test Mode: {JSON.stringify(testMode)}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ Modal content goes here.{BACKENDURL}
+
+ {setTESTMODE(t.target.checked)}}/>Test Mode: {JSON.stringify(TESTMODE)}
+
+
+
+
+
>
);
}
diff --git a/src/TestPanel.js b/src/TestPanel.js
index af5161a..1c8c230 100644
--- a/src/TestPanel.js
+++ b/src/TestPanel.js
@@ -1,4 +1,21 @@
import React from 'react';
+import Tooltip from 'react-simple-tooltip' //Mess with all tooltip props here: https://cedricdelpoux.github.io/react-simple-tooltip/
+function DefaultTooltip(p) {
+ return
{p.mouseOverText}
+}
+function ExpandTooltip(p) {
+ return
{p.mouseOverText}
+}
function TestPanel() {
return ( //Futasuke is a genius
@@ -94,7 +111,8 @@ function TestPanel() {
Abilitiy Details
-
Potency +20%/
Critical Hit Rage +15% for 30 seconds after a successful sidestep Dynamo Unit Lv.3
+- } tooltip={<>Potency +20%/
Critical Hit Rage +15% for 30 seconds after a successful sidestep>}/>Dynamo Unit Lv.3
+- } tooltip={<>Potency +20%/
Critical Hit Rage +15% for 30 seconds after a successful sidestep>}/>Dynamo Unit Lv.3
Potency +4% Fixa Attack Lv.3
PP +5
Ranged Weapon Potency +2.0% Pettas Soul II
HP -10, Potency +1.5%,
Potency Floor Increase +1.5%
Damage Resistance -1.5% Alts Secreta II
diff --git a/src/style.css b/src/style.css
index 95aafef..3eb02cf 100644
--- a/src/style.css
+++ b/src/style.css
@@ -379,7 +379,15 @@ em {
position: absolute;
white-space: normal;
left: 1em;
-
+}
+.xtooltip {
+ margin: 0 10px 0 0;
+ display: inline;
+ cursor: help;
+}
+div.xtooltip div {
+ min-width: 200px;
+ background-color: rgba(38,53,63,0.9);
}
.tooltip:hover span {
visibility: visible;