Started pulling in the IDAA Bulletin Board code

This commit is contained in:
Scott Idem
2024-09-27 18:55:24 -04:00
parent 58928d07eb
commit 35c901f144
14 changed files with 588 additions and 269 deletions

View File

@@ -19,6 +19,12 @@ let idaa_local_data_struct: key_val = {
name: 'Aether - IDAA (SvelteKit 2.x Svelte 4.x)',
title: `OSIT's Æ IDAA`, // - Dev SvelteKit`, // Æ
novi_uuid: null,
novi_email: null,
novi_full_name: null,
novi_admin_li: [],
novi_trusted_li: [],
'ds': {},
'idaa_cfg_json': {},
@@ -34,8 +40,8 @@ let idaa_local_data_struct: key_val = {
},
posts: {
bb: {
show_list__post_obj_li: true,
},
recovery_meetings: {
@@ -64,7 +70,7 @@ let idaa_session_data_struct: key_val = {
},
posts: {
bb: {
},
@@ -110,4 +116,11 @@ let idaa_slct_obj_template: key_val = {
export let idaa_slct = writable(idaa_slct_obj_template);
// This works and uses *local* storage:
// export let idaa_slct: Writable<key_val> = localStorageStore('ae_idaa_slct', idaa_slct_obj_template);
// export let idaa_slct: Writable<key_val> = localStorageStore('ae_idaa_slct', idaa_slct_obj_template);
/* *** BEGIN *** Initialize idaa_trigger */
// Intended for temporary session storage.
// Updated 2024-03-06
export let idaa_trigger: any = writable(null);
// console.log(`AE IDAA Stores - IDAA Trigger:`, idaa_trigger);

View File

@@ -97,7 +97,7 @@ export async function load_ae_obj_li__post(
for_obj_type = 'account',
for_obj_id,
inc_comment_li = false,
order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'},
order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'title': 'ASC'},
params = {},
try_cache = true,
log_lvl = 0
@@ -591,6 +591,7 @@ export function db_save_ae_obj_li__post(
topic_id: obj.topic_id,
topic: obj.topic,
topic_name: obj.topic_name,
title: obj.title,
content: obj.content,

View File

@@ -21,6 +21,7 @@ export interface Post {
topic_id?: string;
topic?: string; // or topic_name?
topic_name?: string;
// name: null|string;
// summary?: null|string;