diff --git a/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte b/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte index 935a2b31..2cf64539 100644 --- a/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte +++ b/src/lib/ae_core/ae_comp__hosted_files_download_button.svelte @@ -168,7 +168,7 @@ // Legacy endpoints often expect integer IDs and will return 404 for string IDs. const file_id = hosted_file_obj.event_file_id || hosted_file_obj.hosted_file_id || hosted_file_id; const obj_type_path = hosted_file_obj.event_file_id ? 'event_file' : 'hosted_file'; - return `${$ae_api.base_url}/v3/action/${obj_type_path}/${file_id}/download?filename=${ae_util.clean_filename(final_filename)}&x_no_account_id_token=${$ae_api.account_id}`; + return `${$ae_api.base_url}/v3/action/${obj_type_path}/${file_id}/download?filename=${ae_util.clean_filename(final_filename)}&key=${$ae_api.account_id}`; }); async function handle_click() { diff --git a/src/lib/api/api.ts b/src/lib/api/api.ts index 35387be2..9bf1634d 100644 --- a/src/lib/api/api.ts +++ b/src/lib/api/api.ts @@ -644,7 +644,7 @@ export const download_hosted_file = async function download_hosted_file({ const task_id = hosted_file_id; - const endpoint = `/hosted_file/${hosted_file_id}/download`; + const endpoint = `/v3/action/hosted_file/${hosted_file_id}/download`; if (filename) { params['filename'] = filename; } @@ -697,7 +697,7 @@ export const delete_hosted_file = async function delete_hosted_file({ }) { console.log('*** stores_hosted_api.js: delete_hosted_file() ***'); - const endpoint = `/hosted_file/${hosted_file_id}`; + const endpoint = `/v3/action/hosted_file/${hosted_file_id}`; if (link_to_type) { params['link_to_type'] = link_to_type; } diff --git a/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte b/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte index ec8e8fc6..1dd37775 100644 --- a/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte +++ b/src/routes/events/[event_id]/(launcher)/launcher_file_cont.svelte @@ -105,7 +105,7 @@ open_file_status_message = 'Downloading file to cache...'; // Use the PROVEN endpoint path from api.ts that is known to work in Default Mode. - const url = `${$ae_api.base_url}/v3/action/hosted_file/${event_file_obj.hosted_file_id}/download?return_file=true&filename=${encodeURIComponent(event_file_obj.filename)}&x_no_account_id_token=direct-download`; + const url = `${$ae_api.base_url}/v3/action/hosted_file/${event_file_obj.hosted_file_id}/download?return_file=true&filename=${encodeURIComponent(event_file_obj.filename)}&key=${$ae_api.account_id}`; const dl_result = await native.download_to_cache({ url, diff --git a/src/routes/events/ae_comp__event_file_obj_tbl.svelte b/src/routes/events/ae_comp__event_file_obj_tbl.svelte index 92c14ff9..5dd13277 100644 --- a/src/routes/events/ae_comp__event_file_obj_tbl.svelte +++ b/src/routes/events/ae_comp__event_file_obj_tbl.svelte @@ -394,7 +394,7 @@ @@ -431,11 +431,11 @@ > Session Name: diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte index 18b746d9..053e1f12 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte @@ -44,7 +44,6 @@ import Archive_content_obj_li from './ae_idaa_comp__archive_content_obj_li.svelte'; import Archive_content_obj_id_edit from './ae_idaa_comp__archive_content_obj_id_edit.svelte'; - // import Media_player from './../ae_idaa_comp__media_player.svelte'; import Modal_media_player from './ae_idaa_comp__modal_media_player.svelte'; import Help_tech from '$lib/app_components/e_app_help_tech.svelte'; diff --git a/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte b/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte index de069090..4dd7e4b9 100644 --- a/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte +++ b/src/routes/idaa/(idaa)/archives/ae_idaa_comp__media_player.svelte @@ -91,8 +91,8 @@ @@ -103,8 +103,8 @@ @@ -113,15 +113,15 @@ {:else if file_icons[$idaa_slct.archive_content_obj.file_extension] == 'file-image'} {:else} About --> - { if ($ae_loc.edit_mode) { // Confirm before clearing @@ -249,8 +249,7 @@ " > - - $journals_sess.show__modal_new__journal_obj = true} > @@ -129,8 +128,7 @@ New Journal - show_import_modal = true} > @@ -138,8 +136,7 @@ Import - $journals_sess.show__modal__journals_config = true} > @@ -163,8 +160,7 @@ No Journals Found You haven't created any journals yet. Start by creating one to begin your documentation journey. - $journals_sess.show__modal_new__journal_obj = true} > diff --git a/src/routes/journals/[journal_id]/+layout.svelte b/src/routes/journals/[journal_id]/+layout.svelte index b618c9e1..22b102d5 100644 --- a/src/routes/journals/[journal_id]/+layout.svelte +++ b/src/routes/journals/[journal_id]/+layout.svelte @@ -99,8 +99,7 @@ " > - { if (event.button === 1) { // Middle click - open in new tab @@ -230,8 +229,7 @@ Middle-click to open in new tab`} {:else} - - { // $journals_sess.show__modal_new__journal_entry_obj = true; diff --git a/src/routes/journals/ae_comp__journal_entry_editor.svelte b/src/routes/journals/ae_comp__journal_entry_editor.svelte index 8a22ed57..f5e5fdd5 100644 --- a/src/routes/journals/ae_comp__journal_entry_editor.svelte +++ b/src/routes/journals/ae_comp__journal_entry_editor.svelte @@ -60,8 +60,8 @@ {#if $ae_loc.edit_mode && on_force_reset} Passcode lost? You can force a reset to plain text, but all currently encrypted data will be permanently deleted. - @@ -89,8 +89,7 @@ {/if} - - - @@ -90,7 +89,7 @@ {#if $journals_loc.entry.edit_kv[entry.journal_entry_id] === 'current'} - $journals_loc.entry.auto_save = !$journals_loc.entry.auto_save} title="Toggle Auto Save" @@ -107,7 +106,7 @@ {#if entry.private} - - @@ -128,7 +128,7 @@ {#if has_changed && save_status !== 'saving'} - + Save {/if} diff --git a/src/routes/journals/ae_comp__journal_entry_obj_file_li.svelte b/src/routes/journals/ae_comp__journal_entry_obj_file_li.svelte index 5d8e5727..3e780538 100644 --- a/src/routes/journals/ae_comp__journal_entry_obj_file_li.svelte +++ b/src/routes/journals/ae_comp__journal_entry_obj_file_li.svelte @@ -173,8 +173,7 @@ {#if $ae_loc.edit_mode} - { $ae_sess.files.add_to_use_files_method = ($ae_sess.files.add_to_use_files_method === 'upload') ? 'select' : 'upload'; @@ -207,7 +206,7 @@ {#if $ae_loc.edit_mode} - handle_remove_file(file_id)} title="Remove attachment" diff --git a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte index 200f393d..4ca3d381 100644 --- a/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte +++ b/src/routes/journals/ae_comp__journal_entry_obj_id_view.svelte @@ -376,7 +376,7 @@ {decryption_error} - decryption_error = null}> + decryption_error = null}> Dismiss diff --git a/src/routes/journals/ae_comp__journal_entry_obj_li.svelte b/src/routes/journals/ae_comp__journal_entry_obj_li.svelte index aff033ab..39e47a53 100644 --- a/src/routes/journals/ae_comp__journal_entry_obj_li.svelte +++ b/src/routes/journals/ae_comp__journal_entry_obj_li.svelte @@ -193,8 +193,7 @@ {#if !journals_journal_entry_obj.private} - { let tmp_entry_obj = journals_journal_entry_obj; @@ -217,8 +216,7 @@ - { let htmlContent = journals_journal_entry_obj.content_md_html || ''; @@ -246,8 +244,7 @@ - { const element = document.getElementById( `rendered_journal_entry_content_${journals_journal_entry_obj.journal_entry_id}` @@ -286,8 +283,7 @@ - { let data_kv = { code: journals_journal_entry_obj.code, @@ -337,8 +333,7 @@ Private - { let tmp_entry_obj = journals_journal_entry_obj; @@ -401,8 +396,7 @@ {#if journals_journal_entry_obj.category_code} - { if ( $journals_loc.entry.qry__category_code == @@ -440,8 +434,7 @@ Journal ID: ${journals_journal_entry_obj?.journal_id} - { $journals_sess.show__modal_append__journal_entry_id = journals_journal_entry_obj?.id; @@ -561,8 +554,7 @@ Journal ID: ${journals_journal_entry_obj?.journal_id} - { let data_kv = { hide: journals_journal_entry_obj?.hide ? false : true diff --git a/src/routes/journals/ae_comp__journal_entry_obj_qry.svelte b/src/routes/journals/ae_comp__journal_entry_obj_qry.svelte index ebf68d8b..d484ff5d 100644 --- a/src/routes/journals/ae_comp__journal_entry_obj_qry.svelte +++ b/src/routes/journals/ae_comp__journal_entry_obj_qry.svelte @@ -123,8 +123,7 @@ - { $journals_loc.entry.qry__search_text = ''; diff --git a/src/routes/journals/ae_comp__journal_entry_quick_add.svelte b/src/routes/journals/ae_comp__journal_entry_quick_add.svelte index caaf21b9..f14ead3d 100644 --- a/src/routes/journals/ae_comp__journal_entry_quick_add.svelte +++ b/src/routes/journals/ae_comp__journal_entry_quick_add.svelte @@ -124,6 +124,7 @@ note_content = ""} disabled={is_submitting || note_content.length === 0} @@ -131,6 +132,7 @@ Clear - (tab = 'actions')}> + (tab = 'actions')}> Quick Actions - (tab = 'general')}> + (tab = 'general')}> General - (tab = 'security')}> + (tab = 'security')}> Status & Security - (tab = 'ui')}> + (tab = 'ui')}> UI/Visuals - (tab = 'json')}> + (tab = 'json')}> JSON @@ -201,13 +201,13 @@ {#if tab === 'actions'} - { show = false; on_new_entry?.(); }}> + { show = false; on_new_entry?.(); }}> New Journal Entry - { show = false; on_show_export?.(); }}> + { show = false; on_show_export?.(); }}> Export Entries - { show = false; on_show_import?.(); }}> + { show = false; on_show_import?.(); }}> Import Entries @@ -252,12 +252,12 @@ - { tmp__journal_obj.cfg_json.category_li.splice(i, 1); }}> + { tmp__journal_obj.cfg_json.category_li.splice(i, 1); }}> {/each} - { + { if(!tmp__journal_obj.cfg_json.category_li) tmp__journal_obj.cfg_json.category_li = []; tmp__journal_obj.cfg_json.category_li.push({code: '', name: ''}); }}> @@ -303,9 +303,9 @@ Manual list position - { tmp__journal_obj.sort = (tmp__journal_obj.sort ?? 0) - 1; handle_update_journal(false); }}> + { tmp__journal_obj.sort = (tmp__journal_obj.sort ?? 0) - 1; handle_update_journal(false); }}> {tmp__journal_obj.sort ?? 0} - { tmp__journal_obj.sort = (tmp__journal_obj.sort ?? 0) + 1; handle_update_journal(false); }}> + { tmp__journal_obj.sort = (tmp__journal_obj.sort ?? 0) + 1; handle_update_journal(false); }}> @@ -339,7 +339,7 @@ - + Delete Entire Journal @@ -505,10 +505,10 @@ {#snippet footer()} - (show = false)}> + (show = false)}> Cancel - handle_update_journal(true)}> + handle_update_journal(true)}> Save Changes diff --git a/src/routes/journals/ae_comp__journal_obj_id_view.svelte b/src/routes/journals/ae_comp__journal_obj_id_view.svelte index 1cc246f8..378f40f2 100644 --- a/src/routes/journals/ae_comp__journal_obj_id_view.svelte +++ b/src/routes/journals/ae_comp__journal_obj_id_view.svelte @@ -180,8 +180,7 @@ - ($journals_sess.show__modal_edit__journal_obj = true)} class="btn variant-filled-secondary py-1 px-3 shadow-md" title="Journal Config & Actions" diff --git a/src/routes/journals/ae_comp__modal_journal_config.svelte b/src/routes/journals/ae_comp__modal_journal_config.svelte index 7c36faf9..7756c954 100644 --- a/src/routes/journals/ae_comp__modal_journal_config.svelte +++ b/src/routes/journals/ae_comp__modal_journal_config.svelte @@ -86,18 +86,21 @@ (tab = 'form')} > Config (tab = 'local_json')} > Local JSON (tab = 'session_json')} > @@ -277,10 +280,10 @@ {#snippet footer()} - (show = false)}> + (show = false)}> Cancel - + Save Changes diff --git a/src/routes/journals/ae_comp__modal_journal_entry_append.svelte b/src/routes/journals/ae_comp__modal_journal_entry_append.svelte index 38b62874..704950a3 100644 --- a/src/routes/journals/ae_comp__modal_journal_entry_append.svelte +++ b/src/routes/journals/ae_comp__modal_journal_entry_append.svelte @@ -172,8 +172,7 @@ async function handle_save() { - Update - diff --git a/src/routes/journals/ae_comp__modal_journal_entry_config.svelte b/src/routes/journals/ae_comp__modal_journal_entry_config.svelte index 4169d639..23cb1c31 100644 --- a/src/routes/journals/ae_comp__modal_journal_entry_config.svelte +++ b/src/routes/journals/ae_comp__modal_journal_entry_config.svelte @@ -121,16 +121,16 @@ - (tab = 'actions')}> + (tab = 'actions')}> Quick Actions - (tab = 'meta')}> + (tab = 'meta')}> Metadata - (tab = 'security')}> + (tab = 'security')}> Status & Security - (tab = 'json')}> + (tab = 'json')}> JSON @@ -138,16 +138,16 @@ {#if tab === 'actions'} - { show = false; on_prepend?.(); }}> + { show = false; on_prepend?.(); }}> Prepend Content - { show = false; on_append?.(); }}> + { show = false; on_append?.(); }}> Append Content - { show = false; on_show_export?.(); }}> + { show = false; on_show_export?.(); }}> Export Entry - { /* Clone logic here */ alert('Clone not yet implemented in modal'); }}> + { /* Clone logic here */ alert('Clone not yet implemented in modal'); }}> Clone Entry @@ -156,7 +156,7 @@ Quick Category {#each journal?.cfg_json?.category_li ?? [] as cat} - { tmp_entry_obj.category_code = cat.code; handle_update_entry(); on_save(); }} > @@ -195,9 +195,9 @@ Sort Priority - { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) - 1; handle_update_entry(); on_save(); }}> + { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) - 1; handle_update_entry(); on_save(); }}> {tmp_entry_obj.sort ?? 0} - { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) + 1; handle_update_entry(); on_save(); }}> + { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) + 1; handle_update_entry(); on_save(); }}> @@ -238,9 +238,9 @@ Manual list position - { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) - 1; handle_update_entry(); on_save(); }}> + { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) - 1; handle_update_entry(); on_save(); }}> {tmp_entry_obj.sort ?? 0} - { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) + 1; handle_update_entry(); on_save(); }}> + { tmp_entry_obj.sort = (tmp_entry_obj.sort ?? 0) + 1; handle_update_entry(); on_save(); }}> @@ -267,7 +267,7 @@ Disaster Recovery If the encryption passcode is lost, the data is unrecoverable. You can force a reset to plain text to reuse this entry ID. - { show = false; on_force_reset?.(); }}> + { show = false; on_force_reset?.(); }}> Force Reset to Plain Text @@ -275,7 +275,7 @@ {/if} - { alert('Delete logic handled in parent component'); }}> + { alert('Delete logic handled in parent component'); }}> Delete Entry @@ -294,7 +294,7 @@ {#snippet footer()} - (show = false)}> + (show = false)}> Done diff --git a/src/routes/journals/ae_comp__modal_journal_export.svelte b/src/routes/journals/ae_comp__modal_journal_export.svelte index ef077a8a..ce3a0810 100644 --- a/src/routes/journals/ae_comp__modal_journal_export.svelte +++ b/src/routes/journals/ae_comp__modal_journal_export.svelte @@ -111,7 +111,8 @@ {#each templates as template} - { selected_template_id = template.id; generate_preview(); }} > @@ -144,13 +145,13 @@ - Close + Close - + Copy to Clipboard - + Download File diff --git a/src/routes/journals/ae_comp__modal_journal_import.svelte b/src/routes/journals/ae_comp__modal_journal_import.svelte index 287d3674..cfb2a026 100644 --- a/src/routes/journals/ae_comp__modal_journal_import.svelte +++ b/src/routes/journals/ae_comp__modal_journal_import.svelte @@ -232,8 +232,8 @@ {/if} - Cancel - Cancel + - { obj_priority = !obj_priority; // update_journal_entry(); @@ -127,8 +126,7 @@ class:hidden={!$ae_loc.edit_mode} class="flex flex-row flex-wrap items-center justify-center border border-gray-300 rounded-lg" > - { obj_sort = obj_sort ? obj_sort + 1 : 1; // update_journal_entry(); @@ -146,8 +144,7 @@ {/if} - { obj_sort = obj_sort ? obj_sort - 1 : 0; // update_journal_entry(); @@ -190,8 +187,7 @@ {#if obj_archive_on} - { obj_archive_on = null; // update_journal_entry(); @@ -205,8 +201,7 @@ {:else} - { // tmp_entry_obj.archive_on = new Date().toISOString(); // console.log('Archive on datetime set to now:', tmp_entry_obj.archive_on); @@ -225,8 +220,7 @@ - { obj_hide = !obj_hide; update_journal_entry(); @@ -244,8 +238,7 @@ - { obj_enable = !obj_enable; // update_journal_entry(); @@ -264,8 +257,7 @@ - { if (confirm(`Are you sure you want to delete this journal entry?`)) { let delete_method = 'disable';
You haven't created any journals yet. Start by creating one to begin your documentation journey.
Passcode lost? You can force a reset to plain text, but all currently encrypted data will be permanently deleted.
If the encryption passcode is lost, the data is unrecoverable. You can force a reset to plain text to reuse this entry ID.