[mirotalk] - make 'about' customizable
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
const packageJson = require('../../package.json');
|
||||
|
||||
module.exports = {
|
||||
// Branding and customizations require a license: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
brand: {
|
||||
@@ -46,6 +48,36 @@ module.exports = {
|
||||
advertisers: true,
|
||||
footer: true,
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: `WebRTC P2P v${packageJson.version}`,
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
data-umami-event="Support button"
|
||||
onclick="window.open('https://codecanyon.net/user/miroslavpejic85')">
|
||||
<i class="fas fa-heart" ></i> Support
|
||||
</button>
|
||||
<br /><br /><br />
|
||||
Author:<a
|
||||
id="linkedin-button"
|
||||
data-umami-event="Linkedin button"
|
||||
href="https://www.linkedin.com/in/miroslav-pejic-976a07101/" target="_blank">
|
||||
Miroslav Pejic
|
||||
</a>
|
||||
<br /><br />
|
||||
Email:<a
|
||||
id="email-button"
|
||||
data-umami-event="Email button"
|
||||
href="mailto:miroslav.pejic.85@gmail.com?subject=MiroTalk P2P info">
|
||||
miroslav.pejic.85@gmail.com
|
||||
</a>
|
||||
<br /><br />
|
||||
<hr />
|
||||
<span>© 2025 MiroTalk P2P, all rights reserved</span>
|
||||
<hr />
|
||||
`,
|
||||
},
|
||||
//...
|
||||
},
|
||||
/**
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ dependencies: {
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.4.71
|
||||
* @version 1.4.72
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mirotalk",
|
||||
"version": "1.4.71",
|
||||
"version": "1.4.72",
|
||||
"description": "A free WebRTC browser-based video call",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
@@ -42,13 +42,13 @@
|
||||
"homepage": "https://github.com/miroslavpejic85/mirotalk",
|
||||
"dependencies": {
|
||||
"@mattermost/client": "10.2.0",
|
||||
"@sentry/node": "^8.52.0",
|
||||
"@sentry/node": "^8.52.1",
|
||||
"axios": "^1.7.9",
|
||||
"colors": "^1.4.0",
|
||||
"compression": "^1.7.5",
|
||||
"cors": "^2.8.5",
|
||||
"crypto-js": "^4.2.0",
|
||||
"dompurify": "^3.2.3",
|
||||
"dompurify": "^3.2.4",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"express-openid-connect": "^2.17.1",
|
||||
@@ -58,7 +58,7 @@
|
||||
"js-yaml": "^4.1.0",
|
||||
"ngrok": "^5.0.0-beta.2",
|
||||
"nodemailer": "^6.10.0",
|
||||
"openai": "^4.80.1",
|
||||
"openai": "^4.81.0",
|
||||
"qs": "^6.14.0",
|
||||
"socket.io": "^4.8.1",
|
||||
"swagger-ui-express": "^5.0.1",
|
||||
|
||||
@@ -1447,7 +1447,7 @@ input:checked + .slider:before {
|
||||
--------------------------------------------------------------*/
|
||||
|
||||
.swal2-popup {
|
||||
border: 0.5px solid rgb(255 255 255 / 32%) !important;
|
||||
border: var(--border) !important;
|
||||
/* box-shadow: var(--box-shadow) !important; */
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,36 @@ let brand = {
|
||||
advertisers: true,
|
||||
footer: true,
|
||||
},
|
||||
about: {
|
||||
imageUrl: '../images/mirotalk-logo.gif',
|
||||
title: 'WebRTC P2P v1.4.72',
|
||||
html: `
|
||||
<button
|
||||
id="support-button"
|
||||
data-umami-event="Support button"
|
||||
onclick="window.open('https://codecanyon.net/user/miroslavpejic85')">
|
||||
<i class="fas fa-heart" ></i> Support
|
||||
</button>
|
||||
<br /><br /><br />
|
||||
Author:<a
|
||||
id="linkedin-button"
|
||||
data-umami-event="Linkedin button"
|
||||
href="https://www.linkedin.com/in/miroslav-pejic-976a07101/" target="_blank">
|
||||
Miroslav Pejic
|
||||
</a>
|
||||
<br /><br />
|
||||
Email:<a
|
||||
id="email-button"
|
||||
data-umami-event="Email button"
|
||||
href="mailto:miroslav.pejic.85@gmail.com?subject=MiroTalk P2P info">
|
||||
miroslav.pejic.85@gmail.com
|
||||
</a>
|
||||
<br /><br />
|
||||
<hr />
|
||||
<span>© 2025 MiroTalk P2P, all rights reserved</span>
|
||||
<hr />
|
||||
`,
|
||||
},
|
||||
//...
|
||||
};
|
||||
|
||||
|
||||
+40
-32
@@ -15,7 +15,7 @@
|
||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.4.71
|
||||
* @version 1.4.72
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -1490,7 +1490,7 @@ async function whoAreYou() {
|
||||
allowOutsideClick: false,
|
||||
allowEscapeKey: false,
|
||||
background: swBg,
|
||||
title: brand.app.name,
|
||||
title: brand.app?.name || 'MiroTalk P2P',
|
||||
position: 'center',
|
||||
input: 'text',
|
||||
inputPlaceholder: 'Enter your email or name',
|
||||
@@ -11039,38 +11039,46 @@ function showAbout() {
|
||||
Swal.fire({
|
||||
background: swBg,
|
||||
position: 'center',
|
||||
title: '<strong>WebRTC P2P v1.4.71</strong>',
|
||||
imageAlt: 'mirotalk-about',
|
||||
imageUrl: images.about,
|
||||
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.4.72',
|
||||
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
|
||||
customClass: { image: 'img-about' },
|
||||
html: `
|
||||
<br/>
|
||||
<div id="about">
|
||||
<button
|
||||
id="support-button"
|
||||
data-umami-event="Support button"
|
||||
onclick="window.open('https://codecanyon.net/user/miroslavpejic85')">
|
||||
<i class="${className.heart}" ></i> Support
|
||||
</button>
|
||||
<br /><br /><br />
|
||||
Author:<a
|
||||
id="linkedin-button"
|
||||
data-umami-event="Linkedin button"
|
||||
href="https://www.linkedin.com/in/miroslav-pejic-976a07101/" target="_blank">
|
||||
Miroslav Pejic
|
||||
</a>
|
||||
<br /><br />
|
||||
Email:<a
|
||||
id="email-button"
|
||||
data-umami-event="Email button"
|
||||
href="mailto:miroslav.pejic.85@gmail.com?subject=MiroTalk P2P info">
|
||||
miroslav.pejic.85@gmail.com
|
||||
</a>
|
||||
<br /><br />
|
||||
<hr />
|
||||
<span>© 2025 MiroTalk P2P, all rights reserved</span>
|
||||
<hr />
|
||||
</div>
|
||||
<br/>
|
||||
<div id="about">
|
||||
${
|
||||
brand.about?.html && brand.about.html.trim() !== ''
|
||||
? brand.about.html
|
||||
: `
|
||||
<button
|
||||
id="support-button"
|
||||
data-umami-event="Support button"
|
||||
onclick="window.open('https://codecanyon.net/user/miroslavpejic85', '_blank')">
|
||||
<i class="${className.heart}"></i> Support
|
||||
</button>
|
||||
<br /><br /><br />
|
||||
Author:
|
||||
<a
|
||||
id="linkedin-button"
|
||||
data-umami-event="Linkedin button"
|
||||
href="https://www.linkedin.com/in/miroslav-pejic-976a07101/"
|
||||
target="_blank">
|
||||
Miroslav Pejic
|
||||
</a>
|
||||
<br /><br />
|
||||
Email:
|
||||
<a
|
||||
id="email-button"
|
||||
data-umami-event="Email button"
|
||||
href="mailto:miroslav.pejic.85@gmail.com?subject=MiroTalk P2P info">
|
||||
miroslav.pejic.85@gmail.com
|
||||
</a>
|
||||
<br /><br />
|
||||
<hr />
|
||||
<span>© 2025 MiroTalk P2P, all rights reserved</span>
|
||||
<hr />
|
||||
`
|
||||
}
|
||||
</div>
|
||||
`,
|
||||
showClass: { popup: 'animate__animated animate__fadeInDown' },
|
||||
hideClass: { popup: 'animate__animated animate__fadeOutUp' },
|
||||
|
||||
Reference in New Issue
Block a user