feat: implement admin knowledge extraction system with document upload and AI pipeline integration

This commit is contained in:
RaymondVerhoef
2026-05-10 11:18:48 +02:00
parent f8d0c68f84
commit 260644b41a
7 changed files with 625 additions and 5 deletions

View File

@@ -11,13 +11,13 @@ export const storage = {
* @param {string} key - e.g. 'kb:topics'
* @returns {any}
*/
get(key) {
get(key, defaultValue = null) {
try {
const item = window.localStorage.getItem(STORAGE_PREFIX + key);
return item ? JSON.parse(item) : null;
return item ? JSON.parse(item) : defaultValue;
} catch (e) {
console.error(`Error reading ${key} from storage:`, e);
return null;
return defaultValue;
}
},