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