We can now see a list of archive content and it doesn't look terrible.
This commit is contained in:
@@ -69,7 +69,7 @@ export async function load_ae_obj_id__archive(
|
||||
api_cfg: api_cfg,
|
||||
for_obj_type: 'archive',
|
||||
for_obj_id: archive_id,
|
||||
params: {qry__enabled: 'all', qry__limit: 25},
|
||||
params: {qry__enabled: 'all', qry__limit: 99},
|
||||
try_cache: try_cache,
|
||||
log_lvl: log_lvl
|
||||
})
|
||||
|
||||
@@ -63,7 +63,7 @@ export async function load_ae_obj_li__archive_content(
|
||||
api_cfg,
|
||||
for_obj_type = 'archive',
|
||||
for_obj_id,
|
||||
order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'start_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'},
|
||||
order_by_li = {'priority': 'DESC', 'sort': 'DESC', 'original_datetime': 'ASC', 'name': 'ASC', 'updated_on': 'DESC', 'created_on': 'DESC'},
|
||||
params = {},
|
||||
try_cache = true,
|
||||
log_lvl = 0
|
||||
@@ -280,7 +280,7 @@ export function db_save_ae_obj_li__archive_content(
|
||||
url: obj.url,
|
||||
url_text: obj.url_text,
|
||||
|
||||
hosted_file_id: obj.hosted_file_id,
|
||||
hosted_file_id: obj.hosted_file_id_random,
|
||||
|
||||
file_path: obj.file_path,
|
||||
|
||||
@@ -309,6 +309,8 @@ export function db_save_ae_obj_li__archive_content(
|
||||
// From SQL view
|
||||
archive_code: obj.archive_code,
|
||||
archive_name: obj.archive_name,
|
||||
|
||||
hash_sha256: obj.hosted_file_hash_sha256
|
||||
});
|
||||
// console.log(`Put obj with ID: ${obj.archive_content_id_random} or ${id_random}`);
|
||||
} catch (error) {
|
||||
|
||||
@@ -112,6 +112,8 @@ export interface Archive_Content {
|
||||
// Additional fields for convenience (database views)
|
||||
archive_code?: null|string;
|
||||
archive_name?: null|string;
|
||||
|
||||
hash_sha256?: null|string;
|
||||
}
|
||||
|
||||
|
||||
@@ -137,12 +139,13 @@ export class MySubClassedDexie extends Dexie {
|
||||
archive_content_type,
|
||||
name,
|
||||
hosted_file_id,
|
||||
file_path,
|
||||
filename, file_extension,
|
||||
original_datetime, original_timezone, original_location, original_url, original_url_text,
|
||||
enable_for_public,
|
||||
enable, hide, priority, sort, group, notes, created_on, updated_on`,
|
||||
});
|
||||
|
||||
// file_path,
|
||||
// filename, file_extension,
|
||||
// original_datetime, original_timezone, original_location, original_url, original_url_text,
|
||||
// enable_for_public,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user