193 lines
6.9 KiB
JSON
193 lines
6.9 KiB
JSON
{
|
|
"target_layout": "admin_user_detail",
|
|
"injections": [
|
|
{
|
|
"target_id": "user_detail_tabs",
|
|
"position": "inject_props",
|
|
"props": {
|
|
"tabs": {
|
|
"_append": [
|
|
{
|
|
"id": "ext_notification",
|
|
"label": "$t:sirsoft-board.admin.users.form.sections.notification_settings",
|
|
"iconName": "cubes"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"target_id": "extension_tab_content",
|
|
"position": "append_child",
|
|
"components": [
|
|
{
|
|
"id": "ext_notification_content",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"id": "ext_notification",
|
|
"className": "scroll-mt-32"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "section_notification_settings",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "admin-card"
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "flex-between mb-4"
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "flex-center gap-2"
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Icon",
|
|
"props": {
|
|
"name": "bell",
|
|
"className": "text-secondary w-5 h-5"
|
|
}
|
|
},
|
|
{
|
|
"type": "basic",
|
|
"name": "H3",
|
|
"props": {
|
|
"className": "section-heading"
|
|
},
|
|
"text": "$t:sirsoft-board.admin.users.form.sections.notification_settings"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "composite",
|
|
"name": "ExtensionBadge",
|
|
"props": {
|
|
"type": "module",
|
|
"identifier": "sirsoft-board",
|
|
"installedModules": "{{_global.installedModules}}"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "grid-2col-responsive"
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "field_notify_post_complete",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Label",
|
|
"props": {
|
|
"className": "text-label-subtle block font-medium mb-1"
|
|
},
|
|
"text": "$t:sirsoft-board.admin.users.form.notifications.post_complete"
|
|
},
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "text-primary text-sm"
|
|
},
|
|
"text": "{{user?.data?.notify_post_complete ? '$t:admin.users.detail.enabled' : '$t:admin.users.detail.disabled'}}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "field_notify_post_reply",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Label",
|
|
"props": {
|
|
"className": "text-label-subtle block font-medium mb-1"
|
|
},
|
|
"text": "$t:sirsoft-board.admin.users.form.notifications.post_reply"
|
|
},
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "text-primary text-sm"
|
|
},
|
|
"text": "{{user?.data?.notify_post_reply ? '$t:admin.users.detail.enabled' : '$t:admin.users.detail.disabled'}}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "field_notify_comment",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Label",
|
|
"props": {
|
|
"className": "text-label-subtle block font-medium mb-1"
|
|
},
|
|
"text": "$t:sirsoft-board.admin.users.form.notifications.comment"
|
|
},
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "text-primary text-sm"
|
|
},
|
|
"text": "{{user?.data?.notify_comment ? '$t:admin.users.detail.enabled' : '$t:admin.users.detail.disabled'}}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "field_notify_reply_comment",
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"children": [
|
|
{
|
|
"type": "basic",
|
|
"name": "Label",
|
|
"props": {
|
|
"className": "text-label-subtle block font-medium mb-1"
|
|
},
|
|
"text": "$t:sirsoft-board.admin.users.form.notifications.reply_comment"
|
|
},
|
|
{
|
|
"type": "basic",
|
|
"name": "Div",
|
|
"props": {
|
|
"className": "text-primary text-sm"
|
|
},
|
|
"text": "{{user?.data?.notify_reply_comment ? '$t:admin.users.detail.enabled' : '$t:admin.users.detail.disabled'}}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"priority": 300
|
|
}
|