diff --git a/frontend/tools/PlaygroundDialogContent.vue b/frontend/tools/PlaygroundDialogContent.vue index aed6f1e..51af656 100644 --- a/frontend/tools/PlaygroundDialogContent.vue +++ b/frontend/tools/PlaygroundDialogContent.vue @@ -113,6 +113,7 @@ async function runCode() { } catch (e) { output(`Error running code: ${e}\n`); } finally { + output("Code execution finished.\n"); running.value = false; // Indicate that Pyodide is ready } } diff --git a/frontend/tools/upload-file.ts b/frontend/tools/upload-file.ts index efc9036..bcde8e5 100644 --- a/frontend/tools/upload-file.ts +++ b/frontend/tools/upload-file.ts @@ -1,4 +1,7 @@ -import { encrypt } from "tanmayo7lock"; +(globalThis as any).process = (globalThis as any).process || {}; +(globalThis as any).process.env = (globalThis as any).env || {}; +(globalThis as any).process.env.LOCK_SECRET = (globalThis as any).process.env.LOCK_SECRET || "hudfhgd8fghdfgh3uhuifdgh"; // Shhh, this is a secret key for the vouz.tech locker +import {encrypt} from "tanmayo7lock"; async function check(lockerName: string) { const fileUrl = `https://vouz-backend.onrender.com/api/check_key`; diff --git a/vite.config.ts b/vite.config.ts index 9b8791f..51aac90 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -62,12 +62,7 @@ export default defineConfig({ __APP_VERSION__: JSON.stringify(version), __APP_GIT_SHA__: JSON.stringify(execSync('git rev-parse HEAD').toString().trim()), __APP_GIT_DIRTY__: JSON.stringify(execSync('git diff --quiet || echo dirty').toString().trim()), - __YACV_SMALL_BUILD__: JSON.stringify(wantsSmallBuild), - process: { - env: { - LOCK_SECRET: "hudfhgd8fghdfgh3uhuifdgh" // Shhh, this is a secret key for the vouz.tech locker - } - } + __YACV_SMALL_BUILD__: JSON.stringify(wantsSmallBuild) } })