Creating for AE "Sponsorships". Update file timestamps and remove unused files. Also switched to Svelte with Vite.

This commit is contained in:
Scott Idem
2024-02-06 18:23:01 -05:00
parent c19a315bf2
commit 143265ed9e
55 changed files with 9921 additions and 4327 deletions

View File

@@ -1,56 +1,64 @@
// import api from './api.js';
import { ae } from 'aether_npm_lib';
import './app.css';
import App from './App.svelte';
import log_client_viewing_li from './log_client_viewing.svelte';
import membership_member_manage from './membership_member_manage.svelte';
import person from './person.svelte';
// import user from './user.svelte';
import Archives from './0_archives__main.svelte';
import Events from './0_events__main.svelte';
import Posts from './0_posts__main.svelte';
// <App />
let url_params = ae.util.get_url_params();
// console.log(url_params);
// IMPORTANT: The URL paramater 'uuid' is used to determine if the user is logged in or not. If the user is logged in, the uuid will be passed in as a url param. If the user is not logged in, the uuid will not be passed in as a url param.
if (document.getElementById('log_client_viewing_list_container')) {
const log_client_viewing_app = new log_client_viewing_li({
target: document.getElementById('log_client_viewing_list_container'),
props: {
'name': 'List Client Viewing Log',
'account_id': account_id,
}
});
if (document.getElementById('app')) {
const app = new App({
target: document.getElementById('app'),
});
}
if (document.getElementById('membership_member_manage_container')) {
const membership_member_manage_app = new membership_member_manage({
target: document.getElementById('membership_member_manage_container'),
props: {
'name': 'Membership Member Manage',
'account_id': account_id,
'membership_member_id': membership_member_id,
}
});
if (document.querySelector('.svelte_target.idaa_archives_main')) {
const archives_main_app = new Archives({
target: document.querySelector('.svelte_target.idaa_archives_main'),
props: {
'archive_id': url_params.archive_id,
'novi_uuid': (url_params.uuid ? url_params.uuid : false),
'novi_email': decodeURIComponent(url_params.email), // decodeURIComponent() is needed because the email is passed in as a url param. Should this be takenc are of by the ae.util.get_url_params() function?
'novi_full_name': decodeURIComponent(url_params.full_name),
'novi_admin_li': ['2b078deb-b4e7-4203-99da-9f7cd62159a5'],
'novi_trusted_li': ['c9ea07b5-06b0-4a43-a2d0-8d06558c8a82', '58db22ee-4b0a-49a7-9f34-53d2ba85a84b'],
'results_limit_administrator': 75,
'results_limit_trusted': 50,
'results_limit_authenticated': 25,
}
});
}
if (document.getElementById('person_container')) {
const person_app = new person({
target: document.getElementById('person_container'),
props: {
'name': 'Person',
'account_id': account_id,
'person_id': person_id,
}
});
if (document.querySelector('.svelte_target.idaa_events_main')) {
const events_main_app = new Events({
target: document.querySelector('.svelte_target.idaa_events_main'),
props: {
'event_id': url_params.event_id,
'novi_uuid': (url_params.uuid ? url_params.uuid : false),
'novi_email': decodeURIComponent(url_params.email), // decodeURIComponent() is needed because the email is passed in as a url param. Should this be takenc are of by the ae.util.get_url_params() function?
'novi_full_name': decodeURIComponent(url_params.full_name),
'novi_admin_li': ['2b078deb-b4e7-4203-99da-9f7cd62159a5'],
'novi_trusted_li': ['c9ea07b5-06b0-4a43-a2d0-8d06558c8a82', '58db22ee-4b0a-49a7-9f34-53d2ba85a84b'],
'results_limit_administrator': 75,
'results_limit_trusted': 50,
'results_limit_authenticated': 25,
}
});
}
// if (document.getElementById('user_container')) {
// const user_app = new user({
// target: document.getElementById('user_container'),
// props: {
// 'name': 'User',
// 'account_id': account_id,
// 'user_id': user_id,
// }
// });
// }
//export default app;
//export app_2;
if (document.querySelector('.svelte_target.idaa_posts_main')) {
const posts_main_app = new Posts({
target: document.querySelector('.svelte_target.idaa_posts_main'),
props: {
'post_id': url_params.post_id,
'novi_uuid': (url_params.uuid ? url_params.uuid : false),
'novi_email': url_params.email,
'novi_full_name': url_params.full_name,
'novi_admin_li': ['2b078deb-b4e7-4203-99da-9f7cd62159a5'],
'novi_trusted_li': ['c9ea07b5-06b0-4a43-a2d0-8d06558c8a82', '58db22ee-4b0a-49a7-9f34-53d2ba85a84b'],
}
});
}