mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-24 16:29:51 +01:00
fix: spec
This commit is contained in:
@@ -47,28 +47,36 @@ get:
|
|||||||
items:
|
items:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
bgColor:
|
|
||||||
type: string
|
|
||||||
cid:
|
cid:
|
||||||
type: number
|
type: number
|
||||||
color:
|
description: A category identifier
|
||||||
type: string
|
name:
|
||||||
disabledClass:
|
|
||||||
nullable: true
|
|
||||||
icon:
|
|
||||||
type: string
|
|
||||||
imageClass:
|
|
||||||
type: string
|
type: string
|
||||||
level:
|
level:
|
||||||
type: string
|
type: string
|
||||||
link:
|
icon:
|
||||||
type: string
|
|
||||||
name:
|
|
||||||
type: string
|
type: string
|
||||||
parentCid:
|
parentCid:
|
||||||
type: number
|
type: number
|
||||||
slug:
|
description: The category identifier for the category that is the immediate
|
||||||
|
ancestor of the current category
|
||||||
|
color:
|
||||||
type: string
|
type: string
|
||||||
|
bgColor:
|
||||||
|
type: string
|
||||||
|
selected:
|
||||||
|
type: boolean
|
||||||
|
imageClass:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- bgColor
|
||||||
|
- cid
|
||||||
|
- color
|
||||||
|
- icon
|
||||||
|
- imageClass
|
||||||
|
- level
|
||||||
|
- name
|
||||||
|
- parentCid
|
||||||
allCategoriesUrl:
|
allCategoriesUrl:
|
||||||
type: string
|
type: string
|
||||||
selectedCategory:
|
selectedCategory:
|
||||||
|
|||||||
@@ -253,6 +253,16 @@ get:
|
|||||||
type: string
|
type: string
|
||||||
allCategoriesUrl:
|
allCategoriesUrl:
|
||||||
type: string
|
type: string
|
||||||
|
selectedCategory:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
icon:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
bgColor:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
selectedCids:
|
selectedCids:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ async function getCategoryData(cids, uid, selectedCid, states, privilege) {
|
|||||||
} else if (selectedCategory.length === 1) {
|
} else if (selectedCategory.length === 1) {
|
||||||
selectedCategory = selectedCategory[0];
|
selectedCategory = selectedCategory[0];
|
||||||
} else {
|
} else {
|
||||||
selectedCategory = undefined;
|
selectedCategory = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ recentController.getData = async function (req, url, sort) {
|
|||||||
data.showTopicTools = isPrivileged;
|
data.showTopicTools = isPrivileged;
|
||||||
data.categories = categoryData.categories;
|
data.categories = categoryData.categories;
|
||||||
data.allCategoriesUrl = url + helpers.buildQueryString(req.query, 'cid', '');
|
data.allCategoriesUrl = url + helpers.buildQueryString(req.query, 'cid', '');
|
||||||
data.selectedCategory = categoryData.selectedCategory || null;
|
data.selectedCategory = categoryData.selectedCategory;
|
||||||
data.selectedCids = categoryData.selectedCids;
|
data.selectedCids = categoryData.selectedCids;
|
||||||
data['feeds:disableRSS'] = meta.config['feeds:disableRSS'] || 0;
|
data['feeds:disableRSS'] = meta.config['feeds:disableRSS'] || 0;
|
||||||
data.rssFeedUrl = nconf.get('relative_path') + '/' + url + '.rss';
|
data.rssFeedUrl = nconf.get('relative_path') + '/' + url + '.rss';
|
||||||
|
|||||||
Reference in New Issue
Block a user