Commit Graph

4 Commits

Author SHA1 Message Date
d7e5f49610 Centralize storage settings handlers 2026-01-18 01:15:30 +00:00
747a6e9485 Refactor storage settings components 2026-01-18 00:39:03 +00:00
7b91fe1975 Generated by Spark: I am having issues with this. Remember, we should be defaulting to IndexedDB, not the Flask API. Flask API is obtained by explicitly setting it in the UI or setting a env variable. export default function applyFetchPatch() {
if (ssrSafeWindow) {
    ssrSafeWindow.fetch = async (input: string | URL | Request, init?: RequestInit) => {
      try {
        const response = await globalFetch(input, init)
        sendFetchStats({input, error: !response.ok, status: response.status})
        return response
      } catch (error) {
        sendFetchStats({input, error: true, status: 'unknown'})
        throw error
      }
    }
  }
}
2026-01-17 18:50:06 +00:00
02eb47e83f Generated by Spark: Perhaps it could use sqlite on disk if possible, else use indexeddb 2026-01-17 18:19:45 +00:00