From 0074cec94392f7ec71acf27d385ee38b43be7240 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Mon, 13 Sep 2021 00:40:13 +0000 Subject: [PATCH] Placeholders added appropriately. --- src/TestHeader.js | 2 +- src/TestPanel.js | 10 +++++++--- .../placeholders/LoginPlaceholder.js | 19 +++++++++++++++++++ touhous | 2 ++ 4 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 src/components/placeholders/LoginPlaceholder.js create mode 100644 touhous diff --git a/src/TestHeader.js b/src/TestHeader.js index ef81163..44363b6 100644 --- a/src/TestHeader.js +++ b/src/TestHeader.js @@ -45,7 +45,7 @@ function TestHeader(p) {
-
. {username??"Guest"}   ···
+
. {username??"Guest"}   ···
.
diff --git a/src/TestPanel.js b/src/TestPanel.js index ac049aa..d81b4c5 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -6,9 +6,10 @@ import { ExpandTooltip } from './components/ExpandTooltip'; import { SkillTree } from './skilltree/skillTree'; import axios from 'axios'; import Helmet from 'react-helmet' +import ReactPlaceholder from 'react-placeholder'; +import "react-placeholder/lib/reactPlaceholder.css"; import { useLocation,useHistory,useParams,matchPath } from 'react-router' -import { ArrowUpShort } from 'react-bootstrap-icons' //Helper variables for Weapon selector with structure: [weapon_type,weapon,potential,potential_tooltip,weapon_existence_data] const WEAPON_WEAPONTYPE=0;const WEAPON_WEAPON=1;const WEAPON_POTENTIAL=2;const WEAPON_POTENTIAL_TOOLTIP=3;const WEAPON_EXISTENCE_DATA=4; @@ -69,7 +70,7 @@ function PageControl(p) { function Class(p) { const CLASSES = p.GetData("class") const class_obj = CLASSES[p.name] - return CLASSES!=="no data"?class_obj?<>{class_obj.name}:<>:<>- + return {class_obj?<>{class_obj.name}:<>} } function EditableClass(p){ @@ -704,6 +705,7 @@ function deepCopySkills(skillData) {

Equipped Weapon

+

{GetSpecialWeaponName(selectedWeapon)}

@@ -809,7 +811,7 @@ function deepCopySkills(skillData) { : <>hi2 } - +
@@ -832,6 +834,7 @@ function deepCopySkills(skillData) {

Current Effects

+ {effectPage===1?<>

Effect Name

  • {setPrevFoodPointData({...foodPointData});setFoodMenuWindowOpen(true)}}>Food Boost Effect
      @@ -851,6 +854,7 @@ function deepCopySkills(skillData) {
:<> } +
diff --git a/src/components/placeholders/LoginPlaceholder.js b/src/components/placeholders/LoginPlaceholder.js new file mode 100644 index 0000000..f242562 --- /dev/null +++ b/src/components/placeholders/LoginPlaceholder.js @@ -0,0 +1,19 @@ + +import ReactPlaceholder from 'react-placeholder'; +import { MediaBlock,TextRow } from 'react-placeholder/lib/placeholders'; +import "react-placeholder/lib/reactPlaceholder.css"; + +const CustomPlaceholder = ( +
+ + +
+) + +function LoginPlaceholder(p) { + return + {p.children} + +} + +export default LoginPlaceholder; \ No newline at end of file diff --git a/touhous b/touhous new file mode 100644 index 0000000..126312f --- /dev/null +++ b/touhous @@ -0,0 +1,2 @@ +【東方 Touhou Vocal】Sentence - EURO mix【Sliver Forest】 +[Touhou Vocal] [GET IN THE RING] Last Remote~Blaze mix (spanish & english subtitles) \ No newline at end of file