Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field Modules (experimental) #216

Merged
merged 70 commits into from
Aug 4, 2020
Merged

Field Modules (experimental) #216

merged 70 commits into from
Aug 4, 2020

Conversation

jgaehring
Copy link
Member

This is a very experimental (though functional) implementation of our proposed "Field Modules" idea, which goes all the way back to issue #38. I'll probably open a new issue to discuss the future potential of this feature in more detail. This PR is not really intended to be merged, but is for documentation purposes.

Some notes on the implementation:

In order to serve the plugin's script, which doesn't get picked up by Webpack, I had to spin up a separate http server. I used the Chrome Web Server, with the root directory set to /src/vue-plugins/test-plugin and with CORS headers enabled in the Advanced Settings. That serves the index.js file from http://127.0.0.1:8887/index.js, which I've hardcoded into the manifest.json. Someone serving the files from a different port may need to edit that.

In the future it might be desirable to move field module loader deeper into the app, perhaps to one of App.vue's life-cycle hooks, or perhaps its own Vuex module. The reason for this would be to access the user info and auth status, stored in Vuex, although this could also just be accessed directly via localStorage.

This was referenced Jun 28, 2019
@jgaehring jgaehring force-pushed the field-module branch 2 times, most recently from e22e88d to f4ae55b Compare July 14, 2019 22:56
@jgaehring jgaehring force-pushed the field-module branch 3 times, most recently from 8a37993 to f99332e Compare October 19, 2019 16:55
@jgaehring jgaehring force-pushed the field-module branch 5 times, most recently from 51e7c84 to f390bf6 Compare November 1, 2019 22:50
@jgaehring jgaehring force-pushed the field-module branch 3 times, most recently from 12b0055 to 4717657 Compare November 13, 2019 17:23
@jgaehring jgaehring force-pushed the field-module branch 3 times, most recently from ed1823e to a4f7101 Compare February 20, 2020 23:37
@jgaehring jgaehring force-pushed the field-module branch 2 times, most recently from bcea25a to aa5fcb3 Compare March 11, 2020 13:12
@jgaehring jgaehring closed this Mar 25, 2020
@jgaehring jgaehring reopened this Mar 25, 2020
@jgaehring jgaehring changed the base branch from master to develop March 25, 2020 16:53
@jgaehring jgaehring merged commit d90c189 into develop Aug 4, 2020
@jgaehring jgaehring deleted the field-module branch August 4, 2020 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant