Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19eab77cc6 | ||
|
|
17061e5c37 |
No files matched your search
@@ -4,6 +4,14 @@ import { randomUUID } from 'crypto';
|
|||||||
|
|
||||||
export const init = async () => {
|
export const init = async () => {
|
||||||
env.PUBLIC_TAM_CLIENT_ID = randomUUID();
|
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 (
|
await db.run(`CREATE TABLE IF NOT EXISTS baskets (
|
||||||
prefix text,
|
prefix text,
|
||||||
b_id integer,
|
b_id integer,
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</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">
|
<div class="flex flex-row gap-1">
|
||||||
{#if functions.dupDown}
|
{#if functions.dupDown}
|
||||||
<button class={bS[prefix.color]} title="Alt + J" onclick={() => functions.dupDown()}
|
<button class={bS[prefix.color]} title="Alt + J" onclick={() => functions.dupDown()}
|
||||||
@@ -79,8 +79,17 @@
|
|||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
{#if functions.cancel}
|
{#if functions.cancel}
|
||||||
<button class={bS[prefix.color]} title="Alt + S" onclick={() => functions.cancel()}
|
<button
|
||||||
>Cancel Marked</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}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -218,10 +218,10 @@
|
|||||||
item.changed = true;
|
item.changed = true;
|
||||||
}}
|
}}
|
||||||
onkeydown={(e) => {
|
onkeydown={(e) => {
|
||||||
if (e.key == 't') {
|
if (e.key == 't' || e.key == 'T') {
|
||||||
if (item.pref != 'TEXT') item.changed = true;
|
if (item.pref != 'TEXT') item.changed = true;
|
||||||
item.pref = 'TEXT';
|
item.pref = 'TEXT';
|
||||||
} else if (e.key == 'c') {
|
} else if (e.key == 'c' || e.key == 'C') {
|
||||||
if (item.pref != 'CALL') item.changed = true;
|
if (item.pref != 'CALL') item.changed = true;
|
||||||
item.pref = 'CALL';
|
item.pref = 'CALL';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user