initial commit of browser extension

This commit is contained in:
Peter Morton 2025-07-30 17:03:59 -05:00
parent a05cbc3d12
commit ae5cd721a8
7 changed files with 19318 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
basic-messenger-cli/application/node_modules
remote_console/application/node_modules
remote_console/application/node_modules
browser-extension/.DS_Store

BIN
browser-extension/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

View File

@ -0,0 +1,23 @@
{
"name": "Verint IVA Extension",
"description": "Verint IVA Side-panel Extension",
"version": "1.0",
"manifest_version": 3,
"background": {
"service_worker": "service-worker.js"
},
"side_panel": {
"default_path": "src/pages/side-panel/index.html"
},
"permissions": ["sidePanel", "storage"],
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'"
},
"action": {
"default_icon": "icon.png"
},
"web_accessible_resources": [ {
"matches": [ "*://*/*" ],
"resources": [ "assets/js/*.js", "assets/css/*.css", "assets/svg/*.svg", "assets/png/*.png", "icon.svg", "blob/*" ]
} ]
}

View File

@ -0,0 +1,11 @@
// Allows users to open the side panel by clicking on the action toolbar icon
chrome.sidePanel
.setPanelBehavior({ openPanelOnActionClick: true })
.catch((error) => console.error(error));
chrome.action.onClicked.addListener(() => {
chrome.tabs.create({
url: 'mainpage.html'
});
console.log('Opened a tab with a sandboxed page!');
});

View File

@ -0,0 +1,17 @@
window.trackingJson = {
subChannel: "MAPP:APPLE",
channel: "MAPP:APPLE",
isMapp: true,
};
window.ivasMessengerSettings = {
token:
"eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJ3b3Jrc3BhY2VJZCI6IjY3YmNhODYyMjEwMDcxNjI3ZDMyZWYxMiIsImlhdCI6MTc0MDQxNzEyMn0.L_gLTj-ekDYs9SU6Jsehu9F-iKa5JAjAJEjpGkuXIbzNCdie2j63oPH0Ca9w5a4SIZ7AgFTDVO-1XPyAvCUaNNAHuFetnCSGScCl7K17cKlLJtn1tKA1E4jTd_Unz6wsbT21HV5mkBOBqOtGF2sqUuPLOe-ctY44zC6Yq44rNQZ5WJCJUu_7urT_6nyIVJxONDnWvIQH3vletseBrFod8flZTcQ9tlkcjqzc78y2FzO3c4xhJ9AHiRJ63tgaKm8oi8jZMXbp7d35tycNzRjk9Q4aONKdG8ciFwzjlIHGKMtI_C8x0xZH5sHIwJhGb6NJV69aX89ghdanzuDZpAfORg",
domain: "https://messenger.ivastudio.verint.live",
fullscreen: true,
port: "443",
branch: "current",
onError: (error) =>
console.error(
error
),
};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="/src/pages/panel/index.js"></script>
</head>
<body>
<ivas-messenger-ui></ivas-messenger-ui>
<script type="text/javascript" crossorigin async=""
src="/src/pages/panel/ivas-messenger-ui.min.js"></script>
</body>
</html>