[{
    "step_title": "Folder configuration",
    "items": [{
        "type": "combobox",
        "desc": "Please select a volume for the shared folder",
        "subitems": [{
            "key": "wizard_volume",
            "desc": "volume name",
            "displayField": "display_name",
            "valueField": "volume_path",
            "editable": false,
            "mode": "remote",
            "api_store": {
              "api": "SYNO.Core.Storage.Volume",
              "method": "list",
              "version": 1,
              "baseParams": {
                "limit": -1,
                "offset": 0,
                "location": "internal"
              },
              "root": "volumes",
              "idProperty": "volume_path",
              "fields": [
                "display_name",
                "volume_path"
              ]
            },
            "validator": {
              "fn": "{console.log(arguments);return true;}"
            }
          }
        ]
      }, {
        "type": "textfield",
        "desc": "Shared folder (using the volume chosen above)",
        "subitems": [{
            "key": "wizard_shared_folder",
            "desc": "Shared folder",
            "defaultValue": "google-fonts",
            "validator": {
              "allowBlank": true,
              "regex": {
                "expr": "/^[\\w _-]+$/",
                "errorText": "Subdirectories are not supported."
              }
            }
          }
        ]
      }, {
        "type": "textfield",
        "desc": "Subfolder to install the fonts in the shared folder (empty value and subfolders allowed).",
        "subitems": [{
            "key": "wizard_folder_name",
            "desc": "Subfolder for the fonts",
            "defaultValue": "fonts",
            "validator": {
              "allowBlank": true
            }
          }
        ]
      }, {
        "desc": "To give applications access to the Google Fonts in the shared folder, please read <a target=\"_blank\" href=\"https://docs.synocommunity.com/user-guide/permissions/\">Permission Management</a>."
      }
    ]
  }
]
