From 4f77d50e8bbe8160b3cdf467ff668091e13306ec Mon Sep 17 00:00:00 2001 From: No1mann Date: Fri, 1 Nov 2024 22:21:11 -0400 Subject: [PATCH] Update Cache Script --- .vscode/launch.json | 58 +++-- website/index.html | 20 +- website/script.js | 43 ++-- website/style.css | 7 + workers/tiltify-cache/src/api.ts | 149 ++++++++----- workers/tiltify-cache/src/constants.ts | 12 + .../src/{ => dependencies}/tiltify.ts | 22 +- .../src/dependencies/yogscast.ts | 12 + workers/tiltify-cache/src/do/graphData.ts | 147 +++++++++++++ workers/tiltify-cache/src/do/tiltifyData.ts | 74 +++++++ workers/tiltify-cache/src/index.ts | 207 +----------------- workers/tiltify-cache/src/{ => types}/env.ts | 1 + workers/tiltify-cache/tsconfig.json | 7 +- workers/tiltify-cache/wrangler.toml | 77 ++++--- wrangler.toml | 29 ++- 15 files changed, 501 insertions(+), 364 deletions(-) create mode 100644 workers/tiltify-cache/src/constants.ts rename workers/tiltify-cache/src/{ => dependencies}/tiltify.ts (85%) create mode 100644 workers/tiltify-cache/src/dependencies/yogscast.ts create mode 100644 workers/tiltify-cache/src/do/graphData.ts create mode 100644 workers/tiltify-cache/src/do/tiltifyData.ts rename workers/tiltify-cache/src/{ => types}/env.ts (93%) diff --git a/.vscode/launch.json b/.vscode/launch.json index 2b20dfc..07f5745 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,31 +2,59 @@ "version": "0.2.0", "configurations": [ { - "name": "Run Cache Service", + "name": "Add Local KV's", "type": "f5anything", "request": "launch", - "command": "cd ${workspaceFolder}/workers/tiltify-cache/ ; npm run dev", - "terminalName": "cache", - "terminalIndex": 2, + "command": "cd ${workspaceFolder}/workers/tiltify-cache/ ; npm run kv-causes:local ; npm run kv-summary:local ; npm run kv-trends-previous:local", + "terminalName": "Other", + "terminalIndex": 0, "showTerminal": true }, { "name": "Run Website & API", - "type": "f5anything", + "type": "node", "request": "launch", - "command": "cd ${workspaceFolder} ; npm run dev", - "terminalName": "Website", - "terminalIndex": 1, - "showTerminal": true + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run", + "dev" + ], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "outputCapture": "std" }, { - "name": "Add Local KV's", - "type": "f5anything", + "name": "Run Cache Service", + "type": "node", "request": "launch", - "command": "cd ${workspaceFolder}/workers/tiltify-cache/ ; npm run kv-causes:local ; npm run kv-summary:local ; npm run kv-trends-previous:local", - "terminalName": "Other", - "terminalIndex": 0, - "showTerminal": true + "runtimeExecutable": "npm", + "runtimeArgs": [ + "run", + "dev" + ], + "cwd": "${workspaceFolder}/workers/tiltify-cache", + "console": "integratedTerminal", + "outputCapture": "std" + }, + { + "name": "Attach Debugger to Cache Service", + "type": "node", + "request": "attach", + "port": 9229, + "cwd": "${workspaceFolder}/workers/tiltify-cache", + "resolveSourceMapLocations": null, + "attachExistingChildren": false, + "autoAttachChildProcesses": false, + + } + ], + "compounds": [ + { + "name": "Debug Cache Service", + "configurations": [ + "Run Cache Service", + "Attach Debugger to Cache Service" + ] } ] } \ No newline at end of file diff --git a/website/index.html b/website/index.html index 186dc2e..1512eb6 100644 --- a/website/index.html +++ b/website/index.html @@ -5,6 +5,12 @@

+