new(all): WebDav support for all bots.
This commit is contained in:
parent
28a4290b6a
commit
9a1425a0ac
4 changed files with 4 additions and 5 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"git.ignoreLimitWarning": true
|
"git.ignoreLimitWarning": true,
|
||||||
|
"cmake.ignoreCMakeListsMissing": true
|
||||||
}
|
}
|
||||||
|
|
@ -145,7 +145,6 @@
|
||||||
"instagram-private-api": "1.46.1",
|
"instagram-private-api": "1.46.1",
|
||||||
"iso-639-1": "3.1.2",
|
"iso-639-1": "3.1.2",
|
||||||
"isomorphic-fetch": "3.0.0",
|
"isomorphic-fetch": "3.0.0",
|
||||||
"join-images-updated": "1.1.11",
|
|
||||||
"js-md5": "0.8.3",
|
"js-md5": "0.8.3",
|
||||||
"json-schema-to-zod": "2.1.0",
|
"json-schema-to-zod": "2.1.0",
|
||||||
"just-indent": "0.0.1",
|
"just-indent": "0.0.1",
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@
|
||||||
import Path from 'path';
|
import Path from 'path';
|
||||||
import { GBLog, GBMinInstance } from 'botlib';
|
import { GBLog, GBMinInstance } from 'botlib';
|
||||||
import { DialogKeywords } from './DialogKeywords.js';
|
import { DialogKeywords } from './DialogKeywords.js';
|
||||||
import joinImages from 'join-images-updated';
|
|
||||||
import { CollectionUtil } from 'pragmatismo-io-framework';
|
import { CollectionUtil } from 'pragmatismo-io-framework';
|
||||||
import { GBAdminService } from '../../admin.gbapp/services/GBAdminService.js';
|
import { GBAdminService } from '../../admin.gbapp/services/GBAdminService.js';
|
||||||
import urlJoin from 'url-join';
|
import urlJoin from 'url-join';
|
||||||
|
|
@ -76,7 +75,7 @@ export class ImageProcessingServices {
|
||||||
|
|
||||||
const botId = min.instance.botId;
|
const botId = min.instance.botId;
|
||||||
const path = DialogKeywords.getGBAIPath(min.botId);
|
const path = DialogKeywords.getGBAIPath(min.botId);
|
||||||
const img = await joinImages(paths);
|
// TODO: const img = await joinImages(paths);
|
||||||
const localName = Path.join('work', path, 'cache', `img-mrg${GBAdminService.getRndReadableIdentifier()}.png`);
|
const localName = Path.join('work', path, 'cache', `img-mrg${GBAdminService.getRndReadableIdentifier()}.png`);
|
||||||
const url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName));
|
const url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName));
|
||||||
img.toFile(localName);
|
img.toFile(localName);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
name,value
|
name,value
|
||||||
Website,https://pragmatismo.cloud
|
Website,https://pragmatismo.cloud
|
||||||
Answer Mode,direct
|
Answer Mode,document
|
||||||
|
Loading…
Add table
Reference in a new issue