From e8498cfda47d8f6f6e0ecc870bd21dff79ee4c28 Mon Sep 17 00:00:00 2001 From: Dan Mihaila Date: Wed, 5 Jun 2024 11:28:49 +0300 Subject: [PATCH] HDX-8630 remove warning [ckan.lib.webassets_tools] Undefined asset type --- .../ckanext/hdx_theme/fanstatic/css/empty.css | 0 .../ckanext/hdx_theme/fanstatic/webassets.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/css/empty.css diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/css/empty.css b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/css/empty.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml index 6a9234a277..79992d5492 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/webassets.yml @@ -347,11 +347,15 @@ onboarding-bulk-user-styles: - hdx_theme/onboarding-done-styles - hdx_theme/onboarding-select-org-styles - hdx_theme/onboarding-survey-styles + contents: + - css/empty.css onboarding-bulk-user-scripts: extra: preload: - hdx_theme/onboarding-scripts + contents: + - css/empty.css onboarding-bulk-user-complete-onboarding-scripts: extra: @@ -360,6 +364,8 @@ onboarding-bulk-user-complete-onboarding-scripts: - hdx_theme/onboarding-follow-scripts - hdx_theme/onboarding-invite-scripts - hdx_theme/onboarding-select-org-scripts + contents: + - css/empty.css onboarding-bulk-anon-styles: extra: @@ -367,12 +373,17 @@ onboarding-bulk-anon-styles: - hdx_theme/onboarding-styles - hdx_theme/onboarding-verify-styles - hdx_theme/onboarding-survey-styles + contents: + - css/empty.css + onboarding-bulk-anon-scripts: extra: preload: - hdx_theme/onboarding-scripts - hdx_theme/onboarding-password-scripts + contents: + - css/empty.css onboarding-verify-styles: output: ckanext-hdx_theme/%(version)s_onboarding-verify-styles.css @@ -664,6 +675,8 @@ dataset-read-styles: - hdx_theme/group-message-styles - requestdata/main-styles - hdx_theme/resource-list-styles + contents: + - css/empty.css dataset-light-scripts: <<: *common-js @@ -1006,6 +1019,8 @@ country-topline-scripts: - hdx_theme/country-scripts - hdx_theme/charting-scripts # this should not load here - hdx_theme/homepage-scripts + contents: + - css/empty.css country-topline-styles: output: ckanext-hdx_theme/%(version)s_country-topline-styles.css @@ -1084,6 +1099,8 @@ group-form-scripts: preload: - hdx_theme/ckan - hdx_theme/organization-form-styles + contents: + - css/empty.css group-list-scripts: <<: *common-js @@ -1338,6 +1355,8 @@ group-message-styles: dataviz-scripts: output: ckanext-hdx_theme/%(version)s_dataviz-scripts.js + contents: + - css/empty.css dataviz-styles: output: ckanext-hdx_theme/%(version)s_dataviz-styles.css