Add statics
This commit is contained in:
@@ -822,4 +822,5 @@ export const languageEnglish = {
|
|||||||
googleCloudTokenization: "Google Cloud Tokenization",
|
googleCloudTokenization: "Google Cloud Tokenization",
|
||||||
presetChain: "Preset Chain",
|
presetChain: "Preset Chain",
|
||||||
legacyMediaFindings: "Legacy Media Findings",
|
legacyMediaFindings: "Legacy Media Findings",
|
||||||
|
staticsDisclaimer: "The statistics are based on the data from after July 2024. the data may not be accurate.",
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Check from "src/lib/UI/GUI/CheckInput.svelte";
|
import Check from "src/lib/UI/GUI/CheckInput.svelte";
|
||||||
import { language } from "src/lang";
|
import { language } from "src/lang";
|
||||||
|
import Button from "src/lib/UI/GUI/Button.svelte";
|
||||||
import { DBState } from 'src/ts/stores.svelte';
|
import { DBState } from 'src/ts/stores.svelte';
|
||||||
import { alertMd } from "src/ts/alert";
|
import { alertMd } from "src/ts/alert";
|
||||||
import { getRequestLog, isTauri } from "src/ts/globalApi.svelte";
|
import { getRequestLog, isTauri } from "src/ts/globalApi.svelte";
|
||||||
@@ -165,21 +165,23 @@
|
|||||||
<Check bind:check={DBState.db.usePlainFetch} name={language.forcePlainFetch}> <Help key="forcePlainFetch" unrecommended/></Check>
|
<Check bind:check={DBState.db.usePlainFetch} name={language.forcePlainFetch}> <Help key="forcePlainFetch" unrecommended/></Check>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<button
|
<Button
|
||||||
|
className="mt-4"
|
||||||
onclick={async () => {
|
onclick={async () => {
|
||||||
alertMd(getRequestLog())
|
alertMd(getRequestLog())
|
||||||
}}
|
}}
|
||||||
class="drop-shadow-lg p-3 border-darkborderc border-solid mt-6 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
|
>
|
||||||
{language.ShowLog}
|
{language.ShowLog}
|
||||||
</button>
|
</Button>
|
||||||
{#if Capacitor.isNativePlatform()}
|
{#if Capacitor.isNativePlatform()}
|
||||||
<button
|
<Button
|
||||||
|
className="mt-4"
|
||||||
onclick={async () => {
|
onclick={async () => {
|
||||||
estaStorage = await capStorageInvestigation()
|
estaStorage = await capStorageInvestigation()
|
||||||
}}
|
}}
|
||||||
class="drop-shadow-lg p-3 border-darkborderc border-solid mt-6 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
|
>
|
||||||
Investigate Storage
|
Investigate Storage
|
||||||
</button>
|
</Button>
|
||||||
|
|
||||||
{#if estaStorage.length > 0}
|
{#if estaStorage.length > 0}
|
||||||
<div class="mt-4 flex flex-col w-full p-2">
|
<div class="mt-4 flex flex-col w-full p-2">
|
||||||
@@ -192,12 +194,17 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{#if DBState.db.tpo}
|
<Button
|
||||||
<button
|
className="mt-4"
|
||||||
onclick={async () => {
|
onclick={async () => {
|
||||||
installPython()
|
let mdTable = "| Type | Value |\n| --- | --- |\n"
|
||||||
}}
|
const s = DBState.db.statics
|
||||||
class="drop-shadow-lg p-3 border-darkbutton border-solid mt-6 flex justify-center items-center ml-2 mr-2 border-1 hover:bg-selected text-sm">
|
for (const key in s) {
|
||||||
Test Python
|
mdTable += `| ${key} | ${s[key]} |\n`
|
||||||
</button>
|
}
|
||||||
{/if}
|
mdTable += `\n\n<small>${language.staticsDisclaimer}</small>`
|
||||||
|
alertMd(mdTable)
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Show Statistics
|
||||||
|
</Button>
|
||||||
Reference in New Issue
Block a user