odhin-reports-playwright 1.0.1 → 1.0.2
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/README.md +1 -1
- package/lib/generate.js +3 -3
- package/lib/help.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/generate.js
CHANGED
|
@@ -875,9 +875,9 @@ class Generate {
|
|
|
875
875
|
this.base = this.help.updateHtml(this.base, "{{.BootstrapCss}}", this.bootstrapCss, "css", "bootstrap.css");
|
|
876
876
|
this.base = this.help.updateHtml(this.base, "{{.JQueryDataTablesCss}}", this.jqueryDataTablesCss, "css", "jquery-datatable.css");
|
|
877
877
|
this.base = this.help.updateHtml(this.base, "{{.PrismCss}}", this.prismCss, "css", "prism.css");
|
|
878
|
-
this.base = this.help.updateHtml(this.base, "{{.CssThemeDark}}", this.cssThemeDark, "css", "theme.css");
|
|
879
|
-
this.base = this.help.updateHtml(this.base, "{{.CssThemeLight}}", this.cssThemeLight, "css", "theme.css");
|
|
880
|
-
this.base = this.help.updateHtml(this.base, "{{.CssThemeCustom}}", this.cssThemeCustom, "css", "theme.css");
|
|
878
|
+
this.base = this.help.updateHtml(this.base, "{{.CssThemeDark}}", this.cssThemeDark, "css", "theme-light.css");
|
|
879
|
+
this.base = this.help.updateHtml(this.base, "{{.CssThemeLight}}", this.cssThemeLight, "css", "theme-dark.css");
|
|
880
|
+
this.base = this.help.updateHtml(this.base, "{{.CssThemeCustom}}", this.cssThemeCustom, "css", "theme-custom.css");
|
|
881
881
|
this.base = this.help.updateHtml(this.base, "{{.CssColors}}", this.cssColors, "css", "style-colors.css");
|
|
882
882
|
this.base = this.help.updateHtml(this.base, "{{.Css}}", this.css, "css", "style.css");
|
|
883
883
|
this.base = this.help.updateHtml(this.base, "{{.ImgComparisonSliderCss}}", this.imgComparisonSliderCss, "css", "img-comparison-slider.css");
|
package/lib/help.js
CHANGED
|
@@ -459,14 +459,17 @@ class Help {
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
else {
|
|
462
|
-
if (contentType === "css") {
|
|
462
|
+
if (contentType === "css" && content !== "") {
|
|
463
463
|
this.createFile(this.execOptions.outputFolder + "/css/" + filename, content);
|
|
464
464
|
output = html.replace(tag, "<link rel='stylesheet' href='css/" + filename + "' >");
|
|
465
465
|
}
|
|
466
|
-
else if (contentType === "js") {
|
|
466
|
+
else if (contentType === "js" && content !== "") {
|
|
467
467
|
this.createFile(this.execOptions.outputFolder + "/js/" + filename, content);
|
|
468
468
|
output = html.replace(tag, "<script type='text/javascript' src='js/" + filename + "' ></script>");
|
|
469
469
|
}
|
|
470
|
+
else {
|
|
471
|
+
output = html.replace(tag, "");
|
|
472
|
+
}
|
|
470
473
|
}
|
|
471
474
|
return output;
|
|
472
475
|
}
|