feat: add shortcut viewer

This commit is contained in:
2024-04-19 21:51:07 +02:00
parent f1fcf78f6c
commit e575974872
9 changed files with 232 additions and 67 deletions

View File

@ -10,6 +10,8 @@
import { AppSettings, AppSettingTypes } from "$lib/settings/app-settings";
import { get, writable, type Writable } from "svelte/store";
import Keymap from "$lib/settings/Keymap.svelte";
import { createKeyMap } from "$lib/helpers/createKeyMap";
import { setContext } from "svelte";
const nodeRegistry = new RemoteNodeRegistry("http://localhost:3001");
const runtimeExecutor = new MemoryRuntimeExecutor(nodeRegistry);
@ -30,6 +32,10 @@
localStorage.setItem("graph", JSON.stringify(event.detail));
}
const keyMap = createKeyMap([]);
setContext("keymap", keyMap);
let settings: Record<string, any> = {
general: {
id: "general",