(change): Updates and sheets title
This commit is contained in:
1 parent
103f1cf3c4
commit
56d7d1068d
4 files changed
+892
-705
No files matched your search
+16
-16
@@ -17,27 +17,27 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^10.0.1",
|
"@eslint/js": "^10.0.1",
|
||||||
"@sveltejs/adapter-node": "^5.5.4",
|
"@sveltejs/adapter-node": "^5.5.7",
|
||||||
"@sveltejs/kit": "^2.63.0",
|
"@sveltejs/kit": "^2.70.3",
|
||||||
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
||||||
"@tailwindcss/vite": "^4.3.0",
|
"@tailwindcss/vite": "^4.3.3",
|
||||||
"@types/better-sqlite3": "^7.6.13",
|
"@types/better-sqlite3": "^7.6.13",
|
||||||
"@types/node": "^24",
|
"@types/node": "^24.13.4",
|
||||||
"drizzle-kit": "^0.31.10",
|
"drizzle-kit": "^0.31.10",
|
||||||
"drizzle-orm": "^0.45.2",
|
"drizzle-orm": "^0.45.2",
|
||||||
"eslint": "^10.4.1",
|
"eslint": "^10.10.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"eslint-plugin-svelte": "^3.19.0",
|
"eslint-plugin-svelte": "^3.23.0",
|
||||||
"globals": "^17.6.0",
|
"globals": "^17.12.0",
|
||||||
"prettier": "^3.8.3",
|
"prettier": "^3.9.6",
|
||||||
"prettier-plugin-svelte": "^4.1.0",
|
"prettier-plugin-svelte": "^4.1.1",
|
||||||
"prettier-plugin-tailwindcss": "^0.8.0",
|
"prettier-plugin-tailwindcss": "^0.8.1",
|
||||||
"svelte": "^5.56.1",
|
"svelte": "^5.57.0",
|
||||||
"tailwindcss": "^4.3.0",
|
"tailwindcss": "^4.3.3",
|
||||||
"vite": "^8.0.16"
|
"vite": "^8.3.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"better-sqlite3": "^12.10.0",
|
"better-sqlite3": "^12.11.1",
|
||||||
"hotkeys-js": "^4.0.4"
|
"hotkeys-js": "^4.0.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+843
-680
File diff suppressed because it is too large.
Load diff
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import HeaderBar from '$lib/client/components/HeaderBar.svelte';
|
import HeaderBar from '$lib/client/components/HeaderBar.svelte';
|
||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
import { bS, iS } from '$lib/client/styles';
|
import { bS, iS, tS } from '$lib/client/styles';
|
||||||
let { data } = $props();
|
let { data } = $props();
|
||||||
let { tamClientID } = $derived(data);
|
let { tamClientID } = $derived(data);
|
||||||
|
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
let authKeys = $state([]);
|
let authKeys = $state([]);
|
||||||
let newDesc = $state('');
|
let newDesc = $state('');
|
||||||
let curKey = $state('');
|
let curKey = $state('');
|
||||||
|
let errorStatus = $state('');
|
||||||
|
|
||||||
async function getKeys() {
|
async function getKeys() {
|
||||||
const res = await fetch('/api/auth', {
|
const res = await fetch('/api/auth', {
|
||||||
@@ -26,8 +27,8 @@
|
|||||||
authKeys = [...resData];
|
authKeys = [...resData];
|
||||||
curKey = data.authKey;
|
curKey = data.authKey;
|
||||||
} else {
|
} else {
|
||||||
auth.pwd = 'Invalid Password!';
|
errorStatus = 'Invalid Password!';
|
||||||
setTimeout(() => (auth.pwd = ''), 3000);
|
setTimeout(() => (errorStatus = ''), 7000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -46,9 +47,22 @@
|
|||||||
{#if !auth.toggle}
|
{#if !auth.toggle}
|
||||||
<div class="flex flex-row gap-1 items-center py-1">
|
<div class="flex flex-row gap-1 items-center py-1">
|
||||||
<div>Password:</div>
|
<div>Password:</div>
|
||||||
<input type="password" id="pwd_input" class={iS.normal} bind:value={auth.pwd} />
|
<input
|
||||||
|
type="password"
|
||||||
|
id="pwd_input"
|
||||||
|
class={iS.normal}
|
||||||
|
onkeydown={(event) => {
|
||||||
|
if (event.key == 'Enter') {
|
||||||
|
getKeys();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
bind:value={auth.pwd}
|
||||||
|
/>
|
||||||
<button class={bS.gray} onclick={getKeys}>Login</button>
|
<button class={bS.gray} onclick={getKeys}>Login</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="py-1">
|
||||||
|
<p class={tS.red}>{errorStatus}</p>
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<table class="w-full my-1">
|
<table class="w-full my-1">
|
||||||
<thead class="text-left">
|
<thead class="text-left">
|
||||||
@@ -73,7 +87,10 @@
|
|||||||
onclick={async () => {
|
onclick={async () => {
|
||||||
const res = await fetch('/api/settings', {
|
const res = await fetch('/api/settings', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json', 'TAM-CLIENT-ID': tamClientID },
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'TAM-CLIENT-ID': tamClientID
|
||||||
|
},
|
||||||
body: JSON.stringify({ remote_key: key.auth_key })
|
body: JSON.stringify({ remote_key: key.auth_key })
|
||||||
});
|
});
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
@@ -113,7 +130,11 @@
|
|||||||
if (newDesc) {
|
if (newDesc) {
|
||||||
const res = await fetch('/api/auth', {
|
const res = await fetch('/api/auth', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'TAM-PWD': auth.pwd, 'Content-Type': 'application/json', 'TAM-CLIENT-ID': tamClientID },
|
headers: {
|
||||||
|
'TAM-PWD': auth.pwd,
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'TAM-CLIENT-ID': tamClientID
|
||||||
|
},
|
||||||
body: JSON.stringify({ description: newDesc })
|
body: JSON.stringify({ description: newDesc })
|
||||||
});
|
});
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
|
|||||||
@@ -26,9 +26,12 @@
|
|||||||
<thead class="sticky top-0">
|
<thead class="sticky top-0">
|
||||||
<tr class="print:hidden">
|
<tr class="print:hidden">
|
||||||
<td colspan="50">
|
<td colspan="50">
|
||||||
<HeaderBar>
|
<HeaderBar />
|
||||||
<div>{pageTitle}</div>
|
</td>
|
||||||
</HeaderBar>
|
</tr>
|
||||||
|
<tr class="print:hidden">
|
||||||
|
<td colspan="50">
|
||||||
|
<h1 class="text-lg font-bold">{pageTitle}</h1>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="print:hidden">
|
<tr class="print:hidden">
|
||||||
|
|||||||
Reference in new issue
Block a user