From f5eea1fe3f390ee36ae10505a449e5601c668d56 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 31 May 2024 19:07:42 +0200 Subject: [PATCH] wip(naming): replace "plugin" by "importer" We are not ready yet to talk about plugins --- umap/settings/base.py | 2 +- umap/static/umap/js/modules/importer.js | 28 +++++++++++++------------ umap/static/umap/js/umap.js | 3 --- umap/views.py | 2 +- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/umap/settings/base.py b/umap/settings/base.py index 0fad343c..b63c72f4 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -259,7 +259,7 @@ UMAP_DEFAULT_SHARE_STATUS = None UMAP_DEFAULT_EDIT_STATUS = None UMAP_DEFAULT_FEATURES_HAVE_OWNERS = False UMAP_HOME_FEED = "latest" -UMAP_EXPERIMENTAL_PLUGINS = { +UMAP_EXPERIMENTAL_IMPORTERS = { # "geodatamine": {}, # "communesfr": {}, # "presets": { diff --git a/umap/static/umap/js/modules/importer.js b/umap/static/umap/js/modules/importer.js index cee0cf9c..b0eac871 100644 --- a/umap/static/umap/js/modules/importer.js +++ b/umap/static/umap/js/modules/importer.js @@ -3,7 +3,7 @@ import { translate } from './i18n.js' import { uMapAlert as Alert } from '../components/alerts/alert.js' import Dialog from './ui/dialog.js' -const AVAILABLE_PLUGINS = ['geodatamine', 'communesfr', 'presets'] +const AVAILABLE_IMPORTERS = ['geodatamine', 'communesfr', 'presets'] const TEMPLATE = `

${translate('Import data')}

@@ -12,9 +12,9 @@ const TEMPLATE = ` -
+

${translate('Import from:')}

-
+