cap-composer 1.2.0__tar.gz
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.
- cap_composer-1.2.0/MANIFEST.in +13 -0
- cap_composer-1.2.0/PKG-INFO +59 -0
- cap_composer-1.2.0/README.md +10 -0
- cap_composer-1.2.0/pyproject.toml +64 -0
- cap_composer-1.2.0/requirements/base.txt +29 -0
- cap_composer-1.2.0/setup.cfg +4 -0
- cap_composer-1.2.0/src/cap_composer.egg-info/PKG-INFO +59 -0
- cap_composer-1.2.0/src/cap_composer.egg-info/SOURCES.txt +299 -0
- cap_composer-1.2.0/src/cap_composer.egg-info/dependency_links.txt +1 -0
- cap_composer-1.2.0/src/cap_composer.egg-info/entry_points.txt +2 -0
- cap_composer-1.2.0/src/cap_composer.egg-info/requires.txt +29 -0
- cap_composer-1.2.0/src/cap_composer.egg-info/top_level.txt +1 -0
- cap_composer-1.2.0/src/capcomposer/__init__.py +9 -0
- cap_composer-1.2.0/src/capcomposer/cap/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/admin.py +4 -0
- cap_composer-1.2.0/src/capcomposer/cap/apps.py +30 -0
- cap_composer-1.2.0/src/capcomposer/cap/cache.py +5 -0
- cap_composer-1.2.0/src/capcomposer/cap/exceptions.py +2 -0
- cap_composer-1.2.0/src/capcomposer/cap/external_feed/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/external_feed/models.py +81 -0
- cap_composer-1.2.0/src/capcomposer/cap/external_feed/utils.py +87 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/am/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/am/LC_MESSAGES/django.po +626 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/ar/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/ar/LC_MESSAGES/django.po +633 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/en/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/en/LC_MESSAGES/django.po +631 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/es/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/es/LC_MESSAGES/django.po +648 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/fr/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/fr/LC_MESSAGES/django.po +647 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/sw/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/locale/sw/LC_MESSAGES/django.po +644 -0
- cap_composer-1.2.0/src/capcomposer/cap/management/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/management/commands/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/management/commands/create_cap_alerts_multi_media.py +27 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0001_initial.py +46 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0002_alter_capalertpage_info.py +22 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0003_capalertpage_search_image.py +20 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0004_alter_capalertpage_identifier.py +19 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0005_capalertlistpage.py +30 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0006_remove_capalertlistpage_description_and_more.py +22 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0007_alter_capalertpage_info.py +22 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0008_alter_capalertpage_info.py +22 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0009_merge_20231114_0803.py +13 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0010_alter_capalertpage_options.py +17 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0011_alter_capalertpage_info.py +23 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0012_alter_capalertpage_info_and_more.py +24 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0013_capalertpage_alert_pdf_preview.py +20 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0014_capalertpage_alert_area_map_image.py +20 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0015_alter_capalertpage_info.py +23 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0016_auto_20240530_1637.py +18 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0017_capalertpage_expires.py +40 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0018_capalertwebhook_capalertwebhookevent.py +50 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0019_alter_capalertpage_options_alter_capalertpage_guid_and_more.py +43 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0020_othercapsettings.py +27 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0021_capalertmqttbroker_capalertmqttbrokerevent.py +55 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0022_externalalertfeed_and_more.py +75 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0023_alter_capalertpage_sender.py +18 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0024_alter_capalertpage_alert_pdf_preview_and_more.py +21 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0025_capmenupermission.py +23 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0026_alter_capmenupermission_options.py +17 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0027_capalertlistpage_alerts_infos_per_page.py +19 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0028_alter_capalertpage_info.py +20 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0029_capalertpage_imported_alter_capalertpage_info.py +25 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0030_alter_capalertpage_sent.py +19 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0031_capalertpage_newsletter_campaign_and_more.py +30 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0032_capalertmqttbroker_qos.py +18 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/0033_capalertwebhook_header_value_and_more.py +23 -0
- cap_composer-1.2.0/src/capcomposer/cap/migrations/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/mixins.py +35 -0
- cap_composer-1.2.0/src/capcomposer/cap/models.py +484 -0
- cap_composer-1.2.0/src/capcomposer/cap/mqtt/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/mqtt/models.py +141 -0
- cap_composer-1.2.0/src/capcomposer/cap/mqtt/publish.py +128 -0
- cap_composer-1.2.0/src/capcomposer/cap/mqtt/utils.py +41 -0
- cap_composer-1.2.0/src/capcomposer/cap/permissions.py +13 -0
- cap_composer-1.2.0/src/capcomposer/cap/serializers.py +8 -0
- cap_composer-1.2.0/src/capcomposer/cap/sign.py +47 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/css/bulma-timeline.min.css +135 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/css/cap_detail_page.css +266 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/css/cap_detail_pdf.css +157 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/css/cap_list_page.css +111 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/css/codehilite.css +75 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/images/cap_symbol.jpeg +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/images/caplogo.jpeg +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/js/jquery-3.7.1.min.js +2 -0
- cap_composer-1.2.0/src/capcomposer/cap/static/cap/js/mqtt_collapse_panels.js +20 -0
- cap_composer-1.2.0/src/capcomposer/cap/static_map.py +66 -0
- cap_composer-1.2.0/src/capcomposer/cap/tasks.py +115 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/active_alert.html +109 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/alert_detail.html +668 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/alert_detail_email.html +208 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/alert_detail_pdf.html +306 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/alert_list.html +198 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/cap-alert-stylesheet.html +725 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/cap-feed-stylesheet.html +107 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/category.svg +3 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/certainty.svg +3 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/clock.svg +4 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/language.svg +3 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/response.svg +5 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/warning-outline.svg +7 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/warning.svg +4 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/icons/x-twitter.svg +3 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/include_alert_list_item.html +48 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/pagination_include.html +40 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/social_media_share_buttons_include.html +17 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/third_party_integration.html +46 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/third_party_integration_md_content.md +192 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/widgets/nav_left_alert.html +109 -0
- cap_composer-1.2.0/src/capcomposer/cap/templates/cap/widgets/nav_top_alert.html +82 -0
- cap_composer-1.2.0/src/capcomposer/cap/templatetags/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/templatetags/online_share.py +106 -0
- cap_composer-1.2.0/src/capcomposer/cap/tests.py +3 -0
- cap_composer-1.2.0/src/capcomposer/cap/urls.py +23 -0
- cap_composer-1.2.0/src/capcomposer/cap/utils.py +431 -0
- cap_composer-1.2.0/src/capcomposer/cap/views.py +391 -0
- cap_composer-1.2.0/src/capcomposer/cap/wagtail_hooks.py +475 -0
- cap_composer-1.2.0/src/capcomposer/cap/weasyprint_utils.py +69 -0
- cap_composer-1.2.0/src/capcomposer/cap/webhook/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/cap/webhook/http.py +26 -0
- cap_composer-1.2.0/src/capcomposer/cap/webhook/models.py +55 -0
- cap_composer-1.2.0/src/capcomposer/cap/webhook/utils.py +64 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/admin.py +3 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/apps.py +6 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/blocks.py +735 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/cap_settings.py +202 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/caputils.py +376 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/clear_fuzzy.py +21 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/constants.py +248 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/errors.py +8 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/forms/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/forms/capimporter.py +83 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/forms/fields.py +69 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/forms/widgets.py +325 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/am/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/am/LC_MESSAGES/django.po +1336 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/ar/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/ar/LC_MESSAGES/django.po +1400 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/en/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/en/LC_MESSAGES/django.po +1421 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/es/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/es/LC_MESSAGES/django.po +1448 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/fr/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/fr/LC_MESSAGES/django.po +1445 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/sw/LC_MESSAGES/django.mo +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/locale/sw/LC_MESSAGES/django.po +1429 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0001_initial.py +34 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0002_alter_capsetting_options_and_more.py +38 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0003_capsetting_logo.py +20 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0004_predefinedalertarea.py +30 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0005_alter_capsetting_sender.py +18 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0006_capsetting_wmo_oid.py +18 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0007_alter_capsetting_wmo_oid_and_more.py +23 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0008_remove_capsetting_audience_types.py +17 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0009_capsetting_un_country_boundary_geojson.py +18 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0010_alter_capsetting_un_country_boundary_geojson.py +18 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0011_alertlanguage.py +57 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0012_alter_hazardeventtypes_options_and_more.py +26 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0013_capsetting_num_of_latest_alerts_in_feed.py +19 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0014_alter_capsetting_num_of_latest_alerts_in_feed.py +19 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0015_hazardeventtypes_category_and_more.py +23 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/0016_alter_predefinedalertarea_name.py +18 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/migrations/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/models.py +413 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/oet_v1_2.py +235 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/pubsub/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/pubsub/base.py +68 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/pubsub/mqtt.py +121 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/pubsub/publish.py +25 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/renderers.py +62 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/serializers.py +194 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/cap_detail_page.css +218 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/import_cap_preview.css +47 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/mapbox-gl-draw.css +88 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/maplibre-gl.css +1 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/widget/boundary-widget.css +72 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/widget/circle-widget.css +99 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/widget/geojson-file-loader-widget.css +36 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/widget/multipolygon-widget.css +73 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/css/widget/polygon-widget.css +135 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/LICENSE.txt +202 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Black.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Bold.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Italic.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Light.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Medium.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Regular.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Thin.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/fonts/mapbox-gl-draw.css +88 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/alert.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/alert.svg +3 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/area.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/certainty.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/extreme.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/minor.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/moderate.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/severe.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/images/urgency.png +0 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/cap_accordion.js +58 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/conditional_fields.js +104 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/mapbox-gl-draw.js +2 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/maplibre-gl.js +44 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/turf.min.js +60 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/boundary-polygon-widget-telepath.js +20 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/boundary-polygon-widget.js +440 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/circle-widget-telepath.js +20 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/circle-widget.js +428 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/event-code-widget-controller.js +7 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/event-code-widget.js +61 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/geojson-file-loader-widget.js +238 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/hazard-event-type-widget-controller.js +7 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/hazard-event-type-widget.js +54 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/multipolygon-widget.js +342 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/polygon-widget-telepath.js +20 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/static/capeditor/js/widget/polygon-widget.js +577 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/cap_alert_page.html +344 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/icons/cap-alert-full.svg +18 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/icons/cap-alert.svg +11 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/load_cap_alert.html +113 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/preview_cap_alert.html +429 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/widgets/boundary_polygon_widget.html +9 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/widgets/circle_widget.html +55 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/widgets/event_code_select_widget.html +6 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/widgets/geojson_file_loader_widget.html +22 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/widgets/hazard_event_type_widget.html +11 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/widgets/multipolygon_widget.html +24 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/templates/capeditor/widgets/polygon_widget.html +11 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/tests.py +3 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/utils.py +108 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/views.py +62 -0
- cap_composer-1.2.0/src/capcomposer/capeditor/wagtail_hooks.py +117 -0
- cap_composer-1.2.0/src/capcomposer/config/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/config/asgi.py +21 -0
- cap_composer-1.2.0/src/capcomposer/config/celery.py +5 -0
- cap_composer-1.2.0/src/capcomposer/config/celery_singleton_backend.py +11 -0
- cap_composer-1.2.0/src/capcomposer/config/db_engine/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/config/db_engine/base.py +15 -0
- cap_composer-1.2.0/src/capcomposer/config/settings/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/config/settings/base.py +364 -0
- cap_composer-1.2.0/src/capcomposer/config/settings/dev.py +20 -0
- cap_composer-1.2.0/src/capcomposer/config/settings/production.py +36 -0
- cap_composer-1.2.0/src/capcomposer/config/static/css/bulma.min.css +3 -0
- cap_composer-1.2.0/src/capcomposer/config/static/css/cap-composer.css +75 -0
- cap_composer-1.2.0/src/capcomposer/config/static/css/maplibre-gl.css +1 -0
- cap_composer-1.2.0/src/capcomposer/config/static/images/capcomposer.png +0 -0
- cap_composer-1.2.0/src/capcomposer/config/static/images/capcomposer_red.png +0 -0
- cap_composer-1.2.0/src/capcomposer/config/static/images/capcomposer_white.png +0 -0
- cap_composer-1.2.0/src/capcomposer/config/static/images/weather-alert.png +0 -0
- cap_composer-1.2.0/src/capcomposer/config/static/js/cap-composer.js +0 -0
- cap_composer-1.2.0/src/capcomposer/config/static/js/maplibre-gl.js +59 -0
- cap_composer-1.2.0/src/capcomposer/config/static/js/turf.min.js +88 -0
- cap_composer-1.2.0/src/capcomposer/config/storage.py +9 -0
- cap_composer-1.2.0/src/capcomposer/config/telemetry/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/config/telemetry/env_overrides_parser.py +131 -0
- cap_composer-1.2.0/src/capcomposer/config/telemetry/middleware.py +20 -0
- cap_composer-1.2.0/src/capcomposer/config/telemetry/provider.py +60 -0
- cap_composer-1.2.0/src/capcomposer/config/telemetry/sampling.py +51 -0
- cap_composer-1.2.0/src/capcomposer/config/telemetry/telemetry.py +141 -0
- cap_composer-1.2.0/src/capcomposer/config/telemetry/utils.py +177 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/404.html +31 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/500.html +28 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/axes/lockout.html +29 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/base.html +69 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/breadcrumbs_include.html +14 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/footer.html +10 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/humans.txt +33 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/navbar.html +26 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/wagtailadmin/admin_base.html +3 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/wagtailadmin/base.html +10 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/wagtailadmin/home.html +11 -0
- cap_composer-1.2.0/src/capcomposer/config/templates/wagtailadmin/login.html +18 -0
- cap_composer-1.2.0/src/capcomposer/config/urls.py +48 -0
- cap_composer-1.2.0/src/capcomposer/config/views.py +12 -0
- cap_composer-1.2.0/src/capcomposer/config/wsgi.py +25 -0
- cap_composer-1.2.0/src/capcomposer/gunicorn.config.py +5 -0
- cap_composer-1.2.0/src/capcomposer/home/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/home/apps.py +6 -0
- cap_composer-1.2.0/src/capcomposer/home/management/commands/get_capcomposer_version.py +12 -0
- cap_composer-1.2.0/src/capcomposer/home/migrations/0001_initial.py +31 -0
- cap_composer-1.2.0/src/capcomposer/home/migrations/0002_create_homepage.py +61 -0
- cap_composer-1.2.0/src/capcomposer/home/migrations/0003_homepage_subtitle.py +18 -0
- cap_composer-1.2.0/src/capcomposer/home/migrations/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/home/models.py +83 -0
- cap_composer-1.2.0/src/capcomposer/home/static/css/homepage.css +120 -0
- cap_composer-1.2.0/src/capcomposer/home/tasks.py +33 -0
- cap_composer-1.2.0/src/capcomposer/home/templates/home/home_page.html +36 -0
- cap_composer-1.2.0/src/capcomposer/home/templatetags/__init__.py +0 -0
- cap_composer-1.2.0/src/capcomposer/home/templatetags/capcomposer_tags.py +19 -0
- cap_composer-1.2.0/src/capcomposer/home/wagtail_hooks.py +6 -0
- cap_composer-1.2.0/src/capcomposer/manage.py +15 -0
- cap_composer-1.2.0/src/capcomposer/utils/__init__.py +26 -0
- cap_composer-1.2.0/src/capcomposer/utils/version.py +110 -0
- cap_composer-1.2.0/src/capcomposer/version.py +16 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
prune .idea/
|
|
2
|
+
prune **/__pycache__
|
|
3
|
+
prune cache/
|
|
4
|
+
prune media/
|
|
5
|
+
|
|
6
|
+
global-exclude .env
|
|
7
|
+
global-exclude *.py[cod]
|
|
8
|
+
global-exclude .gitignore
|
|
9
|
+
|
|
10
|
+
recursive-include src/ *.py
|
|
11
|
+
recursive-include src/**/templates *
|
|
12
|
+
recursive-include src/**/static *
|
|
13
|
+
recursive-include src/**/locale *.po *.mo
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cap-composer
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: Wagtail based weather warnings composing and dissemination tool, using Common Alerting Protocol (CAP) standard.
|
|
5
|
+
Author-email: Erick Otenyo <otenyo.erick@gmail.com>, Grace Amondi <miswa.grace@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/wmo-raf/cap-composer
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/wmo-raf/cap-composer/issues
|
|
9
|
+
Platform: Linux
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Framework :: Django
|
|
17
|
+
Classifier: Framework :: Wagtail
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
Requires-Dist: wagtail>=7.0
|
|
21
|
+
Requires-Dist: djangorestframework-xml
|
|
22
|
+
Requires-Dist: python-magic
|
|
23
|
+
Requires-Dist: shapely
|
|
24
|
+
Requires-Dist: wagtail-icon-chooser>=0.3.1
|
|
25
|
+
Requires-Dist: wagtail-cache==3.0.0
|
|
26
|
+
Requires-Dist: adm-boundary-manager>=0.2.5
|
|
27
|
+
Requires-Dist: wagtail-humanitarian-icons>=2.0.0
|
|
28
|
+
Requires-Dist: wagtail-modelchooser>=4.0.1
|
|
29
|
+
Requires-Dist: paho-mqtt>=2.1.0
|
|
30
|
+
Requires-Dist: xmltodict>=0.14.2
|
|
31
|
+
Requires-Dist: pdf2image>=1.17.0
|
|
32
|
+
Requires-Dist: wagtail-metadata>=5.0.0
|
|
33
|
+
Requires-Dist: lxml>=5.4.0
|
|
34
|
+
Requires-Dist: signxml>=4.0.3
|
|
35
|
+
Requires-Dist: loguru>=0.7.3
|
|
36
|
+
Requires-Dist: weasyprint>=65.1
|
|
37
|
+
Requires-Dist: requests>=2.32.3
|
|
38
|
+
Requires-Dist: pytz>=2025.2
|
|
39
|
+
Requires-Dist: wagtail-lazyimages==0.1.5
|
|
40
|
+
Requires-Dist: wagtail-font-awesome-svg>=1.0.1
|
|
41
|
+
Requires-Dist: capvalidator==0.1.0.dev4
|
|
42
|
+
Requires-Dist: feedparser>=6.0.11
|
|
43
|
+
Requires-Dist: staticmap==0.5.7
|
|
44
|
+
Requires-Dist: wagtail-newsletter==0.2.2
|
|
45
|
+
Requires-Dist: mailchimp-marketing==3.0.80
|
|
46
|
+
Requires-Dist: mrml>=0.2
|
|
47
|
+
Requires-Dist: Pygments
|
|
48
|
+
Requires-Dist: markdown
|
|
49
|
+
|
|
50
|
+
A [Wagtail](https://wagtail.io/)
|
|
51
|
+
based [Common Alerting Protocol](https://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html) (CAP) Warning
|
|
52
|
+
Composer.
|
|
53
|
+
|
|
54
|
+
This is a web-based tool for creating and managing CAP alerts. It is designed to be used by National Meteorological and
|
|
55
|
+
Hydrological Services (NMHSs), disaster management agencies and other organizations that have the authority to publish
|
|
56
|
+
and disseminate CAP alerts.
|
|
57
|
+
|
|
58
|
+
For more details, see [https://github.com/wmo-raf/cap-composer](https://github.com/wmo-raf/capcomposer)
|
|
59
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
A [Wagtail](https://wagtail.io/)
|
|
2
|
+
based [Common Alerting Protocol](https://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html) (CAP) Warning
|
|
3
|
+
Composer.
|
|
4
|
+
|
|
5
|
+
This is a web-based tool for creating and managing CAP alerts. It is designed to be used by National Meteorological and
|
|
6
|
+
Hydrological Services (NMHSs), disaster management agencies and other organizations that have the authority to publish
|
|
7
|
+
and disseminate CAP alerts.
|
|
8
|
+
|
|
9
|
+
For more details, see [https://github.com/wmo-raf/cap-composer](https://github.com/wmo-raf/capcomposer)
|
|
10
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "cap-composer"
|
|
7
|
+
authors = [
|
|
8
|
+
{ name = "Erick Otenyo", email = "otenyo.erick@gmail.com" },
|
|
9
|
+
{ name = "Grace Amondi", email = "miswa.grace@gmail.com" }
|
|
10
|
+
]
|
|
11
|
+
description = """Wagtail based weather warnings composing and dissemination tool, using Common Alerting Protocol (CAP) standard."""
|
|
12
|
+
readme = { file = "README.md", content-type = "text/markdown" }
|
|
13
|
+
license = { text = "MIT" }
|
|
14
|
+
requires-python = ">=3.8"
|
|
15
|
+
dynamic = ["version", "dependencies"]
|
|
16
|
+
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 5 - Production/Stable",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
"Programming Language :: Python :: 3.8",
|
|
22
|
+
"Programming Language :: Python :: 3.9",
|
|
23
|
+
"Programming Language :: Python :: 3.10",
|
|
24
|
+
"Framework :: Django",
|
|
25
|
+
"Framework :: Wagtail"
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/wmo-raf/cap-composer"
|
|
31
|
+
"Bug Tracker" = "https://github.com/wmo-raf/cap-composer/issues"
|
|
32
|
+
|
|
33
|
+
[tool.black]
|
|
34
|
+
exclude = """
|
|
35
|
+
/(
|
|
36
|
+
| migrations
|
|
37
|
+
| generated
|
|
38
|
+
)/
|
|
39
|
+
"""
|
|
40
|
+
# ensure consistent formatting for black
|
|
41
|
+
# see https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#required-version
|
|
42
|
+
# see https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#target-version
|
|
43
|
+
target-version = ["py311"]
|
|
44
|
+
required-version = "23"
|
|
45
|
+
|
|
46
|
+
[tool.setuptools]
|
|
47
|
+
include-package-data = true
|
|
48
|
+
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
|
|
49
|
+
platforms = ["Linux"]
|
|
50
|
+
|
|
51
|
+
[project.scripts]
|
|
52
|
+
capcomposer = "capcomposer.manage:main"
|
|
53
|
+
|
|
54
|
+
#[tool.setuptools.package-data]
|
|
55
|
+
|
|
56
|
+
[tool.setuptools.packages.find]
|
|
57
|
+
namespaces = true
|
|
58
|
+
where = ["src/"]
|
|
59
|
+
include = ["capcomposer", "capcomposer.*"]
|
|
60
|
+
|
|
61
|
+
[tool.setuptools.dynamic]
|
|
62
|
+
# version always from the code
|
|
63
|
+
version = { attr = "capcomposer.version.__version__" }
|
|
64
|
+
dependencies = { file = ["requirements/base.txt"] }
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
wagtail>=7.0
|
|
2
|
+
djangorestframework-xml
|
|
3
|
+
python-magic
|
|
4
|
+
shapely
|
|
5
|
+
wagtail-icon-chooser>=0.3.1
|
|
6
|
+
wagtail-cache==3.0.0
|
|
7
|
+
adm-boundary-manager>=0.2.5
|
|
8
|
+
wagtail-humanitarian-icons>=2.0.0
|
|
9
|
+
wagtail-modelchooser>=4.0.1
|
|
10
|
+
paho-mqtt>=2.1.0
|
|
11
|
+
xmltodict>=0.14.2
|
|
12
|
+
pdf2image>=1.17.0
|
|
13
|
+
wagtail-metadata>=5.0.0
|
|
14
|
+
lxml>=5.4.0
|
|
15
|
+
signxml>=4.0.3
|
|
16
|
+
loguru>=0.7.3
|
|
17
|
+
weasyprint>=65.1
|
|
18
|
+
requests>=2.32.3
|
|
19
|
+
pytz>=2025.2
|
|
20
|
+
wagtail-lazyimages==0.1.5
|
|
21
|
+
wagtail-font-awesome-svg>=1.0.1
|
|
22
|
+
capvalidator==0.1.0.dev4
|
|
23
|
+
feedparser>=6.0.11
|
|
24
|
+
staticmap==0.5.7
|
|
25
|
+
wagtail-newsletter==0.2.2
|
|
26
|
+
mailchimp-marketing==3.0.80
|
|
27
|
+
mrml>=0.2
|
|
28
|
+
Pygments
|
|
29
|
+
markdown
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cap-composer
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: Wagtail based weather warnings composing and dissemination tool, using Common Alerting Protocol (CAP) standard.
|
|
5
|
+
Author-email: Erick Otenyo <otenyo.erick@gmail.com>, Grace Amondi <miswa.grace@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/wmo-raf/cap-composer
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/wmo-raf/cap-composer/issues
|
|
9
|
+
Platform: Linux
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Framework :: Django
|
|
17
|
+
Classifier: Framework :: Wagtail
|
|
18
|
+
Requires-Python: >=3.8
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
Requires-Dist: wagtail>=7.0
|
|
21
|
+
Requires-Dist: djangorestframework-xml
|
|
22
|
+
Requires-Dist: python-magic
|
|
23
|
+
Requires-Dist: shapely
|
|
24
|
+
Requires-Dist: wagtail-icon-chooser>=0.3.1
|
|
25
|
+
Requires-Dist: wagtail-cache==3.0.0
|
|
26
|
+
Requires-Dist: adm-boundary-manager>=0.2.5
|
|
27
|
+
Requires-Dist: wagtail-humanitarian-icons>=2.0.0
|
|
28
|
+
Requires-Dist: wagtail-modelchooser>=4.0.1
|
|
29
|
+
Requires-Dist: paho-mqtt>=2.1.0
|
|
30
|
+
Requires-Dist: xmltodict>=0.14.2
|
|
31
|
+
Requires-Dist: pdf2image>=1.17.0
|
|
32
|
+
Requires-Dist: wagtail-metadata>=5.0.0
|
|
33
|
+
Requires-Dist: lxml>=5.4.0
|
|
34
|
+
Requires-Dist: signxml>=4.0.3
|
|
35
|
+
Requires-Dist: loguru>=0.7.3
|
|
36
|
+
Requires-Dist: weasyprint>=65.1
|
|
37
|
+
Requires-Dist: requests>=2.32.3
|
|
38
|
+
Requires-Dist: pytz>=2025.2
|
|
39
|
+
Requires-Dist: wagtail-lazyimages==0.1.5
|
|
40
|
+
Requires-Dist: wagtail-font-awesome-svg>=1.0.1
|
|
41
|
+
Requires-Dist: capvalidator==0.1.0.dev4
|
|
42
|
+
Requires-Dist: feedparser>=6.0.11
|
|
43
|
+
Requires-Dist: staticmap==0.5.7
|
|
44
|
+
Requires-Dist: wagtail-newsletter==0.2.2
|
|
45
|
+
Requires-Dist: mailchimp-marketing==3.0.80
|
|
46
|
+
Requires-Dist: mrml>=0.2
|
|
47
|
+
Requires-Dist: Pygments
|
|
48
|
+
Requires-Dist: markdown
|
|
49
|
+
|
|
50
|
+
A [Wagtail](https://wagtail.io/)
|
|
51
|
+
based [Common Alerting Protocol](https://docs.oasis-open.org/emergency/cap/v1.2/CAP-v1.2-os.html) (CAP) Warning
|
|
52
|
+
Composer.
|
|
53
|
+
|
|
54
|
+
This is a web-based tool for creating and managing CAP alerts. It is designed to be used by National Meteorological and
|
|
55
|
+
Hydrological Services (NMHSs), disaster management agencies and other organizations that have the authority to publish
|
|
56
|
+
and disseminate CAP alerts.
|
|
57
|
+
|
|
58
|
+
For more details, see [https://github.com/wmo-raf/cap-composer](https://github.com/wmo-raf/capcomposer)
|
|
59
|
+
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
MANIFEST.in
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
requirements/base.txt
|
|
5
|
+
src/cap_composer.egg-info/PKG-INFO
|
|
6
|
+
src/cap_composer.egg-info/SOURCES.txt
|
|
7
|
+
src/cap_composer.egg-info/dependency_links.txt
|
|
8
|
+
src/cap_composer.egg-info/entry_points.txt
|
|
9
|
+
src/cap_composer.egg-info/requires.txt
|
|
10
|
+
src/cap_composer.egg-info/top_level.txt
|
|
11
|
+
src/capcomposer/__init__.py
|
|
12
|
+
src/capcomposer/gunicorn.config.py
|
|
13
|
+
src/capcomposer/manage.py
|
|
14
|
+
src/capcomposer/version.py
|
|
15
|
+
src/capcomposer/cap/__init__.py
|
|
16
|
+
src/capcomposer/cap/admin.py
|
|
17
|
+
src/capcomposer/cap/apps.py
|
|
18
|
+
src/capcomposer/cap/cache.py
|
|
19
|
+
src/capcomposer/cap/exceptions.py
|
|
20
|
+
src/capcomposer/cap/mixins.py
|
|
21
|
+
src/capcomposer/cap/models.py
|
|
22
|
+
src/capcomposer/cap/permissions.py
|
|
23
|
+
src/capcomposer/cap/serializers.py
|
|
24
|
+
src/capcomposer/cap/sign.py
|
|
25
|
+
src/capcomposer/cap/static_map.py
|
|
26
|
+
src/capcomposer/cap/tasks.py
|
|
27
|
+
src/capcomposer/cap/tests.py
|
|
28
|
+
src/capcomposer/cap/urls.py
|
|
29
|
+
src/capcomposer/cap/utils.py
|
|
30
|
+
src/capcomposer/cap/views.py
|
|
31
|
+
src/capcomposer/cap/wagtail_hooks.py
|
|
32
|
+
src/capcomposer/cap/weasyprint_utils.py
|
|
33
|
+
src/capcomposer/cap/external_feed/__init__.py
|
|
34
|
+
src/capcomposer/cap/external_feed/models.py
|
|
35
|
+
src/capcomposer/cap/external_feed/utils.py
|
|
36
|
+
src/capcomposer/cap/locale/am/LC_MESSAGES/django.mo
|
|
37
|
+
src/capcomposer/cap/locale/am/LC_MESSAGES/django.po
|
|
38
|
+
src/capcomposer/cap/locale/ar/LC_MESSAGES/django.mo
|
|
39
|
+
src/capcomposer/cap/locale/ar/LC_MESSAGES/django.po
|
|
40
|
+
src/capcomposer/cap/locale/en/LC_MESSAGES/django.mo
|
|
41
|
+
src/capcomposer/cap/locale/en/LC_MESSAGES/django.po
|
|
42
|
+
src/capcomposer/cap/locale/es/LC_MESSAGES/django.mo
|
|
43
|
+
src/capcomposer/cap/locale/es/LC_MESSAGES/django.po
|
|
44
|
+
src/capcomposer/cap/locale/fr/LC_MESSAGES/django.mo
|
|
45
|
+
src/capcomposer/cap/locale/fr/LC_MESSAGES/django.po
|
|
46
|
+
src/capcomposer/cap/locale/sw/LC_MESSAGES/django.mo
|
|
47
|
+
src/capcomposer/cap/locale/sw/LC_MESSAGES/django.po
|
|
48
|
+
src/capcomposer/cap/management/__init__.py
|
|
49
|
+
src/capcomposer/cap/management/commands/__init__.py
|
|
50
|
+
src/capcomposer/cap/management/commands/create_cap_alerts_multi_media.py
|
|
51
|
+
src/capcomposer/cap/migrations/0001_initial.py
|
|
52
|
+
src/capcomposer/cap/migrations/0002_alter_capalertpage_info.py
|
|
53
|
+
src/capcomposer/cap/migrations/0003_capalertpage_search_image.py
|
|
54
|
+
src/capcomposer/cap/migrations/0004_alter_capalertpage_identifier.py
|
|
55
|
+
src/capcomposer/cap/migrations/0005_capalertlistpage.py
|
|
56
|
+
src/capcomposer/cap/migrations/0006_remove_capalertlistpage_description_and_more.py
|
|
57
|
+
src/capcomposer/cap/migrations/0007_alter_capalertpage_info.py
|
|
58
|
+
src/capcomposer/cap/migrations/0008_alter_capalertpage_info.py
|
|
59
|
+
src/capcomposer/cap/migrations/0009_merge_20231114_0803.py
|
|
60
|
+
src/capcomposer/cap/migrations/0010_alter_capalertpage_options.py
|
|
61
|
+
src/capcomposer/cap/migrations/0011_alter_capalertpage_info.py
|
|
62
|
+
src/capcomposer/cap/migrations/0012_alter_capalertpage_info_and_more.py
|
|
63
|
+
src/capcomposer/cap/migrations/0013_capalertpage_alert_pdf_preview.py
|
|
64
|
+
src/capcomposer/cap/migrations/0014_capalertpage_alert_area_map_image.py
|
|
65
|
+
src/capcomposer/cap/migrations/0015_alter_capalertpage_info.py
|
|
66
|
+
src/capcomposer/cap/migrations/0016_auto_20240530_1637.py
|
|
67
|
+
src/capcomposer/cap/migrations/0017_capalertpage_expires.py
|
|
68
|
+
src/capcomposer/cap/migrations/0018_capalertwebhook_capalertwebhookevent.py
|
|
69
|
+
src/capcomposer/cap/migrations/0019_alter_capalertpage_options_alter_capalertpage_guid_and_more.py
|
|
70
|
+
src/capcomposer/cap/migrations/0020_othercapsettings.py
|
|
71
|
+
src/capcomposer/cap/migrations/0021_capalertmqttbroker_capalertmqttbrokerevent.py
|
|
72
|
+
src/capcomposer/cap/migrations/0022_externalalertfeed_and_more.py
|
|
73
|
+
src/capcomposer/cap/migrations/0023_alter_capalertpage_sender.py
|
|
74
|
+
src/capcomposer/cap/migrations/0024_alter_capalertpage_alert_pdf_preview_and_more.py
|
|
75
|
+
src/capcomposer/cap/migrations/0025_capmenupermission.py
|
|
76
|
+
src/capcomposer/cap/migrations/0026_alter_capmenupermission_options.py
|
|
77
|
+
src/capcomposer/cap/migrations/0027_capalertlistpage_alerts_infos_per_page.py
|
|
78
|
+
src/capcomposer/cap/migrations/0028_alter_capalertpage_info.py
|
|
79
|
+
src/capcomposer/cap/migrations/0029_capalertpage_imported_alter_capalertpage_info.py
|
|
80
|
+
src/capcomposer/cap/migrations/0030_alter_capalertpage_sent.py
|
|
81
|
+
src/capcomposer/cap/migrations/0031_capalertpage_newsletter_campaign_and_more.py
|
|
82
|
+
src/capcomposer/cap/migrations/0032_capalertmqttbroker_qos.py
|
|
83
|
+
src/capcomposer/cap/migrations/0033_capalertwebhook_header_value_and_more.py
|
|
84
|
+
src/capcomposer/cap/migrations/__init__.py
|
|
85
|
+
src/capcomposer/cap/mqtt/__init__.py
|
|
86
|
+
src/capcomposer/cap/mqtt/models.py
|
|
87
|
+
src/capcomposer/cap/mqtt/publish.py
|
|
88
|
+
src/capcomposer/cap/mqtt/utils.py
|
|
89
|
+
src/capcomposer/cap/static/cap/css/bulma-timeline.min.css
|
|
90
|
+
src/capcomposer/cap/static/cap/css/cap_detail_page.css
|
|
91
|
+
src/capcomposer/cap/static/cap/css/cap_detail_pdf.css
|
|
92
|
+
src/capcomposer/cap/static/cap/css/cap_list_page.css
|
|
93
|
+
src/capcomposer/cap/static/cap/css/codehilite.css
|
|
94
|
+
src/capcomposer/cap/static/cap/images/cap_symbol.jpeg
|
|
95
|
+
src/capcomposer/cap/static/cap/images/caplogo.jpeg
|
|
96
|
+
src/capcomposer/cap/static/cap/js/jquery-3.7.1.min.js
|
|
97
|
+
src/capcomposer/cap/static/cap/js/mqtt_collapse_panels.js
|
|
98
|
+
src/capcomposer/cap/templates/cap/active_alert.html
|
|
99
|
+
src/capcomposer/cap/templates/cap/alert_detail.html
|
|
100
|
+
src/capcomposer/cap/templates/cap/alert_detail_email.html
|
|
101
|
+
src/capcomposer/cap/templates/cap/alert_detail_pdf.html
|
|
102
|
+
src/capcomposer/cap/templates/cap/alert_list.html
|
|
103
|
+
src/capcomposer/cap/templates/cap/cap-alert-stylesheet.html
|
|
104
|
+
src/capcomposer/cap/templates/cap/cap-feed-stylesheet.html
|
|
105
|
+
src/capcomposer/cap/templates/cap/include_alert_list_item.html
|
|
106
|
+
src/capcomposer/cap/templates/cap/pagination_include.html
|
|
107
|
+
src/capcomposer/cap/templates/cap/social_media_share_buttons_include.html
|
|
108
|
+
src/capcomposer/cap/templates/cap/third_party_integration.html
|
|
109
|
+
src/capcomposer/cap/templates/cap/third_party_integration_md_content.md
|
|
110
|
+
src/capcomposer/cap/templates/cap/icons/category.svg
|
|
111
|
+
src/capcomposer/cap/templates/cap/icons/certainty.svg
|
|
112
|
+
src/capcomposer/cap/templates/cap/icons/clock.svg
|
|
113
|
+
src/capcomposer/cap/templates/cap/icons/language.svg
|
|
114
|
+
src/capcomposer/cap/templates/cap/icons/response.svg
|
|
115
|
+
src/capcomposer/cap/templates/cap/icons/warning-outline.svg
|
|
116
|
+
src/capcomposer/cap/templates/cap/icons/warning.svg
|
|
117
|
+
src/capcomposer/cap/templates/cap/icons/x-twitter.svg
|
|
118
|
+
src/capcomposer/cap/templates/cap/widgets/nav_left_alert.html
|
|
119
|
+
src/capcomposer/cap/templates/cap/widgets/nav_top_alert.html
|
|
120
|
+
src/capcomposer/cap/templatetags/__init__.py
|
|
121
|
+
src/capcomposer/cap/templatetags/online_share.py
|
|
122
|
+
src/capcomposer/cap/webhook/__init__.py
|
|
123
|
+
src/capcomposer/cap/webhook/http.py
|
|
124
|
+
src/capcomposer/cap/webhook/models.py
|
|
125
|
+
src/capcomposer/cap/webhook/utils.py
|
|
126
|
+
src/capcomposer/capeditor/__init__.py
|
|
127
|
+
src/capcomposer/capeditor/admin.py
|
|
128
|
+
src/capcomposer/capeditor/apps.py
|
|
129
|
+
src/capcomposer/capeditor/blocks.py
|
|
130
|
+
src/capcomposer/capeditor/cap_settings.py
|
|
131
|
+
src/capcomposer/capeditor/caputils.py
|
|
132
|
+
src/capcomposer/capeditor/clear_fuzzy.py
|
|
133
|
+
src/capcomposer/capeditor/constants.py
|
|
134
|
+
src/capcomposer/capeditor/errors.py
|
|
135
|
+
src/capcomposer/capeditor/models.py
|
|
136
|
+
src/capcomposer/capeditor/oet_v1_2.py
|
|
137
|
+
src/capcomposer/capeditor/renderers.py
|
|
138
|
+
src/capcomposer/capeditor/serializers.py
|
|
139
|
+
src/capcomposer/capeditor/tests.py
|
|
140
|
+
src/capcomposer/capeditor/utils.py
|
|
141
|
+
src/capcomposer/capeditor/views.py
|
|
142
|
+
src/capcomposer/capeditor/wagtail_hooks.py
|
|
143
|
+
src/capcomposer/capeditor/forms/__init__.py
|
|
144
|
+
src/capcomposer/capeditor/forms/capimporter.py
|
|
145
|
+
src/capcomposer/capeditor/forms/fields.py
|
|
146
|
+
src/capcomposer/capeditor/forms/widgets.py
|
|
147
|
+
src/capcomposer/capeditor/locale/am/LC_MESSAGES/django.mo
|
|
148
|
+
src/capcomposer/capeditor/locale/am/LC_MESSAGES/django.po
|
|
149
|
+
src/capcomposer/capeditor/locale/ar/LC_MESSAGES/django.mo
|
|
150
|
+
src/capcomposer/capeditor/locale/ar/LC_MESSAGES/django.po
|
|
151
|
+
src/capcomposer/capeditor/locale/en/LC_MESSAGES/django.mo
|
|
152
|
+
src/capcomposer/capeditor/locale/en/LC_MESSAGES/django.po
|
|
153
|
+
src/capcomposer/capeditor/locale/es/LC_MESSAGES/django.mo
|
|
154
|
+
src/capcomposer/capeditor/locale/es/LC_MESSAGES/django.po
|
|
155
|
+
src/capcomposer/capeditor/locale/fr/LC_MESSAGES/django.mo
|
|
156
|
+
src/capcomposer/capeditor/locale/fr/LC_MESSAGES/django.po
|
|
157
|
+
src/capcomposer/capeditor/locale/sw/LC_MESSAGES/django.mo
|
|
158
|
+
src/capcomposer/capeditor/locale/sw/LC_MESSAGES/django.po
|
|
159
|
+
src/capcomposer/capeditor/migrations/0001_initial.py
|
|
160
|
+
src/capcomposer/capeditor/migrations/0002_alter_capsetting_options_and_more.py
|
|
161
|
+
src/capcomposer/capeditor/migrations/0003_capsetting_logo.py
|
|
162
|
+
src/capcomposer/capeditor/migrations/0004_predefinedalertarea.py
|
|
163
|
+
src/capcomposer/capeditor/migrations/0005_alter_capsetting_sender.py
|
|
164
|
+
src/capcomposer/capeditor/migrations/0006_capsetting_wmo_oid.py
|
|
165
|
+
src/capcomposer/capeditor/migrations/0007_alter_capsetting_wmo_oid_and_more.py
|
|
166
|
+
src/capcomposer/capeditor/migrations/0008_remove_capsetting_audience_types.py
|
|
167
|
+
src/capcomposer/capeditor/migrations/0009_capsetting_un_country_boundary_geojson.py
|
|
168
|
+
src/capcomposer/capeditor/migrations/0010_alter_capsetting_un_country_boundary_geojson.py
|
|
169
|
+
src/capcomposer/capeditor/migrations/0011_alertlanguage.py
|
|
170
|
+
src/capcomposer/capeditor/migrations/0012_alter_hazardeventtypes_options_and_more.py
|
|
171
|
+
src/capcomposer/capeditor/migrations/0013_capsetting_num_of_latest_alerts_in_feed.py
|
|
172
|
+
src/capcomposer/capeditor/migrations/0014_alter_capsetting_num_of_latest_alerts_in_feed.py
|
|
173
|
+
src/capcomposer/capeditor/migrations/0015_hazardeventtypes_category_and_more.py
|
|
174
|
+
src/capcomposer/capeditor/migrations/0016_alter_predefinedalertarea_name.py
|
|
175
|
+
src/capcomposer/capeditor/migrations/__init__.py
|
|
176
|
+
src/capcomposer/capeditor/pubsub/__init__.py
|
|
177
|
+
src/capcomposer/capeditor/pubsub/base.py
|
|
178
|
+
src/capcomposer/capeditor/pubsub/mqtt.py
|
|
179
|
+
src/capcomposer/capeditor/pubsub/publish.py
|
|
180
|
+
src/capcomposer/capeditor/static/capeditor/css/cap_detail_page.css
|
|
181
|
+
src/capcomposer/capeditor/static/capeditor/css/import_cap_preview.css
|
|
182
|
+
src/capcomposer/capeditor/static/capeditor/css/mapbox-gl-draw.css
|
|
183
|
+
src/capcomposer/capeditor/static/capeditor/css/maplibre-gl.css
|
|
184
|
+
src/capcomposer/capeditor/static/capeditor/css/widget/boundary-widget.css
|
|
185
|
+
src/capcomposer/capeditor/static/capeditor/css/widget/circle-widget.css
|
|
186
|
+
src/capcomposer/capeditor/static/capeditor/css/widget/geojson-file-loader-widget.css
|
|
187
|
+
src/capcomposer/capeditor/static/capeditor/css/widget/multipolygon-widget.css
|
|
188
|
+
src/capcomposer/capeditor/static/capeditor/css/widget/polygon-widget.css
|
|
189
|
+
src/capcomposer/capeditor/static/capeditor/fonts/mapbox-gl-draw.css
|
|
190
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/LICENSE.txt
|
|
191
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Black.ttf
|
|
192
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-BlackItalic.ttf
|
|
193
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Bold.ttf
|
|
194
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-BoldItalic.ttf
|
|
195
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Italic.ttf
|
|
196
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Light.ttf
|
|
197
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-LightItalic.ttf
|
|
198
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Medium.ttf
|
|
199
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-MediumItalic.ttf
|
|
200
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Regular.ttf
|
|
201
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-Thin.ttf
|
|
202
|
+
src/capcomposer/capeditor/static/capeditor/fonts/Roboto/Roboto-ThinItalic.ttf
|
|
203
|
+
src/capcomposer/capeditor/static/capeditor/images/alert.png
|
|
204
|
+
src/capcomposer/capeditor/static/capeditor/images/alert.svg
|
|
205
|
+
src/capcomposer/capeditor/static/capeditor/images/area.png
|
|
206
|
+
src/capcomposer/capeditor/static/capeditor/images/certainty.png
|
|
207
|
+
src/capcomposer/capeditor/static/capeditor/images/extreme.png
|
|
208
|
+
src/capcomposer/capeditor/static/capeditor/images/minor.png
|
|
209
|
+
src/capcomposer/capeditor/static/capeditor/images/moderate.png
|
|
210
|
+
src/capcomposer/capeditor/static/capeditor/images/severe.png
|
|
211
|
+
src/capcomposer/capeditor/static/capeditor/images/urgency.png
|
|
212
|
+
src/capcomposer/capeditor/static/capeditor/js/cap_accordion.js
|
|
213
|
+
src/capcomposer/capeditor/static/capeditor/js/conditional_fields.js
|
|
214
|
+
src/capcomposer/capeditor/static/capeditor/js/mapbox-gl-draw.js
|
|
215
|
+
src/capcomposer/capeditor/static/capeditor/js/maplibre-gl.js
|
|
216
|
+
src/capcomposer/capeditor/static/capeditor/js/turf.min.js
|
|
217
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/boundary-polygon-widget-telepath.js
|
|
218
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/boundary-polygon-widget.js
|
|
219
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/circle-widget-telepath.js
|
|
220
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/circle-widget.js
|
|
221
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/event-code-widget-controller.js
|
|
222
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/event-code-widget.js
|
|
223
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/geojson-file-loader-widget.js
|
|
224
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/hazard-event-type-widget-controller.js
|
|
225
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/hazard-event-type-widget.js
|
|
226
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/multipolygon-widget.js
|
|
227
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/polygon-widget-telepath.js
|
|
228
|
+
src/capcomposer/capeditor/static/capeditor/js/widget/polygon-widget.js
|
|
229
|
+
src/capcomposer/capeditor/templates/capeditor/cap_alert_page.html
|
|
230
|
+
src/capcomposer/capeditor/templates/capeditor/load_cap_alert.html
|
|
231
|
+
src/capcomposer/capeditor/templates/capeditor/preview_cap_alert.html
|
|
232
|
+
src/capcomposer/capeditor/templates/capeditor/icons/cap-alert-full.svg
|
|
233
|
+
src/capcomposer/capeditor/templates/capeditor/icons/cap-alert.svg
|
|
234
|
+
src/capcomposer/capeditor/templates/capeditor/widgets/boundary_polygon_widget.html
|
|
235
|
+
src/capcomposer/capeditor/templates/capeditor/widgets/circle_widget.html
|
|
236
|
+
src/capcomposer/capeditor/templates/capeditor/widgets/event_code_select_widget.html
|
|
237
|
+
src/capcomposer/capeditor/templates/capeditor/widgets/geojson_file_loader_widget.html
|
|
238
|
+
src/capcomposer/capeditor/templates/capeditor/widgets/hazard_event_type_widget.html
|
|
239
|
+
src/capcomposer/capeditor/templates/capeditor/widgets/multipolygon_widget.html
|
|
240
|
+
src/capcomposer/capeditor/templates/capeditor/widgets/polygon_widget.html
|
|
241
|
+
src/capcomposer/config/__init__.py
|
|
242
|
+
src/capcomposer/config/asgi.py
|
|
243
|
+
src/capcomposer/config/celery.py
|
|
244
|
+
src/capcomposer/config/celery_singleton_backend.py
|
|
245
|
+
src/capcomposer/config/storage.py
|
|
246
|
+
src/capcomposer/config/urls.py
|
|
247
|
+
src/capcomposer/config/views.py
|
|
248
|
+
src/capcomposer/config/wsgi.py
|
|
249
|
+
src/capcomposer/config/db_engine/__init__.py
|
|
250
|
+
src/capcomposer/config/db_engine/base.py
|
|
251
|
+
src/capcomposer/config/settings/__init__.py
|
|
252
|
+
src/capcomposer/config/settings/base.py
|
|
253
|
+
src/capcomposer/config/settings/dev.py
|
|
254
|
+
src/capcomposer/config/settings/production.py
|
|
255
|
+
src/capcomposer/config/static/css/bulma.min.css
|
|
256
|
+
src/capcomposer/config/static/css/cap-composer.css
|
|
257
|
+
src/capcomposer/config/static/css/maplibre-gl.css
|
|
258
|
+
src/capcomposer/config/static/images/capcomposer.png
|
|
259
|
+
src/capcomposer/config/static/images/capcomposer_red.png
|
|
260
|
+
src/capcomposer/config/static/images/capcomposer_white.png
|
|
261
|
+
src/capcomposer/config/static/images/weather-alert.png
|
|
262
|
+
src/capcomposer/config/static/js/cap-composer.js
|
|
263
|
+
src/capcomposer/config/static/js/maplibre-gl.js
|
|
264
|
+
src/capcomposer/config/static/js/turf.min.js
|
|
265
|
+
src/capcomposer/config/telemetry/__init__.py
|
|
266
|
+
src/capcomposer/config/telemetry/env_overrides_parser.py
|
|
267
|
+
src/capcomposer/config/telemetry/middleware.py
|
|
268
|
+
src/capcomposer/config/telemetry/provider.py
|
|
269
|
+
src/capcomposer/config/telemetry/sampling.py
|
|
270
|
+
src/capcomposer/config/telemetry/telemetry.py
|
|
271
|
+
src/capcomposer/config/telemetry/utils.py
|
|
272
|
+
src/capcomposer/config/templates/404.html
|
|
273
|
+
src/capcomposer/config/templates/500.html
|
|
274
|
+
src/capcomposer/config/templates/base.html
|
|
275
|
+
src/capcomposer/config/templates/breadcrumbs_include.html
|
|
276
|
+
src/capcomposer/config/templates/footer.html
|
|
277
|
+
src/capcomposer/config/templates/humans.txt
|
|
278
|
+
src/capcomposer/config/templates/navbar.html
|
|
279
|
+
src/capcomposer/config/templates/axes/lockout.html
|
|
280
|
+
src/capcomposer/config/templates/wagtailadmin/admin_base.html
|
|
281
|
+
src/capcomposer/config/templates/wagtailadmin/base.html
|
|
282
|
+
src/capcomposer/config/templates/wagtailadmin/home.html
|
|
283
|
+
src/capcomposer/config/templates/wagtailadmin/login.html
|
|
284
|
+
src/capcomposer/home/__init__.py
|
|
285
|
+
src/capcomposer/home/apps.py
|
|
286
|
+
src/capcomposer/home/models.py
|
|
287
|
+
src/capcomposer/home/tasks.py
|
|
288
|
+
src/capcomposer/home/wagtail_hooks.py
|
|
289
|
+
src/capcomposer/home/management/commands/get_capcomposer_version.py
|
|
290
|
+
src/capcomposer/home/migrations/0001_initial.py
|
|
291
|
+
src/capcomposer/home/migrations/0002_create_homepage.py
|
|
292
|
+
src/capcomposer/home/migrations/0003_homepage_subtitle.py
|
|
293
|
+
src/capcomposer/home/migrations/__init__.py
|
|
294
|
+
src/capcomposer/home/static/css/homepage.css
|
|
295
|
+
src/capcomposer/home/templates/home/home_page.html
|
|
296
|
+
src/capcomposer/home/templatetags/__init__.py
|
|
297
|
+
src/capcomposer/home/templatetags/capcomposer_tags.py
|
|
298
|
+
src/capcomposer/utils/__init__.py
|
|
299
|
+
src/capcomposer/utils/version.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
wagtail>=7.0
|
|
2
|
+
djangorestframework-xml
|
|
3
|
+
python-magic
|
|
4
|
+
shapely
|
|
5
|
+
wagtail-icon-chooser>=0.3.1
|
|
6
|
+
wagtail-cache==3.0.0
|
|
7
|
+
adm-boundary-manager>=0.2.5
|
|
8
|
+
wagtail-humanitarian-icons>=2.0.0
|
|
9
|
+
wagtail-modelchooser>=4.0.1
|
|
10
|
+
paho-mqtt>=2.1.0
|
|
11
|
+
xmltodict>=0.14.2
|
|
12
|
+
pdf2image>=1.17.0
|
|
13
|
+
wagtail-metadata>=5.0.0
|
|
14
|
+
lxml>=5.4.0
|
|
15
|
+
signxml>=4.0.3
|
|
16
|
+
loguru>=0.7.3
|
|
17
|
+
weasyprint>=65.1
|
|
18
|
+
requests>=2.32.3
|
|
19
|
+
pytz>=2025.2
|
|
20
|
+
wagtail-lazyimages==0.1.5
|
|
21
|
+
wagtail-font-awesome-svg>=1.0.1
|
|
22
|
+
capvalidator==0.1.0.dev4
|
|
23
|
+
feedparser>=6.0.11
|
|
24
|
+
staticmap==0.5.7
|
|
25
|
+
wagtail-newsletter==0.2.2
|
|
26
|
+
mailchimp-marketing==3.0.80
|
|
27
|
+
mrml>=0.2
|
|
28
|
+
Pygments
|
|
29
|
+
markdown
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
capcomposer
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from .config.celery import app as celery_app
|
|
2
|
+
from .utils.version import get_version, get_semver_version
|
|
3
|
+
from .version import VERSION
|
|
4
|
+
|
|
5
|
+
__version__ = get_version(VERSION)
|
|
6
|
+
|
|
7
|
+
__semver__ = get_semver_version(VERSION)
|
|
8
|
+
|
|
9
|
+
__all__ = ["celery_app", "__version__", "__semver__"]
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import base64
|
|
2
|
+
|
|
3
|
+
from django.apps import AppConfig
|
|
4
|
+
from django.conf import settings
|
|
5
|
+
from django.core.exceptions import ImproperlyConfigured
|
|
6
|
+
from signxml import SignatureMethod
|
|
7
|
+
|
|
8
|
+
CAP_SIGNATURE_METHOD = getattr(settings, "CAP_SIGNATURE_METHOD", SignatureMethod.RSA_SHA256)
|
|
9
|
+
CAP_MQTT_SECRET_KEY = getattr(settings, "CAP_MQTT_SECRET_KEY", None)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CapConfig(AppConfig):
|
|
13
|
+
default_auto_field = 'django.db.models.BigAutoField'
|
|
14
|
+
name = 'capcomposer.cap'
|
|
15
|
+
|
|
16
|
+
def ready(self):
|
|
17
|
+
if CAP_SIGNATURE_METHOD and not hasattr(SignatureMethod, CAP_SIGNATURE_METHOD):
|
|
18
|
+
message = f"Invalid 'CAP_SIGNATURE_METHOD' setting '{CAP_SIGNATURE_METHOD}'. " \
|
|
19
|
+
f"Must be one of " \
|
|
20
|
+
f"{list(SignatureMethod.__members__.keys())}"
|
|
21
|
+
raise ImproperlyConfigured(message)
|
|
22
|
+
|
|
23
|
+
if CAP_MQTT_SECRET_KEY:
|
|
24
|
+
try:
|
|
25
|
+
base64.urlsafe_b64decode(CAP_MQTT_SECRET_KEY)
|
|
26
|
+
except Exception as e:
|
|
27
|
+
raise ImproperlyConfigured(f"CAP_MQTT_SECRET_KEY must be a base64 encoded string. {e}")
|
|
28
|
+
|
|
29
|
+
if len(CAP_MQTT_SECRET_KEY) != 44:
|
|
30
|
+
raise ImproperlyConfigured("CAP_MQTT_SECRET_KEY must be 44 characters long")
|
|
File without changes
|