Now with ability to toggle hidden and disabled sessions.
This commit is contained in:
@@ -93,13 +93,14 @@ let events_local_data_struct: key_val = {
|
|||||||
'files': {
|
'files': {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Event Presentation Launcher
|
// Event Presentation Launcher (and native Electron app)
|
||||||
'launcher': {
|
'launcher': {
|
||||||
qry_max__sessions: 75,
|
qry_max__sessions: 75,
|
||||||
qry_max__presentations: 25,
|
qry_max__presentations: 25,
|
||||||
qry_max__presenters: 75,
|
qry_max__presenters: 75,
|
||||||
qry_max__files: 75,
|
qry_max__files: 75,
|
||||||
|
|
||||||
|
show_content__disabled_files: false,
|
||||||
show_content__hidden_files: false,
|
show_content__hidden_files: false,
|
||||||
show_content__hidden_presentations: false,
|
show_content__hidden_presentations: false,
|
||||||
show_content__hidden_presenters: false,
|
show_content__hidden_presenters: false,
|
||||||
@@ -118,7 +119,13 @@ let events_local_data_struct: key_val = {
|
|||||||
event_presentation_id: null,
|
event_presentation_id: null,
|
||||||
event_presenter_id: null,
|
event_presenter_id: null,
|
||||||
event_file_id: null, // event_file_id
|
event_file_id: null, // event_file_id
|
||||||
}
|
},
|
||||||
|
|
||||||
|
native: {
|
||||||
|
// 'local_file_cache_path': aether_cfg_data.app.local_file_cache_path,
|
||||||
|
// 'host_file_temp_path': aether_cfg_data.app.host_file_temp_path,
|
||||||
|
'host_file_config_path': 'device_configs/ae_native_app_config.default.json',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Lead Retrievals (Exhibit)
|
// Lead Retrievals (Exhibit)
|
||||||
@@ -165,17 +172,37 @@ let events_local_data_struct: key_val = {
|
|||||||
|
|
||||||
// Presentation Management (Distributing)
|
// Presentation Management (Distributing)
|
||||||
'pres_mgmt': {
|
'pres_mgmt': {
|
||||||
show_content__session_description: false,
|
qry_enabled: 'enabled', // all, disabled, enabled
|
||||||
show_content__presentation_description: false,
|
qry_hidden: 'not_hidden', // all, hidden, not_hidden
|
||||||
|
qry_limit__files: 75,
|
||||||
|
qry_limit__presentations: 25,
|
||||||
|
qry_limit__presenters: 75,
|
||||||
|
qry_limit__sessions: 75,
|
||||||
|
qry_max: 500, // This is the max number the limit is allowed to be set to.
|
||||||
|
|
||||||
// show_content__agree_text: false,
|
// show_content__agree_text: false,
|
||||||
|
show_content__presentation_description: false,
|
||||||
|
show_content__presenter_page_help: true,
|
||||||
// show_content__presenter_start: false,
|
// show_content__presenter_start: false,
|
||||||
|
show_content__presenter_view: null,
|
||||||
|
show_content__session_description: false,
|
||||||
show_content__session_help: true,
|
show_content__session_help: true,
|
||||||
show_content__session_search_help: true,
|
show_content__session_search_help: true,
|
||||||
show_content__presenter_page_help: true,
|
|
||||||
show_content__presenter_view: null,
|
|
||||||
show_content__session_view: null,
|
show_content__session_view: null,
|
||||||
|
|
||||||
|
show_content__disabled_files: false,
|
||||||
|
show_content__hidden_files: false,
|
||||||
|
show_content__hidden_presentations: false,
|
||||||
|
show_content__hidden_presenters: false,
|
||||||
|
show_content__hidden_sessions: false,
|
||||||
|
|
||||||
|
show_content__presentation_code: true,
|
||||||
|
show_content__presenter_code: true,
|
||||||
|
show_content__session_code: true,
|
||||||
|
|
||||||
|
show_menu__presenter: null,
|
||||||
show_menu__session: null,
|
show_menu__session: null,
|
||||||
|
show_menu__session_search: null,
|
||||||
|
|
||||||
show_report__presenters_agree: false,
|
show_report__presenters_agree: false,
|
||||||
show_report__recent_files: false,
|
show_report__recent_files: false,
|
||||||
@@ -256,8 +283,10 @@ let events_session_data_struct: key_val = {
|
|||||||
processed_file_list: [],
|
processed_file_list: [],
|
||||||
},
|
},
|
||||||
|
|
||||||
// Event Presentation Launcher
|
// Event Presentation Launcher (and native Electron app)
|
||||||
'launcher': {
|
'launcher': {
|
||||||
|
native: {
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// Lead Retrievals (Exhibit)
|
// Lead Retrievals (Exhibit)
|
||||||
|
|||||||
@@ -106,6 +106,27 @@ let ae_tmp: key_val = {};
|
|||||||
let ae_triggers: key_val = {};
|
let ae_triggers: key_val = {};
|
||||||
|
|
||||||
|
|
||||||
|
// let params = {
|
||||||
|
// 'qry__enabled': $events_loc.pres_mgmt.qry_enabled ?? 'enabled',
|
||||||
|
// 'qry__hidden': $events_loc.pres_mgmt.qry_hidden ?? 'not_hidden',
|
||||||
|
// 'qry__limit': $events_loc.pres_mgmt.qry_limit__session ?? 35,
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if ($ae_loc.administrator_access) {
|
||||||
|
// params['qry__enabled'] = 'all';
|
||||||
|
// params['qry__hidden'] = 'all';
|
||||||
|
// params['qry__limit'] = 150;
|
||||||
|
// } else if ($ae_loc.trusted_access) {
|
||||||
|
// params['qry__enabled'] = 'enabled';
|
||||||
|
// params['qry__hidden'] = 'not_hidden';
|
||||||
|
// params['qry__limit'] = 75;
|
||||||
|
// } else {
|
||||||
|
// params['qry__enabled'] = 'enabled';
|
||||||
|
// params['qry__hidden'] = 'not_hidden';
|
||||||
|
// params['qry__limit'] = 35;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
console.log('Events Event [slug]: +page.svelte');
|
console.log('Events Event [slug]: +page.svelte');
|
||||||
|
|
||||||
@@ -177,24 +198,24 @@ function process_search_string(search_str: string) {
|
|||||||
console.log(`"${search_str}"`);
|
console.log(`"${search_str}"`);
|
||||||
|
|
||||||
let params = {
|
let params = {
|
||||||
'qry__enabled': 'enabled',
|
'qry__enabled': $events_loc.pres_mgmt.qry_enabled ?? 'enabled',
|
||||||
'qry__hidden': 'not_hidden',
|
'qry__hidden': $events_loc.pres_mgmt.qry_hidden ?? 'not_hidden',
|
||||||
'qry__limit': 35,
|
'qry__limit': $events_loc.pres_mgmt.qry_limit__session ?? 35,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($ae_loc.administrator_access) {
|
// if ($ae_loc.administrator_access) {
|
||||||
params['qry__enabled'] = 'all';
|
// params['qry__enabled'] = 'all';
|
||||||
params['qry__hidden'] = 'all';
|
// params['qry__hidden'] = 'all';
|
||||||
params['qry__limit'] = 150;
|
// params['qry__limit'] = 150;
|
||||||
} else if ($ae_loc.trusted_access) {
|
// } else if ($ae_loc.trusted_access) {
|
||||||
params['qry__enabled'] = 'enabled';
|
// params['qry__enabled'] = 'enabled';
|
||||||
params['qry__hidden'] = 'all';
|
// params['qry__hidden'] = 'not_hidden';
|
||||||
params['qry__limit'] = 75;
|
// params['qry__limit'] = 75;
|
||||||
} else {
|
// } else {
|
||||||
params['qry__enabled'] = 'enabled';
|
// params['qry__enabled'] = 'enabled';
|
||||||
params['qry__hidden'] = 'not_hidden';
|
// params['qry__hidden'] = 'not_hidden';
|
||||||
params['qry__limit'] = 35;
|
// params['qry__limit'] = 35;
|
||||||
}
|
// }
|
||||||
|
|
||||||
handle_search__event_session({
|
handle_search__event_session({
|
||||||
api_cfg: $ae_api,
|
api_cfg: $ae_api,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ let ae_triggers: key_val = {};
|
|||||||
class="flex flex-row flex-wrap gap-1 items-center justify-around w-full">
|
class="flex flex-row flex-wrap gap-1 items-center justify-around w-full">
|
||||||
|
|
||||||
<span
|
<span
|
||||||
class="ae_menu__navigation_options"
|
class="ae_menu__navigation_options flex flex-row items-center justify-around"
|
||||||
class:hidden={!$ae_loc.trusted_access}
|
class:hidden={!$ae_loc.trusted_access}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -52,8 +52,33 @@ let ae_triggers: key_val = {};
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
class="ae_menu__object_options"
|
class="ae_menu__object_options flex flex-row items-center justify-around"
|
||||||
>
|
>
|
||||||
|
<!-- Button to toggle between showing and not showing the extended options menu -->
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
on:click={() => {
|
||||||
|
if ($events_loc.pres_mgmt.show_menu__session_search == 'options') {
|
||||||
|
$events_loc.pres_mgmt.show_menu__session_search = null;
|
||||||
|
} else {
|
||||||
|
$events_loc.pres_mgmt.show_menu__session_search = 'options';
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
class="{ae_snip.classes__events_pres_mgmt_menu__button}"
|
||||||
|
class:hidden={!$ae_loc.trusted_access}
|
||||||
|
title="Options for the presenter"
|
||||||
|
>
|
||||||
|
<span class="fas fa-cog m-1"></span>
|
||||||
|
{#if $events_loc.pres_mgmt.show_menu__session_search == 'options'}
|
||||||
|
Hide
|
||||||
|
{:else}
|
||||||
|
<span class="hidden">
|
||||||
|
Show
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
|
Options?
|
||||||
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
@@ -89,11 +114,85 @@ let ae_triggers: key_val = {};
|
|||||||
<!-- BEGIN: The expanded menu area for information and options -->
|
<!-- BEGIN: The expanded menu area for information and options -->
|
||||||
<div
|
<div
|
||||||
class="flex flex-row items-center justify-around w-full bg-blue-100 hover:bg-blue-200 border border-blue-200 hover:border-blue-400 p-2 rounded-md"
|
class="flex flex-row items-center justify-around w-full bg-blue-100 hover:bg-blue-200 border border-blue-200 hover:border-blue-400 p-2 rounded-md"
|
||||||
class:hidden={$events_loc.pres_mgmt.show_menu__session != 'options'}
|
class:hidden={$events_loc.pres_mgmt.show_menu__session_search != 'options'}
|
||||||
>
|
>
|
||||||
|
|
||||||
|
{#if $ae_loc.authenticated_access}
|
||||||
|
<!-- Button to toggle between the showing hidden sessions -->
|
||||||
|
{#if $events_loc.pres_mgmt.qry_hidden == 'all'}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
on:click={() => {
|
||||||
|
if ($events_loc.pres_mgmt.qry_hidden == 'all') {
|
||||||
|
$events_loc.pres_mgmt.qry_hidden = 'not_hidden';
|
||||||
|
} else {
|
||||||
|
$events_loc.pres_mgmt.qry_hidden = 'all';
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
class="btn btn-sm variant-ghost-success"
|
||||||
|
title="Hide sessions marked as hidden?"
|
||||||
|
>
|
||||||
|
<span class="fas fa-eye-slash m-1"></span>
|
||||||
|
Hide Sessions?
|
||||||
|
</button>
|
||||||
|
{:else}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
on:click={() => {
|
||||||
|
if ($events_loc.pres_mgmt.qry_hidden == 'all') {
|
||||||
|
$events_loc.pres_mgmt.qry_hidden = 'not_hidden';
|
||||||
|
} else {
|
||||||
|
$events_loc.pres_mgmt.qry_hidden = 'all';
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
class="btn btn-sm variant-ghost-warning"
|
||||||
|
title="Show all (hidden) sessions?"
|
||||||
|
>
|
||||||
|
<span class="fas fa-eye m-1"></span>
|
||||||
|
Show All (Hidden) Sessions?
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if $ae_loc.administrator_access}
|
||||||
|
{#if $events_loc.pres_mgmt.qry_enabled == 'all'}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
on:click={() => {
|
||||||
|
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||||
|
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||||
|
} else {
|
||||||
|
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
class="btn btn-sm variant-ghost-success"
|
||||||
|
title="Hide disabled sessions?"
|
||||||
|
>
|
||||||
|
<span class="fas fa-eye-slash m-1"></span>
|
||||||
|
Hide Disabled Sessions?
|
||||||
|
</button>
|
||||||
|
{:else}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
on:click={() => {
|
||||||
|
if ($events_loc.pres_mgmt.qry_enabled == 'all') {
|
||||||
|
$events_loc.pres_mgmt.qry_enabled = 'enabled';
|
||||||
|
} else {
|
||||||
|
$events_loc.pres_mgmt.qry_enabled = 'all';
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
class="btn btn-sm variant-ghost-warning"
|
||||||
|
title="Show disabled sessions?"
|
||||||
|
>
|
||||||
|
<span class="fas fa-eye m-1"></span>
|
||||||
|
Show All (Disabled) Sessions?
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
</div> <!-- END: The expanded menu area for information and options -->
|
</div> <!-- END: The expanded menu area for information and options -->
|
||||||
|
|
||||||
|
|
||||||
<Element_data_store
|
<Element_data_store
|
||||||
ds_code="events__pres_mgmt__session_search_help"
|
ds_code="events__pres_mgmt__session_search_help"
|
||||||
ds_name="Default: Events - Pres Mgmt Session Search Help"
|
ds_name="Default: Events - Pres Mgmt Session Search Help"
|
||||||
@@ -125,4 +224,4 @@ let ae_triggers: key_val = {};
|
|||||||
<!-- Menu? -->
|
<!-- Menu? -->
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> <!-- End of the new standard page specific menu -->
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ let ae_triggers: key_val = {};
|
|||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<!-- Button to toggle between showing and not showing the extended options menu -->
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
@@ -96,6 +97,7 @@ let ae_triggers: key_val = {};
|
|||||||
{/if}
|
{/if}
|
||||||
Options?
|
Options?
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
@@ -442,6 +444,7 @@ let ae_triggers: key_val = {};
|
|||||||
|
|
||||||
</div> <!-- END: The expanded menu area for information and options -->
|
</div> <!-- END: The expanded menu area for information and options -->
|
||||||
|
|
||||||
|
|
||||||
<Element_data_store
|
<Element_data_store
|
||||||
ds_code="events__pres_mgmt__presenter_page_help"
|
ds_code="events__pres_mgmt__presenter_page_help"
|
||||||
ds_name="Default: Events - Pres Mgmt Presenter Page Help"
|
ds_name="Default: Events - Pres Mgmt Presenter Page Help"
|
||||||
|
|||||||
@@ -327,6 +327,7 @@ let ae_triggers: key_val = {};
|
|||||||
|
|
||||||
</div> <!-- END: The expanded menu area for information and options -->
|
</div> <!-- END: The expanded menu area for information and options -->
|
||||||
|
|
||||||
|
|
||||||
<Element_data_store
|
<Element_data_store
|
||||||
ds_code="events__pres_mgmt__session_help"
|
ds_code="events__pres_mgmt__session_help"
|
||||||
ds_name="Default: Events - Pres Mgmt Session Help"
|
ds_name="Default: Events - Pres Mgmt Session Help"
|
||||||
|
|||||||
Reference in New Issue
Block a user