AgileConfig-1.5. 5 Publishing – supports JSON editing mode

Time:2021-12-28

This update adds two new editing modes: JSON editing mode and text editing mode. In particular, JSON editing mode is a function we are looking forward to. Because everyone is used to Appsettings JSON configuration editing mode, so I naturally like JSON view. With JSON editing mode, you can directly edit the original Appsettings JSON is copied directly. Click Save to import it into agileconfig as it is. You can also continue to use advanced modes such as objects, nested objects, arrays, etc.

JSON view edit mode

Click the “Edit JSON” button in the upper right corner to pop up the JSON editing view. The edit box integrates a JSON code editormonaco-editorIt is convenient for users to quickly edit JSON configuration files. By the way, Monaco is an open source editor of Microsoft. You can know how awesome it is by looking at its official introduction: the Monaco editor is the code editor that powers vs code. Yes, yes, it is the editor of vs code.
AgileConfig-1.5. 5 Publishing - supports JSON editing mode
Now you can use Appsettings JSON to define the configuration file. For example, {X: {B: ‘a’}} objects are nested objects, such as arrays [‘1’, ‘2’, ‘3’].
be careful:

  1. If the JSON file is illegal, the editor will give a prompt and cannot be saved
  2. There is no problem when defining bool or integer types, but after saving, the system will convert them to text types by default, such as false =’false ‘, 1 =’1’. Because all JSON content conversion will be stored as key value pairs of text type. But don’t worry, it won’t affect your life Net program uses iconfiguration to read binding configuration.

AgileConfig-1.5. 5 Publishing - supports JSON editing mode
After editing the JSON file, click save. The system will compare the new and old configurations and automatically list which configuration items are “new”, which are “edited” and which are “deleted”.

Text view edit mode

In addition to the JSON mode editing view, this update also adds a text editing mode. Text editing mode is actually the key value pair editing mode of text type.
AgileConfig-1.5. 5 Publishing - supports JSON editing mode
Click the “edit text” button in the upper right corner to pop up the text editing view.
AgileConfig-1.5. 5 Publishing - supports JSON editing mode
The edit mode line represents a configuration item. Use the equal sign to split key value pairs.
be careful:

  1. Please edit strictly in the format of key = value
  2. Each line must have a = sign
  3. If there are multiple = signs, the program will be divided according to the first =

last

✨✨✨ GitHub address:https://github.com/dotnetcore/AgileConfigOpen source is not easy, welcome star ✨✨✨

Demo address:http://agileconfig_server.xbaby.xyz/Super administrator account: admin Password: 123456

tags

. Net configuration center agileconfig