Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
211
stars
140
forks
source link
`create-vue-application` fails when used with a standalone plugin #10984
As of #10976 , create-vue-application fails because it's using arches.urls to fetch its i18n data, but javascript.htm -- which is used to stock the data in the arches component, is not used.
STEPS TO REPRODUCE:
Edit this line in js/utils/create-vue-application.js:
from:
As of #10976 ,
create-vue-application
fails because it's usingarches.urls
to fetch its i18n data, butjavascript.htm
-- which is used to stock the data in thearches
component, is not used.STEPS TO REPRODUCE:
Edit this line in
js/utils/create-vue-application.js
: from:to:
Create a standalone plugin. Go through the process of creating a plugin but ensure the
config
property hasas a k/v pair, and ensure
component
is pointing to a Vue component, eg:Visit the plugin. It will not be listed in the sidebar, so you will need to manually navigate to the plugin. eg
localhost:8000/plugins/my-plugin
Notice the component loads successfully.
Now revert this line in
js/utils/create-vue-application.js
: from:to:
Notice the component fails to load.
PROPOSED SOLUTION
arches_urls
block outside ofjavascript.htm
include
that template injavascript.htm
andplugin-standalone.htm
This will allow developers to access arches from standalone plugins while avoiding duplicating the urls themselves