mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 04:45:23 +08:00
Add Admin configuration docs
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: Configuring the Talk Admin
|
||||
permalink: /configuring-the-admin/
|
||||
class: configuration
|
||||
toc: true
|
||||
---
|
||||
|
||||
Using plugins and configuration variables, you can modify the way the Admin looks and how moderation works.
|
||||
|
||||
### Creating a Custom Moderation Queue
|
||||
|
||||
Talk can support custom pluggable mod queues, meaning you can write a plugin that has some logic and determines which comments should appear there. This works by adding a field modQueues` in the `index.js` of your client side plugin, like so:
|
||||
|
||||
```
|
||||
modQueues: {
|
||||
newQueueKey: {
|
||||
|
||||
// name
|
||||
name: 'My Queue Name',
|
||||
|
||||
// material design icon
|
||||
icon: 'star',
|
||||
|
||||
// Filter by tags
|
||||
tags: ['MY_TAG'],
|
||||
|
||||
// Filter by statuses
|
||||
statuses: ['NONE', 'PREMOD', 'ACCEPTED', 'REJECTED'],
|
||||
|
||||
// Filter by comment containing action_type
|
||||
action_type: 'FLAG',
|
||||
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
|
||||
So if we wanted to make a Featured queue, we could do this like so:
|
||||
|
||||
```
|
||||
modQueues: {
|
||||
featured: {
|
||||
tags: ['FEATURED'],
|
||||
icon: 'star',
|
||||
name: 'Featured',
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
For more information, see here: https://github.com/coralproject/talk/pull/849
|
||||
|
||||
### Flag Details
|
||||
|
||||
To show more detailed information about reporting/flags, you can enable `talk-plugin-flag-details`.
|
||||
@@ -0,0 +1,54 @@
|
||||
---
|
||||
title: Configuring the Talk Admin
|
||||
permalink: /configuring-the-admin//
|
||||
class: configuration
|
||||
toc: true
|
||||
---
|
||||
|
||||
Using plugins and configuration variables, you can modify the way the Admin looks and how moderation works.
|
||||
|
||||
### Creating a Custom Moderation Queue
|
||||
|
||||
Talk can support custom pluggable mod queues, meaning you can write a plugin that has some logic and determines which comments should appear there. This works by adding a field modQueues` in the `index.js` of your client side plugin, like so:
|
||||
|
||||
```
|
||||
modQueues: {
|
||||
newQueueKey: {
|
||||
|
||||
// name
|
||||
name: 'My Queue Name',
|
||||
|
||||
// material design icon
|
||||
icon: 'star',
|
||||
|
||||
// Filter by tags
|
||||
tags: ['MY_TAG'],
|
||||
|
||||
// Filter by statuses
|
||||
statuses: ['NONE', 'PREMOD', 'ACCEPTED', 'REJECTED'],
|
||||
|
||||
// Filter by comment containing action_type
|
||||
action_type: 'FLAG',
|
||||
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
|
||||
So if we wanted to make a Featured queue, we could do this like so:
|
||||
|
||||
```
|
||||
modQueues: {
|
||||
featured: {
|
||||
tags: ['FEATURED'],
|
||||
icon: 'star',
|
||||
name: 'Featured',
|
||||
},
|
||||
},
|
||||
```
|
||||
|
||||
For more information, see here: https://github.com/coralproject/talk/pull/849
|
||||
|
||||
### Flag Details
|
||||
|
||||
To show more detailed information about reporting/flags, you can enable `talk-plugin-flag-details`.
|
||||
Reference in New Issue
Block a user