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

[FEATURE] 插件配置公共常量支持 #1500

Closed
ZhuoZhuoCrayon opened this issue Apr 7, 2023 · 0 comments
Closed

[FEATURE] 插件配置公共常量支持 #1500

ZhuoZhuoCrayon opened this issue Apr 7, 2023 · 0 comments
Assignees

Comments

@ZhuoZhuoCrayon
Copy link
Member

ZhuoZhuoCrayon commented Apr 7, 2023

你想要什么功能
插件配置公共常量支持,用于支持特定环境的插件变量渲染

建议如何实现

  1. GlobalSettings 新增 PLUGIN_COMMON_CONSTANTS 变量,值格式:
{"plugin_name": {"a": 1}, "global": {}}

plugin_name 给特定的插件使用
global 全部插件可见

  1. 添加到 context 中的 nodeman.constants

apps/backend/subscription/tools.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants