Add @preact/signals dependency and update navbar button sizes

This commit is contained in:
wont-stream 2025-04-09 10:39:55 -04:00
parent ea18e2563f
commit 9eaeb87707
4 changed files with 16 additions and 7 deletions

View file

@ -4,6 +4,7 @@
"": {
"name": "ipv4.army-vite",
"dependencies": {
"@preact/signals": "^2.0.3",
"halfmoon": "^2.0.2",
"lucide-preact": "^0.487.0",
"preact": "^10.26.2",
@ -126,6 +127,10 @@
"@preact/preset-vite": ["@preact/preset-vite@2.10.1", "", { "dependencies": { "@babel/plugin-transform-react-jsx": "^7.22.15", "@babel/plugin-transform-react-jsx-development": "^7.22.5", "@prefresh/vite": "^2.4.1", "@rollup/pluginutils": "^4.1.1", "babel-plugin-transform-hook-names": "^1.0.2", "debug": "^4.3.4", "kolorist": "^1.8.0", "vite-prerender-plugin": "^0.5.3" }, "peerDependencies": { "@babel/core": "7.x", "vite": "2.x || 3.x || 4.x || 5.x || 6.x" } }, "sha512-59lyGBXNfZIr5OOuBUB4/IB8AqF/ULbvYnyItgK/2BJnsGJqaeaJobRVtMp1129obHQuj8oZ/dVxB9inmH8Xig=="],
"@preact/signals": ["@preact/signals@2.0.3", "", { "dependencies": { "@preact/signals-core": "^1.7.0" }, "peerDependencies": { "preact": "10.x" } }, "sha512-ZdC6w8+LdCMeALEoJgzwEAGw2YahqWGCQLfzRCRvRGC411SzcJOiti5gEqrSN+tKtGqMgicHtQ/eUUxWGTBw0A=="],
"@preact/signals-core": ["@preact/signals-core@1.8.0", "", {}, "sha512-OBvUsRZqNmjzCZXWLxkZfhcgT+Fk8DDcT/8vD6a1xhDemodyy87UJRJfASMuSD8FaAIeGgGm85ydXhm7lr4fyA=="],
"@prefresh/babel-plugin": ["@prefresh/babel-plugin@0.5.1", "", {}, "sha512-uG3jGEAysxWoyG3XkYfjYHgaySFrSsaEb4GagLzYaxlydbuREtaX+FTxuIidp241RaLl85XoHg9Ej6E4+V1pcg=="],
"@prefresh/core": ["@prefresh/core@1.5.3", "", { "peerDependencies": { "preact": "^10.0.0" } }, "sha512-nDzxj0tA1/M6APNAWqaxkZ+3sTdPHESa+gol4+Bw7rMc2btWdkLoNH7j9rGhUb8SThC0Vz0VoXtq+U+9azGLHg=="],

View file

@ -9,6 +9,7 @@
"preview": "bunx --bun vite preview"
},
"dependencies": {
"@preact/signals": "^2.0.3",
"halfmoon": "^2.0.2",
"lucide-preact": "^0.487.0",
"preact": "^10.26.2"

View file

@ -2,8 +2,6 @@ import { useState } from 'preact/hooks';
import Heart from '../heart';
const api = "lanyard.creations.works"
const statusMap = {
online: "border-success-subtle",
idle: "border-warning-subtle",
@ -14,7 +12,7 @@ const statusMap = {
export default () => {
const [status, setStatus] = useState<keyof typeof statusMap>('offline');
fetch(`https://${api}/v1/users/1273447359417942128`)
fetch("https://lanyard.creations.works/v1/users/1273447359417942128")
.then(req => req.json())
.then((res) => {
if (res.data.discord_status) {

View file

@ -1,4 +1,9 @@
import { Minus, Minimize2, X } from 'lucide-preact';
import { Minus, Minimize, X } from 'lucide-preact';
const close = () => {
window.close();
window.history.back();
}
export default () => {
return (
@ -13,9 +18,9 @@ export default () => {
IPv4 dot Army
</span>
<div class="d-flex hstack gap-2" role="search">
<button type="button" class="btn btn-outline-success btn-sm"><Minus size={15} /></button>
<button type="button" class="btn btn-outline-warning btn-sm"><Minimize2 size={15} /></button>
<button type="button" class="btn btn-outline-danger btn-sm"><X size={15} /></button>
<button type="button" class="btn btn-outline-success btn-sm"><Minus size={20} /></button>
<button type="button" class="btn btn-outline-warning btn-sm"><Minimize size={20} /></button>
<button type="button" class="btn btn-outline-danger btn-sm" onClick={close}><X size={20} /></button>
</div>
</div>
</nav>