-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
304 changed files
with
3,548 additions
and
380 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+21.7 KB
.yarn/cache/@babel-helper-compilation-targets-npm-7.23.6-aa6f07f088-c630b98d45.zip
Binary file not shown.
Binary file added
BIN
+9.82 KB
.yarn/cache/@babel-helper-string-parser-npm-7.23.4-b1f0d030c3-c0641144cf.zip
Binary file not shown.
Binary file added
BIN
+7.16 KB
.yarn/cache/@babel-helper-validator-option-npm-7.23.5-d83bbfe738-537cde2330.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.69 KB
.yarn/cache/@leichtgewicht-ip-codec-npm-2.0.4-dd4d657af8-468de1f04d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.27 KB
.yarn/cache/@types-connect-history-api-fallback-npm-1.5.4-c8b583432c-e1dee43b85.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+12.6 KB
.yarn/cache/@types-express-serve-static-core-npm-4.17.41-7d196a92fa-12750f6511.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.29 KB
.yarn/cache/@types-html-minifier-terser-npm-6.1.0-707ea07fcb-eb843f6a8d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.74 KB
.yarn/cache/@webassemblyjs-floating-point-hex-parser-npm-1.11.6-3a9928fc76-29b0875884.zip
Binary file not shown.
Binary file added
BIN
+2.56 KB
.yarn/cache/@webassemblyjs-helper-api-error-npm-1.11.6-75f6275ff4-e8563df851.zip
Binary file not shown.
Binary file added
BIN
+3.18 KB
.yarn/cache/@webassemblyjs-helper-buffer-npm-1.11.6-69996544b0-b14d0573bf.zip
Binary file not shown.
Binary file added
BIN
+3.09 KB
.yarn/cache/@webassemblyjs-helper-numbers-npm-1.11.6-819ddab1da-f4b562fa21.zip
Binary file not shown.
Binary file added
BIN
+4.28 KB
.yarn/cache/@webassemblyjs-helper-wasm-bytecode-npm-1.11.6-3bc23747de-3535ef4f1f.zip
Binary file not shown.
Binary file added
BIN
+5.07 KB
.yarn/cache/@webassemblyjs-helper-wasm-section-npm-1.11.6-344f8ff2af-b2cf751bf4.zip
Binary file not shown.
Binary file added
BIN
+2.3 KB
.yarn/cache/@webassemblyjs-ieee754-npm-1.11.6-95c92f446a-13574b8e41.zip
Binary file not shown.
Binary file added
BIN
+11.5 KB
.yarn/cache/@webassemblyjs-leb128-npm-1.11.6-697d62da2e-7ea942dc97.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.89 KB
.yarn/cache/@webassemblyjs-wasm-edit-npm-1.11.6-8d2703f828-29ce758704.zip
Binary file not shown.
Binary file added
BIN
+5.36 KB
.yarn/cache/@webassemblyjs-wasm-gen-npm-1.11.6-0ca036cab0-a645a2eecb.zip
Binary file not shown.
Binary file added
BIN
+3.46 KB
.yarn/cache/@webassemblyjs-wasm-opt-npm-1.11.6-8be3443975-b4557f1954.zip
Binary file not shown.
Binary file added
BIN
+14.4 KB
.yarn/cache/@webassemblyjs-wasm-parser-npm-1.11.6-88e2433c21-8200a8d77c.zip
Binary file not shown.
Binary file added
BIN
+5.03 KB
.yarn/cache/@webassemblyjs-wast-printer-npm-1.11.6-3191861e3f-d2fa6a4c42.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.85 KB
.yarn/cache/acorn-import-assertions-npm-1.9.0-22f56507c7-944fb2659d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.29 KB
.yarn/cache/connect-history-api-fallback-npm-2.0.0-27b00b1571-dc5368690f.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.02 KB
.yarn/cache/conventional-commit-types-npm-3.0.0-e12e37c124-b9552de6a3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+18.7 KB
.yarn/cache/css-minimizer-webpack-plugin-npm-3.4.1-c43e10412e-065c6c1ead.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.93 KB
.yarn/cache/cssnano-preset-default-npm-5.2.14-4f99019e76-d3bbbe3d50.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.86 KB
.yarn/cache/cz-conventional-changelog-npm-3.3.0-46c1d2629a-8b76671209.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+36.2 KB
.yarn/cache/electron-to-chromium-npm-1.4.615-8beeb366eb-9ffb1d0dac.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+28.1 KB
.yarn/cache/http-proxy-middleware-npm-2.0.6-3bb17658ee-2ee85bc878.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+41.3 KB
.yarn/cache/inline-style-prefixer-npm-6.0.4-139cdfc812-caf7a75d18.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+33.6 KB
.yarn/cache/mini-css-extract-plugin-npm-2.7.6-0014d24fe7-be6f7cefc6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.61 KB
.yarn/cache/postcss-convert-values-npm-5.1.3-3ce12e6ef0-df48cdaffa.zip
Binary file not shown.
Binary file added
BIN
+6.63 KB
.yarn/cache/postcss-discard-comments-npm-5.1.2-9f30a2d082-abfd064ebc.zip
Binary file not shown.
Binary file added
BIN
+4.66 KB
.yarn/cache/postcss-discard-duplicates-npm-5.1.0-c9479e6afc-88d6964201.zip
Binary file not shown.
Binary file added
BIN
+3.75 KB
.yarn/cache/postcss-discard-empty-npm-5.1.1-7a8ea765fa-970adb12fa.zip
Binary file not shown.
Binary file added
BIN
+3.99 KB
.yarn/cache/postcss-discard-overridden-npm-5.1.0-0d3b10779a-d64d4a545a.zip
Binary file not shown.
Binary file added
BIN
+27.5 KB
.yarn/cache/postcss-merge-longhand-npm-5.1.7-8fd86b0b8a-81c3fc809f.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.3 KB
.yarn/cache/postcss-minify-font-values-npm-5.1.0-8f34fc7a1f-35e858fa41.zip
Binary file not shown.
Binary file added
BIN
+5.78 KB
.yarn/cache/postcss-minify-gradients-npm-5.1.1-ec88a4bfbc-27354072a0.zip
Binary file not shown.
Binary file added
BIN
+4.19 KB
.yarn/cache/postcss-minify-params-npm-5.1.4-e2313887a4-bd63e2cc89.zip
Binary file not shown.
Binary file added
BIN
+5.72 KB
.yarn/cache/postcss-minify-selectors-npm-5.2.1-33a6509bbc-6fdbc84f99.zip
Binary file not shown.
Binary file added
BIN
+5.8 KB
.yarn/cache/postcss-modules-extract-imports-npm-3.0.0-619311282d-4b65f2f138.zip
Binary file not shown.
Binary file added
BIN
+7.15 KB
.yarn/cache/postcss-modules-local-by-default-npm-4.0.3-f6674d7148-2f8083687f.zip
Binary file not shown.
Binary file added
BIN
+6.23 KB
.yarn/cache/postcss-modules-scope-npm-3.0.0-0678040a26-330b9398db.zip
Binary file not shown.
Binary file added
BIN
+4.84 KB
.yarn/cache/postcss-modules-values-npm-4.0.0-63d7ec543a-f7f2cdf14a.zip
Binary file not shown.
Binary file added
BIN
+3.92 KB
.yarn/cache/postcss-normalize-charset-npm-5.1.0-13c3339544-e79d92971f.zip
Binary file not shown.
Binary file added
BIN
+5.31 KB
.yarn/cache/postcss-normalize-display-values-npm-5.1.0-ae5985a0b0-b6eb7b9b02.zip
Binary file not shown.
Binary file added
BIN
+4.37 KB
.yarn/cache/postcss-normalize-positions-npm-5.1.1-82275c9405-d9afc23372.zip
Binary file not shown.
Binary file added
BIN
+5.29 KB
.yarn/cache/postcss-normalize-repeat-style-npm-5.1.1-dd2adac3b3-2c6ad2b0ae.zip
Binary file not shown.
Binary file added
BIN
+5.68 KB
.yarn/cache/postcss-normalize-string-npm-5.1.0-bf32e478d0-6e549c6e5b.zip
Binary file not shown.
Binary file added
BIN
+4.41 KB
.yarn/cache/postcss-normalize-timing-functions-npm-5.1.0-fa42b95b44-da550f50e9.zip
Binary file not shown.
Binary file added
BIN
+4.06 KB
.yarn/cache/postcss-normalize-unicode-npm-5.1.1-1a2f9f5f45-4c24d26cc9.zip
Binary file not shown.
Binary file added
BIN
+5.01 KB
.yarn/cache/postcss-normalize-url-npm-5.1.0-82c6c0bb7b-3bd4b3246d.zip
Binary file not shown.
Binary file added
BIN
+4.22 KB
.yarn/cache/postcss-normalize-whitespace-npm-5.1.1-ff5cb53565-12d8fb6d1c.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+17.9 KB
.yarn/cache/postcss-ordered-values-npm-5.1.3-c12ebfb39c-6f3ca85b6c.zip
Binary file not shown.
Binary file added
BIN
+7.05 KB
.yarn/cache/postcss-reduce-initial-npm-5.1.2-39a9b0def3-55db697f85.zip
Binary file not shown.
Binary file added
BIN
+4.71 KB
.yarn/cache/postcss-reduce-transforms-npm-5.1.0-f02f02d8ba-0c6af2cba2.zip
Binary file not shown.
Binary file added
BIN
+58.8 KB
.yarn/cache/postcss-selector-parser-npm-6.0.13-f732d92326-f89163338a.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.76 KB
.yarn/cache/postcss-unique-selectors-npm-5.1.1-ed729740f2-637e7b786e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+22.3 KB
.yarn/cache/terser-webpack-plugin-npm-5.3.9-7ba1eb45f4-41705713d6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+27.6 KB
.yarn/cache/webpack-dev-middleware-npm-5.3.3-c3f195990d-dd332cc6da.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+15 KB
.yarn/cache/webpack-manifest-plugin-npm-4.1.1-dd92074fdb-426982030d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-disable react-hooks/exhaustive-deps */ | ||
import { EffectCallback, useEffect, useState } from 'react'; | ||
|
||
/** | ||
* Simple hook that returns true once a component | ||
* has mounted. | ||
* | ||
* This is particularly useful for progressively | ||
* enhancing components in SSR where not all attributes | ||
* should be set until the client-side JS loads. | ||
*/ | ||
export const useMounted = (effect?: EffectCallback, initialState = false) => { | ||
const [isMounted, setMounted] = useState(initialState); | ||
|
||
useEffect(() => { | ||
setMounted(true); | ||
|
||
if (effect) { | ||
return effect(); | ||
} | ||
|
||
return undefined; | ||
}, []); | ||
|
||
return { | ||
isMounted, | ||
onMounted<T, R>(value: T, defaultValue?: R): T | R | undefined { | ||
return isMounted ? value : defaultValue; | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* eslint-disable no-console */ | ||
import tmijs from 'tmi.js'; | ||
|
||
const tmiClient = (channelId: string, token?: string, username?: string) => { | ||
const client = new tmijs.Client({ | ||
options: { | ||
debug: false, | ||
clientId: process.env.EXPO_PUBLIC_TWITCH_CLIENT_ID, | ||
}, | ||
channels: [channelId], | ||
identity: { | ||
username: username ?? undefined, | ||
password: token ?? undefined, | ||
}, | ||
connection: { | ||
maxReconnectAttempts: 5, | ||
reconnect: true, | ||
reconnectDecay: 1.5, | ||
reconnectInterval: 1500, | ||
}, | ||
logger: { | ||
info: (message: string) => console.log(message), | ||
warn: (message: string) => console.log(message), | ||
error: (message: string) => console.log(message), | ||
}, | ||
}); | ||
|
||
return client; | ||
}; | ||
export default tmiClient; |
Oops, something went wrong.