finished plugin system base

This commit is contained in:
2024-04-15 18:17:12 +02:00
parent 31e96c80f4
commit 077054109f
51 changed files with 2218 additions and 2160 deletions

View File

@@ -0,0 +1,24 @@
{
"form_type": "form_demo",
"title": "Demo form",
"form": [
{
"label": "This is a simple textline",
"is_paragraph": false,
"placeholder": "...and it is required!",
"value": "",
"required": true,
"min_length": 0,
"max_length": 20
},
{
"label": "This is a paragraph",
"is_paragraph": true,
"placeholder": "...and it is not required!",
"value": "We already have some input here",
"required": false,
"min_length": 0,
"max_length": 1024
}
]
}

View File

@@ -0,0 +1,18 @@
{
"form_type": "template_general",
"title": "Form",
"form": [
{
"label": "Title",
"is_paragraph": false,
"required": true,
"max_length": 20
},
{
"label": "Text",
"is_paragraph": true,
"required": true,
"max_length": 1024
}
]
}

View File

@@ -0,0 +1,20 @@
{
"form_type": "template_ticket",
"title": "Submit your Ticket",
"mods_can_comment": true,
"form": [
{
"label": "Title",
"is_paragraph": false,
"required": true,
"max_length": 20
},
{
"label": "Ticket information",
"is_paragraph": true,
"placeholder": "Fill in for what you need help or have issues with and a moderator will reply.",
"required": true,
"max_length": 1024
}
]
}

View File

@@ -0,0 +1,15 @@
{
"form_type": "template_url",
"title": "Submit URL",
"form": [
{
"label": "URL",
"is_paragraph": false,
"placeholder": "https://",
"value": "",
"required": true,
"min_length": 0,
"max_length": 100
}
]
}