From: xangelo Date: Thu, 7 Apr 2022 19:36:02 +0000 (-0400) Subject: do not auto-load the first item in the reading pane X-Git-Url: https://git.xangelo.ca/?p=rss-reader.git;a=commitdiff_plain;h=1efc77a5994e43c58f326016acfe9e48da055b56 do not auto-load the first item in the reading pane This seems useful, but if the user is currently reading something when the feed item list refreshes it will pull their focus away. --- diff --git a/html/app.html b/html/app.html new file mode 100644 index 0000000..0928724 --- /dev/null +++ b/html/app.html @@ -0,0 +1,80 @@ + + + + News River + + + + + + +
+

Feed List

+
+
+
+ + +
+
+
+
+
+
+ A project by xangelo that is still in active development (2022) +
+ + + diff --git a/html/style.css b/html/style.css index 73fb32c..d7fdaa7 100644 --- a/html/style.css +++ b/html/style.css @@ -16,6 +16,10 @@ h1 { padding: 4px 8px; } +a { + color: #1e61df; +} + .app { display: grid; grid-template-columns: 25% 75% auto; @@ -30,7 +34,7 @@ h1 { } #feed-item-list { - height: calc(100% - 70px); + height: calc(100% - 75px); } #feed-item-list span { float: right; diff --git a/src/server.ts b/src/server.ts index c2a3fda..4e1404e 100644 --- a/src/server.ts +++ b/src/server.ts @@ -60,6 +60,9 @@ function apiDelete(endpoint: string, fn: WrappedApiHandler, view?: (arr: any) => apiWrapper('delete', endpoint, fn, view); } +apiPost('/login', async (req, res): Promise => { +}); + apiPost('/feeds', async (req, res): Promise => { // get info about the feed const url = req.body.link; @@ -156,8 +159,9 @@ apiGet('/feeds/:feed_id/items', async (req, res): Promise => {