Compare commits

..

No commits in common. "5e03f3ef36a8465791817fc29da21738e1f88199" and "571aab24eddf85704e713fe66e54e379618d3eff" have entirely different histories.

12 changed files with 460 additions and 2160 deletions

View file

@ -32,4 +32,4 @@
"semicolons": "always"
}
}
}
}

2549
bun.lock

File diff suppressed because it is too large Load diff

View file

@ -21,4 +21,4 @@
"typescript": "~5.7.2",
"vite": "^6.2.0"
}
}
}

View file

@ -13,8 +13,8 @@ export default () => {
const [status, setStatus] = useState<keyof typeof statusMap>('offline');
fetch("https://lanyard.creations.works/v1/users/1273447359417942128")
.then(req => req.json())
.then((res) => {
.then(req => req.json())
.then((res) => {
if (res.data.discord_status) {
setStatus(res.data.discord_status);
} else {

View file

@ -3,7 +3,6 @@
}
@keyframes pulse {
0%,
100% {
transform: scale(1);

View file

@ -58,10 +58,10 @@ export default () => {
return (
<>
<div style={heartrate === 0 ? "display:none" : `--bpm: ${heartrate};`} class="heart">
<br />
<span>{heartrate} BPM</span>
<div style={heartrate == 0 ? "display:none" : `--bpm: ${heartrate};`} class="heart">
<br />
<span>{heartrate} BPM</span>
</div>
</>
)

View file

@ -17,7 +17,7 @@ export default () => {
<span class="navbar-text">
IPv4 dot Army
</span>
<div class="d-flex hstack gap-2">
<div class="d-flex hstack gap-2" role="search">
<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>

View file

@ -3,4 +3,4 @@ import './index.css'
import 'halfmoon/css/halfmoon.min.css';
import App from './components/app.tsx'
render(<App />, document.getElementById('app') as HTMLElement || document.body)
render(<App />, document.getElementById('app')!)

View file

@ -4,20 +4,14 @@
"target": "ES2020",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": [
"ES2020",
"DOM",
"DOM.Iterable"
],
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"skipLibCheck": true,
"paths": {
"react": [
"./node_modules/preact/compat/"
],
"react-dom": [
"./node_modules/preact/compat/"
]
"react": ["./node_modules/preact/compat/"],
"react-dom": ["./node_modules/preact/compat/"]
},
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
@ -25,13 +19,13 @@
"noEmit": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": [
"src"
]
}
"include": ["src"]
}

View file

@ -1,11 +1,7 @@
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.node.json"
}
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
}
}

View file

@ -2,23 +2,23 @@
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2022",
"lib": [
"ES2023"
],
"lib": ["ES2023"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": [
"vite.config.ts"
]
}
"include": ["vite.config.ts"]
}

View file

@ -17,7 +17,7 @@ export default defineConfig({
})
]
}
} : { transformer: "lightningcss" }
} : {transformer: "lightningcss"}
},
build: {
cssMinify: "lightningcss",