chore: add inquirer, add blank theme
This commit is contained in:
1 parent
eea32cf96a
commit
31507041a5
33 files changed
+3151
-56
No files matched your search
@@ -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>
|
||||
@@ -0,0 +1,2 @@
|
||||
@import "tailwindcss";
|
||||
/* generate custom tailwindcss themes using https://tweakcn.com/editor/theme */
|
||||
Vendored
+8
@@ -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';
|
||||
@@ -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}`;
|
||||
}
|
||||
@@ -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,
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export type EZPPLauncherThemeAPI = {
|
||||
assets: string;
|
||||
}
|
||||
Reference in new issue
Block a user