mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
b1375a2992
Changes attribute names from enable_auto_*_contrast to force_*_contrast to better match existing UI terminology and differentiate from single theme contrast settings.
122 lines
3.5 KiB
JSON
122 lines
3.5 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$ref": "#/definitions/UserPreferences",
|
|
"definitions": {
|
|
"UserPreferences": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"time_zone": {
|
|
"type": ["string", "null"]
|
|
},
|
|
"theme": {
|
|
"type": "string",
|
|
"enum": ["light", "dark", "sync_with_os"]
|
|
},
|
|
"increase_theme_contrast": {
|
|
"type": "boolean"
|
|
},
|
|
"force_light_theme_contrast": {
|
|
"type": "boolean"
|
|
},
|
|
"force_dark_theme_contrast": {
|
|
"type": "boolean"
|
|
},
|
|
"disable_keyboard_shortcuts": {
|
|
"type": "boolean"
|
|
},
|
|
"warn_on_leaving_unsaved": {
|
|
"type": "boolean"
|
|
},
|
|
"comments_sorting": {
|
|
"type": "string",
|
|
"enum": ["asc", "desc"]
|
|
},
|
|
"auto_hide_popups": {
|
|
"type": "boolean"
|
|
},
|
|
"diff_type": {
|
|
"type": "string",
|
|
"enum": ["inline", "sbs"]
|
|
},
|
|
"workdays": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"maximum": 7
|
|
}
|
|
},
|
|
"daily_reminders": {
|
|
"$ref": "#/definitions/DailyReminders"
|
|
},
|
|
"immediate_reminders": {
|
|
"$ref": "#/definitions/ImmediateReminders"
|
|
},
|
|
"pause_reminders": {
|
|
"$ref": "#/definitions/PauseReminders"
|
|
}
|
|
},
|
|
"title": "UserPreferences"
|
|
},
|
|
"DailyReminders": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"times": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"format": "time"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"enabled",
|
|
"times"
|
|
],
|
|
"title": "DailyReminders"
|
|
},
|
|
"ImmediateReminders": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"mentioned": {
|
|
"type": "boolean"
|
|
},
|
|
"personal_reminder": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"mentioned"
|
|
],
|
|
"title": "ImmediateReminders"
|
|
},
|
|
"PauseReminders": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"first_day": {
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
"last_day": {
|
|
"type": "string",
|
|
"format": "date"
|
|
}
|
|
},
|
|
"required": [
|
|
"enabled"
|
|
],
|
|
"title": "PauseReminders"
|
|
}
|
|
}
|
|
}
|