v0.1.4-pre.005
This commit is contained in:
16
crates/ksp-app-config-desk/frontend/ts/main.ts
Normal file
16
crates/ksp-app-config-desk/frontend/ts/main.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// file: crates/ksp-app-config-desk/frontend/ts/main.ts
|
||||
// version: 1
|
||||
|
||||
import "bootstrap";
|
||||
import ResizeObserver from "resize-observer-polyfill";
|
||||
import "simplebar";
|
||||
import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||
|
||||
(window as Window & typeof globalThis & { ResizeObserver?: typeof ResizeObserver }).ResizeObserver = ResizeObserver;
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const status = document.querySelector<HTMLElement>("#shellStatus");
|
||||
if (status) {
|
||||
status.textContent = `Frontend chargé dans la fenêtre '${getCurrentWindow().label}'.`;
|
||||
}
|
||||
});
|
||||
11
crates/ksp-app-config-desk/frontend/ts/splash.ts
Normal file
11
crates/ksp-app-config-desk/frontend/ts/splash.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// file: crates/ksp-app-config-desk/frontend/ts/splash.ts
|
||||
// version: 1
|
||||
|
||||
import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const status = document.querySelector<HTMLElement>("#splash-status");
|
||||
if (status) {
|
||||
status.textContent = `Frontend chargé dans la fenêtre '${getCurrentWindow().label}'. Lifecycle complet prévu en pre.008.`;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user