Compare commits

..
2 Commits
Author SHA1 Message Date
dbob16 19eab77cc6 (change): Embedding TLS policy 2026-09-19 17:37:47 -04:00
dbob16 17061e5c37 (change): Confirmation on cancel 2026-09-19 16:44:43 -04:00
3 changed files with 24 additions and 7 deletions

No files matched your search

+8
View File
@@ -4,6 +4,14 @@ import { randomUUID } from 'crypto';
export const init = async () => {
env.PUBLIC_TAM_CLIENT_ID = randomUUID();
const originalEmitWarning = process.emitWarning;
process.emitWarning = (warning, ...args) => {
if (typeof warning === 'string' && warning.includes('NODE_TLS_REJECT_UNAUTHORIZED')) {
return;
};
originalEmitWarning.call(process, warning, ...args);
};
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
await db.run(`CREATE TABLE IF NOT EXISTS baskets (
prefix text,
b_id integer,
@@ -40,7 +40,7 @@
}
</script>
<div class="flex flex-row gap-1 py-1 justify-between">
<div class="flex flex-row justify-between gap-1 py-1">
<div class="flex flex-row gap-1">
{#if functions.dupDown}
<button class={bS[prefix.color]} title="Alt + J" onclick={() => functions.dupDown()}
@@ -79,9 +79,18 @@
>
{/if}
{#if functions.cancel}
<button class={bS[prefix.color]} title="Alt + S" onclick={() => functions.cancel()}
>Cancel Marked</button
>
{/if}
<button
class={bS[prefix.color]}
title="Alt + S"
onclick={() => {
const yes_no = confirm(
'This will cancel all pending changes. Are you sure you want to cancel?'
);
if (yes_no) {
functions.cancel();
}
}}>Cancel Marked</button
>
{/if}
</div>
</div>
@@ -218,10 +218,10 @@
item.changed = true;
}}
onkeydown={(e) => {
if (e.key == 't') {
if (e.key == 't' || e.key == 'T') {
if (item.pref != 'TEXT') item.changed = true;
item.pref = 'TEXT';
} else if (e.key == 'c') {
} else if (e.key == 'c' || e.key == 'C') {
if (item.pref != 'CALL') item.changed = true;
item.pref = 'CALL';
}