summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-09 14:21:50 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-09 14:21:50 +1000
commit5b221fb72d6b915a56df4c17ecc747bb6f15dee8 (patch)
treef1199057ffa9cdffca2a69f9ef2246d185894b06 /src/config
parentweather: store api key directly in config (diff)
downloadcaelestia-shell-5b221fb72d6b915a56df4c17ecc747bb6f15dee8.tar.gz
caelestia-shell-5b221fb72d6b915a56df4c17ecc747bb6f15dee8.tar.bz2
caelestia-shell-5b221fb72d6b915a56df4c17ecc747bb6f15dee8.zip
feat: news headlines for alerts pane
Also handle news api errors Also config num pages
Diffstat (limited to 'src/config')
-rw-r--r--src/config/defaults.ts1
-rw-r--r--src/config/types.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/config/defaults.ts b/src/config/defaults.ts
index d5db290..70a4700 100644
--- a/src/config/defaults.ts
+++ b/src/config/defaults.ts
@@ -171,5 +171,6 @@ export default {
languages: ["en"], // A list of languages codes to filter by
domains: [] as string[], // A list of news domains to pull from
timezone: "", // A timezone to filter by, e.g. "America/New_York"
+ pages: 3, // Number of pages to pull (each page is 10 articles)
},
};
diff --git a/src/config/types.ts b/src/config/types.ts
index 2862612..0e9138d 100644
--- a/src/config/types.ts
+++ b/src/config/types.ts
@@ -100,4 +100,5 @@ export default {
"news.languages": ARR(STR),
"news.domains": ARR(STR),
"news.timezone": STR,
+ "news.pages": NUM,
} as { [k: string]: string | string[] | number[] };