Compare commits
3 commits
571aab24ed
...
5e03f3ef36
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5e03f3ef36 | ||
![]() |
bd4bb12239 | ||
![]() |
9abec28ab8 |
12 changed files with 2160 additions and 460 deletions
|
@ -3,6 +3,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
@keyframes pulse {
|
||||||
|
|
||||||
0%,
|
0%,
|
||||||
100% {
|
100% {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
|
|
|
@ -58,7 +58,7 @@ 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>
|
||||||
|
|
|
@ -17,7 +17,7 @@ export default () => {
|
||||||
<span class="navbar-text">
|
<span class="navbar-text">
|
||||||
IPv4 dot Army
|
IPv4 dot Army
|
||||||
</span>
|
</span>
|
||||||
<div class="d-flex hstack gap-2" role="search">
|
<div class="d-flex hstack gap-2">
|
||||||
<button type="button" class="btn btn-outline-success btn-sm"><Minus size={20} /></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-warning btn-sm"><Minimize size={20} /></button>
|
||||||
<button type="button" class="btn btn-outline-danger btn-sm" onClick={close}><X size={20} /></button>
|
<button type="button" class="btn btn-outline-danger btn-sm" onClick={close}><X size={20} /></button>
|
||||||
|
|
|
@ -3,4 +3,4 @@ import './index.css'
|
||||||
import 'halfmoon/css/halfmoon.min.css';
|
import 'halfmoon/css/halfmoon.min.css';
|
||||||
import App from './components/app.tsx'
|
import App from './components/app.tsx'
|
||||||
|
|
||||||
render(<App />, document.getElementById('app')!)
|
render(<App />, document.getElementById('app') as HTMLElement || document.body)
|
||||||
|
|
|
@ -4,14 +4,20 @@
|
||||||
"target": "ES2020",
|
"target": "ES2020",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
"lib": [
|
||||||
|
"ES2020",
|
||||||
|
"DOM",
|
||||||
|
"DOM.Iterable"
|
||||||
|
],
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"react": ["./node_modules/preact/compat/"],
|
"react": [
|
||||||
"react-dom": ["./node_modules/preact/compat/"]
|
"./node_modules/preact/compat/"
|
||||||
|
],
|
||||||
|
"react-dom": [
|
||||||
|
"./node_modules/preact/compat/"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
/* Bundler mode */
|
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
|
@ -19,13 +25,13 @@
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"jsxImportSource": "preact",
|
"jsxImportSource": "preact",
|
||||||
|
|
||||||
/* Linting */
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUncheckedSideEffectImports": true
|
"noUncheckedSideEffectImports": true
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": [
|
||||||
|
"src"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -1,7 +1,11 @@
|
||||||
{
|
{
|
||||||
"files": [],
|
"files": [],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "./tsconfig.app.json" },
|
{
|
||||||
{ "path": "./tsconfig.node.json" }
|
"path": "./tsconfig.app.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./tsconfig.node.json"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -2,23 +2,23 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"lib": ["ES2023"],
|
"lib": [
|
||||||
|
"ES2023"
|
||||||
|
],
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|
||||||
/* Bundler mode */
|
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|
||||||
/* Linting */
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUncheckedSideEffectImports": true
|
"noUncheckedSideEffectImports": true
|
||||||
},
|
},
|
||||||
"include": ["vite.config.ts"]
|
"include": [
|
||||||
|
"vite.config.ts"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -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