2024-07-12 03:17:15 +02:00
|
|
|
<script lang="ts">
|
|
|
|
import Hotkeys from "../Base/Hotkeys"
|
|
|
|
import { Translation } from "../i18n/Translation"
|
|
|
|
import { Utils } from "../../Utils"
|
|
|
|
import Translations from "../i18n/Translations"
|
|
|
|
import Tr from "../Base/Tr.svelte"
|
|
|
|
import AccordionSingle from "../Flowbite/AccordionSingle.svelte"
|
|
|
|
|
|
|
|
let keys = Hotkeys._docs
|
|
|
|
const t = Translations.t.hotkeyDocumentation
|
|
|
|
|
|
|
|
let byKey = Hotkeys.prepareDocumentation($keys)
|
|
|
|
$: {
|
|
|
|
byKey = Hotkeys.prepareDocumentation($keys)
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2024-07-21 10:52:51 +02:00
|
|
|
<AccordionSingle>
|
2024-07-12 03:17:15 +02:00
|
|
|
<div slot="header">
|
|
|
|
<Tr t={t.title} />
|
|
|
|
</div>
|
|
|
|
<Tr t={t.intro} />
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2024-07-21 10:52:51 +02:00
|
|
|
<Tr t={t.key} />
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<Tr t={t.action} />
|
|
|
|
</th>
|
2024-07-12 03:17:15 +02:00
|
|
|
</tr>
|
2024-07-21 10:52:51 +02:00
|
|
|
{#each byKey as [key, doc, alsoTriggeredBy]}
|
2024-07-12 03:17:15 +02:00
|
|
|
<tr>
|
|
|
|
<td class="flex items-center justify-center">
|
|
|
|
{#if alsoTriggeredBy}
|
|
|
|
<div class="flex items-center justify-center gap-x-1">
|
2024-07-21 10:52:51 +02:00
|
|
|
<div class="literal-code h-fit w-fit">{key}</div>
|
|
|
|
<div class="literal-code h-fit w-fit">{alsoTriggeredBy}</div>
|
2024-07-12 03:17:15 +02:00
|
|
|
</div>
|
|
|
|
{:else}
|
2024-07-21 10:52:51 +02:00
|
|
|
<div class="literal-code flex h-fit w-fit w-full items-center">{key}</div>
|
2024-07-12 03:17:15 +02:00
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
<td>
|
2024-07-21 10:52:51 +02:00
|
|
|
<Tr t={doc} />
|
|
|
|
</td>
|
2024-07-12 03:17:15 +02:00
|
|
|
</tr>
|
|
|
|
{/each}
|
|
|
|
</table>
|
|
|
|
</AccordionSingle>
|