ant-app-builder
Advanced tools
Comparing version 1.3.6 to 1.3.7
@@ -136,3 +136,3 @@ | ||
let isHeadless = getMetaValue(meta, "headless") | ||
let cssFile = getMetaValue(meta, "style", "toolbar") | ||
let cssFile = getMetaValue(meta, "toolbar-style") | ||
let filePath = cssFile ? FS.path.join(appPath, cssFile) : "" | ||
@@ -143,2 +143,3 @@ let options = { compress: true } | ||
let statusbar_output = "" | ||
let dialog_output = "" | ||
let data = "" | ||
@@ -154,3 +155,3 @@ | ||
cssFile = getMetaValue(meta, "style", "statusbar") | ||
cssFile = getMetaValue(meta, "statusbar-style") | ||
filePath = cssFile ? FS.path.join(appPath, cssFile) : "" | ||
@@ -164,2 +165,13 @@ if (cssFile && await FS.fileExists(filePath)) { | ||
} | ||
cssFile = getMetaValue(meta, "dialog-style") | ||
filePath = cssFile ? FS.path.join(appPath, cssFile) : "" | ||
if (cssFile && await FS.fileExists(filePath)) { | ||
data = await FS.readFile(filePath) | ||
dialog_output = await less.render(`.ant-window_[data-id="${id}"] .dialog-body_ {${data.toString()}}`, options) | ||
dialog_output = dialog_output.css | ||
.replace(/(url\('?)\~/g, `$1/app/${namespace}/${id}`) | ||
.replace(/\t|\n/g, "") | ||
} | ||
cssFile = getMetaValue(meta, "style") | ||
@@ -176,3 +188,3 @@ filePath = cssFile ? FS.path.join(appPath, cssFile) : "" | ||
} | ||
return toolbar_output + winbody_output + statusbar_output | ||
return toolbar_output + winbody_output + statusbar_output + dialog_output | ||
} | ||
@@ -179,0 +191,0 @@ |
{ | ||
"name": "ant-app-builder", | ||
"version": "1.3.6", | ||
"version": "1.3.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51678
416