Add save/load configurations (#25)

This commit is contained in:
Bryan
2025-02-05 00:39:04 -06:00
committed by GitHub
parent b040aa8fc9
commit 8ce7e6ac50
6 changed files with 224 additions and 9 deletions

View File

@@ -28,10 +28,13 @@ class GenerateForm(forms.Form):
apiServer = forms.CharField(label="API Server", required=False)
key = forms.CharField(label="Key", required=False)
urlLink = forms.CharField(label="Custom URL for links", required=False)
downloadLink = forms.CharField(label="Custom URL for downloading new versions", required=False)
#Visual
iconfile = forms.FileField(label="Custom App Icon (in .png format)", required=False, widget=forms.FileInput(attrs={'accept': 'image/png'}))
logofile = forms.FileField(label="Custom App Logo (in .png format)", required=False, widget=forms.FileInput(attrs={'accept': 'image/png'}))
iconbase64 = forms.CharField(required=False)
logobase64 = forms.CharField(required=False)
theme = forms.ChoiceField(choices=[
('light', 'Light'),
('dark', 'Dark'),