diff --git a/.tool-versions b/.tool-versions index 0c5fd0d..7c9d86b 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,4 +1,4 @@ -nodejs 16.14.0 +nodejs 18.6.0 elixir 1.13.3 erlang 24.3.4 ruby 2.6.6 diff --git a/frontend/.node-version b/frontend/.node-version index fd1bd70..4b5ebaf 100644 --- a/frontend/.node-version +++ b/frontend/.node-version @@ -1 +1 @@ -16.2.0 +18.6.0 diff --git a/frontend/package.json b/frontend/package.json index f56bd4c..1372b62 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -2,31 +2,33 @@ "name": "secrets-frontend", "license": "MPL 2.0", "scripts": { - "dev": "svelte-kit dev", - "build": "svelte-kit build", - "preview": "svelte-kit preview", + "dev": "vite dev", + "build": "vite build", + "preview": "vite preview", "lint": "prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .", "format": "prettier --write --plugin-search-dir=. ." }, "devDependencies": { - "@sveltejs/adapter-netlify": "next", - "@sveltejs/kit": "next", - "@typescript-eslint/eslint-plugin": "^5.28.0", - "@typescript-eslint/parser": "^5.28.0", + "@sveltejs/adapter-netlify": "1.0.0-next.68", + "@sveltejs/kit": "1.0.0-next.372", + "@typescript-eslint/eslint-plugin": "^5.30.6", + "@typescript-eslint/parser": "^5.30.6", "autoprefixer": "^10.4.7", - "cssnano": "^5.1.11", - "eslint": "^8.17.0", + "cssnano": "^5.1.12", + "eslint": "^8.19.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-svelte3": "^4.0.0", "postcss": "^8.4.14", "postcss-load-config": "^4.0.1", "prettier": "~2.7.1", "prettier-plugin-svelte": "^2.7.0", - "svelte": "^3.48.0", + "prettier-plugin-tailwindcss": "^0.1.12", + "svelte": "^3.49.0", "svelte-preprocess": "^4.10.7", - "tailwindcss": "^3.1.3", + "tailwindcss": "^3.1.6", "tslib": "^2.4.0", - "typescript": "^4.7.3" + "typescript": "^4.7.4", + "vite": "^2.9.10" }, "type": "module", "dependencies": { diff --git a/frontend/src/app.html b/frontend/src/app.html index 8c172db..ea7e13b 100644 --- a/frontend/src/app.html +++ b/frontend/src/app.html @@ -3,9 +3,9 @@ - %svelte.head% + %sveltekit.head% -
%svelte.body%
+
%sveltekit.body%
diff --git a/frontend/src/lib/components/Button.svelte b/frontend/src/lib/components/Button.svelte index 2c2ad6f..3f71c02 100644 --- a/frontend/src/lib/components/Button.svelte +++ b/frontend/src/lib/components/Button.svelte @@ -16,18 +16,18 @@ diff --git a/frontend/src/routes/[room].svelte b/frontend/src/routes/[room].svelte index 15b1fae..7cbe958 100644 --- a/frontend/src/routes/[room].svelte +++ b/frontend/src/routes/[room].svelte @@ -1,9 +1,9 @@ @@ -46,31 +46,31 @@ keywords="secrets,share,end-to-end,encryption,finiam" /> -
+
{#if !roomExists} -
+

This secret was either already revealed or never existed in the first place!

{:else if !loading && !decryptedSecret} -

The following secret can only be revealed once!

+

The following secret can only be revealed once!

{:else if loading} Loading... {:else if decryptedSecret} -

+

Your secret was revealed and permanently deleted from the system 🔥

{decryptedSecret}
-
+
Copy information
diff --git a/frontend/src/routes/__layout.svelte b/frontend/src/routes/__layout.svelte index 9aa5411..73bed51 100644 --- a/frontend/src/routes/__layout.svelte +++ b/frontend/src/routes/__layout.svelte @@ -22,15 +22,15 @@ -
-
+
+
diff --git a/frontend/src/routes/error.svelte b/frontend/src/routes/error.svelte index a80d577..305969b 100644 --- a/frontend/src/routes/error.svelte +++ b/frontend/src/routes/error.svelte @@ -8,7 +8,7 @@ keywords="secrets,share,end-to-end,encryption,finiam" /> -
+

Finiam

Oops, fatal error!

diff --git a/frontend/src/routes/index.svelte b/frontend/src/routes/index.svelte index 9ec7d6e..d45cca8 100644 --- a/frontend/src/routes/index.svelte +++ b/frontend/src/routes/index.svelte @@ -50,16 +50,16 @@ /> {#if sharingUrl && !submitting} -
-

+

+

As soon as someone opens the link, it will be destroyed automatically, ensuring full protection of your information.

-
+

{sharingUrl}

-
+
Copy link
{:else} -
-

+

+

Finiam Secrets allows you to share information securely and ephemerally. The generated link will only work once and then it will disappear forever.

-
+