support creating new chats, list chats

This commit is contained in:
marlon-erler
2024-07-20 05:10:50 +02:00
parent 92f0d3c662
commit d9f0f400f8
8 changed files with 520 additions and 168 deletions
+5 -1
View File
@@ -82,7 +82,7 @@ export default class StorageModel {
// utility
initializeTree = (): void => {
console.log("initializing tree")
console.log("initializing tree");
this.storageEntryTree = {};
for (const key of Object.keys(localStorage)) {
@@ -102,6 +102,10 @@ export default class StorageModel {
}
};
print = () => {
console.log(JSON.stringify(this.storageEntryTree, null, 4));
};
static pathComponentsToKey = (...pathComponents: string[]): string => {
return pathComponents.join(PATH_COMPONENT_SEPARATOR);
};