Small fixes and touches.

This commit is contained in:
oitsjustjose 2020-11-02 11:05:43 -06:00
commit 14fe0267c7
15 changed files with 1167 additions and 534 deletions

5
.dockerignore Normal file
View file

@ -0,0 +1,5 @@
build/**
.idea/
node_modules/
vs_code/
Dockerfile

33
.eslintrc.json Normal file
View file

@ -0,0 +1,33 @@
{
"env": {
"browser": true,
"cypress/globals": true,
"es6": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"cypress",
"react"
],
"rules": {
"import/no-cycle" : 0,
"no-unused-expressions": 0,
"react/jsx-props-no-spreading": 0,
"react/prop-types": 0
}
}

6
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.tabSize": 2
}
}

28
Dockerfile Normal file
View file

@ -0,0 +1,28 @@
FROM node:14-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --production
COPY . .
RUN npm run build
FROM node:14-alpine AS server
ENV NODE_ENV=production
RUN npm install -g serve
RUN apk add postgresql-client
WORKDIR /app
COPY package*.json ./
COPY --from=builder /app/build ./build
ENV PORT=3000
EXPOSE 3000
USER node
CMD ["serve", "-s", "build"]

588
package-lock.json generated
View file

@ -1718,6 +1718,11 @@
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.5.tgz",
"integrity": "sha512-7+2BITlgjgDhH0vvwZU/HZJVyk+2XUlvxXe8dFMedNX/aMkaOq++rMAFXc0tM7ij15QaWlbdQASBR9dihi+bDQ==" "integrity": "sha512-7+2BITlgjgDhH0vvwZU/HZJVyk+2XUlvxXe8dFMedNX/aMkaOq++rMAFXc0tM7ij15QaWlbdQASBR9dihi+bDQ=="
}, },
"@types/json5": {
"version": "0.0.29",
"resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
"integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4="
},
"@types/minimatch": { "@types/minimatch": {
"version": "3.0.3", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
@ -2290,12 +2295,12 @@
} }
}, },
"aria-query": { "aria-query": {
"version": "3.0.0", "version": "4.2.2",
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz",
"integrity": "sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=", "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==",
"requires": { "requires": {
"ast-types-flow": "0.0.7", "@babel/runtime": "^7.10.2",
"commander": "^2.11.0" "@babel/runtime-corejs3": "^7.10.2"
} }
}, },
"arity-n": { "arity-n": {
@ -2365,6 +2370,16 @@
"es-abstract": "^1.17.0-next.1" "es-abstract": "^1.17.0-next.1"
} }
}, },
"array.prototype.flatmap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.2.3.tgz",
"integrity": "sha512-OOEk+lkePcg+ODXIpvuU9PAryCikCJyo7GlDG1upleEpQRx6mzL9puEBkozQ5iAx20KV0l3DbyQwqciJtqe5Pg==",
"requires": {
"define-properties": "^1.1.3",
"es-abstract": "^1.17.0-next.1",
"function-bind": "^1.1.1"
}
},
"arrify": { "arrify": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
@ -2480,6 +2495,11 @@
"resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz",
"integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==" "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA=="
}, },
"axe-core": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.0.2.tgz",
"integrity": "sha512-arU1h31OGFu+LPrOLGZ7nB45v940NMDMEJeNmbutu57P+UFDVnkZg3e+J1I2HJRZ9hT7gO8J91dn/PMrAiKakA=="
},
"axobject-query": { "axobject-query": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz", "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.2.0.tgz",
@ -3311,6 +3331,15 @@
"unset-value": "^1.0.0" "unset-value": "^1.0.0"
} }
}, },
"call-bind": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.0.tgz",
"integrity": "sha512-AEXsYIyyDY3MCzbwdhzG3Jx1R0J2wetQyUynn6dYHAO+bg8l1k7jwZtRv4ryryFs7EP+NDlikJlVe59jr0cM2w==",
"requires": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.0"
}
},
"call-me-maybe": { "call-me-maybe": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz",
@ -4972,9 +5001,34 @@
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g=="
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
} }
} }
}, },
"eslint-config-airbnb": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-18.2.0.tgz",
"integrity": "sha512-Fz4JIUKkrhO0du2cg5opdyPKQXOI2MvF8KUvN2710nJMT6jaRUpRE2swrJftAjVGL7T1otLM5ieo5RqS1v9Udg==",
"requires": {
"eslint-config-airbnb-base": "^14.2.0",
"object.assign": "^4.1.0",
"object.entries": "^1.1.2"
}
},
"eslint-config-airbnb-base": {
"version": "14.2.0",
"resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.0.tgz",
"integrity": "sha512-Snswd5oC6nJaevs3nZoLSTvGJBvzTfnBqOIArkf3cbyTyq9UD79wOk8s+RiL6bhca0p/eRO6veczhf6A/7Jy8Q==",
"requires": {
"confusing-browser-globals": "^1.0.9",
"object.assign": "^4.1.0",
"object.entries": "^1.1.2"
}
},
"eslint-config-react-app": { "eslint-config-react-app": {
"version": "5.2.1", "version": "5.2.1",
"resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-5.2.1.tgz", "resolved": "https://registry.npmjs.org/eslint-config-react-app/-/eslint-config-react-app-5.2.1.tgz",
@ -5089,6 +5143,14 @@
} }
} }
}, },
"eslint-plugin-cypress": {
"version": "2.11.2",
"resolved": "https://registry.npmjs.org/eslint-plugin-cypress/-/eslint-plugin-cypress-2.11.2.tgz",
"integrity": "sha512-1SergF1sGbVhsf7MYfOLiBhdOg6wqyeV9pXUAIDIffYTGMN3dTBQS9nFAzhLsHhO+Bn0GaVM1Ecm71XUidQ7VA==",
"requires": {
"globals": "^11.12.0"
}
},
"eslint-plugin-flowtype": { "eslint-plugin-flowtype": {
"version": "4.6.0", "version": "4.6.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-4.6.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-flowtype/-/eslint-plugin-flowtype-4.6.0.tgz",
@ -5098,22 +5160,23 @@
} }
}, },
"eslint-plugin-import": { "eslint-plugin-import": {
"version": "2.20.1", "version": "2.22.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.20.1.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz",
"integrity": "sha512-qQHgFOTjguR+LnYRoToeZWT62XM55MBVXObHM6SKFd1VzDcX/vqT1kAz8ssqigh5eMj8qXcRoXXGZpPP6RfdCw==", "integrity": "sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw==",
"requires": { "requires": {
"array-includes": "^3.0.3", "array-includes": "^3.1.1",
"array.prototype.flat": "^1.2.1", "array.prototype.flat": "^1.2.3",
"contains-path": "^0.1.0", "contains-path": "^0.1.0",
"debug": "^2.6.9", "debug": "^2.6.9",
"doctrine": "1.5.0", "doctrine": "1.5.0",
"eslint-import-resolver-node": "^0.3.2", "eslint-import-resolver-node": "^0.3.4",
"eslint-module-utils": "^2.4.1", "eslint-module-utils": "^2.6.0",
"has": "^1.0.3", "has": "^1.0.3",
"minimatch": "^3.0.4", "minimatch": "^3.0.4",
"object.values": "^1.1.0", "object.values": "^1.1.1",
"read-pkg-up": "^2.0.0", "read-pkg-up": "^2.0.0",
"resolve": "^1.12.0" "resolve": "^1.17.0",
"tsconfig-paths": "^3.9.0"
}, },
"dependencies": { "dependencies": {
"debug": { "debug": {
@ -5226,49 +5289,67 @@
"find-up": "^2.0.0", "find-up": "^2.0.0",
"read-pkg": "^2.0.0" "read-pkg": "^2.0.0"
} }
},
"resolve": {
"version": "1.18.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz",
"integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==",
"requires": {
"is-core-module": "^2.0.0",
"path-parse": "^1.0.6"
}
} }
} }
}, },
"eslint-plugin-jsx-a11y": { "eslint-plugin-jsx-a11y": {
"version": "6.2.3", "version": "6.4.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.2.3.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.4.1.tgz",
"integrity": "sha512-CawzfGt9w83tyuVekn0GDPU9ytYtxyxyFZ3aSWROmnRRFQFT2BiPJd7jvRdzNDi6oLWaS2asMeYSNMjWTV4eNg==", "integrity": "sha512-0rGPJBbwHoGNPU73/QCLP/vveMlM1b1Z9PponxO87jfr6tuH5ligXbDT6nHSSzBC8ovX2Z+BQu7Bk5D/Xgq9zg==",
"requires": { "requires": {
"@babel/runtime": "^7.4.5", "@babel/runtime": "^7.11.2",
"aria-query": "^3.0.0", "aria-query": "^4.2.2",
"array-includes": "^3.0.3", "array-includes": "^3.1.1",
"ast-types-flow": "^0.0.7", "ast-types-flow": "^0.0.7",
"axobject-query": "^2.0.2", "axe-core": "^4.0.2",
"damerau-levenshtein": "^1.0.4", "axobject-query": "^2.2.0",
"emoji-regex": "^7.0.2", "damerau-levenshtein": "^1.0.6",
"emoji-regex": "^9.0.0",
"has": "^1.0.3", "has": "^1.0.3",
"jsx-ast-utils": "^2.2.1" "jsx-ast-utils": "^3.1.0",
"language-tags": "^1.0.5"
}, },
"dependencies": { "dependencies": {
"@babel/runtime": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz",
"integrity": "sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==",
"requires": {
"regenerator-runtime": "^0.13.4"
}
},
"emoji-regex": { "emoji-regex": {
"version": "7.0.3", "version": "9.2.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.0.tgz",
"integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" "integrity": "sha512-DNc3KFPK18bPdElMJnf/Pkv5TXhxFU3YFDEuGLDRtPmV4rkmCjBkCSEp22u6rBHdSN9Vlp/GK7k98prmE1Jgug=="
} }
} }
}, },
"eslint-plugin-react": { "eslint-plugin-react": {
"version": "7.19.0", "version": "7.21.5",
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.19.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.21.5.tgz",
"integrity": "sha512-SPT8j72CGuAP+JFbT0sJHOB80TX/pu44gQ4vXH/cq+hQTiY2PuZ6IHkqXJV6x1b28GDdo1lbInjKUrrdUf0LOQ==", "integrity": "sha512-8MaEggC2et0wSF6bUeywF7qQ46ER81irOdWS4QWxnnlAEsnzeBevk1sWh7fhpCghPpXb+8Ks7hvaft6L/xsR6g==",
"requires": { "requires": {
"array-includes": "^3.1.1", "array-includes": "^3.1.1",
"array.prototype.flatmap": "^1.2.3",
"doctrine": "^2.1.0", "doctrine": "^2.1.0",
"has": "^1.0.3", "has": "^1.0.3",
"jsx-ast-utils": "^2.2.3", "jsx-ast-utils": "^2.4.1 || ^3.0.0",
"object.entries": "^1.1.1", "object.entries": "^1.1.2",
"object.fromentries": "^2.0.2", "object.fromentries": "^2.0.2",
"object.values": "^1.1.1", "object.values": "^1.1.1",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"resolve": "^1.15.1", "resolve": "^1.18.1",
"semver": "^6.3.0", "string.prototype.matchall": "^4.0.2"
"string.prototype.matchall": "^4.0.2",
"xregexp": "^4.3.0"
}, },
"dependencies": { "dependencies": {
"doctrine": { "doctrine": {
@ -5280,19 +5361,20 @@
} }
}, },
"resolve": { "resolve": {
"version": "1.17.0", "version": "1.18.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz",
"integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", "integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==",
"requires": { "requires": {
"is-core-module": "^2.0.0",
"path-parse": "^1.0.6" "path-parse": "^1.0.6"
} }
} }
} }
}, },
"eslint-plugin-react-hooks": { "eslint-plugin-react-hooks": {
"version": "1.7.0", "version": "4.2.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz",
"integrity": "sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA==" "integrity": "sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ=="
}, },
"eslint-scope": { "eslint-scope": {
"version": "5.1.0", "version": "5.1.0",
@ -6080,6 +6162,16 @@
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
}, },
"get-intrinsic": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.0.1.tgz",
"integrity": "sha512-ZnWP+AmS1VUaLgTRy47+zKtjTxz+0xMpx3I52i+aalBK1QP19ggLF3Db89KJX7kjfOfP2eoa01qc++GwPgufPg==",
"requires": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.1"
}
},
"get-own-enumerable-property-symbols": { "get-own-enumerable-property-symbols": {
"version": "3.0.2", "version": "3.0.2",
"resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz", "resolved": "https://registry.npmjs.org/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz",
@ -6870,6 +6962,14 @@
"rgba-regex": "^1.0.0" "rgba-regex": "^1.0.0"
} }
}, },
"is-core-module": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.0.0.tgz",
"integrity": "sha512-jq1AH6C8MuteOoBPwkxHafmByhL9j5q4OaPGdbuD+ZtQJVzH+i6E3BJDQcBA09k57i2Hh2yQbEG8yObZ0jdlWw==",
"requires": {
"has": "^1.0.3"
}
},
"is-data-descriptor": { "is-data-descriptor": {
"version": "0.1.4", "version": "0.1.4",
"resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
@ -6938,6 +7038,11 @@
"is-extglob": "^2.1.1" "is-extglob": "^2.1.1"
} }
}, },
"is-negative-zero": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.0.tgz",
"integrity": "sha1-lVOxIbD6wohp2p7UWeIMdUN4hGE="
},
"is-number": { "is-number": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
@ -7086,6 +7191,13 @@
"@babel/types": "^7.4.0", "@babel/types": "^7.4.0",
"istanbul-lib-coverage": "^2.0.5", "istanbul-lib-coverage": "^2.0.5",
"semver": "^6.0.0" "semver": "^6.0.0"
},
"dependencies": {
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
}
} }
}, },
"istanbul-lib-report": { "istanbul-lib-report": {
@ -7545,6 +7657,13 @@
"natural-compare": "^1.4.0", "natural-compare": "^1.4.0",
"pretty-format": "^24.9.0", "pretty-format": "^24.9.0",
"semver": "^6.2.0" "semver": "^6.2.0"
},
"dependencies": {
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
}
} }
}, },
"jest-util": { "jest-util": {
@ -7796,12 +7915,25 @@
} }
}, },
"jsx-ast-utils": { "jsx-ast-utils": {
"version": "2.4.1", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.4.1.tgz", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.1.0.tgz",
"integrity": "sha512-z1xSldJ6imESSzOjd3NNkieVJKRlKYSOtMG8SFyCj2FIrvSaSuli/WjpBkEzCBoR9bYYYFgqJw61Xhu7Lcgk+w==", "integrity": "sha512-d4/UOjg+mxAWxCiF0c5UTSwyqbchkbqCvK87aBovhnh8GtysTjWmgC63tY0cJx/HzGgm9qnA147jVBdpOiQ2RA==",
"requires": { "requires": {
"array-includes": "^3.1.1", "array-includes": "^3.1.1",
"object.assign": "^4.1.0" "object.assign": "^4.1.1"
},
"dependencies": {
"object.assign": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz",
"integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==",
"requires": {
"call-bind": "^1.0.0",
"define-properties": "^1.1.3",
"has-symbols": "^1.0.1",
"object-keys": "^1.1.1"
}
}
} }
}, },
"killable": { "killable": {
@ -7822,6 +7954,19 @@
"resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz",
"integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==" "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w=="
}, },
"language-subtag-registry": {
"version": "0.3.21",
"resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz",
"integrity": "sha512-L0IqwlIXjilBVVYKFT37X9Ih11Um5NEl9cbJIuU/SwP/zEEAbBPOnEeeuxVMf45ydWQRDQN3Nqc96OgbH1K+Pg=="
},
"language-tags": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz",
"integrity": "sha1-0yHbxNowuovzAk4ED6XBRmH5GTo=",
"requires": {
"language-subtag-registry": "~0.3.2"
}
},
"last-call-webpack-plugin": { "last-call-webpack-plugin": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz", "resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz",
@ -8519,9 +8664,9 @@
} }
}, },
"node-forge": { "node-forge": {
"version": "0.9.0", "version": "0.10.0",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.9.0.tgz", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz",
"integrity": "sha512-7ASaDa3pD+lJ3WvXFsxekJQelBKRpne+GOVbLbtHYdd7pFspyeuJHnWfLplGf3SwKGbfs/aYl5V/JCIaHVUKKQ==" "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA=="
}, },
"node-int64": { "node-int64": {
"version": "0.4.0", "version": "0.4.0",
@ -10792,6 +10937,225 @@
"webpack-dev-server": "3.10.3", "webpack-dev-server": "3.10.3",
"webpack-manifest-plugin": "2.2.0", "webpack-manifest-plugin": "2.2.0",
"workbox-webpack-plugin": "4.3.1" "workbox-webpack-plugin": "4.3.1"
},
"dependencies": {
"aria-query": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz",
"integrity": "sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=",
"requires": {
"ast-types-flow": "0.0.7",
"commander": "^2.11.0"
}
},
"debug": {
"version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
"requires": {
"ms": "2.0.0"
}
},
"doctrine": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz",
"integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=",
"requires": {
"esutils": "^2.0.2",
"isarray": "^1.0.0"
}
},
"emoji-regex": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
"integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA=="
},
"eslint-plugin-import": {
"version": "2.20.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.20.1.tgz",
"integrity": "sha512-qQHgFOTjguR+LnYRoToeZWT62XM55MBVXObHM6SKFd1VzDcX/vqT1kAz8ssqigh5eMj8qXcRoXXGZpPP6RfdCw==",
"requires": {
"array-includes": "^3.0.3",
"array.prototype.flat": "^1.2.1",
"contains-path": "^0.1.0",
"debug": "^2.6.9",
"doctrine": "1.5.0",
"eslint-import-resolver-node": "^0.3.2",
"eslint-module-utils": "^2.4.1",
"has": "^1.0.3",
"minimatch": "^3.0.4",
"object.values": "^1.1.0",
"read-pkg-up": "^2.0.0",
"resolve": "^1.12.0"
}
},
"eslint-plugin-jsx-a11y": {
"version": "6.2.3",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.2.3.tgz",
"integrity": "sha512-CawzfGt9w83tyuVekn0GDPU9ytYtxyxyFZ3aSWROmnRRFQFT2BiPJd7jvRdzNDi6oLWaS2asMeYSNMjWTV4eNg==",
"requires": {
"@babel/runtime": "^7.4.5",
"aria-query": "^3.0.0",
"array-includes": "^3.0.3",
"ast-types-flow": "^0.0.7",
"axobject-query": "^2.0.2",
"damerau-levenshtein": "^1.0.4",
"emoji-regex": "^7.0.2",
"has": "^1.0.3",
"jsx-ast-utils": "^2.2.1"
}
},
"eslint-plugin-react": {
"version": "7.19.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.19.0.tgz",
"integrity": "sha512-SPT8j72CGuAP+JFbT0sJHOB80TX/pu44gQ4vXH/cq+hQTiY2PuZ6IHkqXJV6x1b28GDdo1lbInjKUrrdUf0LOQ==",
"requires": {
"array-includes": "^3.1.1",
"doctrine": "^2.1.0",
"has": "^1.0.3",
"jsx-ast-utils": "^2.2.3",
"object.entries": "^1.1.1",
"object.fromentries": "^2.0.2",
"object.values": "^1.1.1",
"prop-types": "^15.7.2",
"resolve": "^1.15.1",
"semver": "^6.3.0",
"string.prototype.matchall": "^4.0.2",
"xregexp": "^4.3.0"
},
"dependencies": {
"doctrine": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz",
"integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==",
"requires": {
"esutils": "^2.0.2"
}
},
"resolve": {
"version": "1.18.1",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.18.1.tgz",
"integrity": "sha512-lDfCPaMKfOJXjy0dPayzPdF1phampNWr3qFCjAu+rw/qbQmr5jWH5xN2hwh9QKfw9E5v4hwV7A+jrCmL8yjjqA==",
"requires": {
"is-core-module": "^2.0.0",
"path-parse": "^1.0.6"
}
}
}
},
"eslint-plugin-react-hooks": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-1.7.0.tgz",
"integrity": "sha512-iXTCFcOmlWvw4+TOE8CLWj6yX1GwzT0Y6cUfHHZqWnSk144VmVIRcVGtUAzrLES7C798lmvnt02C7rxaOX1HNA=="
},
"find-up": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
"integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
"requires": {
"locate-path": "^2.0.0"
}
},
"jsx-ast-utils": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.4.1.tgz",
"integrity": "sha512-z1xSldJ6imESSzOjd3NNkieVJKRlKYSOtMG8SFyCj2FIrvSaSuli/WjpBkEzCBoR9bYYYFgqJw61Xhu7Lcgk+w==",
"requires": {
"array-includes": "^3.1.1",
"object.assign": "^4.1.0"
}
},
"load-json-file": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz",
"integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=",
"requires": {
"graceful-fs": "^4.1.2",
"parse-json": "^2.2.0",
"pify": "^2.0.0",
"strip-bom": "^3.0.0"
}
},
"locate-path": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
"integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
"requires": {
"p-locate": "^2.0.0",
"path-exists": "^3.0.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
},
"p-limit": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
"integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
"requires": {
"p-try": "^1.0.0"
}
},
"p-locate": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
"integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
"requires": {
"p-limit": "^1.1.0"
}
},
"p-try": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
"integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M="
},
"parse-json": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
"integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
"requires": {
"error-ex": "^1.2.0"
}
},
"path-type": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz",
"integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=",
"requires": {
"pify": "^2.0.0"
}
},
"pify": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
"integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="
},
"read-pkg": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz",
"integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=",
"requires": {
"load-json-file": "^2.0.0",
"normalize-package-data": "^2.3.2",
"path-type": "^2.0.0"
}
},
"read-pkg-up": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz",
"integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=",
"requires": {
"find-up": "^2.0.0",
"read-pkg": "^2.0.0"
}
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
}
} }
}, },
"react-transition-group": { "react-transition-group": {
@ -11341,6 +11705,11 @@
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
"integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw=="
}, },
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
},
"shallow-clone": { "shallow-clone": {
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz",
@ -11389,17 +11758,17 @@
"integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=" "integrity": "sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo="
}, },
"selfsigned": { "selfsigned": {
"version": "1.10.7", "version": "1.10.8",
"resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.7.tgz", "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.8.tgz",
"integrity": "sha512-8M3wBCzeWIJnQfl43IKwOmC4H/RAp50S8DF60znzjW5GVqTcSe2vWclt7hmYVPkKPlHWOu5EaWOMZ2Y6W8ZXTA==", "integrity": "sha512-2P4PtieJeEwVgTU9QEcwIRDQ/mXJLX8/+I3ur+Pg16nS8oNbrGxEso9NyYWy8NAmXiNl4dlAp5MwoNeCWzON4w==",
"requires": { "requires": {
"node-forge": "0.9.0" "node-forge": "^0.10.0"
} }
}, },
"semver": { "semver": {
"version": "6.3.0", "version": "7.3.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ=="
}, },
"send": { "send": {
"version": "0.17.1", "version": "0.17.1",
@ -11609,12 +11978,57 @@
"integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==" "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww=="
}, },
"side-channel": { "side-channel": {
"version": "1.0.2", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.2.tgz", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.3.tgz",
"integrity": "sha512-7rL9YlPHg7Ancea1S96Pa8/QWb4BtXL/TZvS6B8XFetGBeuhAsfmUspK6DokBeZ64+Kj9TCNRD/30pVz1BvQNA==", "integrity": "sha512-A6+ByhlLkksFoUepsGxfj5x1gTSrs+OydsRptUxeNCabQpCFUvcwIczgOigI8vhY/OJCnPnyE9rGiwgvr9cS1g==",
"requires": { "requires": {
"es-abstract": "^1.17.0-next.1", "es-abstract": "^1.18.0-next.0",
"object-inspect": "^1.7.0" "object-inspect": "^1.8.0"
},
"dependencies": {
"es-abstract": {
"version": "1.18.0-next.1",
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.0-next.1.tgz",
"integrity": "sha512-I4UGspA0wpZXWENrdA0uHbnhte683t3qT/1VFH9aX2dA5PPSf6QW5HHXf5HImaqPmjXaVeVk4RGWnaylmV7uAA==",
"requires": {
"es-to-primitive": "^1.2.1",
"function-bind": "^1.1.1",
"has": "^1.0.3",
"has-symbols": "^1.0.1",
"is-callable": "^1.2.2",
"is-negative-zero": "^2.0.0",
"is-regex": "^1.1.1",
"object-inspect": "^1.8.0",
"object-keys": "^1.1.1",
"object.assign": "^4.1.1",
"string.prototype.trimend": "^1.0.1",
"string.prototype.trimstart": "^1.0.1"
}
},
"is-callable": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.2.tgz",
"integrity": "sha512-dnMqspv5nU3LoewK2N/y7KLtxtakvTuaCsU9FU50/QDmdbHNy/4/JuRtMHqRU22o3q+W89YQndQEeCVwK+3qrA=="
},
"is-regex": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz",
"integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==",
"requires": {
"has-symbols": "^1.0.1"
}
},
"object.assign": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.2.tgz",
"integrity": "sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ==",
"requires": {
"call-bind": "^1.0.0",
"define-properties": "^1.1.3",
"has-symbols": "^1.0.1",
"object-keys": "^1.1.1"
}
}
} }
}, },
"signal-exit": { "signal-exit": {
@ -12454,6 +12868,13 @@
"integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",
"requires": { "requires": {
"semver": "^6.0.0" "semver": "^6.0.0"
},
"dependencies": {
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
}
} }
}, },
"p-locate": { "p-locate": {
@ -12657,6 +13078,27 @@
"resolved": "https://registry.npmjs.org/ts-pnp/-/ts-pnp-1.1.6.tgz", "resolved": "https://registry.npmjs.org/ts-pnp/-/ts-pnp-1.1.6.tgz",
"integrity": "sha512-CrG5GqAAzMT7144Cl+UIFP7mz/iIhiy+xQ6GGcnjTezhALT02uPMRw7tgDSESgB5MsfKt55+GPWw4ir1kVtMIQ==" "integrity": "sha512-CrG5GqAAzMT7144Cl+UIFP7mz/iIhiy+xQ6GGcnjTezhALT02uPMRw7tgDSESgB5MsfKt55+GPWw4ir1kVtMIQ=="
}, },
"tsconfig-paths": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz",
"integrity": "sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw==",
"requires": {
"@types/json5": "^0.0.29",
"json5": "^1.0.1",
"minimist": "^1.2.0",
"strip-bom": "^3.0.0"
},
"dependencies": {
"json5": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz",
"integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==",
"requires": {
"minimist": "^1.2.0"
}
}
}
},
"tslib": { "tslib": {
"version": "1.13.0", "version": "1.13.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.13.0.tgz",
@ -13470,6 +13912,11 @@
"ajv-keywords": "^3.1.0" "ajv-keywords": "^3.1.0"
} }
}, },
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
},
"string-width": { "string-width": {
"version": "2.1.1", "version": "2.1.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
@ -13945,11 +14392,22 @@
"integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==" "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="
}, },
"xregexp": { "xregexp": {
"version": "4.3.0", "version": "4.4.0",
"resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.3.0.tgz", "resolved": "https://registry.npmjs.org/xregexp/-/xregexp-4.4.0.tgz",
"integrity": "sha512-7jXDIFXh5yJ/orPn4SXjuVrWWoi4Cr8jfV1eHv9CixKSbU+jY4mxfrBwAuDvupPNKpMUY+FeIqsVw/JLT9+B8g==", "integrity": "sha512-83y4aa8o8o4NZe+L+46wpa+F1cWR/wCGOWI3tzqUso0w3/KAvXy0+Di7Oe/cbNMixDR4Jmi7NEybWU6ps25Wkg==",
"requires": { "requires": {
"@babel/runtime-corejs3": "^7.8.3" "@babel/runtime-corejs3": "^7.12.1"
},
"dependencies": {
"@babel/runtime-corejs3": {
"version": "7.12.1",
"resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.12.1.tgz",
"integrity": "sha512-umhPIcMrlBZ2aTWlWjUseW9LjQKxi1dpFlQS8DzsxB//5K+u6GLTC/JliPKHsd5kJVPIU6X/Hy0YvWOYPcMxBw==",
"requires": {
"core-js-pure": "^3.0.0",
"regenerator-runtime": "^0.13.4"
}
}
} }
}, },
"xtend": { "xtend": {

View file

@ -11,6 +11,13 @@
"@testing-library/react": "^9.5.0", "@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1", "@testing-library/user-event": "^7.2.1",
"bootstrap": "^5.0.0-alpha1", "bootstrap": "^5.0.0-alpha1",
"eslint": "^6.6.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.21.4",
"eslint-plugin-react-hooks": "^4.1.2",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"popper.js": "^1.16.1", "popper.js": "^1.16.1",
"react": "^16.13.1", "react": "^16.13.1",
@ -18,6 +25,7 @@
"react-router-dom": "^5.2.0", "react-router-dom": "^5.2.0",
"react-scripts": "3.4.1", "react-scripts": "3.4.1",
"react-transition-group": "^4.4.1", "react-transition-group": "^4.4.1",
"semver": "^7.3.2",
"sort-versions": "^0.1.7" "sort-versions": "^0.1.7"
}, },
"scripts": { "scripts": {

View file

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redirecting..</title> <title>Redirecting..</title>
<script> <script>
location.href = "/VTweaks" location.href = "/V-Tweaks"
</script> </script>
</head> </head>
<body> <body>

View file

@ -3,9 +3,7 @@ import { faLink, faBook } from '@fortawesome/free-solid-svg-icons';
import React from 'react'; import React from 'react';
import { CSSTransition } from 'react-transition-group'; import { CSSTransition } from 'react-transition-group';
export default () => (
export default () => {
return (
<CSSTransition classNames="react-router" appear in timeout={300}> <CSSTransition classNames="react-router" appear in timeout={300}>
<div className="mb-3"> <div className="mb-3">
<div className="d-flex text-center text-white geolosys masthead mb-5" style={{ height: `${50}vh` }}> <div className="d-flex text-center text-white geolosys masthead mb-5" style={{ height: `${50}vh` }}>
@ -20,21 +18,19 @@ export default () => {
</h2> </h2>
<h5>Geolosys is a TerraFirmaCraft-inspired, dynamic ores and stones mod.</h5> <h5>Geolosys is a TerraFirmaCraft-inspired, dynamic ores and stones mod.</h5>
<p> <p>
This means that ores come in HUGE plutons, but they're spread out all over the world. This means that ores come in HUGE plutons, but they&apos;re spread out all over the world.
I know a lot of people are discouraged by this concept, but Geolosys offers a handful I know a lot of people are discouraged by this concept, but Geolosys offers a handful of
of in-game documentation and tools that will aid in your discovery of new plutons throughout the world. in-game documentation and tools that will aid in your discovery of new plutons throughout
the world.
</p> </p>
<p> <p>
Geolosys has been written to be as intermod-compatible as possible. You can configure nearly every aspect Geolosys has been written to be as intermod-compatible as possible. You can configure
of it to make the best ore excavating experience for your pack! nearly every aspect of it to make the best ore excavating experience for your pack!
</p> </p>
<hr /> <hr />
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h2> <h2>
Getting Started Getting Started
@ -42,72 +38,91 @@ export default () => {
<h5>As you begin your quest into Geolosys deposit hunting, this guide might be of help.</h5> <h5>As you begin your quest into Geolosys deposit hunting, this guide might be of help.</h5>
<p> <p>
The first thing you'll want to do is see how the mod pack author has configured Geolosys's ores. The first thing you&apos;ll want to do is see how the mod pack author has configured
They are all configurable (and custom ones can even be added!) so I <i>strongly</i> suggest you Geolosys&apos;s ores. They are all configurable (and custom ones can even be added!) so I
consult the Field Manual, crafted like so: {' '}
<i>strongly</i>
{' '}
suggest you consult the Field Manual, crafted like so:
</p> </p>
<img className="rounded d-block m-auto mw-100 mb-3" src="/img/geolosys/field_manual.png" alt="Field Manual Recipe" /> <img className="rounded d-block m-auto mw-100 mb-3" src="/img/geolosys/field_manual.png" alt="Field Manual Recipe" />
<p> <p>
Once you've obtained one, you'll want to read up about Geolosys from within that manual. It'll tell Once you&apos;ve obtained one, you&apos;ll want to read up about Geolosys from within that
you all about the types of deposits in the game and where to find them. In order to do so, it'll be manual. It&apos;ll tell you all about the types of deposits in the game and where to find
easiest if you craft yourself a prospectors pick using the iron you get from <b> them. In order to do so, it&apos;ll be easiest if you craft yourself a prospectors pick
Hematite Samples</b> on the surface of your world. This pick will allow you to using the iron you get from
right-click it and see info about the deposits in your vacinity. If you are above sea level (indicated {' '}
by the overlay while holding the pro-pick in your main or off-hand), right-clicking will display deposits <b>
that are in the chunk you are standing in. If you are below sea level, right-clicking will display Hematite Samples
deposits in the vacinity of the direction you are facing (the radius for which is also configurable). </b>
{' '}
on the surface of your world. This pick will allow you to right-click it and see info
about the deposits in your vacinity. If you are above sea level (indicated by the overlay
while holding the pro-pick in your main or off-hand), right-clicking will display deposits
that are in the chunk you are standing in. If you are below sea level, right-clicking will
display deposits in the vacinity of the direction you are facing (the radius for which is
also configurable).
</p> </p>
<h6> <h6>
At this point, with some tunneling and exploring you should hopefully find your first pluton! At this point, with some tunneling and exploring you should hopefully find your first
pluton!
</h6> </h6>
<hr /> <hr />
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h2> <h2>
Geolosys JSON Config Geolosys JSON Config
</h2> </h2>
<p> <p>
Geolosys has a very robust config for creating, modifying and deleting the ores that it generates. You can Geolosys has a very robust config for creating, modifying and deleting the ores that it
find the file in your game directory at <code>config/geolosys.json</code>, and once opened you can make any generates. You can find the file in your game directory at
tweaks or changes you see fit. {' '}
<code>config/geolosys.json</code>
{' '}
, and once opened you can make any tweaks or changes you see fit.
</p> </p>
<p className="text-center"> <p className="text-center">
<FontAwesomeIcon icon={faBook} />&nbsp; <FontAwesomeIcon icon={faBook} />
&nbsp;
<b> <b>
Visit the <a href="https://docs.geolosys.com" rel="noopener noreferrer" target="_blank">ReadTheDocs page</a> for Visit the
{' '}
<a href="https://docs.geolosys.com" rel="noopener noreferrer" target="_blank">ReadTheDocs page</a>
{' '}
for
full documentation on the config file full documentation on the config file
</b> </b>
</p> </p>
<p> <p>
Once you open the config file, you may be overwhelmed (reasonably so) by the syntax of JSON Once you open the config file, you may be overwhelmed (reasonably so) by the syntax of
or the overall sheer amount of configs available in the default JSON. Don't worry, because I've recently developed JSON or the overall sheer amount of configs available in the default JSON. Don&apos;t
a tool just for that: worry, because I&apos;ve recently developed a tool just for that:
</p> </p>
<h5> <h5>
<a rel="noopener noreferrer" href="https://config.geolosys.com" target="_blank"> <a rel="noopener noreferrer" href="https://config.geolosys.com" target="_blank">
<FontAwesomeIcon icon={faLink} />&nbsp;JSON Config Generator <FontAwesomeIcon icon={faLink} />
&nbsp;JSON Config Generator
</a> </a>
</h5> </h5>
<p> <p>
In lieu of the overwhelming size and amount of configuration that can be done to Geolosys, I have developed a web tool In lieu of the overwhelming size and amount of configuration that can be done to Geolosys,
which adds a graphical interface to the configuration process. You can register for an account to save your configurations I have developed a web tool which adds a graphical interface to the configuration process.
for later download, and it supports 1.12 and 1.14/1.15+ JSON versions. You can register for an account to save your configurations for later download, and it
supports 1.12 and 1.14/1.15+ JSON versions.
</p> </p>
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h3> <h3>
<a rel="noopener noreferrer" href="https://www.curseforge.com/minecraft/mc-mods/geolosys" target="_blank"> <a rel="noopener noreferrer" href="https://www.curseforge.com/minecraft/mc-mods/geolosys" target="_blank">
<FontAwesomeIcon icon={faLink} />&nbsp;Download from CurseForge <FontAwesomeIcon icon={faLink} />
&nbsp;Download from CurseForge
</a> </a>
</h3> </h3>
</div> </div>
</div> </div>
</CSSTransition> </CSSTransition>
); );
};

View file

@ -3,8 +3,7 @@ import { CSSTransition } from 'react-transition-group';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faYoutube } from '@fortawesome/free-brands-svg-icons'; import { faYoutube } from '@fortawesome/free-brands-svg-icons';
export default () => { export default () => (
return (
<CSSTransition classNames="react-router" appear in timeout={300}> <CSSTransition classNames="react-router" appear in timeout={300}>
<div className="mb-3"> <div className="mb-3">
<div className="d-flex text-center text-white np masthead mb-5" style={{ height: `${50}vh` }}> <div className="d-flex text-center text-white np masthead mb-5" style={{ height: `${50}vh` }}>
@ -15,8 +14,14 @@ export default () => {
<div className="fluid container"> <div className="fluid container">
<h2>About</h2> <h2>About</h2>
<h5>Natural Progression is a mod which enhances early game mechanics of Minecraft with more realistic mechanics.</h5> <h5>
<p>It does so through a few mechanics which become self-evident as you play with the mod, but just a few of these are:</p> Natural Progression is a mod which enhances early game mechanics of Minecraft
with more realistic mechanics.
</h5>
<p>
It does so through a few mechanics which become self-evident as you play with the mod,
but just a few of these are:
</p>
<ul> <ul>
<li>No punching wood</li> <li>No punching wood</li>
<li>No wooden / stone tools (configurable)</li> <li>No wooden / stone tools (configurable)</li>
@ -30,23 +35,33 @@ export default () => {
<div className="fluid container"> <div className="fluid container">
<h2>Things to Know..</h2> <h2>Things to Know..</h2>
<ol> <ol>
<li>Pebbles aren't placed randomly! A pebble on the surface reflects what you'll find below; a diorite pebble indicates diorite below, sandstone pebble → sandstone, etc.</li> <li>
Pebbles aren&apos;t placed randomly! A pebble on the surface reflects what you&apos;ll
find below; a diorite pebble indicates diorite below, sandstone pebble → sandstone, etc.
</li>
<li>Twigs will now randomly spawn as well, providing an easier source of sticks.</li> <li>Twigs will now randomly spawn as well, providing an easier source of sticks.</li>
<li>Twigs and pebbles can be found under water!</li> <li>Twigs and pebbles can be found under water!</li>
<li>You can right-click any of the pebbles or twigs to break them.</li> <li>You can right-click any of the pebbles or twigs to break them.</li>
<li>Bones can be obtained by killing mobs other than skeletons, if enabled in the config.</li> <li>
<li>All sawing recipes are Datapack-based! If you want to add support for more recipes, just use the vanilla Datapack method!</li> Bones can be obtained by killing mobs other than skeletons, if enabled in the config.
</li>
<li>
All sawing recipes are Datapack-based! If you want to add support for more recipes,
just use the vanilla Datapack method!
</li>
</ol> </ol>
<hr /> <hr />
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h2><FontAwesomeIcon icon={faYoutube} />&nbsp;Reviews</h2> <h2>
<div class="embed-responsive embed-responsive-16by9"> <FontAwesomeIcon icon={faYoutube} />
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/-X1y9IJnXCk?start=134&end=144" title="YouTube video" allowfullscreen></iframe> &nbsp;Reviews
</h2>
<div className="embed-responsive embed-responsive-16by9">
<iframe className="embed-responsive-item" src="https://www.youtube.com/embed/-X1y9IJnXCk?start=134&end=144" title="YouTube video" allowFullScreen />
</div> </div>
</div> </div>
</div> </div>
</CSSTransition> </CSSTransition>
); );
};

View file

@ -1,11 +1,9 @@
import React from 'react'; import React from 'react';
import { CSSTransition } from 'react-transition-group'; import { CSSTransition } from 'react-transition-group';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faYoutube } from '@fortawesome/free-brands-svg-icons'; import { faYoutube } from '@fortawesome/free-brands-svg-icons';
export default () => { export default () => (
return (
<CSSTransition classNames="react-router" appear in timeout={300}> <CSSTransition classNames="react-router" appear in timeout={300}>
<div className="mb-3"> <div className="mb-3">
<div className="d-flex text-center text-white pb masthead mb-5" style={{ height: `${50}vh` }}> <div className="d-flex text-center text-white pb masthead mb-5" style={{ height: `${50}vh` }}>
@ -17,31 +15,42 @@ export default () => {
<div className="fluid container"> <div className="fluid container">
<h2>About</h2> <h2>About</h2>
<h5>Persistent Bits is a simple, vanilla-like chunk loading mod.</h5> <h5>Persistent Bits is a simple, vanilla-like chunk loading mod.</h5>
<p>This mod's loaders do not require any fuels, and work using two different mechanics depending on the game version:</p> <p>
This mod&apos;s loaders do not require any fuels, and work using two different
mechanics depending on the game version:
</p>
<hr /> <hr />
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h2>Chunk-Loading Mechanics</h2> <h2>Chunk-Loading Mechanics</h2>
<h3>1.14+</h3> <h3>1.14+</h3>
<p> In 1.14 and newer, Persistent Bits uses the vanilla <code>/forceload</code> mechanic to chunk load. This mechanic doesn't tick blocks such as crops, <p>
but still keeps things loaded for functionality's sake. Keep this in mind when you use it for automation -- in the future, block ticking may be implemented. {' '}
In 1.14 and newer, Persistent Bits uses the vanilla
<code>/forceload</code>
{' '}
mechanic to chunk load. This mechanic doesn&apos;t tick blocks such as crops,
but still keeps things loaded for functionality&apos;s sake. Keep this in mind when
you use it for automation -- in the future, block ticking may be implemented.
</p> </p>
<h3>1.12 and Below</h3> <h3>1.12 and Below</h3>
<p> <p>
In 1.12 and older, Persistent Bits uses Forge's Ticket-based Chunk Loading system, which keeps the entire chunk and all blocks within loaded and ticking. In 1.12 and older, Persistent Bits uses Forge&apos;s Ticket-based Chunk Loading system,
which keeps the entire chunk and all blocks within loaded and ticking.
</p> </p>
<hr /> <hr />
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h2><FontAwesomeIcon icon={faYoutube} />&nbsp;Reviews</h2> <h2>
<div class="embed-responsive embed-responsive-16by9"> <FontAwesomeIcon icon={faYoutube} />
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/tqnH56iCigg" title="YouTube video" allowfullscreen></iframe> &nbsp;Reviews
</h2>
<div className="embed-responsive embed-responsive-16by9">
<iframe className="embed-responsive-item" src="https://www.youtube.com/embed/tqnH56iCigg" title="YouTube video" allowFullScreen />
</div> </div>
</div> </div>
</div> </div>
</CSSTransition> </CSSTransition>
); );
};

View file

@ -1,8 +1,7 @@
import React from 'react'; import React from 'react';
import { CSSTransition } from 'react-transition-group'; import { CSSTransition } from 'react-transition-group';
export default () => { export default () => (
return (
<CSSTransition classNames="react-router" appear in timeout={300}> <CSSTransition classNames="react-router" appear in timeout={300}>
<div className="mb-3"> <div className="mb-3">
<div className="d-flex text-center text-white generic masthead mb-5" style={{ height: `${50}vh` }}> <div className="d-flex text-center text-white generic masthead mb-5" style={{ height: `${50}vh` }}>
@ -19,16 +18,32 @@ export default () => {
<div className="fluid container"> <div className="fluid container">
<h2>About</h2> <h2>About</h2>
<h5>Pulver adds Dusts that don't already exist for ores that have a corresponding Ingot.</h5> <h5>
<p>It does this solely using the Ore Dictionary. It checks to see if there exists some ore (for example, let's use copper), such as <code>copperOre</code>. Then it checks to see if an ingot (<code>copperIngot</code>) exists and makes sure that a dust (<code>copperDust</code>) does not exist. If an item satisfies these conditions, then Pulver will create a new dust and use the center pixel value of the first ingot it finds as an overlay color.</p> Pulver adds Dusts that don&apos;t already exist for ores that have a corresponding Ingot.
</h5>
<p>
It does this solely using the Ore Dictionary. It checks to see if there exists some ore
(for example, let&apos;s use copper), such as
<code>copperOre</code>
. Then it checks to see if an ingot (
<code>copperIngot</code>
) exists and makes sure that a dust (
<code>copperDust</code>
) does not exist. If an item satisfies these conditions, then Pulver will create a new
dust and use the center pixel value of the first ingot it finds as an overlay color.
</p>
<hr /> <hr />
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h2>How That's Helpful</h2> <h2>How That&apos;s Helpful</h2>
<p>Many Ore Processors (for example Extra Utils' crusher) use the ore dictionary to automatically add recipes - so this will bridge that gap. If you add your own processing recipe via XML / CraftTweaker / Other, then you'll already have a dust item generated with the correct textures, OreDict names and more.</p> <p>
Many Ore Processors (for example Extra Utils&apos; crusher) use the ore dictionary to
automatically add recipes - so this will bridge that gap. If you add your own processing
recipe via XML / CraftTweaker / Other, then you&apos;ll already have a dust item generated
with the correct textures, OreDict names and more.
</p>
</div> </div>
</div> </div>
</CSSTransition> </CSSTransition>
); );
};

View file

@ -1,9 +1,7 @@
import React from 'react'; import React from 'react';
import { CSSTransition } from 'react-transition-group'; import { CSSTransition } from 'react-transition-group';
export default () => (
export default () => {
return (
<CSSTransition classNames="react-router" appear in timeout={300}> <CSSTransition classNames="react-router" appear in timeout={300}>
<div className="mb-3"> <div className="mb-3">
<div className="d-flex text-center text-white generic masthead mb-5" style={{ height: `${50}vh` }}> <div className="d-flex text-center text-white generic masthead mb-5" style={{ height: `${50}vh` }}>
@ -19,18 +17,28 @@ export default () => {
<div className="fluid container"> <div className="fluid container">
<h2>About</h2> <h2>About</h2>
<h5>Tinkers Addons brings back the old Tinkers Constructs upgrade and repair mechanisms that were dropped after Minecraft 1.7.10.</h5> <h5>
<p>These features have the same effects but are implemented in a different way from the original!</p> Tinkers Addons brings back the old Tinkers Constructs upgrade and repair mechanisms that
were dropped after Minecraft 1.7.10.
</h5>
<p>
These features have the same effects but are implemented in a different way from the
original!
</p>
<hr /> <hr />
</div> </div>
<div className="fluid container"> <div className="fluid container">
<h2 className="d-flex align-items-center"> <h2 className="d-flex align-items-center">
Ameloriation Books&nbsp; Ameloriation Books&nbsp;
<img src="/img/tinkersaddons/amelioration_book_item.png" height="32px" alt="" /> <img src="/img/tinkersaddons/amelioration_book_item.png" height="32px" alt="" />
</h2> </h2>
<p>The amelioration book offers a means to bring back the old "auto-repair" mechanic to modern Tinkers'. It works just like the old Auto Repair did, repairing faster in the nether, rain, etc.. Amelioration is levelable up to Level V, just like the original.</p> <p>
The amelioration book offers a means to bring back the old &quot;auto-repair&quot;
mechanic to modern Tinkers&apos;. It works just like the old Auto Repair did, repairing
faster in the nether, rain, etc.. Amelioration is levelable up to Level V, just like the
original.
</p>
<hr /> <hr />
</div> </div>
@ -39,10 +47,14 @@ export default () => {
Upgrade Toolkits&nbsp; Upgrade Toolkits&nbsp;
<img src="/img/tinkersaddons/fake_tier.png" height="32px" alt="" /> <img src="/img/tinkersaddons/fake_tier.png" height="32px" alt="" />
</h2> </h2>
<p>Offers (and exceeds) the original "get an extra modifier" mechanic from older Tinkers' Construct, allowing you to add up to 4 extra modifiers to a tool. There are no tiers and they can be applied in any order, but they can only be applied once and progressively increase in difficulty.</p> <p>
Offers (and exceeds) the original &quot;get an extra modifier&quot; mechanic from older
Tinkers&apos; Construct, allowing you to add up to 4 extra modifiers to a tool. There
are no tiers and they can be applied in any order, but they can only be applied once
and progressively increase in difficulty.
</p>
<img className="d-block m-auto" src="/img/tinkersaddons/all_tiers.gif" width="40%" alt="" /> <img className="d-block m-auto" src="/img/tinkersaddons/all_tiers.gif" width="40%" alt="" />
</div> </div>
</div> </div>
</CSSTransition> </CSSTransition>
); );
};

View file

@ -1,78 +1,72 @@
import React, { Component } from 'react'; import React, { useState, useEffect } from 'react';
import { CSSTransition } from 'react-transition-group'; import { CSSTransition } from 'react-transition-group';
import semver from 'semver'; import semver from 'semver';
import Components from '../../vt-components.json'; import Components from '../../vt-components.json';
const searchFeatureByName = (query) => { const searchFeaturesByName = (query) => {
const q = query.toLowerCase(); const results = Components.all.map(
for (const component of Components.all) { (component) => component.features.filter(
for (const feature of component.features) { (feature) => feature.name.toLowerCase().includes(query.toLowerCase()),
if (feature.name.toLowerCase().includes(q)) { ),
return feature; ).flat();
}
} return results.length ? results : [];
}
return null;
}; };
const getAllUniqueVersions = () => { const getAllUniqueVersions = () => {
const versions = new Set(); const versions = new Set();
for (const component of Components.all) { Components.all.forEach((component) => {
for (const feature of component.features) { component.features.forEach((feature) => {
for (const version of feature.versions) { feature.versions.map((x) => versions.add(x));
versions.add(version); });
} });
}
}
return semver.sort(Array.from(versions)); return semver.sort(Array.from(versions));
// return SemverSort();
}; };
export default class VTweaks extends Component { export default () => {
const [state, setState] = useState({
constructor() {
super();
this.onSearch = this.onSearch.bind(this);
this.onVersionSet = this.onVersionSet.bind(this);
this.state = {
searching: false, searching: false,
searchFeature: null, searchFeatures: null,
versionFilter: null versionFilter: null,
}; });
}
componentDidMount() { const [initBtn, setInitBtn] = useState(null);
const id = `${Components.all[0].name.toLowerCase().replace(/ /g, '-')}-tab`;
document.getElementById(id).click();
}
onSearch(evt) { useEffect(() => {
if (initBtn) {
initBtn.click();
}
return () => {};
}, [initBtn]);
const onSearch = (evt) => {
const val = evt.target.value; const val = evt.target.value;
if (!val) {
if (val) { setState({
const feature = searchFeatureByName(val); ...state,
this.setState({
searching: true,
searchFeature: feature
});
} else {
this.setState({
searching: false, searching: false,
searchFeature: null searchFeatures: null,
}); });
} return;
} }
onVersionSet(evt) { const features = searchFeaturesByName(val);
this.setState({ setState({
searching: this.state.searching, ...state,
searchFeature: this.state.searchFeature, searching: true,
versionFilter: this.state.versionFilter === evt.target.value ? null : evt.target.value searchFeatures: features,
}); });
} };
const onVersionSet = (evt) => {
setState({
...state,
versionFilter: evt.target.value || null,
});
};
render() {
return ( return (
<CSSTransition classNames="react-router" appear in timeout={300}> <CSSTransition classNames="react-router" appear in timeout={300}>
<div> <div>
@ -88,7 +82,7 @@ export default class VTweaks extends Component {
type="text" type="text"
placeholder="Search..." placeholder="Search..."
aria-label="Search for Features" aria-label="Search for Features"
onChange={this.onSearch} onChange={onSearch}
/> />
</div> </div>
@ -98,9 +92,9 @@ export default class VTweaks extends Component {
getAllUniqueVersions().map((version) => ( getAllUniqueVersions().map((version) => (
<button <button
type="button" type="button"
className={`btn ${this.state.versionFilter === version ? 'btn-primary' : 'btn-secondary'}`} className={`btn ${state.versionFilter === version ? 'btn-primary' : 'btn-secondary'}`}
value={version} value={version}
onClick={this.onVersionSet} onClick={onVersionSet}
> >
{version} {version}
</button> </button>
@ -109,58 +103,15 @@ export default class VTweaks extends Component {
</div> </div>
</div> </div>
<div id="searchResults" className={`container w-100 h-100 justify-content-center align-items-center ${this.state.searching ? 'd-flex' : 'd-none'}`}> {state.searching && (
<div className="card h-100 pb-4">
<img src={this.state.searchFeature?.img} alt="" className="card-img-top" />
<div className="card-body">
<h5 className="text-center card-title">
{this.state.searchFeature?.name}
</h5>
<p className="card-text mb-1">
{this.state.searchFeature?.desc}
</p>
<pre className="text-center game-version">
{this.state.searchFeature?.versions.join(", ")}
</pre>
</div>
</div>
</div>
<ul className={`nav nav-tabs nav-fill ${this.state.searching ? 'd-none' : ''}`} role="tablist" style={{ cursor: "pointer" }} id="nav-tab">
{
Components.all.map((comp) => (
<li className="nav-item" role="presentation">
<div className="nav-link"
href={`#${comp.name.toLowerCase().replace(/ /g, '-')}`}
id={`${comp.name.toLowerCase().replace(/ /g, '-')}-tab`}
aria-controls={`${comp.name.toLowerCase().replace(/ /g, '-')}`}
data-toggle="tab"
>
{comp.name}
</div>
</li>
))
}
</ul>
<div className={`tab-content ${this.state.searching ? 'd-none' : ''}`} role="presentation">
{
Components.all.map((comp) => (
<div className="tab-pane fade"
id={`${comp.name.toLowerCase().replace(/ /g, '-')}`}
aria-labelledby={`${comp.name.toLowerCase().replace(/ /g, '-')}-tab`}
role="tabpanel"
>
<div className="container-fluid my-3"> <div className="container-fluid my-3">
<h2 className="text-center"> <h2 className="text-center">
{comp.name} Search Results
</h2> </h2>
<div className="row row-cols-1 row-cols-xl-3 g-4"> <div className="row row-cols-1 row-cols-xl-3 g-4">
{comp.features.map((feature) => ( {state.searchFeatures.map((feature) => (
<div className={ <div className={`col ${(state.versionFilter == null || feature.versions.includes(state.versionFilter)) ? '' : 'd-none'}`}>
`col ${(this.state.versionFilter == null || feature.versions.includes(this.state.versionFilter)) ? '' : 'd-none'}`
}>
<div className="card h-100"> <div className="card h-100">
<img src={feature.img} alt="" className="card-img-top" /> <img src={feature.img} alt="" className="card-img-top" />
<div className="card-body"> <div className="card-body">
@ -173,7 +124,83 @@ export default class VTweaks extends Component {
</div> </div>
<div className="card-footer"> <div className="card-footer">
<code className="text-center"> <code className="text-center">
{feature.versions.join(", ")} {feature.versions.join(', ')}
</code>
</div>
</div>
</div>
))}
</div>
</div>
)}
{/* <div id="searchResults" className={`container w-100 h-100 justify-content-center align-items-center ${state.searching ? 'd-flex' : 'd-none'}`}>
{state.searchFeatures && state.searchFeatures.map((feature) => (
<div className="card h-100 pb-4">
<img src={feature.img} alt="" className="card-img-top" />
<div className="card-body">
<h5 className="text-center card-title">
{feature.name}
</h5>
<p className="card-text mb-1">
{feature.desc}
</p>
<pre className="text-center game-version">
{feature.versions.join(', ')}
</pre>
</div>
</div>
))}
</div> */}
<ul className={`nav nav-tabs nav-fill ${state.searching ? 'd-none' : ''}`} role="tablist" style={{ cursor: 'pointer' }} id="nav-tab">
{
Components.all.map((comp, idx) => (
<li className="nav-item" role="presentation">
<div
className="nav-link"
href={`#${comp.name.toLowerCase().replace(/ /g, '-')}`}
id={`${comp.name.toLowerCase().replace(/ /g, '-')}-tab`}
aria-controls={`${comp.name.toLowerCase().replace(/ /g, '-')}`}
data-toggle="tab"
ref={(ref) => idx === 0 && setInitBtn(ref)}
>
{comp.name}
</div>
</li>
))
}
</ul>
<div className={`tab-content ${state.searching ? 'd-none' : ''}`} role="presentation">
{
Components.all.map((comp) => (
<div
className="tab-pane fade"
id={`${comp.name.toLowerCase().replace(/ /g, '-')}`}
aria-labelledby={`${comp.name.toLowerCase().replace(/ /g, '-')}-tab`}
role="tabpanel"
>
<div className="container-fluid my-3">
<h2 className="text-center">
{comp.name}
</h2>
<div className="row row-cols-1 row-cols-xl-3 g-4">
{comp.features.map((feature) => (
<div className={`col ${(state.versionFilter == null || feature.versions.includes(state.versionFilter)) ? '' : 'd-none'}`}>
<div className="card h-100">
<img src={feature.img} alt="" className="card-img-top" />
<div className="card-body">
<h5 className="text-center card-title">
{feature.name}
</h5>
<p className="card-text mb-1">
{feature.desc}
</p>
</div>
<div className="card-footer">
<code className="text-center">
{feature.versions.join(', ')}
</code> </code>
</div> </div>
</div> </div>
@ -188,5 +215,4 @@ export default class VTweaks extends Component {
</div> </div>
</CSSTransition> </CSSTransition>
); );
} };
}

View file

@ -2,18 +2,16 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React from 'react'; import React from 'react';
import { NavLink } from 'react-router-dom'; import { NavLink } from 'react-router-dom';
export default class NavItem extends React.Component { export default ({
render() { icon, name, to,
return ( }) => (
<li className="nav-item"> <li className="nav-item">
<NavLink exact className="nav-link" activeClassName="nav-link active" to={this.props.to}> <NavLink exact className="nav-link" activeClassName="nav-link active" to={to}>
<span> <span>
{this.props.icon == null ? '' : <FontAwesomeIcon icon={this.props.icon} /> } {icon == null ? '' : <FontAwesomeIcon icon={icon} /> }
&nbsp; &nbsp;
{this.props.name} {name}
</span> </span>
</NavLink> </NavLink>
</li> </li>
); );
}
}

View file

@ -1,17 +1,23 @@
import { } from 'bootstrap/dist/css/bootstrap.css'; import { } from 'bootstrap/dist/css/bootstrap.css';
import React from 'react'; import React from 'react';
import NavItem from './NavItem';
import { faHome } from '@fortawesome/free-solid-svg-icons'; import { faHome } from '@fortawesome/free-solid-svg-icons';
import NavItem from './NavItem';
export default () => { export default () => (
return (
<nav className="navbar navbar-expand-xl fixed-top navbar-dark bg-dark"> <nav className="navbar navbar-expand-xl fixed-top navbar-dark bg-dark">
<div className="container-fluid mw-100"> <div className="container-fluid mw-100">
<a href="/" className="navbar-brand"> <a href="/" className="navbar-brand">
<img src="/me.png" width="30" height="30" alt="" loading="lazy" /> <img src="/me.png" width="30" height="30" alt="" loading="lazy" />
</a> </a>
<button className="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" <button
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> className="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span className="navbar-toggler-icon" /> <span className="navbar-toggler-icon" />
</button> </button>
<div className="collapse navbar-collapse" id="navbarSupportedContent"> <div className="collapse navbar-collapse" id="navbarSupportedContent">
@ -28,4 +34,3 @@ export default () => {
</div> </div>
</nav> </nav>
); );
};