Light/Dark theming

This commit is contained in:
2026-05-18 21:00:38 +02:00
parent ecc799ae7f
commit 66607e51eb
32 changed files with 968 additions and 207 deletions

View File

@@ -1,4 +1,4 @@
{
{
"openapi": "3.0.1",
"info": {
"title": "RpgRoller API",
@@ -156,6 +156,46 @@
}
}
},
"/api/me/theme": {
"put": {
"operationId": "updateThemePreference",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UpdateThemePreferenceRequest"
}
}
}
},
"responses": {
"200": {
"description": "Updated current user.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UserSummary"
}
}
}
},
"400": {
"description": "Validation error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
"description": "Unauthorized."
}
}
}
},
"/api/campaigns": {
"get": {
"operationId": "getCampaigns",
@@ -701,12 +741,27 @@
},
"displayName": {
"type": "string"
},
"roles": {
"type": "array",
"items": {
"type": "string"
}
},
"themePreference": {
"type": "string",
"nullable": true,
"enum": [
"light",
"dark"
]
}
},
"required": [
"id",
"username",
"displayName"
"displayName",
"roles"
]
},
"MeResponse": {
@@ -730,6 +785,21 @@
"user"
]
},
"UpdateThemePreferenceRequest": {
"type": "object",
"properties": {
"themePreference": {
"type": "string",
"enum": [
"light",
"dark"
]
}
},
"required": [
"themePreference"
]
},
"RulesetDefinition": {
"type": "object",
"properties": {