@itcase/storybook-config 1.0.21 → 1.0.23
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.
|
@@ -24,7 +24,7 @@ function EmailTemplatePreview(props) {
|
|
|
24
24
|
var emailPreviewIframe = document.getElementById('emailPreview');
|
|
25
25
|
var loaded = function loaded() {
|
|
26
26
|
var email = emailPreviewIframe.getElementsByClassName('email-body').length;
|
|
27
|
-
if (!email) {
|
|
27
|
+
if (!email && process.env.EMAIL_URL) {
|
|
28
28
|
alert('Need to run the backend server to display email templates, use: python manage.py runserver');
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -22,7 +22,7 @@ function EmailTemplatePreview(props) {
|
|
|
22
22
|
var emailPreviewIframe = document.getElementById('emailPreview');
|
|
23
23
|
var loaded = function loaded() {
|
|
24
24
|
var email = emailPreviewIframe.getElementsByClassName('email-body').length;
|
|
25
|
-
if (!email) {
|
|
25
|
+
if (!email && process.env.EMAIL_URL) {
|
|
26
26
|
alert('Need to run the backend server to display email templates, use: python manage.py runserver');
|
|
27
27
|
}
|
|
28
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/storybook-config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets",
|
|
6
6
|
"engines": {
|
|
@@ -30,6 +30,14 @@
|
|
|
30
30
|
"./config": {
|
|
31
31
|
"import": "./config/index.js",
|
|
32
32
|
"require": "./config/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./config/*.css": {
|
|
35
|
+
"import": "./config/*.css",
|
|
36
|
+
"require": "./config/*.css"
|
|
37
|
+
},
|
|
38
|
+
"./config/*": {
|
|
39
|
+
"import": "./config/*.js",
|
|
40
|
+
"require": "./config/*.js"
|
|
33
41
|
}
|
|
34
42
|
},
|
|
35
43
|
"files": [
|