Standardize DB interfaces with dependency tracking comments and clean up legacy location.reload() arguments
This commit is contained in:
@@ -5,7 +5,13 @@ import type { key_val } from '$lib/stores/ae_stores';
|
||||
// li = list
|
||||
// kv = key value list
|
||||
|
||||
// Updated 2024-09-25
|
||||
/**
|
||||
* Archive - A collection of archival content
|
||||
* Related Files:
|
||||
* - src/lib/ae_archives/ae_archives__archive.ts (API)
|
||||
* - src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte (View)
|
||||
* - src/routes/idaa/(idaa)/archives/ae_idaa_comp__archive_obj_li.svelte (Search List View)
|
||||
*/
|
||||
export interface Archive {
|
||||
id: string;
|
||||
// id_random: string;
|
||||
@@ -65,7 +71,13 @@ export interface Archive {
|
||||
// archive_content_li?: null|[];
|
||||
}
|
||||
|
||||
// Updated 2024-09-25
|
||||
/**
|
||||
* Archive_Content - A single piece of content within an archive
|
||||
* Related Files:
|
||||
* - src/lib/ae_archives/ae_archives__archive_content.ts (API)
|
||||
* - src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte (List View)
|
||||
* - src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte (Edit View)
|
||||
*/
|
||||
export interface Archive_Content {
|
||||
id: string;
|
||||
// id_random: string;
|
||||
|
||||
@@ -27,6 +27,13 @@ export interface ae_LocalFile extends ae_HostedFile {
|
||||
filename_w_ext?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Person - A human entity in the Aether system
|
||||
* Related Files:
|
||||
* - src/lib/ae_core/ae_core_functions.ts (API)
|
||||
* - src/routes/core/people/[person_id]/+page.svelte (View)
|
||||
* - src/routes/core/people/ae_comp__person_search.svelte (Search)
|
||||
*/
|
||||
export interface Person extends ae_Person {
|
||||
// Legacy mapping support and view fields
|
||||
external_id?: string;
|
||||
|
||||
@@ -10,6 +10,13 @@ import type { ae_Journal, ae_JournalEntry } from '$lib/types/ae_types';
|
||||
// LLM = Large Language Model (AI)
|
||||
// Updated 2026-01-09 - Unified Types
|
||||
|
||||
/**
|
||||
* Journal - A collection of journal entries
|
||||
* Related Files:
|
||||
* - src/lib/ae_journals/ae_journals__journal.ts (API)
|
||||
* - src/routes/journals/[journal_id]/+layout.svelte (View)
|
||||
* - src/routes/journals/ae_comp__journal_obj_id_view.svelte (Card View)
|
||||
*/
|
||||
export interface Journal extends ae_Journal {
|
||||
// Add any Dexie-specific or legacy local-only fields here if not in ae_Journal
|
||||
// Most fields are now in ae_Journal and ae_BaseObj
|
||||
@@ -58,6 +65,13 @@ export const journal_field_li = [
|
||||
'tmp_sort_3'
|
||||
];
|
||||
|
||||
/**
|
||||
* Journal_Entry - A single entry within a journal
|
||||
* Related Files:
|
||||
* - src/lib/ae_journals/ae_journals__journal_entry.ts (API)
|
||||
* - src/routes/journals/[journal_id]/entry/[journal_entry_id]/+page.svelte (View)
|
||||
* - src/routes/journals/[journal_id]/ae_comp__journal_entry_obj_qry.svelte (Search)
|
||||
*/
|
||||
export interface Journal_Entry extends ae_JournalEntry {
|
||||
// Add any Dexie-specific or legacy local-only fields here
|
||||
person__given_name?: string;
|
||||
|
||||
@@ -5,7 +5,13 @@ import type { key_val } from '$lib/stores/ae_stores';
|
||||
// li = list
|
||||
// kv = key value list
|
||||
|
||||
// Updated 2024-11-13
|
||||
/**
|
||||
* Post - A bulletin board post
|
||||
* Related Files:
|
||||
* - src/lib/ae_posts/ae_posts__post.ts (API)
|
||||
* - src/routes/idaa/(idaa)/bb/[post_id]/+page.svelte (View)
|
||||
* - src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_li.svelte (Search List)
|
||||
*/
|
||||
export interface Post {
|
||||
id: string;
|
||||
// id_random: string;
|
||||
@@ -63,7 +69,13 @@ export interface Post {
|
||||
upload_complete?: boolean;
|
||||
}
|
||||
|
||||
// Updated 2024-11-13
|
||||
/**
|
||||
* Post_Comment - A comment on a bulletin board post
|
||||
* Related Files:
|
||||
* - src/lib/ae_posts/ae_posts__post_comment.ts (API)
|
||||
* - src/routes/idaa/(idaa)/bb/[post_id]/ae_idaa_comp__post_comment_obj_li.svelte (Comment List View)
|
||||
* - src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte (Edit View)
|
||||
*/
|
||||
export interface Post_Comment {
|
||||
id: string;
|
||||
// id_random: string;
|
||||
|
||||
@@ -974,7 +974,7 @@
|
||||
title="Reload and clear the page cache"
|
||||
onclick={() => {
|
||||
clear_idb();
|
||||
window.location.reload(true);
|
||||
window.location.reload();
|
||||
}}
|
||||
>
|
||||
<!-- <span class="fas fa-sync mx-1"></span> -->
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
window.location.reload(true);
|
||||
window.location.reload();
|
||||
}}
|
||||
class="btn btn-sm m-1 preset-tonal-surface hover:variant-outline-warning text-error-300 hover:text-error-800 transition-all"
|
||||
title="Reload page to clear some caches and check for updates"
|
||||
@@ -103,7 +103,7 @@
|
||||
alert(
|
||||
'Local and Session Storage cleared. The page should now refresh on its own.'
|
||||
);
|
||||
window.location.reload(true);
|
||||
window.location.reload();
|
||||
}}
|
||||
class="btn btn-sm m-1 p-1 preset-tonal-surface hover:variant-outline-warning text-error-300 hover:text-error-800 transition-all"
|
||||
title="Clear IDB, localStorage, and sessionStorage and then reload to clear the page cache"
|
||||
|
||||
Reference in New Issue
Block a user