Files
GitLite/src/main.ts
T
Christoph Brandau cc179e9eef feat(splashscreen): implement a splash screen for application startup
This commit introduces a splash screen that enhances the user experience during application startup. It includes a new HTML file for the splash screen layout and a corresponding icon. The main application logic has been updated to close the splash screen once the main application is ready.

- Added a splash screen HTML and icon for improved visual feedback
- Updated main application logic to manage splash screen visibility
- Enhanced title bar branding with an image instead of SVG
2026-07-08 15:16:51 +02:00

20 lines
446 B
TypeScript

import { mount } from "svelte";
import { invoke } from "@tauri-apps/api/core";
import App from "./App.svelte";
import "./app.css";
const target = document.getElementById("app");
if (!target) {
throw new Error("App target element was not found.");
}
const app = mount(App, { target });
void invoke("close_splashscreen").catch(() => {
// Browser preview and failed startup paths should keep working without Tauri.
});
export default app;