new(all): WebDav support for all bots.

This commit is contained in:
Rodrigo Rodriguez 2024-08-31 16:26:54 -03:00
parent 02e78c6c88
commit 9207cffa52
4 changed files with 23 additions and 7 deletions

View file

@ -90,18 +90,24 @@ export class GBConfigService {
case 'STORAGE_NAME':
value = null;
break;
case 'WEBDAV_USERNAME':
value = null;
break;
case 'WEBDAV_PASSWORD':
value = null;
break;
case 'CLOUD_USERNAME':
value = undefined;
break;
case 'CLOUD_PASSWORD':
value = undefined;
break;
case 'STORAGE_LIBRARY':
value = `${process.env.HOME}/gbpackages`;
break;
case 'BOT_ID':
value = 'default';
break;
case 'CLOUD_PASSWORD':
value = undefined;
break;
case 'CLOUD_SUBSCRIPTIONID':
value = undefined;
break;

View file

@ -1648,7 +1648,6 @@ export class GBMinService {
if (GBServer.globals.server.apiServer) {
GBServer.globals.server.apiServer.close(cb => {
resolve(true);
GBLogEx.info(0, 'Reloading General Bots API...');
});
} else {
resolve(true);

View file

@ -57,6 +57,17 @@
/* filter: opacity(0); Problem in recent Chrome 68+ */
}
</style>
<script>
// Focus the input field after rendering
setTimeout(() => {
const input = document.querySelector('.webchat-input');
if (input) {
input.focus();
}
}, 3000); // Adjust timing as needed
</script>
</head>
<body style="background-color: lightgrey;">

View file

@ -47,10 +47,10 @@ Twitter Access Token,
Twitter Access Token Secret,
Twitter Consumer Key,
Twitter Consumer Key Secret,
Website, https:/github.com/GeneralBots
Website,
Welcome Article,
WhatsApp Admins,
WhatsApp Group ID,
WhatsApp Group Shortcuts,
WebDav Username,admin
WebDav Password,&y5F9$B.1*Q6
WebDav Username,
WebDav Password,
1 name value
47 Twitter Access Token Secret
48 Twitter Consumer Key
49 Twitter Consumer Key Secret
50 Website https:/github.com/GeneralBots
51 Welcome Article
52 WhatsApp Admins
53 WhatsApp Group ID
54 WhatsApp Group Shortcuts
55 WebDav Username admin
56 WebDav Password &y5F9$B.1*Q6