diff --git a/components/icons/accessboston/accessboston.config.yml b/components/icons/accessboston/accessboston.config.yml index 265d9184..d8e86d84 100644 --- a/components/icons/accessboston/accessboston.config.yml +++ b/components/icons/accessboston/accessboston.config.yml @@ -2,6 +2,7 @@ title: "accessboston" handle: "accessboston" status: "ready" context: + defaultIcon: "https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg" icons: - file: "2_tickets.svg" - file: "Phire.svg" diff --git a/components/icons/accessboston/accessboston.hbs b/components/icons/accessboston/accessboston.hbs index 4a159c99..6ba2f70e 100644 --- a/components/icons/accessboston/accessboston.hbs +++ b/components/icons/accessboston/accessboston.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/components/icons/circle_icons/circle_icons.config.yml b/components/icons/circle_icons/circle_icons.config.yml index 41b6b361..7711972e 100644 --- a/components/icons/circle_icons/circle_icons.config.yml +++ b/components/icons/circle_icons/circle_icons.config.yml @@ -2,6 +2,7 @@ title: "circle icons" handle: "circle_icons" status: "ready" context: + defaultIcon: "https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg" icons: - file: "2_tickets.svg" - file: "accessibility.svg" diff --git a/components/icons/circle_icons/circle_icons.hbs b/components/icons/circle_icons/circle_icons.hbs index af033ae3..1230b41f 100644 --- a/components/icons/circle_icons/circle_icons.hbs +++ b/components/icons/circle_icons/circle_icons.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/components/icons/dept_icons/dept_icons.config.yml b/components/icons/dept_icons/dept_icons.config.yml index 3017e6cd..be0daebb 100644 --- a/components/icons/dept_icons/dept_icons.config.yml +++ b/components/icons/dept_icons/dept_icons.config.yml @@ -2,6 +2,7 @@ title: "dept icons" handle: "dept_icons" status: "ready" context: + defaultIcon: "https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg" icons: - file: "age_strong.svg" - file: "age_strong_black.svg" diff --git a/components/icons/dept_icons/dept_icons.hbs b/components/icons/dept_icons/dept_icons.hbs index 0463e765..b004a64b 100644 --- a/components/icons/dept_icons/dept_icons.hbs +++ b/components/icons/dept_icons/dept_icons.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/components/icons/drupal/drupal.config.yml b/components/icons/drupal/drupal.config.yml index 71841f19..6e3b3c38 100644 --- a/components/icons/drupal/drupal.config.yml +++ b/components/icons/drupal/drupal.config.yml @@ -2,6 +2,7 @@ title: "drupal" handle: "drupal" status: "ready" context: + defaultIcon: "https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg" icons: - file: "archive.svg" - file: "delete.svg" diff --git a/components/icons/drupal/drupal.hbs b/components/icons/drupal/drupal.hbs index 9faac8a0..08f47048 100644 --- a/components/icons/drupal/drupal.hbs +++ b/components/icons/drupal/drupal.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/components/icons/drupal_icons/drupal_icons.config.yml b/components/icons/drupal_icons/drupal_icons.config.yml index b957aaa0..bf64aae7 100644 --- a/components/icons/drupal_icons/drupal_icons.config.yml +++ b/components/icons/drupal_icons/drupal_icons.config.yml @@ -2,6 +2,7 @@ title: "drupal icons" handle: "drupal_icons" status: "ready" context: + defaultIcon: "https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg" icons: - file: "archive.svg" - file: "delete.svg" diff --git a/components/icons/drupal_icons/drupal_icons.hbs b/components/icons/drupal_icons/drupal_icons.hbs index 0db5b7e5..3f69fdb9 100644 --- a/components/icons/drupal_icons/drupal_icons.hbs +++ b/components/icons/drupal_icons/drupal_icons.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/components/icons/experiential_icons/experiential_icons.config.yml b/components/icons/experiential_icons/experiential_icons.config.yml index e8bb23c1..9c7127f8 100644 --- a/components/icons/experiential_icons/experiential_icons.config.yml +++ b/components/icons/experiential_icons/experiential_icons.config.yml @@ -2,6 +2,7 @@ title: "experiential icons" handle: "experiential_icons" status: "ready" context: + defaultIcon: "https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg" icons: - file: "1095_c_form.svg" - file: "1095_c_form_computer.svg" diff --git a/components/icons/experiential_icons/experiential_icons.hbs b/components/icons/experiential_icons/experiential_icons.hbs index 69b7456f..f36a4a66 100644 --- a/components/icons/experiential_icons/experiential_icons.hbs +++ b/components/icons/experiential_icons/experiential_icons.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/components/icons/metrolist/metrolist.config.yml b/components/icons/metrolist/metrolist.config.yml index 8efe6b2a..564f367e 100644 --- a/components/icons/metrolist/metrolist.config.yml +++ b/components/icons/metrolist/metrolist.config.yml @@ -2,6 +2,7 @@ title: "metrolist" handle: "metrolist" status: "ready" context: + defaultIcon: "https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg" icons: - file: "deposit_check.png" - file: "deposit_check.svg" diff --git a/components/icons/metrolist/metrolist.hbs b/components/icons/metrolist/metrolist.hbs index 5d3a2f8b..414ce649 100644 --- a/components/icons/metrolist/metrolist.hbs +++ b/components/icons/metrolist/metrolist.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/dev-scripts/icons_manifest/index.js b/dev-scripts/icons_manifest/index.js index d73bd840..eb1d2a9d 100644 --- a/dev-scripts/icons_manifest/index.js +++ b/dev-scripts/icons_manifest/index.js @@ -48,6 +48,8 @@ const constructManifestYamlReadyObj = async icons => { handle: obj.category.replace(/ /g, '_'), status: 'ready', context: { + defaultIcon: + 'https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg', icons: [], }, }; diff --git a/dev-scripts/icons_manifest/manifest.hbs b/dev-scripts/icons_manifest/manifest.hbs index bb91c9ef..9e8cf12b 100644 --- a/dev-scripts/icons_manifest/manifest.hbs +++ b/dev-scripts/icons_manifest/manifest.hbs @@ -7,7 +7,12 @@
- + {{filename_to_string icon.file}}
diff --git a/fractal.config.js b/fractal.config.js index 9a42ed4e..1dab9b69 100644 --- a/fractal.config.js +++ b/fractal.config.js @@ -73,6 +73,11 @@ const hbs = require('@frctl/handlebars')({ imgUrl: async function(pre, post) { return `${pre}/${post}`; }, + imgOnError: function() { + const url = + 'https://www.boston.gov/modules/custom/bos_content/modules/node_post/default_news.svg'; + return `this.onerror=null;this.src='${url}';`; + }, // Stencil helps us maintain docs in the source directories for the // components. This helper is here so that the Fractal component "Notes" can // import those README files so that they appear in the Fractal UI.