-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package: forgot to bump the version lels feat: analytics page fix: use new api endpoint for user info build: revamp server: start converting to websockets analytics: automatically clear table on update build: fixes package.json: cleanup and fixes *: stuff, also i updated docs userscript: change user api url *: make errors more verbose userscript: add error when token is invalid user/ws: update websocket url version: bump to 2.2.0 analytics: return '...' if data is null userscript/ws: fix reconnecting userscript/crash: add WIPED message userscript/bet: emulate balance and resync every 10 games to reduce api requests backend/rain: formatted embeds to show all attributes in phone notifications userscript/crash: ACTUALLY add the wiped message now *: updated dependencies *: fix capitalization for linux backend/config: format everything to be consistent backend/browser: add a way to modify browser launch options *: also use "bonusWallet" for showing balance config: update and reformat it, again. docs: update config backend/rain: use string for pinging to prevent overflow userscript/crash: forceClose when wiped userscript/rain: fix formatting when rain concludes backend/index: update support URL backend/rain: fix epoch unix timestamp *: add dependabot updates V3 v3: start development bf/rain: implement crash: implement wallet: make use of wallet namespace for changes user: migrate to axios analytics: add quarterly reports in logs analytics/page: temporarily non-functional updater: temporarily removed docs/config: reformat and update config backend/*: better debugging logs for disconnect and reconnect analytics: add average latency backend/rain: change logger title for api calls backend/rain: change loggger title for webhook calls backend/chat: log to analytics even if it doesnt meet minimum wallet: reformat log when reconnecting analytics: reformat log for reports crash: fix not joining crash: whoops... analytics: revamp config/*: change quarterly_reports to reports *: bug fixes and other stuff analytics/rain: fix rain table colors flipped *: move all files into src instead of using different directories chore: lint analytics/page: say when rain is disabled wallet: resync wallet when re/connecting wallet: whoops latency/*: max 2 decimals latency: show if we are disconnected from the ws latency: use crash namespace for ping instead of manager analytics: use defaults crash: multiply using config cashout instead of 2x chore: lint bet: multiply to 2 again (im bad at math) bf: add roulette support analytics: integrate roulette analytics: add ping indicator colors docs: update docs for roulette docs: fix formatting build: fix build errors *: rebrand to bloxflip-autogambler *: add more files to rebranding chore: lint packages: upgrade ig
- Loading branch information
Showing
48 changed files
with
2,432 additions
and
5,425 deletions.
There are no files selected for viewing
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "ecmascript", | ||
"jsx": false, | ||
"dynamicImport": true, | ||
"privateMethod": true, | ||
"functionBind": false, | ||
"exportDefaultFrom": true, | ||
"exportNamespaceFrom": true, | ||
"decorators": false, | ||
"decoratorsBeforeExport": false, | ||
"topLevelAwait": false, | ||
"importMeta": false | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"jsc": { | ||
"parser": { | ||
"syntax": "ecmascript", | ||
"jsx": false, | ||
"dynamicImport": true, | ||
"privateMethod": true, | ||
"functionBind": false, | ||
"exportDefaultFrom": true, | ||
"exportNamespaceFrom": true, | ||
"decorators": false, | ||
"decoratorsBeforeExport": false, | ||
"topLevelAwait": false, | ||
"importMeta": false | ||
}, | ||
"target": "es2022", | ||
"loose": true, | ||
"externalHelpers": false | ||
}, | ||
"target": "es2022", | ||
"loose": true, | ||
"externalHelpers": false | ||
}, | ||
"module": { | ||
"lazy": true, | ||
"strict": true, | ||
"noInterop": false, | ||
"strictMode": true, | ||
"type": "commonjs" | ||
}, | ||
"minify": true, | ||
"sourceMaps": "inline" | ||
"module": { | ||
"lazy": true, | ||
"strict": true, | ||
"noInterop": false, | ||
"strictMode": true, | ||
"type": "commonjs" | ||
}, | ||
"minify": true, | ||
"sourceMaps": "inline" | ||
} |
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,70 @@ | ||
import { copyFile, readdir, mkdir, unlink, lstat, rmdir } from "fs/promises"; | ||
import { existsSync as exists } from "fs"; | ||
|
||
import { rollup } from "rollup"; | ||
import ts from "@rollup/plugin-typescript"; | ||
import swc from "@rollup/plugin-swc"; | ||
import esbuild from "rollup-plugin-esbuild"; | ||
import cjs from "@rollup/plugin-commonjs" | ||
|
||
const plugins = [ | ||
cjs(), | ||
ts(), | ||
swc(), | ||
esbuild({ | ||
minify: false, | ||
treeShaking: false, | ||
format: "esm" | ||
}) | ||
]; | ||
|
||
// Clear and make paths | ||
async function delDirRecursively(path) { | ||
if (!exists(path)) return; | ||
|
||
for (const file of await readdir(path)) { | ||
const filePath = `${path}/${file}`; | ||
if ((await lstat(filePath)).isDirectory()) { | ||
await delDirRecursively(filePath); | ||
} else { | ||
console.log(`Deleting file: ${filePath}`); | ||
await unlink(filePath); | ||
} | ||
} | ||
|
||
console.log(`Deleting folder: ${path}`); | ||
await rmdir(path); | ||
} | ||
await delDirRecursively("./dist/pages"); | ||
await mkdir("./dist/pages"); | ||
await mkdir("./dist/pages/public"); | ||
|
||
// Copy static files for analytics page. | ||
await copyFile("./src/pages/index.html", "./dist/pages/index.html"); | ||
if (exists("./src/pages/public")) { | ||
for (const file of await readdir("./src/pages/public")) { | ||
copyFile(`./src/pages/public/${file}`, `./dist/pages/public/${file}`); | ||
} | ||
} | ||
|
||
// Analytics Page | ||
console.log("Building Analytics..."); | ||
try { | ||
const analytics = await rollup({ | ||
input: "./src/pages/index.ts", | ||
onwarn: () => { return; }, | ||
plugins | ||
}); | ||
|
||
await analytics.write({ | ||
file: "./dist/pages/public/index.js", | ||
format: "cjs", | ||
compact: true | ||
}); | ||
await analytics.close(); | ||
|
||
console.log("Successfully built Analytics!"); | ||
} catch (err) { | ||
console.error(`Failed to build Analytics:\n ${err}`); | ||
process.exit(1); | ||
} |
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
Oops, something went wrong.