From 8115d86335d0515ad0171ab8f54ae23c0faf5323 Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Tue, 1 Dec 2020 16:47:04 +1300 Subject: [PATCH] fun. --- webapp/src/components/Article.svelte | 52 +++++++++ webapp/src/components/Comment.svelte | 11 +- webapp/src/components/Nav.svelte | 136 ++++++++++++++---------- webapp/src/components/Pagination.svelte | 55 ++++++++++ webapp/src/components/StoryInfo.svelte | 36 +++---- webapp/src/components/StoryList.svelte | 55 ++++++++++ webapp/src/components/Time.svelte | 11 ++ webapp/src/routes/[id].json.js | 1 - webapp/src/routes/[id].svelte | 84 ++++++--------- webapp/src/routes/_layout.svelte | 4 +- webapp/src/routes/index.json.js | 3 +- webapp/src/routes/index.svelte | 66 +----------- webapp/src/routes/search.json.js | 2 +- webapp/src/routes/search.svelte | 77 ++------------ webapp/static/global.css | 48 +++++---- webclient/src/App.js | 8 +- webclient/src/pages/Feed.js | 7 -- 17 files changed, 352 insertions(+), 304 deletions(-) create mode 100644 webapp/src/components/Article.svelte create mode 100644 webapp/src/components/Pagination.svelte create mode 100644 webapp/src/components/StoryList.svelte create mode 100644 webapp/src/components/Time.svelte diff --git a/webapp/src/components/Article.svelte b/webapp/src/components/Article.svelte new file mode 100644 index 0000000..12da966 --- /dev/null +++ b/webapp/src/components/Article.svelte @@ -0,0 +1,52 @@ + + + + +
+
+

{story.title}

+ {#if story.url} +
source: {host}
+ {/if} +
+ +
+ {@html story.text} +
+
diff --git a/webapp/src/components/Comment.svelte b/webapp/src/components/Comment.svelte index 6384246..be623f7 100644 --- a/webapp/src/components/Comment.svelte +++ b/webapp/src/components/Comment.svelte @@ -1,12 +1,9 @@ -