feat: Migrate ESLint to flat config and resolve initial linting errors
Migrated the ESLint configuration to the new flat config format () and addressed several initial linting errors. Key changes include: - Updated ESLint configuration to treat as warnings instead of errors. - Fixed errors in by declaring and . - Corrected error in by using instead of an out-of-scope . - Resolved error in by replacing the undefined directive with the component. - Addressed errors in by replacing with and with . - Fixed errors in by importing necessary modules (, , ) and adding missing props (, , , , ).
This commit is contained in:
@@ -1,91 +0,0 @@
|
||||
{
|
||||
"background_color": "hsl(220, 65%, 31%)",
|
||||
"description": "The One Sky IT Aether Progressive Web App for One Sky IT Demo",
|
||||
"display": "fullscreen",
|
||||
"icons": [
|
||||
{
|
||||
"sizes": "24x24",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_24px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "48x48",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_48px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "88x88",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_88px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "88x88",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_88px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "120x120",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_120px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "144x144",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_144px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "180x180",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_180px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "192x192",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "192x192",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "256x256",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_256px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "256x256",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_256px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "300x300",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_300px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "512x512",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "512x512",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "1024x1024",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "1024x1024",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.png",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"name": "One Sky IT Demo - One Sky IT Aether PWA",
|
||||
"short_name": "One Sky IT Demo OSIT AE PWA",
|
||||
"start_url": "/",
|
||||
"testing": "One Sky IT Demo"
|
||||
}
|
||||
@@ -1,126 +1,126 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Novi Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Novi Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/archives';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
let idaa_ae_slct_archive_id = idaa_ae_params.get('archive_id');
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
let idaa_ae_iframe_height = null;
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append('Authorization', `Basic ${novi_api_key_for_idaa}`);
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/archives';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
let idaa_ae_slct_archive_id = idaa_ae_params.get('archive_id');
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
// console.log(novi_api_get_customer_endpoint);
|
||||
|
||||
let idaa_ae_iframe_height = null;
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then((response) => response.json())
|
||||
.then((result) => {
|
||||
novi_current_user_obj = result;
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append("Authorization", `Basic ${novi_api_key_for_idaa}`);
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_archives_iframe');
|
||||
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
if (idaa_ae_slct_archive_id) {
|
||||
// console.log(`Loading AE Archive ID: ${idaa_ae_slct_archive_id}`);
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}/${idaa_ae_slct_archive_id}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
} else {
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
// console.log(novi_api_get_customer_endpoint);
|
||||
url.searchParams.delete('archive_id');
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then(response => response.json())
|
||||
.then(result => {
|
||||
novi_current_user_obj = result;
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
// let iframe_src = document.getElementById('iframe_src');
|
||||
// iframe_src.innerHTML = `iframe src = ${idaa_ae_iframe_element.src}`;
|
||||
})
|
||||
.catch((error) => console.log('error', error));
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_archives_iframe');
|
||||
window.addEventListener('message', function (event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
|
||||
if (idaa_ae_slct_archive_id) {
|
||||
// console.log(`Loading AE Archive ID: ${idaa_ae_slct_archive_id}`);
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}/${idaa_ae_slct_archive_id}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
} else {
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
// console.log(`Got iframe height: ${idaa_ae_iframe_height}`);
|
||||
|
||||
url.searchParams.delete('archive_id');
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_archives_iframe');
|
||||
|
||||
// let iframe_src = document.getElementById('iframe_src');
|
||||
// iframe_src.innerHTML = `iframe src = ${idaa_ae_iframe_element.src}`;
|
||||
})
|
||||
.catch(error => console.log('error', error));
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height + 50}px`;
|
||||
}
|
||||
|
||||
window.addEventListener('message', function(event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
const url = new URL(location);
|
||||
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
// console.log(`Got iframe height: ${idaa_ae_iframe_height}`);
|
||||
// Check if archive_id is defined in the message
|
||||
if (event.data.archive_id !== undefined) {
|
||||
console.log(`Got AE Archives ID: ${event.data.archive_id}`);
|
||||
idaa_ae_slct_archive_id = event.data.archive_id;
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_archives_iframe');
|
||||
if (event.data.archive_id) {
|
||||
url.searchParams.set('archive_id', event.data.archive_id);
|
||||
} else {
|
||||
url.searchParams.delete('archive_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height+50}px`;
|
||||
}
|
||||
// Check if archive_content_id is defined in the message
|
||||
if (event.data.archive_content_id !== undefined) {
|
||||
console.log(`Got AE Archives Content ID: ${event.data.archive_content_id}`);
|
||||
idaa_ae_slct_archive_content_id = event.data.archive_content_id;
|
||||
|
||||
const url = new URL(location);
|
||||
if (event.data.archive_content_id) {
|
||||
url.searchParams.set('archive_content_id', event.data.archive_content_id);
|
||||
} else {
|
||||
url.searchParams.delete('archive_content_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
// Check if archive_id is defined in the message
|
||||
if (event.data.archive_id !== undefined) {
|
||||
console.log(`Got AE Archives ID: ${event.data.archive_id}`);
|
||||
idaa_ae_slct_archive_id = event.data.archive_id;
|
||||
<!-- <div id="iframe_src">iframe src=</div> -->
|
||||
|
||||
if (event.data.archive_id) {
|
||||
url.searchParams.set('archive_id', event.data.archive_id);
|
||||
} else {
|
||||
url.searchParams.delete('archive_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
// Check if archive_content_id is defined in the message
|
||||
if (event.data.archive_content_id !== undefined) {
|
||||
console.log(`Got AE Archives Content ID: ${event.data.archive_content_id}`);
|
||||
idaa_ae_slct_archive_content_id = event.data.archive_content_id;
|
||||
|
||||
if (event.data.archive_content_id) {
|
||||
url.searchParams.set('archive_content_id', event.data.archive_content_id);
|
||||
} else {
|
||||
url.searchParams.delete('archive_content_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- <div id="iframe_src">iframe src=</div> -->
|
||||
|
||||
<!-- IDAA Aether Apps for Novi - Archives iframe -->
|
||||
<p><iframe width="100%" height="750" id="ae_idaa_archives_iframe" src="" style="min-height: 600px; max-height: 100%;" class="ae_idaa_iframe"></iframe></p>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
<!-- IDAA Aether Apps for Novi - Archives iframe -->
|
||||
<p>
|
||||
<iframe
|
||||
width="100%"
|
||||
height="750"
|
||||
id="ae_idaa_archives_iframe"
|
||||
src=""
|
||||
style="min-height: 600px; max-height: 100%"
|
||||
class="ae_idaa_iframe"
|
||||
></iframe>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,143 +1,143 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Novi Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Novi Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/bb';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
let idaa_ae_slct_post_id = idaa_ae_params.get('post_id');
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
let idaa_ae_iframe_height = null;
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append('Authorization', `Basic ${novi_api_key_for_idaa}`);
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/bb';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
let idaa_ae_slct_post_id = idaa_ae_params.get('post_id');
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
// console.log(novi_api_get_customer_endpoint);
|
||||
|
||||
let idaa_ae_iframe_height = null;
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then((response) => response.json())
|
||||
.then((result) => {
|
||||
novi_current_user_obj = result;
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append("Authorization", `Basic ${novi_api_key_for_idaa}`);
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_bb_iframe');
|
||||
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
if (idaa_ae_slct_post_id) {
|
||||
// console.log(`Loading AE Post ID: ${idaa_ae_slct_post_id}`);
|
||||
// idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&post_id=${idaa_ae_slct_post_id}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
// console.log(novi_api_get_customer_endpoint);
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}/${idaa_ae_slct_post_id}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
} else {
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then(response => response.json())
|
||||
.then(result => {
|
||||
novi_current_user_obj = result;
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
url.searchParams.delete('post_id');
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_bb_iframe');
|
||||
// let iframe_src = document.getElementById('iframe_src');
|
||||
// iframe_src.innerHTML = `iframe src = ${idaa_ae_iframe_element.src}`;
|
||||
})
|
||||
.catch((error) => console.log('error', error));
|
||||
|
||||
if (idaa_ae_slct_post_id) {
|
||||
// console.log(`Loading AE Post ID: ${idaa_ae_slct_post_id}`);
|
||||
// idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&post_id=${idaa_ae_slct_post_id}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
window.addEventListener('message', function (event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}/${idaa_ae_slct_post_id}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
} else {
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
// console.log(`Got iframe height: ${idaa_ae_iframe_height}`);
|
||||
|
||||
url.searchParams.delete('post_id');
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_bb_iframe');
|
||||
|
||||
// let iframe_src = document.getElementById('iframe_src');
|
||||
// iframe_src.innerHTML = `iframe src = ${idaa_ae_iframe_element.src}`;
|
||||
})
|
||||
.catch(error => console.log('error', error));
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height + 50}px`;
|
||||
}
|
||||
|
||||
window.addEventListener('message', function(event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
if (event.data.scroll_to !== undefined) {
|
||||
console.log(`Got scroll_to: ${event.data.scroll_to}`);
|
||||
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
// console.log(`Got iframe height: ${idaa_ae_iframe_height}`);
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_bb_iframe');
|
||||
if (idaa_ae_iframe_element) {
|
||||
console.log(`Scrolling to: ${event.data.scroll_to}`);
|
||||
// window.scrollTo(0, 0); // This works for all current browsers
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
} else {
|
||||
console.warn(`Element with ID "ae_idaa_bb_iframe" not found.`);
|
||||
}
|
||||
}
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_bb_iframe');
|
||||
const url = new URL(location);
|
||||
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height+50}px`;
|
||||
}
|
||||
// Check if post_id is defined in the message
|
||||
if (event.data.post_id !== undefined) {
|
||||
console.log(`Got AE Post ID: ${event.data.post_id}`);
|
||||
idaa_ae_slct_post_id = event.data.post_id;
|
||||
|
||||
if (event.data.scroll_to !== undefined) {
|
||||
console.log(`Got scroll_to: ${event.data.scroll_to}`);
|
||||
if (event.data.post_id) {
|
||||
url.searchParams.set('post_id', event.data.post_id);
|
||||
} else {
|
||||
url.searchParams.delete('post_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_bb_iframe');
|
||||
if (idaa_ae_iframe_element) {
|
||||
console.log(`Scrolling to: ${event.data.scroll_to}`);
|
||||
// window.scrollTo(0, 0); // This works for all current browsers
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
} else {
|
||||
console.warn(`Element with ID "ae_idaa_bb_iframe" not found.`);
|
||||
}
|
||||
}
|
||||
// Check if post_comment_id is defined in the message
|
||||
if (event.data.post_comment_id !== undefined) {
|
||||
console.log(`Got AE Post Comment ID: ${event.data.post_comment_id}`);
|
||||
idaa_ae_slct_post_comment_id = event.data.post_comment_id;
|
||||
|
||||
const url = new URL(location);
|
||||
if (event.data.post_comment_id) {
|
||||
url.searchParams.set('post_comment_id', event.data.post_comment_id);
|
||||
} else {
|
||||
url.searchParams.delete('post_comment_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
// Check if post_id is defined in the message
|
||||
if (event.data.post_id !== undefined) {
|
||||
console.log(`Got AE Post ID: ${event.data.post_id}`);
|
||||
idaa_ae_slct_post_id = event.data.post_id;
|
||||
|
||||
if (event.data.post_id) {
|
||||
url.searchParams.set('post_id', event.data.post_id);
|
||||
} else {
|
||||
url.searchParams.delete('post_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
// Check if post_comment_id is defined in the message
|
||||
if (event.data.post_comment_id !== undefined) {
|
||||
console.log(`Got AE Post Comment ID: ${event.data.post_comment_id}`);
|
||||
idaa_ae_slct_post_comment_id = event.data.post_comment_id;
|
||||
|
||||
if (event.data.post_comment_id) {
|
||||
url.searchParams.set('post_comment_id', event.data.post_comment_id);
|
||||
} else {
|
||||
url.searchParams.delete('post_comment_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- IDAA Aether Apps for Novi - Bulletin Board (posts) iframe -->
|
||||
<p><iframe width="100%" height="750" id="ae_idaa_bb_iframe" src="" style="min-height: 600px; max-height: 100%;" class="ae_idaa_iframe"></iframe></p>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
<!-- IDAA Aether Apps for Novi - Bulletin Board (posts) iframe -->
|
||||
<p>
|
||||
<iframe
|
||||
width="100%"
|
||||
height="750"
|
||||
id="ae_idaa_bb_iframe"
|
||||
src=""
|
||||
style="min-height: 600px; max-height: 100%"
|
||||
class="ae_idaa_iframe"
|
||||
></iframe>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,135 +1,138 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>IDAA Novi Jitsi iframe Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>IDAA Novi Jitsi iframe Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
let room_name = 'IDAA-Student-and-Resident-Meeting'; // 'IDAA-Student-and-Resident-Meeting' 'idaa-meeting'
|
||||
let is_moderator = false;
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
// let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/jitsi_meet';
|
||||
let idaa_ae_api_root_url = 'https://static.oneskyit.com/c/DgrZone/jitsi_iframe_api.html';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
// let idaa_ae_slct_event_id = idaa_ae_params.get('event_id');
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
let idaa_ae_iframe_height = null;
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append('Authorization', `Basic ${novi_api_key_for_idaa}`);
|
||||
|
||||
let room_name = 'IDAA-Student-and-Resident-Meeting'; // 'IDAA-Student-and-Resident-Meeting' 'idaa-meeting'
|
||||
let is_moderator = false;
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
// let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/jitsi_meet';
|
||||
let idaa_ae_api_root_url = 'https://static.oneskyit.com/c/DgrZone/jitsi_iframe_api.html';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
// let idaa_ae_slct_event_id = idaa_ae_params.get('event_id');
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
console.log(novi_api_get_customer_endpoint);
|
||||
|
||||
let idaa_ae_iframe_height = null;
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then((response) => response.json())
|
||||
.then((result) => {
|
||||
novi_current_user_obj = result;
|
||||
console.log(`Novi's Current User Obj:`, novi_current_user_obj);
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append("Authorization", `Basic ${novi_api_key_for_idaa}`);
|
||||
let full_name = novi_current_user_obj?.Name;
|
||||
let first_name = novi_current_user_obj?.FirstName;
|
||||
let last_initial = novi_current_user_obj?.LastName
|
||||
? novi_current_user_obj.LastName.charAt(0).toUpperCase() + '.'
|
||||
: '';
|
||||
if (last_initial) {
|
||||
full_name = `${first_name} ${last_initial}`;
|
||||
}
|
||||
console.log(`Novi's Current User's Full Name: ${full_name}`);
|
||||
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_jitsi_meeting_iframe');
|
||||
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
console.log(novi_api_get_customer_endpoint);
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${full_name}&moderator=${is_moderator}&room=${room_name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then(response => response.json())
|
||||
.then(result => {
|
||||
novi_current_user_obj = result;
|
||||
console.log(`Novi's Current User Obj:`, novi_current_user_obj);
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
// url.searchParams.delete('event_id');
|
||||
// history.pushState({}, '', url);
|
||||
})
|
||||
.catch((error) => console.log('error', error));
|
||||
|
||||
let full_name = novi_current_user_obj?.Name;
|
||||
let first_name = novi_current_user_obj?.FirstName;
|
||||
let last_initial = (novi_current_user_obj?.LastName) ? novi_current_user_obj.LastName.charAt(0).toUpperCase() + '.' : '';
|
||||
if (last_initial) {
|
||||
full_name = `${first_name} ${last_initial}`;
|
||||
}
|
||||
console.log(`Novi's Current User's Full Name: ${full_name}`);
|
||||
window.addEventListener('message', function (event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_jitsi_meeting_iframe');
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
// console.log(`Got iframe height: ${event.data.iframe_height}`);
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_novi_meeting_iframe');
|
||||
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${full_name}&moderator=${is_moderator}&room=${room_name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height + 50}px`;
|
||||
}
|
||||
|
||||
// url.searchParams.delete('event_id');
|
||||
// history.pushState({}, '', url);
|
||||
})
|
||||
.catch(error => console.log('error', error));
|
||||
if (event.data.scroll_to !== undefined) {
|
||||
console.log(`Got scroll_to: ${event.data.scroll_to}`);
|
||||
|
||||
window.addEventListener('message', function(event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_novi_meeting_iframe');
|
||||
if (idaa_ae_iframe_element) {
|
||||
console.log(`Scrolling to: ${event.data.scroll_to}`);
|
||||
// window.scrollTo(0, 0); // This works for all current browsers
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
// idaa_ae_iframe_element.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// document.body.scrollTop = 0;
|
||||
// idaa_ae_iframe_element?.scrollTo(0, 0)
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: event.data.scroll_to,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
} else {
|
||||
console.warn(`Element with ID "ae_idaa_jitsi_meeting_iframe" not found.`);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
// console.log(`Got iframe height: ${event.data.iframe_height}`);
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_novi_meeting_iframe');
|
||||
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height+50}px`;
|
||||
}
|
||||
|
||||
if (event.data.scroll_to !== undefined) {
|
||||
console.log(`Got scroll_to: ${event.data.scroll_to}`);
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_novi_meeting_iframe');
|
||||
if (idaa_ae_iframe_element) {
|
||||
console.log(`Scrolling to: ${event.data.scroll_to}`);
|
||||
// window.scrollTo(0, 0); // This works for all current browsers
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
// idaa_ae_iframe_element.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// document.body.scrollTop = 0;
|
||||
// idaa_ae_iframe_element?.scrollTo(0, 0)
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: event.data.scroll_to,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
} else {
|
||||
console.warn(`Element with ID "ae_idaa_jitsi_meeting_iframe" not found.`);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- IDAA Aether Apps for Novi - Recovery Meetings (events) iframe -->
|
||||
<p><iframe width="100%" height="950" id="ae_idaa_jitsi_meeting_iframe" src="" style="min-height: 950px; height: min-content; max-height: 2048px;" class="ae_idaa_iframe" allow="camera; microphone; fullscreen; display-capture; autoplay; clipboard-write" allowfullscreen></iframe></p>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
<!-- IDAA Aether Apps for Novi - Recovery Meetings (events) iframe -->
|
||||
<p>
|
||||
<iframe
|
||||
width="100%"
|
||||
height="950"
|
||||
id="ae_idaa_jitsi_meeting_iframe"
|
||||
src=""
|
||||
style="min-height: 950px; height: min-content; max-height: 2048px"
|
||||
class="ae_idaa_iframe"
|
||||
allow="camera; microphone; fullscreen; display-capture; autoplay; clipboard-write"
|
||||
allowfullscreen
|
||||
></iframe>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,146 +1,150 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Novi Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Novi Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
|
||||
<script>
|
||||
let novi_customer_uid = '<%=Novi.User.CustomerUniqueId%>'; // NOTE: The Novi UUID for the current current user/customer
|
||||
console.log(`Novi's Current User's ID: ${novi_customer_uid}`);
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/recovery_meetings';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
let idaa_ae_slct_event_id = idaa_ae_params.get('event_id');
|
||||
|
||||
// var novi_current_user_role = '<%=Novi.User.xyz%>';
|
||||
// console.log(`Novi's Current User's Role: ${novi_current_user_role}`);
|
||||
let idaa_ae_iframe_height = null;
|
||||
|
||||
let novi_api_root_url = 'https://www.idaa.org/api';
|
||||
let novi_api_key_for_idaa = 'CmNdWgdPmgluBWjiTd8xsUCk5mio8F1O9DYAh0pVDcg=';
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append('Authorization', `Basic ${novi_api_key_for_idaa}`);
|
||||
|
||||
let novi_current_user_obj = null;
|
||||
let novi_current_user_email = null;
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
|
||||
let idaa_osit_site_key = '8VTOJ0X5hvT6JdiTJsGEzQ'; // 'restricted-access'
|
||||
let idaa_ae_api_root_url = 'https://sk-idaa.oneskyit.com/idaa/recovery_meetings';
|
||||
let idaa_ae_params = new URLSearchParams(document.location.search);
|
||||
let idaa_ae_slct_event_id = idaa_ae_params.get('event_id');
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
console.log(novi_api_get_customer_endpoint);
|
||||
|
||||
let idaa_ae_iframe_height = null;
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then((response) => response.json())
|
||||
.then((result) => {
|
||||
novi_current_user_obj = result;
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
|
||||
var novi_api_headers = new Headers();
|
||||
novi_api_headers.append("Authorization", `Basic ${novi_api_key_for_idaa}`);
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_recovery_meetings_iframe');
|
||||
|
||||
var requestOptions = {
|
||||
method: 'GET',
|
||||
headers: novi_api_headers,
|
||||
redirect: 'follow'
|
||||
};
|
||||
if (idaa_ae_slct_event_id) {
|
||||
// console.log(`Loading AE Archive ID: ${idaa_ae_slct_event_id}`);
|
||||
// idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&event_id=${idaa_ae_slct_event_id}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
|
||||
let novi_api_get_customer_endpoint = `${novi_api_root_url}/customers/${novi_customer_uid}`;
|
||||
console.log(novi_api_get_customer_endpoint);
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}/${idaa_ae_slct_event_id}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
} else {
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
|
||||
fetch(novi_api_get_customer_endpoint, requestOptions)
|
||||
// .then(response => response.text())
|
||||
.then(response => response.json())
|
||||
.then(result => {
|
||||
novi_current_user_obj = result;
|
||||
// console.log(`Novi's Current User Obj (${novi_current_user_obj.Email}):`, novi_current_user_obj);
|
||||
url.searchParams.delete('event_id');
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_recovery_meetings_iframe');
|
||||
// let iframe_src = document.getElementById('iframe_src');
|
||||
// iframe_src.innerHTML = `iframe src = ${idaa_ae_iframe_element.src}`;
|
||||
})
|
||||
.catch((error) => console.log('error', error));
|
||||
|
||||
if (idaa_ae_slct_event_id) {
|
||||
// console.log(`Loading AE Archive ID: ${idaa_ae_slct_event_id}`);
|
||||
// idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&event_id=${idaa_ae_slct_event_id}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
window.addEventListener('message', function (event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}/${idaa_ae_slct_event_id}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
} else {
|
||||
idaa_ae_iframe_element.src = `${idaa_ae_api_root_url}?uuid=${novi_customer_uid}&email=${novi_current_user_obj.Email}&full_name=${novi_current_user_obj.Name}&iframe=true&key=${idaa_osit_site_key}`;
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
// console.log(`Got iframe height: ${event.data.iframe_height}`);
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
|
||||
url.searchParams.delete('event_id');
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
let idaa_ae_iframe_element = document.getElementById(
|
||||
'ae_idaa_recovery_meetings_iframe'
|
||||
);
|
||||
|
||||
// let iframe_src = document.getElementById('iframe_src');
|
||||
// iframe_src.innerHTML = `iframe src = ${idaa_ae_iframe_element.src}`;
|
||||
})
|
||||
.catch(error => console.log('error', error));
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height + 50}px`;
|
||||
}
|
||||
|
||||
window.addEventListener('message', function(event) {
|
||||
// console.log('Message received from the child:', event.data); // Message received from child
|
||||
if (event.data.scroll_to !== undefined) {
|
||||
console.log(`Got scroll_to: ${event.data.scroll_to}`);
|
||||
|
||||
if (event.data) {
|
||||
if (event.data.iframe_height) {
|
||||
// console.log(`Got iframe height: ${event.data.iframe_height}`);
|
||||
idaa_ae_iframe_height = event.data.iframe_height;
|
||||
let idaa_ae_iframe_element = document.getElementById(
|
||||
'ae_idaa_recovery_meetings_iframe'
|
||||
);
|
||||
if (idaa_ae_iframe_element) {
|
||||
console.log(`Scrolling to: ${event.data.scroll_to}`);
|
||||
// window.scrollTo(0, 0); // This works for all current browsers
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
// idaa_ae_iframe_element.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// document.body.scrollTop = 0;
|
||||
// idaa_ae_iframe_element?.scrollTo(0, 0)
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: event.data.scroll_to,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
} else {
|
||||
console.warn(`Element with ID "ae_idaa_recovery_meetings_iframe" not found.`);
|
||||
}
|
||||
}
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_recovery_meetings_iframe');
|
||||
const url = new URL(location);
|
||||
|
||||
// idaa_ae_iframe_element.style.height = idaa_ae_iframe_height;
|
||||
idaa_ae_iframe_element.style.height = `${idaa_ae_iframe_height+50}px`;
|
||||
}
|
||||
// Check if event_id is defined in the message
|
||||
if (event.data.event_id !== undefined) {
|
||||
console.log(`Got AE Events ID: ${event.data.event_id}`);
|
||||
idaa_ae_slct_event_id = event.data.event_id;
|
||||
|
||||
if (event.data.scroll_to !== undefined) {
|
||||
console.log(`Got scroll_to: ${event.data.scroll_to}`);
|
||||
if (event.data.event_id) {
|
||||
url.searchParams.set('event_id', event.data.event_id);
|
||||
} else {
|
||||
url.searchParams.delete('event_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
let idaa_ae_iframe_element = document.getElementById('ae_idaa_recovery_meetings_iframe');
|
||||
if (idaa_ae_iframe_element) {
|
||||
console.log(`Scrolling to: ${event.data.scroll_to}`);
|
||||
// window.scrollTo(0, 0); // This works for all current browsers
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
// idaa_ae_iframe_element.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({x: 0, y: 0}); // Scroll to top
|
||||
// document.body.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// document.body.scrollTop = 0;
|
||||
// idaa_ae_iframe_element?.scrollTo(0, 0)
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: 0,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
// idaa_ae_iframe_element.scrollTo({
|
||||
// top: event.data.scroll_to,
|
||||
// behavior: 'smooth'
|
||||
// });
|
||||
} else {
|
||||
console.warn(`Element with ID "ae_idaa_recovery_meetings_iframe" not found.`);
|
||||
}
|
||||
}
|
||||
|
||||
const url = new URL(location);
|
||||
|
||||
// Check if event_id is defined in the message
|
||||
if (event.data.event_id !== undefined) {
|
||||
console.log(`Got AE Events ID: ${event.data.event_id}`);
|
||||
idaa_ae_slct_event_id = event.data.event_id;
|
||||
|
||||
if (event.data.event_id) {
|
||||
url.searchParams.set('event_id', event.data.event_id);
|
||||
} else {
|
||||
url.searchParams.delete('event_id');
|
||||
}
|
||||
history.pushState({}, '', url);
|
||||
}
|
||||
} else {
|
||||
console.log(`No data in message? ${event}`);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- IDAA Aether Apps for Novi - Recovery Meetings (events) iframe -->
|
||||
<p><iframe width="100%" height="750" id="ae_idaa_recovery_meetings_iframe" src="" style="min-height: 600px; height: min-content; max-height: 2048px;" class="ae_idaa_iframe"></iframe></p>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
<!-- IDAA Aether Apps for Novi - Recovery Meetings (events) iframe -->
|
||||
<p>
|
||||
<iframe
|
||||
width="100%"
|
||||
height="750"
|
||||
id="ae_idaa_recovery_meetings_iframe"
|
||||
src=""
|
||||
style="min-height: 600px; height: min-content; max-height: 2048px"
|
||||
class="ae_idaa_iframe"
|
||||
></iframe>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,129 +1,127 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Jitsi Meetings iframe API for IDAA</title>
|
||||
</head>
|
||||
<body>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Jitsi Meetings iframe API for IDAA</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- <h1>New Jitsi Meetings for IDAA</h1> -->
|
||||
<!-- <p>The URL parameters are passed from the Novi page that contains this as an iframe. This will automatically set the attendees name, email address, moderator status, and room name. The moderator status is based on the Novi UUID. This message will be hidden before going live.</p> -->
|
||||
|
||||
<div id="jitsi_meet_external_api_container" style="height: 750px; width: 100%"></div>
|
||||
<script src="https://jitsi.dgrzone.com/external_api.js"></script>
|
||||
|
||||
<!-- <h1>New Jitsi Meetings for IDAA</h1> -->
|
||||
<!-- <p>The URL parameters are passed from the Novi page that contains this as an iframe. This will automatically set the attendees name, email address, moderator status, and room name. The moderator status is based on the Novi UUID. This message will be hidden before going live.</p> -->
|
||||
<script lang="ts">
|
||||
// Get user info from URL parameters. Generated by the Novi page that contains this iframe.
|
||||
let novi_url_params = new URLSearchParams(document.location.search);
|
||||
let user_id = novi_url_params.get('uuid');
|
||||
let user_full_name = novi_url_params.get('full_name');
|
||||
let user_email = novi_url_params.get('email');
|
||||
let user_moderator = novi_url_params.get('moderator');
|
||||
|
||||
<div id="jitsi_meet_external_api_container" style="height: 750px; width: 100%;"></div>
|
||||
<script src="https://jitsi.dgrzone.com/external_api.js"></script>
|
||||
// Jitsi Meet External API variables
|
||||
let domain = 'jitsi.dgrzone.com';
|
||||
let room_name = novi_url_params.get('room') ?? 'the-default-room';
|
||||
let display_name = user_full_name ?? 'Not My Name';
|
||||
let email = user_email ?? 'test+unknown@oneskyit.com';
|
||||
// Replace spaces with plus symbol in email addresses
|
||||
email = email.replace(/\s+/g, '+');
|
||||
let is_moderator = user_moderator === 'true' || user_moderator === true ? true : false;
|
||||
|
||||
<script lang="ts">
|
||||
// Temporarily hard coding moderators:
|
||||
// 5724aad7-6d89-47e7-8943-966fd22911bd = Steven L. Klein - Stevenklein425@gmail.com
|
||||
// 182d1db3-caa9-41bc-b04a-2facc6859aeb = Melissa Eve Valasky - melissav95@gmail.com
|
||||
let novi_jitsi_mod_li = [
|
||||
'2b078deb-b4e7-4203-99da-9f7cd62159a5',
|
||||
'c9ea07b5-06b0-4a43-a2d0-8d06558c8a82',
|
||||
'58db22ee-4b0a-49a7-9f34-53d2ba85a84b',
|
||||
'5724aad7-6d89-47e7-8943-966fd22911bd',
|
||||
'182d1db3-caa9-41bc-b04a-2facc6859aeb'
|
||||
];
|
||||
|
||||
// Get user info from URL parameters. Generated by the Novi page that contains this iframe.
|
||||
let novi_url_params = new URLSearchParams(document.location.search);
|
||||
let user_id = novi_url_params.get('uuid');
|
||||
let user_full_name = novi_url_params.get('full_name');
|
||||
let user_email = novi_url_params.get('email');
|
||||
let user_moderator = novi_url_params.get('moderator');
|
||||
if (novi_jitsi_mod_li.includes(user_id)) {
|
||||
is_moderator = true;
|
||||
}
|
||||
|
||||
// Jitsi Meet External API variables
|
||||
let domain = 'jitsi.dgrzone.com';
|
||||
let room_name = novi_url_params.get('room') ?? 'the-default-room';
|
||||
let display_name = user_full_name ?? 'Not My Name';
|
||||
let email = user_email ?? 'test+unknown@oneskyit.com';
|
||||
// Replace spaces with plus symbol in email addresses
|
||||
email = email.replace(/\s+/g, '+');
|
||||
let is_moderator = (user_moderator === 'true' || user_moderator === true) ? true : false;
|
||||
// 1. Function to fetch the JWT from your backend
|
||||
async function getJitsiJwt() {
|
||||
// This is the URL of your backend API endpoint.
|
||||
// It's a server-side route that will create the JWT for you.
|
||||
const tokenEndpoint = 'https://api.oneskyit.com/api/jitsi_token';
|
||||
|
||||
// Pass user information and moderator status to the backend
|
||||
const payload = {
|
||||
room: room_name,
|
||||
name: display_name,
|
||||
email: email,
|
||||
is_moderator: is_moderator
|
||||
};
|
||||
console.log('Requesting JWT with payload:', payload);
|
||||
|
||||
// Temporarily hard coding moderators:
|
||||
// 5724aad7-6d89-47e7-8943-966fd22911bd = Steven L. Klein - Stevenklein425@gmail.com
|
||||
// 182d1db3-caa9-41bc-b04a-2facc6859aeb = Melissa Eve Valasky - melissav95@gmail.com
|
||||
let novi_jitsi_mod_li = ["2b078deb-b4e7-4203-99da-9f7cd62159a5", "c9ea07b5-06b0-4a43-a2d0-8d06558c8a82", "58db22ee-4b0a-49a7-9f34-53d2ba85a84b", "5724aad7-6d89-47e7-8943-966fd22911bd", '182d1db3-caa9-41bc-b04a-2facc6859aeb'];
|
||||
try {
|
||||
const response = await fetch(tokenEndpoint, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify(payload)
|
||||
});
|
||||
|
||||
if (novi_jitsi_mod_li.includes(user_id)) {
|
||||
is_moderator = true;
|
||||
}
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to fetch JWT token from the server.');
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
return data.token; // Your backend should return a JSON object like { "token": "..." }
|
||||
} catch (error) {
|
||||
console.error('Error getting JWT:', error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// 1. Function to fetch the JWT from your backend
|
||||
async function getJitsiJwt() {
|
||||
// This is the URL of your backend API endpoint.
|
||||
// It's a server-side route that will create the JWT for you.
|
||||
const tokenEndpoint = 'https://api.oneskyit.com/api/jitsi_token';
|
||||
// 2. Main function to initialize the Jitsi API with the JWT
|
||||
async function initJitsiApi() {
|
||||
let jwtToken = null;
|
||||
if (is_moderator) {
|
||||
jwtToken = await getJitsiJwt();
|
||||
|
||||
// Pass user information and moderator status to the backend
|
||||
const payload = {
|
||||
room: room_name,
|
||||
name: display_name,
|
||||
email: email,
|
||||
is_moderator: is_moderator
|
||||
};
|
||||
console.log("Requesting JWT with payload:", payload);
|
||||
if (!jwtToken) {
|
||||
// Handle the error (e.g., show a message to the user)
|
||||
document.getElementById('jitsi_meet_external_api_container').innerHTML =
|
||||
'<h1>Authentication Failed. Please try again.</h1>';
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await fetch(tokenEndpoint, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify(payload)
|
||||
});
|
||||
const options = {
|
||||
roomName: room_name,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
parentNode: document.getElementById('jitsi_meet_external_api_container'),
|
||||
userInfo: {
|
||||
displayName: display_name,
|
||||
email: email
|
||||
},
|
||||
configOverwrite: {
|
||||
prejoinPageEnabled: false,
|
||||
startWithAudioMuted: true,
|
||||
startWithVideoMuted: true,
|
||||
enablePrejoinPage: false,
|
||||
enableWelcomePage: false,
|
||||
enableClosePage: false,
|
||||
enableLobby: is_moderator
|
||||
},
|
||||
// Pass the fetched JWT to the Jitsi API
|
||||
jwt: jwtToken
|
||||
};
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to fetch JWT token from the server.');
|
||||
}
|
||||
const api = new JitsiMeetExternalAPI(domain, options);
|
||||
console.log('Jitsi API initialized with options:', options);
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
return data.token; // Your backend should return a JSON object like { "token": "..." }
|
||||
|
||||
} catch (error) {
|
||||
console.error("Error getting JWT:", error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// 2. Main function to initialize the Jitsi API with the JWT
|
||||
async function initJitsiApi() {
|
||||
let jwtToken = null;
|
||||
if (is_moderator) {
|
||||
jwtToken = await getJitsiJwt();
|
||||
|
||||
if (!jwtToken) {
|
||||
// Handle the error (e.g., show a message to the user)
|
||||
document.getElementById('jitsi_meet_external_api_container').innerHTML = "<h1>Authentication Failed. Please try again.</h1>";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const options = {
|
||||
roomName: room_name,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
parentNode: document.getElementById('jitsi_meet_external_api_container'),
|
||||
userInfo: {
|
||||
displayName: display_name,
|
||||
email: email,
|
||||
},
|
||||
configOverwrite: {
|
||||
prejoinPageEnabled: false,
|
||||
startWithAudioMuted: true,
|
||||
startWithVideoMuted: true,
|
||||
enablePrejoinPage: false,
|
||||
enableWelcomePage: false,
|
||||
enableClosePage: false,
|
||||
enableLobby: is_moderator,
|
||||
},
|
||||
// Pass the fetched JWT to the Jitsi API
|
||||
jwt: jwtToken
|
||||
};
|
||||
|
||||
const api = new JitsiMeetExternalAPI(domain, options);
|
||||
console.log("Jitsi API initialized with options:", options);
|
||||
}
|
||||
|
||||
// 3. Call the initialization function when the page loads
|
||||
document.addEventListener('DOMContentLoaded', initJitsiApi);
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
// 3. Call the initialization function when the page loads
|
||||
document.addEventListener('DOMContentLoaded', initJitsiApi);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,91 +1,91 @@
|
||||
{
|
||||
"background_color": "hsl(220, 65%, 31%)",
|
||||
"description": "The One Sky IT Aether Progressive Web App",
|
||||
"display": "fullscreen",
|
||||
"icons": [
|
||||
{
|
||||
"sizes": "24x24",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_24px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "48x48",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_48px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "88x88",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_88px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "88x88",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_88px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "120x120",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_120px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "144x144",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_144px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "180x180",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_180px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "192x192",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "192x192",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "256x256",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_256px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "256x256",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_256px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "300x300",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_300px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "512x512",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "512x512",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "1024x1024",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "1024x1024",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.png",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"name": "One Sky IT - One Sky IT Aether PWA",
|
||||
"short_name": "Aether PWA",
|
||||
"start_url": "/",
|
||||
"testing": "One Sky IT"
|
||||
"background_color": "hsl(220, 65%, 31%)",
|
||||
"description": "The One Sky IT Aether Progressive Web App",
|
||||
"display": "fullscreen",
|
||||
"icons": [
|
||||
{
|
||||
"sizes": "24x24",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_24px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "48x48",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_48px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "88x88",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_88px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "88x88",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_88px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "120x120",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_120px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "144x144",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_144px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "180x180",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_180px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "192x192",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "192x192",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "256x256",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_256px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "256x256",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_256px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "300x300",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_300px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "512x512",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "512x512",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.png",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"sizes": "1024x1024",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.webp",
|
||||
"type": "image/webp"
|
||||
},
|
||||
{
|
||||
"sizes": "1024x1024",
|
||||
"src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.png",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"name": "One Sky IT - One Sky IT Aether PWA",
|
||||
"short_name": "Aether PWA",
|
||||
"start_url": "/",
|
||||
"testing": "One Sky IT"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user