Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
refactor(frontend): make silent catch blocks explicit
spacesdrive12c3e5c5c549
diff --git a/frontend/src/features/publishing/UploadContent.jsx b/frontend/src/features/publishing/UploadContent.jsxindex 947c3bc..7f1cdde 100644--- a/frontend/src/features/publishing/UploadContent.jsx+++ b/frontend/src/features/publishing/UploadContent.jsx@@ -248,7 +248,8 @@ export default function UploadContent() {const res = await api.getScheduledPosts();if (res.success) setScheduledPosts(res.posts || []);} catch {- // The schedule list is secondary; publishing still works without it+ // the schedule list is optional, publishing still works+ return;}};@@ -257,7 +258,8 @@ export default function UploadContent() {const res = await api.getCloudinaryConfig();if (res.success) setCloudConfig(res);} catch {- // A missing config is shown as an alert on the page+ // a missing config already shows as an alert on the page+ return;}};diff --git a/frontend/src/features/settings/SchedulingSetupGuide.jsx b/frontend/src/features/settings/SchedulingSetupGuide.jsxindex d77e152..d717668 100644--- a/frontend/src/features/settings/SchedulingSetupGuide.jsx+++ b/frontend/src/features/settings/SchedulingSetupGuide.jsx@@ -81,7 +81,12 @@ export default function SchedulingSetupGuide({ owner, repo, onOwnerChange, onRepconst [done, setDone] = useState(readProgress);useEffect(() => {- try { localStorage.setItem(PROGRESS_KEY, JSON.stringify(done)); } catch { /* progress is a convenience only */ }+ try {+ localStorage.setItem(PROGRESS_KEY, JSON.stringify(done));+ } catch {+ // saved progress is a convenience, the guide works without it+ return;+ }}, [done]);const toggle = key => () => setDone(prev => ({ ...prev, [key]: !prev[key] }));diff --git a/frontend/src/features/settings/Settings.jsx b/frontend/src/features/settings/Settings.jsxindex ed9b270..4784f85 100644--- a/frontend/src/features/settings/Settings.jsx+++ b/frontend/src/features/settings/Settings.jsx@@ -107,7 +107,10 @@ export default function Settings() {try {const keys = await api.getKeys();if (!cancelled) setServerStatus(keys);- } catch { /* status is informational; the page still renders */ }+ } catch {+ // status is informational, the page still renders+ return;+ }} finally {if (!cancelled) setLoading(false);}