dbm-graph-api 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbm-graph-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@aws-sdk/client-s3": "^3.741.0",
|
|
15
15
|
"@aws-sdk/s3-request-presigner": "^3.741.0",
|
|
16
|
-
"dbm": "^1.1.
|
|
16
|
+
"dbm": "^1.1.5",
|
|
17
17
|
"mime": "^4.0.6",
|
|
18
18
|
"sharp": "^0.33.5",
|
|
19
19
|
"ws": "^8.18.0"
|
|
@@ -565,15 +565,19 @@ export const setupSite = function(aServer) {
|
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
568
|
+
if(site.disableSearchEngines) {
|
|
569
|
+
returnString += `<meta name="robots" content="noindex, nofollow" />`;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
{
|
|
573
|
+
let currentArray = site.injectCodeSnippets;
|
|
574
|
+
let currentArrayLength = currentArray.length;
|
|
575
|
+
for(let i = 0; i < currentArrayLength; i++) {
|
|
576
|
+
returnString += currentArray[i];
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
returnString += `<link rel="stylesheet" type="text/css" href="${assetsUri}css/main.css?version=${version}" />
|
|
577
581
|
<meta name="viewport" content="initial-scale=1,user-scalable=yes" />
|
|
578
582
|
<meta name="HandheldFriendly" content="true" />
|
|
579
583
|
<link rel="icon" type="image/png" href="${assetsUri}img/favicon.png">
|
|
@@ -609,6 +613,7 @@ export const setupSite = function(aServer) {
|
|
|
609
613
|
<meta name="HandheldFriendly" content="true" />
|
|
610
614
|
|
|
611
615
|
`;
|
|
616
|
+
|
|
612
617
|
{
|
|
613
618
|
let currentArray = site.preconnectUrls;
|
|
614
619
|
let currentArrayLength =currentArray.length;
|
|
@@ -616,23 +621,39 @@ export const setupSite = function(aServer) {
|
|
|
616
621
|
returnString += `<link rel="preconnect" href="${currentArray[i]}" crossorigin>`;
|
|
617
622
|
}
|
|
618
623
|
}
|
|
624
|
+
|
|
625
|
+
if(site.disableSearchEngines) {
|
|
626
|
+
returnString += `<meta name="robots" content="noindex, nofollow" />`;
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
let robotsSettings = ["index", "follow"];
|
|
630
|
+
if(fields["seo/noIndex"]) {
|
|
631
|
+
robotsSettings[0] = "noindex";
|
|
632
|
+
}
|
|
633
|
+
if(fields["seo/nofollow"]) {
|
|
634
|
+
robotsSettings[1] = "nofollow";
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
let content = robotsSettings.join(", ");
|
|
638
|
+
returnString += `<meta name="robots" content="${content}" />`;
|
|
639
|
+
}
|
|
619
640
|
|
|
620
641
|
returnString += `<title>${fields.title} - ${siteName}</title>
|
|
621
642
|
|
|
622
643
|
<meta property="og:type" content="website" />
|
|
623
644
|
<meta property="og:locale" content="${language}" />
|
|
624
645
|
<meta property="og:site_name" content="${siteName}" />
|
|
625
|
-
<meta property="og:title" content="${fields.title}"
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
646
|
+
<meta property="og:title" content="${fields.title}" />`;
|
|
647
|
+
|
|
648
|
+
{
|
|
649
|
+
let currentArray = site.injectCodeSnippets;
|
|
650
|
+
let currentArrayLength = currentArray.length;
|
|
651
|
+
for(let i = 0; i < currentArrayLength; i++) {
|
|
652
|
+
returnString += currentArray[i];
|
|
653
|
+
}
|
|
654
|
+
}
|
|
634
655
|
|
|
635
|
-
|
|
656
|
+
returnString += `<link rel="stylesheet" type="text/css" href="${assetsUri}css/main.css?version=${version}" />
|
|
636
657
|
|
|
637
658
|
<link rel="icon" type="image/png" href="${assetsUri}img/favicon.png">`;
|
|
638
659
|
|
|
@@ -10,6 +10,7 @@ export default class ExternalTaskRunner extends Dbm.core.BaseObject {
|
|
|
10
10
|
this._intervalId = -1;
|
|
11
11
|
this._timeBetween = 5;
|
|
12
12
|
|
|
13
|
+
this.item.requireProperty("name", "Unnamed task");
|
|
13
14
|
this.item.requireProperty("url", null);
|
|
14
15
|
this.item.requireProperty("method", "GET");
|
|
15
16
|
this.item.requireProperty("headers", {});
|
|
@@ -28,7 +29,7 @@ export default class ExternalTaskRunner extends Dbm.core.BaseObject {
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
async _runNextTask() {
|
|
31
|
-
console.log("_runNextTask");
|
|
32
|
+
//console.log("_runNextTask");
|
|
32
33
|
|
|
33
34
|
let runDirect = false;
|
|
34
35
|
|
|
@@ -47,7 +48,7 @@ export default class ExternalTaskRunner extends Dbm.core.BaseObject {
|
|
|
47
48
|
let data = await response.json();
|
|
48
49
|
|
|
49
50
|
let continueData = Dbm.objectPath(data, this.item.continueField);
|
|
50
|
-
console.log(continueData);
|
|
51
|
+
console.log(this.item.name + " " + continueData);
|
|
51
52
|
|
|
52
53
|
if(continueData > 0) {
|
|
53
54
|
runDirect = true;
|