|
@@ -60,6 +60,8 @@ const router = express.Router();
|
|
|
* type: boolean
|
|
* type: boolean
|
|
|
* isSearchScopeChildrenAsDefault:
|
|
* isSearchScopeChildrenAsDefault:
|
|
|
* type: boolean
|
|
* type: boolean
|
|
|
|
|
+ * isEnabledMarp:
|
|
|
|
|
+ * type: boolean
|
|
|
* CustomizeHighlight:
|
|
* CustomizeHighlight:
|
|
|
* description: CustomizeHighlight
|
|
* description: CustomizeHighlight
|
|
|
* type: object
|
|
* type: object
|
|
@@ -124,6 +126,7 @@ module.exports = (crowi) => {
|
|
|
body('isEnabledStaleNotification').isBoolean(),
|
|
body('isEnabledStaleNotification').isBoolean(),
|
|
|
body('isAllReplyShown').isBoolean(),
|
|
body('isAllReplyShown').isBoolean(),
|
|
|
body('isSearchScopeChildrenAsDefault').isBoolean(),
|
|
body('isSearchScopeChildrenAsDefault').isBoolean(),
|
|
|
|
|
+ body('isEnabledMarp').isBoolean(),
|
|
|
],
|
|
],
|
|
|
customizeTitle: [
|
|
customizeTitle: [
|
|
|
body('customizeTitle').isString(),
|
|
body('customizeTitle').isString(),
|
|
@@ -180,6 +183,7 @@ module.exports = (crowi) => {
|
|
|
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'),
|
|
|
isSearchScopeChildrenAsDefault: await crowi.configManager.getConfig('crowi', 'customize:isSearchScopeChildrenAsDefault'),
|
|
isSearchScopeChildrenAsDefault: await crowi.configManager.getConfig('crowi', 'customize:isSearchScopeChildrenAsDefault'),
|
|
|
|
|
+ isEnabledMarp: await crowi.configManager.getConfig('crowi', 'customize:isEnabledMarp'),
|
|
|
styleName: await crowi.configManager.getConfig('crowi', 'customize:highlightJsStyle'),
|
|
styleName: await crowi.configManager.getConfig('crowi', 'customize:highlightJsStyle'),
|
|
|
styleBorder: await crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
|
|
styleBorder: await crowi.configManager.getConfig('crowi', 'customize:highlightJsStyleBorder'),
|
|
|
customizeTitle: await crowi.configManager.getConfig('crowi', 'customize:title'),
|
|
customizeTitle: await crowi.configManager.getConfig('crowi', 'customize:title'),
|
|
@@ -406,6 +410,7 @@ module.exports = (crowi) => {
|
|
|
'customize:isEnabledStaleNotification': req.body.isEnabledStaleNotification,
|
|
'customize:isEnabledStaleNotification': req.body.isEnabledStaleNotification,
|
|
|
'customize:isAllReplyShown': req.body.isAllReplyShown,
|
|
'customize:isAllReplyShown': req.body.isAllReplyShown,
|
|
|
'customize:isSearchScopeChildrenAsDefault': req.body.isSearchScopeChildrenAsDefault,
|
|
'customize:isSearchScopeChildrenAsDefault': req.body.isSearchScopeChildrenAsDefault,
|
|
|
|
|
+ 'customize:isEnabledMarp': req.body.isEnabledMarp,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -420,6 +425,7 @@ module.exports = (crowi) => {
|
|
|
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'),
|
|
|
isSearchScopeChildrenAsDefault: await crowi.configManager.getConfig('crowi', 'customize:isSearchScopeChildrenAsDefault'),
|
|
isSearchScopeChildrenAsDefault: await crowi.configManager.getConfig('crowi', 'customize:isSearchScopeChildrenAsDefault'),
|
|
|
|
|
+ isEnabledMarp: await crowi.configManager.getConfig('crowi', 'customize:isEnabledMarp'),
|
|
|
};
|
|
};
|
|
|
const parameters = { action: SupportedAction.ACTION_ADMIN_FUNCTION_UPDATE };
|
|
const parameters = { action: SupportedAction.ACTION_ADMIN_FUNCTION_UPDATE };
|
|
|
activityEvent.emit('update', res.locals.activity._id, parameters);
|
|
activityEvent.emit('update', res.locals.activity._id, parameters);
|