Skip to content

Commit

Permalink
wip: renamed txadmin log to system log
Browse files Browse the repository at this point in the history
  • Loading branch information
tabarra committed Dec 15, 2022
1 parent bea1e34 commit 0ea80f6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/components/WebServer/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default (config) => {
router.post('/advanced', requestAuth('api'), webRoutes.advanced_actions);

//Data routes
router.get('/txAdminLog', requestAuth('web'), webRoutes.txAdminLog);
router.get('/systemLog', requestAuth('web'), webRoutes.systemLog);
router.get('/serverLog', requestAuth('web'), webRoutes.serverLog);
router.get('/serverLog/partial', requestAuth('api'), webRoutes.serverLogPartial);
router.get('/status/:scope?', requestAuth('api'), webRoutes.status);
Expand Down
2 changes: 1 addition & 1 deletion core/webroutes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export { default as liveConsole } from './liveConsole.js';
export { default as resources } from './resources.js';
export { default as status } from './status.js';
export { default as chartData } from './chartData.js';
export { default as txAdminLog } from './txAdminLog.js';
export { default as systemLog } from './systemLog.js';
export { default as databaseActions } from './databaseActions';

export { default as auth_get } from './authentication/get';
Expand Down
6 changes: 3 additions & 3 deletions core/webroutes/txAdminLog.js → core/webroutes/systemLog.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const modulename = 'WebServer:txAdminLog';
const modulename = 'WebServer:SystemLog';
import dateFormat from 'dateformat';
import xssInstancer from '@core/extras/xss.js';
import logger from '@core/extras/console.js';
Expand All @@ -10,7 +10,7 @@ const xss = xssInstancer();
* Returns the output page containing the action log, and the console log
* @param {object} ctx
*/
export default async function txAdminLog(ctx) {
export default async function SystemLog(ctx) {
//Check permissions
if (!ctx.utils.hasPermission('txadmin.log.view')) {
return ctx.utils.render('main/message', {message: 'You don\'t have permission to view this page.'});
Expand All @@ -30,5 +30,5 @@ export default async function txAdminLog(ctx) {
const actionLog = xss(await globals.logger.admin.getRecentBuffer());

//Output
return ctx.utils.render('main/txAdminLog', {headerTitle: 'txAdmin Log', consoleLog, actionLog});
return ctx.utils.render('main/SystemLog', {headerTitle: 'System Log', consoleLog, actionLog});
};
File renamed without changes.
4 changes: 2 additions & 2 deletions web/parts/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@
</a>
</li>
<li class="c-sidebar-nav-item">
<a class="c-sidebar-nav-link" href="txAdminLog">
<a class="c-sidebar-nav-link" href="systemLog">
<svg class="c-sidebar-nav-icon">
<use href="img/coreui_icons.svg#cil-notes"></use>
</svg> txAdmin Log
</svg> System Logs
</a>
</li>
<li class="c-sidebar-nav-item">
Expand Down

0 comments on commit 0ea80f6

Please sign in to comment.