diff --git a/src/classes/mappers/tainacan-wiki-data-component.js b/src/classes/mappers/tainacan-wiki-data-component.js new file mode 100644 index 000000000..ef0adc782 --- /dev/null +++ b/src/classes/mappers/tainacan-wiki-data-component.js @@ -0,0 +1,4 @@ +import TainacanWikiData from "./tainacan-wiki-data-component.vue"; + +window.tainacan_extra_components = typeof window.tainacan_extra_components != "undefined" ? window.tainacan_extra_components : {}; +window.tainacan_extra_components["tainacan-wiki-data"] = TainacanWikiData; diff --git a/src/classes/mappers/tainacan-wiki-data-component.vue b/src/classes/mappers/tainacan-wiki-data-component.vue new file mode 100644 index 000000000..5ab86a621 --- /dev/null +++ b/src/classes/mappers/tainacan-wiki-data-component.vue @@ -0,0 +1,370 @@ + + + + + \ No newline at end of file diff --git a/webpack.common.js b/webpack.common.js index 47596f3c2..6b81d7c7e 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -11,6 +11,8 @@ module.exports = { tainacan_blocks_category_icon: './src/views/gutenberg-blocks/js/tainacan-blocks-category-icon.js', tainacan_blocks_query_variations: './src/views/gutenberg-blocks/js/tainacan-blocks-query-variations.js', + tainacan_wikidata_component: './src/classes/mappers/tainacan-wiki-data-component.js', + block_terms_list: './src/views/gutenberg-blocks/blocks/terms-list/index.js', block_items_list: './src/views/gutenberg-blocks/blocks/items-list/index.js', block_dynamic_items_list: './src/views/gutenberg-blocks/blocks/dynamic-items-list/index.js',