From 6e50ab2915096faed6096df20227fab6caec303a Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Tue, 15 Sep 2020 08:14:34 -0500 Subject: [PATCH] Implement image submission systems and linking twitter profiles --- frontend/src/App.js | 364 ++++++++++++++++++++++++-- frontend/src/setupProxy.js | 14 + imgparser/projectDivaImgParser | 2 +- server/app.js | 177 ++++++++----- server/files/DivaBot_small.png | Bin 0 -> 5064 bytes server/files/discord_button_small.png | Bin 0 -> 5418 bytes server/files/rankings_small.png | Bin 0 -> 5789 bytes server/files/releases/DivaBot02.zip | Bin 0 -> 2265771 bytes server/files/releases/DivaBot02A.zip | Bin 0 -> 2279244 bytes server/files/switch1.png | Bin 0 -> 734435 bytes server/files/switch2.png | Bin 0 -> 186037 bytes 11 files changed, 463 insertions(+), 94 deletions(-) create mode 100644 server/files/DivaBot_small.png create mode 100644 server/files/discord_button_small.png create mode 100644 server/files/rankings_small.png create mode 100644 server/files/releases/DivaBot02.zip create mode 100644 server/files/releases/DivaBot02A.zip create mode 100644 server/files/switch1.png create mode 100644 server/files/switch2.png diff --git a/frontend/src/App.js b/frontend/src/App.js index 6670079..23466b2 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -29,6 +29,191 @@ var IMAGE_CAMERA=(p)=>{ ) } +var IMAGE_BUG=(p)=>{ + return( + + + + ) +} +var IMAGE_CONTROLLER=(p)=>{ + return( + + + + + + ) +} +var IMAGE_ARCADE=(p)=>{ + return( + + + + + + ) +} +var IMAGE_TABLET=(p)=>{ + return( + + + + + ) +} +var IMAGE_MIXMODE=(p)=>{ + return( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) +} +var IMAGE_JOYCONS=(p)=>{ + return( + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ) +} var RATING_cool=new Image(); RATING_cool.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAWCAYAAABjadrAAAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AYht+mSkV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NatuxlcP0oQSyvNyENOHnIWF+dYmL1D0m2Bzx8sQ8Cp4DGgEImiScbQuiE2Dm+hEveTpwlLyzMsLEyTZQ5jhBA8GgI2shhjwQhqIwxKbC3VuIqNI6qVOtu27+T/AMjSqGcQRJbnAAAAAElFTkSuQmCC" @@ -172,7 +357,7 @@ function Sort(p){ function ProfileDataContainer(p){ return (
{if (p.setMouseOver) {p.setMouseOver(true)}}} onMouseOut={()=>{if(p.setMouseOver){p.setMouseOver(false)}}}> -
+
{p.label}
@@ -605,7 +790,7 @@ function BestPlaysPanel(p) { useEffect(()=>{ axios.get("http://www.projectdivar.com/bestplays/"+p.username+"?fails=false&limit=5&offset=0") .then((data)=>{setBestPlays(data.data);}) - },[update]) + },[update,p.username]) var content=