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 CHANGED
@@ -22,7 +22,7 @@
22
22
   
23
23
   
24
24
 
25
- ### [Full documentation](https://odhin-reports.gitlab.io/playwright/#/1.0.1/)
25
+ ### [Full documentation](https://odhin-reports.gitlab.io/playwright/#/1.0.2/)
26
26
 
27
27
   
28
28
   
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odhin-reports-playwright",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Odhin Reports for Playwright",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",