mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 22:22:50 +00:00
refactor(web): store for general data
This commit is contained in:
1 parent
6e9fddd384
commit
b3f9841231
3 files changed
+16
-6
No files matched your search
@@ -2,7 +2,7 @@
|
||||
import Input from '../../components/Input.svelte';
|
||||
import { IconSearch } from '@tabler/icons-svelte';
|
||||
import { router } from 'tinro';
|
||||
import { search, filteredResources } from '../../store';
|
||||
import { search, filteredResources, generalData } from '../../store';
|
||||
</script>
|
||||
|
||||
<div class="p-4 w-full h-full flex justify-between gap-4">
|
||||
@@ -25,9 +25,9 @@
|
||||
<div class="bg-dark-700 p-4 flex flex-col w-1/3 rounded-md">
|
||||
<p class="text-2xl mb-4">General data</p>
|
||||
<div class="flex flex-col text-dark-50">
|
||||
<p>Queries: 360</p>
|
||||
<p>Time querying: 332 ms</p>
|
||||
<p>Slow queries: 6</p>
|
||||
<p>Queries: {$generalData.queries}</p>
|
||||
<p>Time querying: {$generalData.timeQuerying} ms</p>
|
||||
<p class="text-yellow-500">Slow queries: {$generalData.slowQueries}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user