feat: add jsdoom
This commit is contained in:
parent
a879519b8a
commit
585a5b578b
1 changed files with 26 additions and 0 deletions
26
client/src/lib/Apps/JSDoom/JSDoom.svelte
Normal file
26
client/src/lib/Apps/JSDoom/JSDoom.svelte
Normal 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>
|
Loading…
Reference in a new issue