From f6838c01407b8f139e23ec4db4939b11fb357845 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Mon, 16 Jan 2023 15:29:44 -0500 Subject: [PATCH] Initial commit \o/ --- .dockerignore | 5 + .eslintrc.json | 28 + .gitignore | 26 + .prettierrc | 6 + Dockerfile | 24 + README.md | 5 + index.html | 17 + package.json | 45 + public/app-icon.png | Bin 0 -> 2608 bytes public/img/bg.png | Bin 0 -> 2533516 bytes public/img/splats/Blue.png | Bin 0 -> 64037 bytes public/img/splats/Cyan.png | Bin 0 -> 70947 bytes public/img/splats/Orange.png | Bin 0 -> 71558 bytes public/img/splats/Pink.png | Bin 0 -> 87226 bytes public/img/splats/Teal.png | Bin 0 -> 63246 bytes public/img/splats/Yellow.png | Bin 0 -> 67519 bytes public/img/title.png | Bin 0 -> 12960 bytes public/img/weapons/Blaster_LightLong_00.png | Bin 0 -> 20611 bytes public/img/weapons/Blaster_LightShort_00.png | Bin 0 -> 23216 bytes public/img/weapons/Blaster_Light_00.png | Bin 0 -> 18635 bytes public/img/weapons/Blaster_Long_00.png | Bin 0 -> 25717 bytes public/img/weapons/Blaster_Middle_00.png | Bin 0 -> 24233 bytes public/img/weapons/Blaster_Short_00.png | Bin 0 -> 16720 bytes public/img/weapons/Brush_Mini_00.png | Bin 0 -> 11290 bytes public/img/weapons/Brush_Normal_00.png | Bin 0 -> 13364 bytes public/img/weapons/Charger_Keeper_00.png | Bin 0 -> 20881 bytes public/img/weapons/Charger_Light_00.png | Bin 0 -> 13460 bytes public/img/weapons/Charger_Long_00.png | Bin 0 -> 14388 bytes public/img/weapons/Charger_Normal_00.png | Bin 0 -> 12048 bytes public/img/weapons/Charger_Pencil_00.png | Bin 0 -> 13421 bytes public/img/weapons/Charger_Quick_00.png | Bin 0 -> 13133 bytes public/img/weapons/Maneuver_Dual_00.png | Bin 0 -> 20721 bytes public/img/weapons/Maneuver_Gallon_00.png | Bin 0 -> 29461 bytes public/img/weapons/Maneuver_Normal_00.png | Bin 0 -> 19628 bytes public/img/weapons/Maneuver_Short_00.png | Bin 0 -> 23608 bytes public/img/weapons/Maneuver_Stepper_00.png | Bin 0 -> 29347 bytes public/img/weapons/Roller_Compact_00.png | Bin 0 -> 21997 bytes public/img/weapons/Roller_Heavy_00.png | Bin 0 -> 25786 bytes public/img/weapons/Roller_Hunter_00.png | Bin 0 -> 23281 bytes public/img/weapons/Roller_Normal_00.png | Bin 0 -> 19405 bytes public/img/weapons/Roller_Wide_00.png | Bin 0 -> 20983 bytes public/img/weapons/Saber_Lite_00.png | Bin 0 -> 22473 bytes public/img/weapons/Saber_Normal_00.png | Bin 0 -> 21247 bytes public/img/weapons/Shelter_Compact_00.png | Bin 0 -> 11965 bytes public/img/weapons/Shelter_Normal_00.png | Bin 0 -> 20173 bytes public/img/weapons/Shelter_Wide_00.png | Bin 0 -> 18698 bytes public/img/weapons/Shooter_Blaze_00.png | Bin 0 -> 17341 bytes public/img/weapons/Shooter_Expert_00.png | Bin 0 -> 21144 bytes public/img/weapons/Shooter_First_00.png | Bin 0 -> 19906 bytes public/img/weapons/Shooter_Flash_00.png | Bin 0 -> 19551 bytes public/img/weapons/Shooter_Gravity_00.png | Bin 0 -> 22933 bytes public/img/weapons/Shooter_Heavy_00.png | Bin 0 -> 21853 bytes public/img/weapons/Shooter_Long_00.png | Bin 0 -> 15819 bytes public/img/weapons/Shooter_Normal_00.png | Bin 0 -> 21490 bytes public/img/weapons/Shooter_Precision_00.png | Bin 0 -> 19840 bytes public/img/weapons/Shooter_QuickLong_00.png | Bin 0 -> 17802 bytes public/img/weapons/Shooter_QuickMiddle_00.png | Bin 0 -> 13342 bytes public/img/weapons/Shooter_Short_00.png | Bin 0 -> 22096 bytes .../img/weapons/Shooter_TripleMiddle_00.png | Bin 0 -> 23743 bytes public/img/weapons/Shooter_TripleQuick_00.png | Bin 0 -> 25298 bytes public/img/weapons/Slosher_Bathtub_00.png | Bin 0 -> 18307 bytes public/img/weapons/Slosher_Diffusion_00.png | Bin 0 -> 15849 bytes public/img/weapons/Slosher_Launcher_00.png | Bin 0 -> 20946 bytes public/img/weapons/Slosher_Strong_00.png | Bin 0 -> 25142 bytes public/img/weapons/Slosher_Washtub_00.png | Bin 0 -> 28717 bytes public/img/weapons/Spinner_Downpour_00.png | Bin 0 -> 21077 bytes public/img/weapons/Spinner_Hyper_00.png | Bin 0 -> 30796 bytes public/img/weapons/Spinner_Quick_00.png | Bin 0 -> 18255 bytes public/img/weapons/Spinner_Serein_00.png | Bin 0 -> 18977 bytes public/img/weapons/Spinner_Standard_00.png | Bin 0 -> 24853 bytes public/img/weapons/Stringer_Normal_00.png | Bin 0 -> 25871 bytes public/img/weapons/Stringer_Short_00.png | Bin 0 -> 26719 bytes public/img/weapons/freespaec.png | Bin 0 -> 11001 bytes public/index.html | 22 + public/manifest.json | 15 + public/robots.txt | 3 + semantic.json | 22 + src/App.css | 22 + src/App.jsx | 4 + src/Routes.jsx | 29 + src/components/BingoSlot.jsx | 46 + src/data/Loader.js | 31 + src/data/splats.json | 8 + src/data/weapons.json | 57 + src/index.js | 18 + src/views/Home.jsx | 149 + yarn.lock | 9144 +++++++++++++++++ 87 files changed, 9726 insertions(+) create mode 100644 .dockerignore create mode 100644 .eslintrc.json create mode 100644 .gitignore create mode 100644 .prettierrc create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 index.html create mode 100644 package.json create mode 100644 public/app-icon.png create mode 100644 public/img/bg.png create mode 100644 public/img/splats/Blue.png create mode 100644 public/img/splats/Cyan.png create mode 100644 public/img/splats/Orange.png create mode 100644 public/img/splats/Pink.png create mode 100644 public/img/splats/Teal.png create mode 100644 public/img/splats/Yellow.png create mode 100644 public/img/title.png create mode 100644 public/img/weapons/Blaster_LightLong_00.png create mode 100644 public/img/weapons/Blaster_LightShort_00.png create mode 100644 public/img/weapons/Blaster_Light_00.png create mode 100644 public/img/weapons/Blaster_Long_00.png create mode 100644 public/img/weapons/Blaster_Middle_00.png create mode 100644 public/img/weapons/Blaster_Short_00.png create mode 100644 public/img/weapons/Brush_Mini_00.png create mode 100644 public/img/weapons/Brush_Normal_00.png create mode 100644 public/img/weapons/Charger_Keeper_00.png create mode 100644 public/img/weapons/Charger_Light_00.png create mode 100644 public/img/weapons/Charger_Long_00.png create mode 100644 public/img/weapons/Charger_Normal_00.png create mode 100644 public/img/weapons/Charger_Pencil_00.png create mode 100644 public/img/weapons/Charger_Quick_00.png create mode 100644 public/img/weapons/Maneuver_Dual_00.png create mode 100644 public/img/weapons/Maneuver_Gallon_00.png create mode 100644 public/img/weapons/Maneuver_Normal_00.png create mode 100644 public/img/weapons/Maneuver_Short_00.png create mode 100644 public/img/weapons/Maneuver_Stepper_00.png create mode 100644 public/img/weapons/Roller_Compact_00.png create mode 100644 public/img/weapons/Roller_Heavy_00.png create mode 100644 public/img/weapons/Roller_Hunter_00.png create mode 100644 public/img/weapons/Roller_Normal_00.png create mode 100644 public/img/weapons/Roller_Wide_00.png create mode 100644 public/img/weapons/Saber_Lite_00.png create mode 100644 public/img/weapons/Saber_Normal_00.png create mode 100644 public/img/weapons/Shelter_Compact_00.png create mode 100644 public/img/weapons/Shelter_Normal_00.png create mode 100644 public/img/weapons/Shelter_Wide_00.png create mode 100644 public/img/weapons/Shooter_Blaze_00.png create mode 100644 public/img/weapons/Shooter_Expert_00.png create mode 100644 public/img/weapons/Shooter_First_00.png create mode 100644 public/img/weapons/Shooter_Flash_00.png create mode 100644 public/img/weapons/Shooter_Gravity_00.png create mode 100644 public/img/weapons/Shooter_Heavy_00.png create mode 100644 public/img/weapons/Shooter_Long_00.png create mode 100644 public/img/weapons/Shooter_Normal_00.png create mode 100644 public/img/weapons/Shooter_Precision_00.png create mode 100644 public/img/weapons/Shooter_QuickLong_00.png create mode 100644 public/img/weapons/Shooter_QuickMiddle_00.png create mode 100644 public/img/weapons/Shooter_Short_00.png create mode 100644 public/img/weapons/Shooter_TripleMiddle_00.png create mode 100644 public/img/weapons/Shooter_TripleQuick_00.png create mode 100644 public/img/weapons/Slosher_Bathtub_00.png create mode 100644 public/img/weapons/Slosher_Diffusion_00.png create mode 100644 public/img/weapons/Slosher_Launcher_00.png create mode 100644 public/img/weapons/Slosher_Strong_00.png create mode 100644 public/img/weapons/Slosher_Washtub_00.png create mode 100644 public/img/weapons/Spinner_Downpour_00.png create mode 100644 public/img/weapons/Spinner_Hyper_00.png create mode 100644 public/img/weapons/Spinner_Quick_00.png create mode 100644 public/img/weapons/Spinner_Serein_00.png create mode 100644 public/img/weapons/Spinner_Standard_00.png create mode 100644 public/img/weapons/Stringer_Normal_00.png create mode 100644 public/img/weapons/Stringer_Short_00.png create mode 100644 public/img/weapons/freespaec.png create mode 100644 public/index.html create mode 100644 public/manifest.json create mode 100644 public/robots.txt create mode 100644 semantic.json create mode 100644 src/App.css create mode 100644 src/App.jsx create mode 100644 src/Routes.jsx create mode 100644 src/components/BingoSlot.jsx create mode 100644 src/data/Loader.js create mode 100644 src/data/splats.json create mode 100644 src/data/weapons.json create mode 100644 src/index.js create mode 100644 src/views/Home.jsx create mode 100644 yarn.lock diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f132a49 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +build/** +.idea/ +node_modules/ +vs_code/ +Dockerfile \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..65b9ef0 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,28 @@ +{ + "env": { + "browser": true, + "es6": true, + "jest": true + }, + "extends": ["plugin:react/recommended", "airbnb"], + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, + "parserOptions": { + "ecmaFeatures": { + "jsx": true + }, + "ecmaVersion": 11, + "sourceType": "module" + }, + "plugins": ["react"], + "rules": { + "import/no-cycle": 0, + "no-unused-expressions": 0, + "react/jsx-props-no-spreading": 0, + "react/prop-types": 0, + "react/function-component-definition": 0, + "react/no-alert": 0 + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a09c830 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build + +# misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +.vscode/ +.vscode/* \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..b1f6bff --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "arrowParens": "avoid", + "trailingComma": "es5", + "singleQuote": true, + "semi": true +} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cb90fc9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM node:16-alpine AS builder + +RUN apk update && apk upgrade && \ + apk add --no-cache bash git openssh + +WORKDIR /app +COPY package*.json ./ +RUN npm install + +COPY . . +RUN npm run build +FROM node:16-alpine AS server + +ENV NODE_ENV=production +RUN npm install -g serve + +WORKDIR /app +COPY package*.json ./ +COPY --from=builder /app/build ./build + +ENV PORT=3001 +EXPOSE 3001 +USER node +CMD ["serve", "-s", "build"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d1de67f --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Slamon' Run Bingo + +## No, that's not a typo + +This is a simple bingo card generator (which saves and can conditionally reset if you ask it to) for your weapons while playing Salmon Run in Splatoon 3. Have fun - it's open source, weapon art from [the wiki](https://splatoonwiki.org/wiki/List_of_weapons_in_Splatoon_3), all other art is by [my wife](https://linktr.ee/ambroxer) diff --git a/index.html b/index.html new file mode 100644 index 0000000..6beee68 --- /dev/null +++ b/index.html @@ -0,0 +1,17 @@ + + + + + + + + + Salmon Run Bingo + + + +
+