chore: add inquirer, add blank theme

This commit is contained in:
HorizonCode committed 2026-06-01 14:21:03 +02:00
1 parent eea32cf96a
commit 31507041a5
33 files changed
+3151 -56

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<script lang="ts">
import { asset } from "./lib/assets";
import type { EZPPLauncherThemeAPI } from "./types";
const props: { api: EZPPLauncherThemeAPI } = $props();
</script>
<div class="w-full h-full flex flex-col items-center justify-center">
<audio src={asset(props.api, "audio.mp3")} loop autoplay></audio>
<img src={asset(props.api, "dance.gif")} alt="Dance" />
</div>
+2
View File
@@ -0,0 +1,2 @@
@import "tailwindcss";
/* generate custom tailwindcss themes using https://tweakcn.com/editor/theme */
+8
View File
@@ -0,0 +1,8 @@
/// <reference types="vite/client" />
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.gif';
declare module '*.webp';
declare module '*.svg';
+9
View File
@@ -0,0 +1,9 @@
import type { EZPPLauncherThemeAPI } from "../types";
export function asset(api: EZPPLauncherThemeAPI, path: string) {
const isDev = import.meta.env.DEV;
return isDev
? `/assets/${path}`
: `${api.assets}/${path}`;
}
+14
View File
@@ -0,0 +1,14 @@
// @ts-ignore: side-effect CSS import declaration not available in this context
import "./app.css";
import App from "./App.svelte";
import { mount } from "svelte";
import type { EZPPLauncherThemeAPI } from "./types";
export function mountTheme(target: HTMLElement, api: EZPPLauncherThemeAPI) {
mount(App, {
target,
props: {
api,
},
});
}
+3
View File
@@ -0,0 +1,3 @@
export type EZPPLauncherThemeAPI = {
assets: string;
}