diff --git a/README.md b/README.md index a47605f..99613fc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ $ npm install # or pnpm install or yarn install ``` +### Learn more on the [Solid Website](https://solidjs.com) and come chat with us on our [Discord](https://discord.com/invite/solidjs) + ## Available Scripts In the project directory, you can run: @@ -16,5 +18,11 @@ Open [http://localhost:5173](http://localhost:5173) to view it in the browser. ### `npm run build` Builds the app for production to the `dist` folder.
+It correctly bundles Solid in production mode and optimizes the build for the best performance. + The build is minified and the filenames include the hashes.
-Your app is ready to be deployed! \ No newline at end of file +Your app is ready to be deployed! + +## Deployment + +Learn more about deploying your application with the [documentations](https://vitejs.dev/guide/static-deploy.html) diff --git a/package.json b/package.json index 952992d..b808fa5 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,7 @@ }, "dependencies": { "@types/node": "^20.14.10", - "@types/three": "^0.176.0", - "solid-js": "^1.8.17", - "three": "^0.176.0" + "solid-js": "^1.8.17" }, "devDependencies": { "typescript": "^5.2.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d89f785..3eda747 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,15 +11,9 @@ importers: '@types/node': specifier: ^20.14.10 version: 20.14.10 - '@types/three': - specifier: ^0.176.0 - version: 0.176.0 solid-js: specifier: ^1.8.17 version: 1.8.17 - three: - specifier: ^0.176.0 - version: 0.176.0 devDependencies: typescript: specifier: ^5.2.2 @@ -138,9 +132,6 @@ packages: resolution: {integrity: sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==} engines: {node: '>=6.9.0'} - '@dimforge/rapier3d-compat@0.12.0': - resolution: {integrity: sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==} - '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} @@ -377,9 +368,6 @@ packages: cpu: [x64] os: [win32] - '@tweenjs/tween.js@23.1.3': - resolution: {integrity: sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==} - '@types/babel__core@7.20.5': resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} @@ -398,18 +386,6 @@ packages: '@types/node@20.14.10': resolution: {integrity: sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==} - '@types/stats.js@0.17.4': - resolution: {integrity: sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==} - - '@types/three@0.176.0': - resolution: {integrity: sha512-FwfPXxCqOtP7EdYMagCFePNKoG1AGBDUEVKtluv2BTVRpSt7b+X27xNsirPCTCqY1pGYsPUzaM3jgWP7dXSxlw==} - - '@types/webxr@0.5.22': - resolution: {integrity: sha512-Vr6Stjv5jPRqH690f5I5GLjVk8GSsoQSYJ2FVd/3jJF7KaqfwPi3ehfBS96mlQ2kPCwZaX6U0rG2+NGHBKkA/A==} - - '@webgpu/types@0.1.60': - resolution: {integrity: sha512-8B/tdfRFKdrnejqmvq95ogp8tf52oZ51p3f4QD5m5Paey/qlX4Rhhy5Y8tgFMi7Ms70HzcMMw3EQjH/jdhTwlA==} - ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -473,9 +449,6 @@ packages: resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} - fflate@0.8.2: - resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -520,9 +493,6 @@ packages: resolution: {integrity: sha512-eRtbOb1N5iyH0tkQDAoQ4Ipsp/5qSR79Dzrz8hEPxRX10RWWR/iQXdoKmBSRCThY1Fh5EhISDtpSc93fpxUniQ==} engines: {node: '>=12.13'} - meshoptimizer@0.18.1: - resolution: {integrity: sha512-ZhoIoL7TNV4s5B6+rx5mC//fw8/POGyNxS/DZyCJeiZ12ScLfVwRE/GfsxwiTkMYYD5DmK2/JXnEVXqL4rF+Sw==} - ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} @@ -576,9 +546,6 @@ packages: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} - three@0.176.0: - resolution: {integrity: sha512-PWRKYWQo23ojf9oZSlRGH8K09q7nRSWx6LY/HF/UUrMdYgN9i1e2OwJYHoQjwc6HF/4lvvYLC5YC1X8UJL2ZpA==} - to-fast-properties@2.0.0: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} @@ -800,8 +767,6 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 to-fast-properties: 2.0.0 - '@dimforge/rapier3d-compat@0.12.0': {} - '@esbuild/aix-ppc64@0.21.5': optional: true @@ -936,8 +901,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.18.0': optional: true - '@tweenjs/tween.js@23.1.3': {} - '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.24.7 @@ -965,22 +928,6 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/stats.js@0.17.4': {} - - '@types/three@0.176.0': - dependencies: - '@dimforge/rapier3d-compat': 0.12.0 - '@tweenjs/tween.js': 23.1.3 - '@types/stats.js': 0.17.4 - '@types/webxr': 0.5.22 - '@webgpu/types': 0.1.60 - fflate: 0.8.2 - meshoptimizer: 0.18.1 - - '@types/webxr@0.5.22': {} - - '@webgpu/types@0.1.60': {} - ansi-styles@3.2.1: dependencies: color-convert: 1.9.3 @@ -1060,8 +1007,6 @@ snapshots: escape-string-regexp@1.0.5: {} - fflate@0.8.2: {} - fsevents@2.3.3: optional: true @@ -1089,8 +1034,6 @@ snapshots: dependencies: is-what: 4.1.16 - meshoptimizer@0.18.1: {} - ms@2.1.2: {} nanoid@3.3.7: {} @@ -1156,8 +1099,6 @@ snapshots: dependencies: has-flag: 3.0.0 - three@0.176.0: {} - to-fast-properties@2.0.0: {} typescript@5.5.2: {} diff --git a/review/App.tsx b/review/App.tsx index 4ba84c1..8df3400 100644 --- a/review/App.tsx +++ b/review/App.tsx @@ -3,28 +3,22 @@ import "./reviewed.css"; import { sendReview } from "../src/components/api"; export default function App() { - const hash = window.location.hash; - - const hashContent = hash.startsWith('#') ? hash.substring(1) : hash; - - const params = new URLSearchParams(hashContent); - - const token = params.get('access_token')!; - - if (token) { - console.log("Access Token:", token); - // Do something with your token - } else { - console.log("Access Token not found in hash."); - window.location.href = - "https://discord.com/oauth2/authorize?client_id=1208380910525743134&response_type=token&redirect_uri=https%3A%2F%2Famy.rip%2Freview%2F&scope=identify"; - } + const token = window.location.hash + .substring( + window.location.hash.indexOf("access_token") + "access_token".length + 1, + ) + .substring(0, 30); console.log(token); + if (token === "") { + window.location.href = + "https://discord.com/oauth2/authorize?client_id=1208380910525743134&response_type=token&redirect_uri=https%3A%2F%2Famy.rip%2Freview%2F&scope=identify"; + } let ref!: HTMLTextAreaElement; return (
-

DISCLAIMER: YOUR DISCORD ID WILL BE ATTACHED TO THE REVIEW IN THE SOURCE CODE.

+ + (it doesnt)