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

插件 设置 可视化 #19

Open
yiyungent opened this issue Apr 23, 2022 · 1 comment
Open

插件 设置 可视化 #19

yiyungent opened this issue Apr 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@yiyungent
Copy link
Owner

通过将 SettingsModel 解析,来做到 可视化 设置 页面,当然也可以选择编辑源文件字符串(现在的方式),就像 vscode 一样,即可可视化设置,也可以编辑设置文件

@yiyungent yiyungent added the enhancement New feature or request label Apr 23, 2022
@yiyungent
Copy link
Owner Author

yiyungent commented Apr 23, 2022

例如:

{
	"GitHubOAuth": {
            "AppName": "HelloWorldPlugin",
		        "HomePageUrl": "/api/GitHub/Index",
		        "ClientId": "ea71f9ab3f05e7837e7a",
		        "ClientSecret": "0f979a8fe468582748f069bc19a1e7c3083d2c4a",
		        "RedirectUrl": "/api/GitHub/Callback",
		        "Scopes": [ "user", "notifications", "repo" ]
	        }
}

就可以对 HomePageUrl 展示一个对应的文本输入框

,当然可在 SettingsModel 的属性上添加特性 [DisplayLabel("主页URL")] 来提供对应文本框的提示

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

No branches or pull requests

1 participant