diff --git a/src/lib/ae_posts/ae_posts__post.ts b/src/lib/ae_posts/ae_posts__post.ts index 2f7c5f29..d6aeaed9 100644 --- a/src/lib/ae_posts/ae_posts__post.ts +++ b/src/lib/ae_posts/ae_posts__post.ts @@ -1,7 +1,7 @@ import type { key_val } from '$lib/ae_stores'; import { api } from '$lib/api'; -import { db_posts } from "$lib/db_posts"; +import { db_posts } from "$lib/ae_posts/db_posts"; import { load_ae_obj_li__post_comment } from "$lib/ae_posts/ae_posts__post_comment"; @@ -652,18 +652,22 @@ export function db_save_ae_obj_li__post( topic: obj.topic, topic_name: obj.topic_name, - title: obj.title, + name: obj.title, + title: obj.title, // Switching to name instead of title + // summary: obj.summary, content: obj.content, anonymous: obj.anonymous, full_name: obj.full_name, email: obj.email, + notify: obj.notify, enable_comments: obj.enable_comments, archive: obj.archive, archive_on: obj.archive_on, + linked_li_json: obj.linked_li_json, cfg_json: obj.cfg_json, enable: obj.enable, diff --git a/src/lib/ae_posts/ae_posts__post_comment.ts b/src/lib/ae_posts/ae_posts__post_comment.ts index 778ac6a8..db5dc963 100644 --- a/src/lib/ae_posts/ae_posts__post_comment.ts +++ b/src/lib/ae_posts/ae_posts__post_comment.ts @@ -1,7 +1,7 @@ import type { key_val } from '$lib/ae_stores'; import { api } from '$lib/api'; -import { db_posts } from "$lib/db_posts"; +import { db_posts } from "$lib/ae_posts/db_posts"; let ae_promises: key_val = {}; @@ -328,15 +328,17 @@ export function db_save_ae_obj_li__post_comment( external_person_id: obj.external_person_id, - // name: obj.name, + name: obj.name, + title: obj.title, // Switching to name instead of title // summary: obj.summary, - title: obj.title, content: obj.content, anonymous: obj.anonymous, full_name: obj.full_name, email: obj.email, + notify: obj.notify, + linked_li_json: obj.linked_li_json, cfg_json: obj.cfg_json, enable: obj.enable, diff --git a/src/lib/db_posts.ts b/src/lib/ae_posts/db_posts.ts similarity index 91% rename from src/lib/db_posts.ts rename to src/lib/ae_posts/db_posts.ts index 944e1790..74358b72 100644 --- a/src/lib/db_posts.ts +++ b/src/lib/ae_posts/db_posts.ts @@ -1,11 +1,11 @@ import Dexie, { type Table } from 'dexie'; -import type { key_val } from './ae_stores'; +import type { key_val } from '../ae_stores'; // li = list // kv = key value list -// Updated 2024-09-25 +// Updated 2024-11-13 export interface Post { id: string; // id_random: string; @@ -23,20 +23,22 @@ export interface Post { topic?: string; // or topic_name? topic_name?: string; - // name: null|string; - // summary?: null|string; + name: null|string; title: null|string; + // summary?: null|string; content?: null|string; anonymous?: null|boolean; full_name?: null|string; email?: null|string; + notify?: null|boolean; enable_comments?: null|boolean; archive?: null|boolean; archive_on?: Date; + linked_li_json?: null|string; cfg_json?: null|key_val; enable: null|boolean; @@ -52,7 +54,8 @@ export interface Post { post_comment_count?: number; } -// Updated 2024-09-25 + +// Updated 2024-11-13 export interface Post_Comment { id: string; // id_random: string; @@ -64,15 +67,17 @@ export interface Post_Comment { external_person_id?: null|string; // For IDAA this is the Novi UUID - // name: null|string; - // summary?: null|string; + name: null|string; title: null|string; + // summary?: null|string; content?: null|string; anonymous?: null|boolean; full_name?: null|string; email?: null|string; + notify?: null|boolean; + linked_li_json?: null|string; cfg_json?: null|key_val; enable: null|boolean; diff --git a/src/lib/db_archives.ts b/src/lib/db_archives.ts index 04f5c54a..a324be97 100644 --- a/src/lib/db_archives.ts +++ b/src/lib/db_archives.ts @@ -77,6 +77,8 @@ export interface Archive_Content { content_html?: null|string; content_json?: null|string; + // linked_li_json?: null|string; // For future use? linked content list instead of one content item + url?: null|string; url_text?: null|string; diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte index b5babbeb..e6900cbb 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_id_edit.svelte @@ -409,7 +409,7 @@ async function handle_hosted_files_uploaded(hosted_file_id_li: string[], hosted_ Aether hosted files only
Recommended: PowerPoint (pptx) or Keynote (key) or Adobe PDF
- Media: Audio (mp3, m4a) and videos (mp4, mkv)
+ Media: audio (mp3, m4a) and video (mp4, mkv)
Supplemental files: Word Doc, Excel, txt, etc
diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte index c41a77d6..89058c92 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte @@ -31,6 +31,7 @@ let ae_promises: key_val = {}; {#if idaa_archive_content_obj.group && idaa_archive_content_obj.group != $lq__archive_content_obj_li[index - 1]?.group}
+ {/if} + + + + {/each} +
+ {/if} +