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: 控制台数组配置项增加“以JSON格式编辑” #1270

Closed
maxoyed opened this issue Nov 19, 2023 · 3 comments
Closed

Feature: 控制台数组配置项增加“以JSON格式编辑” #1270

maxoyed opened this issue Nov 19, 2023 · 3 comments
Labels
feature 新特性

Comments

@maxoyed
Copy link

maxoyed commented Nov 19, 2023

Describe the problem related to the feature request

需要批量编辑数组配置项的数据,目前的方案怎么在控制台资源管理器中编辑之后手动重启 Koishi,要么只能逐条添加

Describe the solution you'd like

Image_1700385765202
在数组配置项中添加“以JSON格式编辑”功能,方便直接粘贴数据

Describe alternatives you've considered

No response

Additional context

No response

@maxoyed maxoyed added the feature 新特性 label Nov 19, 2023
@MaikoTan
Copy link
Member

I think a better solution is to use the explorer plugin and then modifying the koishi.yml file manually rather than edit in JSON.

@shigma
Copy link
Member

shigma commented Nov 21, 2023

I think a better solution is to use the explorer plugin and then modifying the koishi.yml file manually rather than edit in JSON.

Modifying configuration file will not trigger full reload, unless you enable hmr plugin, which is very dangerous in production.

Also, the requested feature makes it possible to "copy as JSON", which is quite useful when you want to synchronize configuration across plugins / instances.

@MaikoTan
Copy link
Member

Modifying configuration file will not trigger full reload, unless you enable hmr plugin, which is very dangerous in production.

I see, you're right. I didn't thought about that.

Also, the requested feature makes it possible to "copy as JSON", which is quite useful when you want to synchronize configuration across plugins / instances.

Amazing! Maiko agreed to that as well.

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

No branches or pull requests

3 participants