|
@@ -37,7 +37,9 @@ const ErrorV3 = require('../../models/vo/error-apiv3');
|
|
|
* type: boolean
|
|
* type: boolean
|
|
|
* isEnabledAttachTitleHeader:
|
|
* isEnabledAttachTitleHeader:
|
|
|
* type: boolean
|
|
* type: boolean
|
|
|
- * recentCreatedLimit:
|
|
|
|
|
|
|
+ * pageLimitationS:
|
|
|
|
|
+ * type: number
|
|
|
|
|
+ * pageLimitationM:
|
|
|
* type: number
|
|
* type: number
|
|
|
* isEnabledStaleNotification:
|
|
* isEnabledStaleNotification:
|
|
|
* type: boolean
|
|
* type: boolean
|
|
@@ -99,7 +101,10 @@ module.exports = (crowi) => {
|
|
|
body('isEnabledTimeline').isBoolean(),
|
|
body('isEnabledTimeline').isBoolean(),
|
|
|
body('isSavedStatesOfTabChanges').isBoolean(),
|
|
body('isSavedStatesOfTabChanges').isBoolean(),
|
|
|
body('isEnabledAttachTitleHeader').isBoolean(),
|
|
body('isEnabledAttachTitleHeader').isBoolean(),
|
|
|
- body('recentCreatedLimit').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
|
|
|
|
+ body('pageLimitationS').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
|
|
+ body('pageLimitationM').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
|
|
+ body('pageLimitationL').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
|
|
+ body('pageLimitationXL').isInt().isInt({ min: 1, max: 1000 }),
|
|
|
body('isEnabledStaleNotification').isBoolean(),
|
|
body('isEnabledStaleNotification').isBoolean(),
|
|
|
body('isAllReplyShown').isBoolean(),
|
|
body('isAllReplyShown').isBoolean(),
|
|
|
],
|
|
],
|
|
@@ -151,7 +156,10 @@ module.exports = (crowi) => {
|
|
|
isEnabledTimeline: await crowi.configManager.getConfig('crowi', 'customize:isEnabledTimeline'),
|
|
isEnabledTimeline: await crowi.configManager.getConfig('crowi', 'customize:isEnabledTimeline'),
|
|
|
isSavedStatesOfTabChanges: await crowi.configManager.getConfig('crowi', 'customize:isSavedStatesOfTabChanges'),
|
|
isSavedStatesOfTabChanges: await crowi.configManager.getConfig('crowi', 'customize:isSavedStatesOfTabChanges'),
|
|
|
isEnabledAttachTitleHeader: await crowi.configManager.getConfig('crowi', 'customize:isEnabledAttachTitleHeader'),
|
|
isEnabledAttachTitleHeader: await crowi.configManager.getConfig('crowi', 'customize:isEnabledAttachTitleHeader'),
|
|
|
- recentCreatedLimit: await crowi.configManager.getConfig('crowi', 'customize:showRecentCreatedNumber'),
|
|
|
|
|
|
|
+ pageLimitationS: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationS') || 20,
|
|
|
|
|
+ pageLimitationM: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationM') || 10,
|
|
|
|
|
+ pageLimitationL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationL') || 50,
|
|
|
|
|
+ pageLimitationXL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationXL') || 20,
|
|
|
isEnabledStaleNotification: await crowi.configManager.getConfig('crowi', 'customize:isEnabledStaleNotification'),
|
|
isEnabledStaleNotification: await crowi.configManager.getConfig('crowi', 'customize:isEnabledStaleNotification'),
|
|
|
isAllReplyShown: await crowi.configManager.getConfig('crowi', 'customize:isAllReplyShown'),
|
|
isAllReplyShown: await crowi.configManager.getConfig('crowi', 'customize:isAllReplyShown'),
|
|
|
styleName: await crowi.configManager.getConfig('crowi', 'customize:highlightJsStyle'),
|
|
styleName: await crowi.configManager.getConfig('crowi', 'customize:highlightJsStyle'),
|
|
@@ -273,7 +281,10 @@ module.exports = (crowi) => {
|
|
|
'customize:isEnabledTimeline': req.body.isEnabledTimeline,
|
|
'customize:isEnabledTimeline': req.body.isEnabledTimeline,
|
|
|
'customize:isSavedStatesOfTabChanges': req.body.isSavedStatesOfTabChanges,
|
|
'customize:isSavedStatesOfTabChanges': req.body.isSavedStatesOfTabChanges,
|
|
|
'customize:isEnabledAttachTitleHeader': req.body.isEnabledAttachTitleHeader,
|
|
'customize:isEnabledAttachTitleHeader': req.body.isEnabledAttachTitleHeader,
|
|
|
- 'customize:showRecentCreatedNumber': req.body.recentCreatedLimit,
|
|
|
|
|
|
|
+ 'customize:showPageLimitationS': req.body.pageLimitationS,
|
|
|
|
|
+ 'customize:showPageLimitationM': req.body.pageLimitationM,
|
|
|
|
|
+ 'customize:showPageLimitationL': req.body.pageLimitationL,
|
|
|
|
|
+ 'customize:showPageLimitationXL': req.body.pageLimitationXL,
|
|
|
'customize:isEnabledStaleNotification': req.body.isEnabledStaleNotification,
|
|
'customize:isEnabledStaleNotification': req.body.isEnabledStaleNotification,
|
|
|
'customize:isAllReplyShown': req.body.isAllReplyShown,
|
|
'customize:isAllReplyShown': req.body.isAllReplyShown,
|
|
|
};
|
|
};
|
|
@@ -284,7 +295,10 @@ module.exports = (crowi) => {
|
|
|
isEnabledTimeline: await crowi.configManager.getConfig('crowi', 'customize:isEnabledTimeline'),
|
|
isEnabledTimeline: await crowi.configManager.getConfig('crowi', 'customize:isEnabledTimeline'),
|
|
|
isSavedStatesOfTabChanges: await crowi.configManager.getConfig('crowi', 'customize:isSavedStatesOfTabChanges'),
|
|
isSavedStatesOfTabChanges: await crowi.configManager.getConfig('crowi', 'customize:isSavedStatesOfTabChanges'),
|
|
|
isEnabledAttachTitleHeader: await crowi.configManager.getConfig('crowi', 'customize:isEnabledAttachTitleHeader'),
|
|
isEnabledAttachTitleHeader: await crowi.configManager.getConfig('crowi', 'customize:isEnabledAttachTitleHeader'),
|
|
|
- recentCreatedLimit: await crowi.configManager.getConfig('crowi', 'customize:showRecentCreatedNumber'),
|
|
|
|
|
|
|
+ pageLimitationS: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationS'),
|
|
|
|
|
+ pageLimitationM: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationM'),
|
|
|
|
|
+ pageLimitationL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationL'),
|
|
|
|
|
+ pageLimitationXL: await crowi.configManager.getConfig('crowi', 'customize:showPageLimitationXL'),
|
|
|
isEnabledStaleNotification: await crowi.configManager.getConfig('crowi', 'customize:isEnabledStaleNotification'),
|
|
isEnabledStaleNotification: await crowi.configManager.getConfig('crowi', 'customize:isEnabledStaleNotification'),
|
|
|
isAllReplyShown: await crowi.configManager.getConfig('crowi', 'customize:isAllReplyShown'),
|
|
isAllReplyShown: await crowi.configManager.getConfig('crowi', 'customize:isAllReplyShown'),
|
|
|
};
|
|
};
|