format code and no semi

This commit is contained in:
lyc8503 committed 2023-11-06 00:51:41 +08:00
1 parent eba65bd654
commit 87611700c3
11 files changed
+135 -157

No files matched your search

+3 -6
View File
@@ -26,8 +26,8 @@ export default function Home({ state }: { state: MonitorState }) {
{state === undefined ? (
<Center>
<Text fw={700}>
Monitor State is not defined now, please check your worker&apos;s
status and KV binding!
Monitor State is not defined now, please check your worker&apos;s status and KV
binding!
</Text>
</Center>
) : (
@@ -64,10 +64,7 @@ export async function getServerSideProps() {
const { UPTIMEFLARE_STATE } = process.env as unknown as {
UPTIMEFLARE_STATE: KVNamespace
}
const state = (await UPTIMEFLARE_STATE?.get(
'state',
'json'
)) as unknown as MonitorState
const state = (await UPTIMEFLARE_STATE?.get('state', 'json')) as unknown as MonitorState
return { props: { state } }
}