v0.1.0-pre.052
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-app-demo-desktop/frontend/ts/main.ts
|
||||
// version: 3
|
||||
// version: 4
|
||||
|
||||
import * as bootstrap from "bootstrap";
|
||||
import MarkdownIt from "markdown-it";
|
||||
@@ -75,6 +75,20 @@ if (openDemoBackfillLink) {
|
||||
});
|
||||
}
|
||||
|
||||
const pipelineDemoLinks: ReadonlyArray<readonly [string, string]> = [
|
||||
["openDemoCoreExtractionLink", "open_demo_core_extraction_window"],
|
||||
["openDemoDecodeReplayLink", "open_demo_decode_replay_window"],
|
||||
];
|
||||
for (const [elementId, command] of pipelineDemoLinks) {
|
||||
const link = document.querySelector<HTMLAnchorElement>(`#${elementId}`);
|
||||
if (link) {
|
||||
link.addEventListener("click", event => {
|
||||
event.preventDefault();
|
||||
void invoke(command);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const sqlDemoLinks: ReadonlyArray<readonly [string, string]> = [
|
||||
["openDemoSqlDiagLink", "open_demo_sql_diag_window"],
|
||||
["openDemoSqlPgRawLink", "open_demo_sql_pg_raw_window"],
|
||||
|
||||
Reference in New Issue
Block a user