update dependencies and fix some a11y issues

This commit is contained in:
cupcakearmy 2022-11-12 14:40:17 +01:00
parent 6ae927ce71
commit 74c3197e47
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
7 changed files with 339 additions and 350 deletions

View File

@ -12,26 +12,26 @@
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@lokalise/node-api": "^7.3.1", "@lokalise/node-api": "^7.3.1",
"@sveltejs/adapter-static": "1.0.0-next.42", "@sveltejs/adapter-static": "^1.0.0-next.48",
"@sveltejs/kit": "1.0.0-next.480", "@sveltejs/kit": "^1.0.0-next.544",
"@types/dompurify": "^2.3.3", "@types/dompurify": "^2.4.0",
"@types/file-saver": "^2.0.5", "@types/file-saver": "^2.0.5",
"@zerodevx/svelte-toast": "^0.7.2", "@zerodevx/svelte-toast": "^0.7.2",
"adm-zip": "^0.5.9", "adm-zip": "^0.5.9",
"dotenv": "^16.0.1", "dotenv": "^16.0.3",
"svelte": "^3.49.0", "svelte": "^3.53.1",
"svelte-check": "^2.8.0", "svelte-check": "^2.9.2",
"svelte-intl-precompile": "^0.10.1", "svelte-intl-precompile": "^0.10.1",
"svelte-preprocess": "^4.10.7", "svelte-preprocess": "^4.10.7",
"tslib": "^2.4.0", "tslib": "^2.4.1",
"typescript": "^4.7.4", "typescript": "^4.8.4",
"vite": "^3.0.2" "vite": "^3.2.3"
}, },
"dependencies": { "dependencies": {
"@fontsource/fira-mono": "^4.5.8", "@fontsource/fira-mono": "^4.5.10",
"copy-to-clipboard": "^3.3.1", "copy-to-clipboard": "^3.3.2",
"dompurify": "^2.3.10", "dompurify": "^2.4.1",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"pretty-bytes": "^5.6.0" "pretty-bytes": "^6.0.0"
} }
} }

View File

@ -87,6 +87,8 @@ button {
font-size: inherit; font-size: inherit;
background: inherit; background: inherit;
color: inherit; color: inherit;
border: none;
padding-inline: initial;
} }
*:disabled, *:disabled,

View File

@ -53,7 +53,9 @@
{:else} {:else}
{#each files as file} {#each files as file}
<div class="note file"> <div class="note file">
<b on:click={() => downloadFile(file)}> {file.name}</b> <button on:click={() => downloadFile(file)}>
<b>{file.name}</b>
</button>
<small> {file.type} {prettyBytes(file.size)}</small> <small> {file.type} {prettyBytes(file.size)}</small>
</div> </div>
{/each} {/each}

View File

@ -40,19 +40,19 @@
} }
</script> </script>
<div on:click={change}> <button on:click={change}>
<Icon class="icon" icon="contrast" /> <Icon class="icon" icon="contrast" />
{$theme} {$theme}
</div> </button>
<style> <style>
div :global(.icon) { button :global(.icon) {
height: 1rem; height: 1rem;
width: 1rem; width: 1rem;
margin-right: 0.5rem; margin-right: 0.5rem;
} }
div { button {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: flex-end; justify-content: flex-end;

View File

@ -7,7 +7,9 @@
<nav> <nav>
<a href="/">/home</a> <a href="/">/home</a>
<a href="/about">/about</a> <a href="/about">/about</a>
<a href="https://github.com/cupcakearmy/cryptgeon" target="_blank" rel="noopener">/code</a> <a href="https://github.com/cupcakearmy/cryptgeon" target="_blank" rel="noopener noreferrer">
code
</a>
</nav> </nav>
</footer> </footer>

View File

@ -39,7 +39,7 @@
the backend is written in rust and the frontend is svelte and typescript. the backend is written in rust and the frontend is svelte and typescript.
<br /> <br />
you are welcomed to check & audit the you are welcomed to check & audit the
<a href="https://github.com/cupcakearmy/cryptgeon" target="_blank" rel="noopener"> <a href="https://github.com/cupcakearmy/cryptgeon" target="_blank" rel="noopener noreferrer">
source code source code
</a>. </a>.
</span> </span>
@ -47,9 +47,12 @@
<AboutParagraph title="translations"> <AboutParagraph title="translations">
<span <span
>translations are managed on <a href="https://lokalise.com/" target="_blank">Lokalise</a>, >translations are managed on <a
which granted an open source license to use the paid version. If you are interested in helping href="https://lokalise.com/"
translating don't hesitate to contact me! target="_blank"
rel="noopener noreferrer">Lokalise</a
>, which granted an open source license to use the paid version. If you are interested in
helping translating don't hesitate to contact me!
</span> </span>
</AboutParagraph> </AboutParagraph>

634
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff