2021-05-10 11:35:14 +01:00
|
|
|
import { PageState } from "./PageState";
|
2021-05-07 23:26:33 +01:00
|
|
|
import { pageState } from "./globalPageState";
|
2021-05-12 16:01:04 +01:00
|
|
|
import i18next from "i18next";
|
2021-05-07 20:41:40 +01:00
|
|
|
|
|
|
|
// Playground is a way to debug and test things.
|
|
|
|
// Anything you put in here is gonna be run on page initial load
|
|
|
|
// before rendering.
|
|
|
|
// Also it only runs when process.env.NODE_ENV == "development"
|
|
|
|
|
2021-05-10 11:35:14 +01:00
|
|
|
declare global {
|
2021-05-12 16:01:04 +01:00
|
|
|
interface Window {
|
|
|
|
pageState: PageState;
|
|
|
|
i18next: unknown;
|
|
|
|
}
|
2021-05-10 11:35:14 +01:00
|
|
|
}
|
|
|
|
|
2021-05-07 20:41:40 +01:00
|
|
|
// Please empty this function before committing.
|
2021-05-12 17:37:09 +01:00
|
|
|
export async function playground(): Promise<void> {
|
2021-05-07 20:41:40 +01:00
|
|
|
console.log("Welcome to Playground!");
|
2021-05-10 11:35:14 +01:00
|
|
|
window.pageState = pageState;
|
|
|
|
window.i18next = i18next;
|
2021-05-07 20:41:40 +01:00
|
|
|
}
|