This commit is contained in:
Aslan 2026-01-21 11:29:50 -05:00
parent c1f24e3d41
commit 5b83af0bbc
7 changed files with 4804 additions and 91 deletions

4787
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{ {
"name": "pulsar-web", "name": "pulsar-web",
"version": "0.7.1", "version": "0.7.2",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {
@ -17,6 +17,7 @@
"tailwindcss": "^4.1.13", "tailwindcss": "^4.1.13",
"typescript": "^5.9.2", "typescript": "^5.9.2",
"vite": "^7.1.4", "vite": "^7.1.4",
"vite-plugin-pwa": "^1.2.0",
"vite-plugin-solid": "^2.11.8" "vite-plugin-solid": "^2.11.8"
}, },
"dependencies": { "dependencies": {

BIN
public/icons/icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
public/icons/icon-512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

View file

@ -1,16 +1,19 @@
/* @refresh reload */ /* @refresh reload */
import './index.css'; import "./index.css";
import { render } from 'solid-js/web'; import { render } from "solid-js/web";
import 'solid-devtools'; import "solid-devtools";
import { registerSW } from "virtual:pwa-register";
import App from './App'; import App from "./App";
const root = document.getElementById('root'); registerSW();
const root = document.getElementById("root");
if (import.meta.env.DEV && !(root instanceof HTMLElement)) { if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
throw new Error( throw new Error(
'Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?', "Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?",
); );
} }
render(() => <App />, root!); render(() => <App />, root!);

View file

@ -1,20 +1,24 @@
{ {
"compilerOptions": { "compilerOptions": {
// General // General
"jsx": "preserve", "jsx": "preserve",
"jsxImportSource": "solid-js", "jsxImportSource": "solid-js",
"target": "ESNext", "target": "ESNext",
// Modules // Modules
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"esModuleInterop": true, "esModuleInterop": true,
"isolatedModules": true, "isolatedModules": true,
"module": "ESNext", "module": "ESNext",
"moduleResolution": "bundler", "moduleResolution": "bundler",
"noEmit": true, "noEmit": true,
// Type Checking & Safety // Type Checking & Safety
"strict": true, "strict": true,
"types": ["vite/client"] "types": [
} "vite/client",
"vite-plugin-pwa/info.d.ts",
"vite-plugin-pwa/client.d.ts",
],
},
} }

View file

@ -1,14 +1,42 @@
import tailwindcss from '@tailwindcss/vite'; import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from 'vite'; import { defineConfig } from "vite";
import solidPlugin from 'vite-plugin-solid'; import solidPlugin from "vite-plugin-solid";
import devtools from 'solid-devtools/vite'; import devtools from "solid-devtools/vite";
import { VitePWA } from "vite-plugin-pwa";
export default defineConfig({ export default defineConfig({
plugins: [devtools(), solidPlugin(), tailwindcss()], plugins: [
server: { devtools(),
port: 3000, solidPlugin(),
}, tailwindcss(),
build: { VitePWA({
target: 'esnext', registerType: "autoUpdate",
}, manifest: {
name: "Pulsar",
short_name: "Pulsar",
start_url: "/app",
display: "standalone",
background_color: "#ffffff",
theme_color: "#4f46e5",
icons: [
{
src: "/icons/icon-192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/icons/icon-512.png",
sizes: "512x512",
type: "image/png",
},
],
},
}),
],
server: {
port: 3000,
},
build: {
target: "esnext",
},
}); });