forked from seth/ipv4.army
formatting
This commit is contained in:
parent
bd4bb12239
commit
5e03f3ef36
8 changed files with 2135 additions and 441 deletions
|
@ -32,4 +32,4 @@
|
||||||
"semicolons": "always"
|
"semicolons": "always"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -21,4 +21,4 @@
|
||||||
"typescript": "~5.7.2",
|
"typescript": "~5.7.2",
|
||||||
"vite": "^6.2.0"
|
"vite": "^6.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -13,8 +13,8 @@ export default () => {
|
||||||
const [status, setStatus] = useState<keyof typeof statusMap>('offline');
|
const [status, setStatus] = useState<keyof typeof statusMap>('offline');
|
||||||
|
|
||||||
fetch("https://lanyard.creations.works/v1/users/1273447359417942128")
|
fetch("https://lanyard.creations.works/v1/users/1273447359417942128")
|
||||||
.then(req => req.json())
|
.then(req => req.json())
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.data.discord_status) {
|
if (res.data.discord_status) {
|
||||||
setStatus(res.data.discord_status);
|
setStatus(res.data.discord_status);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
@keyframes pulse {
|
||||||
|
|
||||||
0%,
|
0%,
|
||||||
100% {
|
100% {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
|
|
|
@ -59,9 +59,9 @@ export default () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div style={heartrate === 0 ? "display:none" : `--bpm: ${heartrate};`} class="heart">
|
<div style={heartrate === 0 ? "display:none" : `--bpm: ${heartrate};`} class="heart">
|
||||||
♥️
|
♥️
|
||||||
<br />
|
<br />
|
||||||
<span>{heartrate} BPM</span>
|
<span>{heartrate} BPM</span>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
{
|
{
|
||||||
"files": [],
|
"files": [],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "./tsconfig.app.json" },
|
{
|
||||||
{ "path": "./tsconfig.node.json" }
|
"path": "./tsconfig.app.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./tsconfig.node.json"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -17,7 +17,7 @@ export default defineConfig({
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
} : {transformer: "lightningcss"}
|
} : { transformer: "lightningcss" }
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
cssMinify: "lightningcss",
|
cssMinify: "lightningcss",
|
||||||
|
|
Loading…
Add table
Reference in a new issue