Repository navigation
[plugins] allow static files for plugins - #7425
Merged
SchrodingersGat merged 6 commits intoJun 10, 2024
Merged
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7425 +/- ##
==========================================
- Coverage 83.86% 83.80% -0.07%
==========================================
Files 1057 1058 +1
Lines 46408 46468 +60
Branches 1386 1386
==========================================
+ Hits 38921 38943 +22
- Misses 7126 7164 +38
Partials 361 361
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
martonmiklos
pushed a commit
to martonmiklos/InvenTree
that referenced
this pull request
Jun 24, 2024
* Add 'clear' option to 'invoke static' * Add functions for copying static files from installed plugins * Collect plugin static files as part of 'invoke static' * Add 'activate' method for PluginConfig * Run as part of `invoke plugins`
Member
|
Moved to a new issue => #7709 |
This was referenced Jul 21, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

invoke statictaskinvoke pluginstaskThis PR is part of preparation for bring UI plugins into the new react interface. Ideally, the bulk of any "frontend" plugin code can be served by the static file server, which is much more efficient than rendering everything on the backend on each request. It is left up to the plugin developer to determine which files should be served statically.
Plugin static files are copied into the global static directory, to
./plugin/<slug>/- whereslugis the key of the plugin instance.Files are copied only for "active" plugins