diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..508467f --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@sugoidogo:registry=https://gitea.sugoidogo.com/api/packages/sugoidogo/npm/ \ No newline at end of file diff --git a/dist/config.html b/dist/config.html deleted file mode 100644 index 8135d99..0000000 --- a/dist/config.html +++ /dev/null @@ -1,98 +0,0 @@ -

Sugoi Streamathon Timer

-
Loading...
-
-
- -
- -
- -
- -
- -
- -
- -
- -
- -
-
- -
- -
-
- - - Browser Source -
-

Chat Commands for Moderators:

- !subathon start
- !subathon pause
- !subathon add 1:0:0
- !subathon reset -
-
- - \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 079d0af..aa1da2b 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,21 +1,98 @@ - - - - - - - - - - - Subathon Timer - - -
-
-

Loading...

-
+

Sugoi Streamathon Timer

+
Loading...
+
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +
+
+ + + Browser Source +
+

Chat Commands for Moderators:

+ !subathon start
+ !subathon pause
+ !subathon add 1:0:0
+ !subathon reset
- - - \ No newline at end of file +
+ + \ No newline at end of file diff --git a/dist/timer.html b/dist/timer.html new file mode 100644 index 0000000..079d0af --- /dev/null +++ b/dist/timer.html @@ -0,0 +1,21 @@ + + + + + + + + + + + Subathon Timer + + +
+
+

Loading...

+
+
+ + + \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index afcf4d8..8808a41 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,12 +5,12 @@ "packages": { "": { "dependencies": { + "@sugoidogo/js-util": "^0.1.0", + "@sugoidogo/twitch-cloud-ebs": "^1.2.0", "@twurple/api": "^7.2.1", "@twurple/eventsub-ws": "^7.2.1", - "js-util": "https://gitea.sugoidogo.com/sugoidogo/js-util/releases/download/0.1.0/js-util.tgz", "localforage": "^1.10.0", - "socket.io-client": "^4.8.1", - "twitch-cloud-ebs": "https://gitea.sugoidogo.com/sugoidogo/twitch-cloud-ebs/releases/download/1.1.4/twitch-cloud-ebs.tgz" + "socket.io-client": "^4.8.1" }, "devDependencies": { "@types/web": "^0.0.301", @@ -1177,11 +1177,22 @@ "dev": true, "license": "CC0-1.0" }, + "node_modules/@sugoidogo/js-util": { + "version": "0.1.0", + "resolved": "https://gitea.sugoidogo.com/api/packages/sugoidogo/npm/%40sugoidogo%2Fjs-util/-/0.1.0/js-util-0.1.0.tgz", + "integrity": "sha512-RUFJ8ascVLDFdxXEjsZWGgl/QOCacOUUloAhR8X7ezuKZOYvRFCNpgmnWKhuCMYuKRmymLhP0LU1TUAc6V8uRA==" + }, + "node_modules/@sugoidogo/twitch-cloud-ebs": { + "version": "1.2.0", + "resolved": "https://gitea.sugoidogo.com/api/packages/sugoidogo/npm/%40sugoidogo%2Ftwitch-cloud-ebs/-/1.2.0/twitch-cloud-ebs-1.2.0.tgz", + "integrity": "sha512-tod/4nNVu49EmdO+Mqw86nFTnG3GGWV+nsStozPqxhs/96CcEH3K+BPSHvMlLgru7U5/k7vfcBTESkLFyVvtkA==" + }, "node_modules/@twurple/api": { "version": "7.2.1", "resolved": "https://registry.npmjs.org/@twurple/api/-/api-7.2.1.tgz", "integrity": "sha512-fqoX87GyHRL4pSmgloF5Mfj2XDJMx8fWBbcl4JGG7bgF2jvH5X9p3nzH169zqwSU/etfUdfytyoQ7/r2R+G3cg==", "license": "MIT", + "peer": true, "dependencies": { "@d-fischer/cache-decorators": "^4.0.0", "@d-fischer/cross-fetch": "^5.0.1", @@ -1223,6 +1234,7 @@ "resolved": "https://registry.npmjs.org/@twurple/auth/-/auth-7.2.1.tgz", "integrity": "sha512-IGHsJ/g0RblRSBC59XKA9277rE5w1dAKdhCPQz1QwkWnt6fsUyVoD1ut+qZvjuh7ssX1SBtNzFqohydfmWZytg==", "license": "MIT", + "peer": true, "dependencies": { "@d-fischer/logger": "^4.2.1", "@d-fischer/shared-utils": "^3.6.1", @@ -1573,11 +1585,6 @@ "dev": true, "license": "MIT" }, - "node_modules/js-util": { - "version": "0.1.0", - "resolved": "https://gitea.sugoidogo.com/sugoidogo/js-util/releases/download/0.1.0/js-util.tgz", - "integrity": "sha512-QzZFMz4wMBShSbl7ulKpJ2piaOginxvAPvJZaVHoaGJxjr7/6jcxQoolzKmb75ZRiu7CasoEp2lZehLh0j6ccw==" - }, "node_modules/kleur": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", @@ -1831,11 +1838,6 @@ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "license": "0BSD" }, - "node_modules/twitch-cloud-ebs": { - "version": "0.0.0", - "resolved": "https://gitea.sugoidogo.com/sugoidogo/twitch-cloud-ebs/releases/download/1.1.4/twitch-cloud-ebs.tgz", - "integrity": "sha512-REgS2qwKbLI1Nxw8pH5SEKJcItQENFHUrtEX9PxPvIQhNxJTj3wdOrE1qo4PpecJkqvPSLYMMhIJsfy3rZsUgA==" - }, "node_modules/undici": { "version": "7.14.0", "resolved": "https://registry.npmjs.org/undici/-/undici-7.14.0.tgz", @@ -1858,6 +1860,7 @@ "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "pathe": "^2.0.3" } @@ -1885,6 +1888,7 @@ "dev": true, "hasInstallScript": true, "license": "Apache-2.0", + "peer": true, "bin": { "workerd": "bin/workerd" }, @@ -2423,6 +2427,7 @@ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "license": "MIT", + "peer": true, "engines": { "node": ">=10.0.0" }, diff --git a/package.json b/package.json index 743936c..0ae66a2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "scripts": { "prepublish": "esbuild --outdir=dist/js --format=esm --bundle --minify --sourcemap --sources-content src/*", "publish": "wrangler pages deploy dist --project-name twitch-subathon-countdown --branch=sugoi", - "test": "wrangler pages dev dist" + "test": "wrangler pages dev dist --ip=localhost" }, "devDependencies": { "@types/web": "^0.0.301", @@ -10,11 +10,11 @@ "wrangler": "^4.54.0" }, "dependencies": { + "@sugoidogo/js-util": "^0.1.0", + "@sugoidogo/twitch-cloud-ebs": "^1.2.0", "@twurple/api": "^7.2.1", "@twurple/eventsub-ws": "^7.2.1", - "js-util": "https://gitea.sugoidogo.com/sugoidogo/js-util/releases/download/0.1.0/js-util.tgz", "localforage": "^1.10.0", - "socket.io-client": "^4.8.1", - "twitch-cloud-ebs": "https://gitea.sugoidogo.com/sugoidogo/twitch-cloud-ebs/releases/download/1.1.4/twitch-cloud-ebs.tgz" + "socket.io-client": "^4.8.1" } } diff --git a/src/config.ts b/src/config.ts index e28c1bf..49eab3c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -5,7 +5,7 @@ onerror = function (error) { } onunhandledrejection = (event) => onerror!(event.reason) -import { SugoiAuthProvider, WebStorage } from 'twitch-cloud-ebs' +import { SugoiAuthProvider, WebStorage } from '@sugoidogo/twitch-cloud-ebs' const origin = 'https://ebs.sugoidogo.com' const client_id = 'ib2n7v7mur7ab2mcxv7rjju2ctsyoi'