feat: add jsdoom

This commit is contained in:
Youwen Wu 2024-02-24 20:21:42 -08:00
parent a879519b8a
commit 585a5b578b
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -0,0 +1,26 @@
<script lang="ts">
import { onMount } from "svelte";
import AppContainer from "../AppContainer.svelte";
import { doomBootupSequence } from "../../Sequences/sequences";
import { Notifications } from "../../Notifications/notifications";
onMount(() => {
doomBootupSequence();
});
const handleError = () => {
Notifications.error(
"Failed to load the Doom app. Did you add it to the app/static/external-apps directory?"
);
};
</script>
<AppContainer>
<iframe
title="JSDoom"
src="/static/external-apps/jsdoom/index.html"
class="w-full h-screen rounded-xl"
frameborder="0"
on:error={handleError}
/>
</AppContainer>