Refactor acme.sh dns providers

- updated chakra and typescript
- added locales for dns provider configs
This commit is contained in:
Jamie Curnow
2023-01-12 16:25:43 +10:00
parent 1d5d3ecd7a
commit 5d3bc0fabd
57 changed files with 2204 additions and 2161 deletions

View File

@ -1,45 +1,25 @@
package dnsproviders
const dnsPodCnSchema = `
{
"type": "object",
"required": [
"id",
"api_key"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"api_key": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSDp() Provider {
return Provider{
AcmeshName: "dns_dp",
Schema: dnsPodCnSchema,
Fields: []providerField{
{
Name: "ID",
Type: "text",
MetaKey: "id",
EnvKey: "DP_Id",
IsRequired: true,
Title: "dns_dp",
Type: "object",
AdditionalProperties: false,
Required: []string{
"DP_Id",
"DP_Key",
},
Properties: map[string]providerField{
"DP_Id": {
Title: "id",
Type: "string",
MinLength: 1,
},
{
Name: "Key",
Type: "password",
MetaKey: "api_key",
EnvKey: "DP_Key",
IsRequired: true,
IsSecret: true,
"DP_Key": {
Title: "key",
Type: "string",
MinLength: 1,
IsSecret: true,
},
},
}