From c8b25394140015d6f43585b5461f7f9e24f4cf33 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 22 Dec 2021 15:20:30 +0100 Subject: [PATCH] add version in about page --- Cargo.lock | 2 +- Cargo.toml | 2 +- client/src/lib/stores/status.ts | 2 +- client/src/lib/ui/AboutParagraph.svelte | 19 +++++++ client/src/routes/about.svelte | 72 ++++++++++++++----------- src/note/routes.rs | 8 ++- 6 files changed, 70 insertions(+), 35 deletions(-) create mode 100644 client/src/lib/ui/AboutParagraph.svelte diff --git a/Cargo.lock b/Cargo.lock index 5586ee3..f6101c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -515,7 +515,7 @@ dependencies = [ [[package]] name = "cryptgeon" -version = "1.2.0" +version = "1.3.0" dependencies = [ "actix-files", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 339eb49..972354b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cryptgeon" -version = "1.2.0" +version = "1.3.0" authors = ["cupcakearmy "] edition = "2018" diff --git a/client/src/lib/stores/status.ts b/client/src/lib/stores/status.ts index 49ba919..436b9e2 100644 --- a/client/src/lib/stores/status.ts +++ b/client/src/lib/stores/status.ts @@ -1,8 +1,8 @@ import { call } from '$lib/api' -import { onMount } from 'svelte' import { writable } from 'svelte/store' export type Status = { + version: string max_size: number } diff --git a/client/src/lib/ui/AboutParagraph.svelte b/client/src/lib/ui/AboutParagraph.svelte new file mode 100644 index 0000000..f796dac --- /dev/null +++ b/client/src/lib/ui/AboutParagraph.svelte @@ -0,0 +1,19 @@ + + +

+ ▶ {title} + +

+ + diff --git a/client/src/routes/about.svelte b/client/src/routes/about.svelte index dd25cb4..c417e41 100644 --- a/client/src/routes/about.svelte +++ b/client/src/routes/about.svelte @@ -1,5 +1,8 @@