Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wakuflair/abp.settingmanagement.mvc.ui
An ABP UI module used to manage ABP settings
https://github.com/wakuflair/abp.settingmanagement.mvc.ui
Last synced: 4 days ago
JSON representation
An ABP UI module used to manage ABP settings
- Host: GitHub
- URL: https://github.com/wakuflair/abp.settingmanagement.mvc.ui
- Owner: wakuflair
- License: mit
- Created: 2019-11-26T10:52:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T22:36:17.000Z (almost 2 years ago)
- Last Synced: 2024-12-16T01:08:16.060Z (16 days ago)
- Language: C#
- Size: 5.39 MB
- Stars: 24
- Watchers: 3
- Forks: 2
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
For ABP >= 2.1.1, please use [EasyAbp.Abp.SettingUi](https://github.com/EasyAbp/EasyAbp.Abp.SettingUi).
# Abp.SettingManagement.Mvc.UI
An [ABP](http://abp.io) module used to manage ABP settings
![demo](./doc/images/demo.png)
# Features
* Manage ABP setting values via UI
* Support localization
* Control display of the settings via JSON (grouping, form controls, etc.)# How to use
1. Install nuget packages
* Application project:
`Install-Package Abp.SettingManagement.Mvc.UI.Application`
* Web project:`Install-Package Abp.SettingManagement.Mvc.UI.Web`
1. Add `DependsOn` attributes
* Application project:
``` csharp
...
[DependsOn(typeof(AbpSettingManagementMvcUIApplicationModule))]
public class YourApplicationModule : AbpModule
{
...
}
```* Web project:
``` csharp
...
[DependsOn(typeof(AbpSettingManagementMvcUIWebModule))]
public class YourWebModule : AbpModule
{
...
}
```1. Configure auto api controller
* Web project:
``` csharp
...
public class YourWebModule : AbpModule
{
private void ConfigureAutoApiControllers()
{
Configure(options =>
{
...
options.ConventionalControllers.Create(typeof(AbpSettingManagementMvcUIApplicationModule).Assembly);
});
}
}```
1. Launch your ABP application, grant the following permissions to your user:
![permissions](./doc/images/permissions.png)
1. Refresh the browser then you can use "Administration > Settings" menu to see the settings!
# LocalizationThis module uses ABP's localization system to display the localization information of the settings.The languages currently supported are:
* en
* zh-Hans
The localization resource files are under `/Localization/AbpSettingManagementMvcUI` of the `Abp.SettingManagement.Mvc.UI.Domain.Shared` project.You can add more resource files to make this module support more languages. Welcome PRs :blush: .
> For ABP's localization system, please see [the document](https://docs.abp.io/en/abp/latest/Localization)# Setting Properties
* Grouping
* TypeTODO
# Setting renderers
* Adding new renderer
* Customizing existed renderersTODO
# Sample
TODO
OUTLINE:
* MyAbpApp.Domain.Shared
1. Add setting definitions: `MyAbpAppSettingDefinitionProvider`
1. Add localization resources: `/Localization/SettingResource`* MyAbpApp.Web
1. Configure localization option: `MyAbpAppWebModule.ConfigureLocalizationServices`
1. Configure auto api controller: `MyAbpAppWebModule.ConfigureAutoApiControllers`# Roadmap
- [ ] Add more languages
- [ ] Support setting providers