Skip to content

Commit 80f4377

Browse files
chore: format deps (#875)
* add * Update +layout.svelte
1 parent 75f13f0 commit 80f4377

19 files changed

Lines changed: 51 additions & 49 deletions

File tree

src/frontend/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/src/lib/consts/encryption.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Deterministic derivation constants
2-
export var HKDF_SALT_STR = 'chithi-salt-v1';
2+
export var HKDF_SALT_STR = 'chithi-salt-v1';
33
export var HKDF_IV_STR = 'chithi-iv-v1';
44

55
// Argon2 parameter defaults and safety cap

src/frontend/src/lib/functions/encryption.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { DEFAULT_ARGON2_ITERATIONS, DEFAULT_ARGON2_MEMORY_KIB, MAX_ARGON2_MEMORY_KIB } from '#consts/encryption';
1+
import {
2+
DEFAULT_ARGON2_ITERATIONS,
3+
DEFAULT_ARGON2_MEMORY_KIB,
4+
MAX_ARGON2_MEMORY_KIB
5+
} from '#consts/encryption';
26
import { argon2id } from 'hash-wasm';
37

48
export function bytesToBase64(u8: Uint8Array) {

src/frontend/src/routes/(needs_onboarding)/(navbar_and_footer)/(ignore_slash)/view/[slug]/+page.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,7 @@
222222
if (entry.directory || !entry.getData) return;
223223
const rawBlob = await entry.getData(new BlobWriter('application/octet-stream'));
224224
const detectedMime = await detectMimeFromBlob(rawBlob);
225-
const viewBlob = detectedMime
226-
? rawBlob.slice(0, rawBlob.size, detectedMime)
227-
: rawBlob;
225+
const viewBlob = detectedMime ? rawBlob.slice(0, rawBlob.size, detectedMime) : rawBlob;
228226
229227
const text = await createViewableText(viewBlob, entry.filename, detectedMime);
230228
if (text !== null) {

src/frontend/src/routes/(needs_onboarding)/(navbar_and_footer)/(ignore_slash)/view/[slug]/+page.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { formatFileSize } from '#functions/bytes';
33
import { definePageMetaTags } from 'svelte-meta-tags';
44
import type { PageLoad } from './$types';
55

6-
76
export const load: PageLoad = async ({ fetch, params, url }) => {
87
let filename = 'View File';
98
let description = 'View your encrypted file with a link that automatically expires.';

src/frontend/src/routes/(needs_onboarding)/(navbar_and_footer)/speedtest/+page.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import type { PageLoad } from './$types';
44
export const load: PageLoad = ({ url }) => {
55
const ogUrl = new URL('/og/speedtest', url.origin);
66
ogUrl.searchParams.set('title', 'Network Speedtest');
7-
ogUrl.searchParams.set('description', 'Test your connection speed to the Chithi server for optimal transfers.');
7+
ogUrl.searchParams.set(
8+
'description',
9+
'Test your connection speed to the Chithi server for optimal transfers.'
10+
);
811

912
const pageTags = definePageMetaTags({
1013
title: 'Speedtest',

src/frontend/src/routes/(needs_onboarding)/(navbar_and_footer)/upload/+page.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ export const load: PageLoad = async ({ parent, fetch, url }) => {
99

1010
const ogUrl = new URL('/og/upload', url.origin);
1111
ogUrl.searchParams.set('title', 'Upload Files');
12-
ogUrl.searchParams.set('description', 'Securely upload and share encrypted files with auto-expiring links.');
12+
ogUrl.searchParams.set(
13+
'description',
14+
'Securely upload and share encrypted files with auto-expiring links.'
15+
);
1316

1417
const pageTags = definePageMetaTags({
1518
title: 'Upload',

src/frontend/src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<ModeWatcher />
6464
<QueryClientProvider client={data.queryClient}>
6565
{#if SvelteQueryDevtools}
66-
<!-- <SvelteQueryDevtools buttonPosition="top-left" /> -->
66+
<SvelteQueryDevtools buttonPosition="top-left" />
6767
{/if}
6868

6969
{@render children()}

src/frontend/src/routes/informations/+page.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ export const load: PageLoad = async ({ url }) => {
55
const ogUrl = new URL('/og/info', url.origin);
66
ogUrl.searchParams.set('label', 'INSTANCE OVERVIEW');
77
ogUrl.searchParams.set('title', 'System Information');
8-
ogUrl.searchParams.set('description', 'Explore the infrastructure, performance metrics, and configuration of your Chithi deployment.');
8+
ogUrl.searchParams.set(
9+
'description',
10+
'Explore the infrastructure, performance metrics, and configuration of your Chithi deployment.'
11+
);
912

1013
const pageTags = definePageMetaTags({
1114
title: 'Instance Information',

src/frontend/src/routes/informations/backend/+page.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ export const load: PageLoad = async ({ fetch, parent, url }) => {
66
const ogUrl = new URL('/og/info', url.origin);
77
ogUrl.searchParams.set('label', 'BACKEND INFRASTRUCTURE');
88
ogUrl.searchParams.set('title', 'Chithi Backend');
9-
ogUrl.searchParams.set('description', 'Runtime environment, service versions, and architectural metadata.');
9+
ogUrl.searchParams.set(
10+
'description',
11+
'Runtime environment, service versions, and architectural metadata.'
12+
);
1013

1114
const pageTags = definePageMetaTags({
1215
title: 'Backend Information',

0 commit comments

Comments
 (0)