some more acp pages

isekai-main
Barış Soner Uşaklı 2 years ago
parent 56ac610b6f
commit cf13dd8fbb

@ -1,4 +1,5 @@
{ {
"cache": "Cache",
"post-cache": "Post Cache", "post-cache": "Post Cache",
"group-cache": "Group Cache", "group-cache": "Group Cache",
"local-cache": "Local Cache", "local-cache": "Local Cache",

@ -1,4 +1,5 @@
{ {
"errors": "Errors",
"figure-x": "Figure %1", "figure-x": "Figure %1",
"error-events-per-day": "<code>%1</code> events per day", "error-events-per-day": "<code>%1</code> events per day",
"error.404": "404 Not Found", "error.404": "404 Not Found",

@ -1,4 +1,5 @@
{ {
"logger": "Logger",
"logger-settings": "Logger Settings", "logger-settings": "Logger Settings",
"description": "By enabling the check boxes, you will receive logs to your terminal. If you specify a path, logs will then be saved to a file instead. HTTP logging is useful for collecting statistics about who, when, and what people access on your forum. In addition to logging HTTP requests, we can also log socket.io events. Socket.io logging, in combination with redis-cli monitor, can be very helpful for learning NodeBB's internals.", "description": "By enabling the check boxes, you will receive logs to your terminal. If you specify a path, logs will then be saved to a file instead. HTTP logging is useful for collecting statistics about who, when, and what people access on your forum. In addition to logging HTTP requests, we can also log socket.io events. Socket.io logging, in combination with redis-cli monitor, can be very helpful for learning NodeBB's internals.",
"explanation": "Simply check/uncheck the logging settings to enable or disable logging on the fly. No restart needed.", "explanation": "Simply check/uncheck the logging settings to enable or disable logging on the fly. No restart needed.",

@ -1,7 +1,16 @@
<div class="row post-cache settings px-lg-4"> <div class="post-cache settings d-flex flex-column gap-2 px-lg-4">
<div class="col-lg-12"> <div class="d-flex border-bottom py-2 m-0 sticky-top acp-page-main-header align-items-center justify-content-between flex-wrap gap-2">
<div class="row"> <div class="">
<h4 class="fw-bold tracking-tight mb-0">[[admin/advanced/cache:cache]]</h4>
</div>
<div class="d-flex align-items-center">
<button id="save" class="btn btn-primary btn-sm fw-semibold ff-secondary w-100 text-center text-nowrap">[[admin/admin:save-changes]]</button>
</div>
</div>
<div class="row px-2">
{{{each caches}}} {{{each caches}}}
<div class="col-xl-3"> <div class="col-xl-3">
<div class="card"> <div class="card">
@ -49,7 +58,5 @@
</div> </div>
{{{end}}} {{{end}}}
</div> </div>
</div>
</div> </div>
<!-- IMPORT admin/partials/save_button.tpl -->

@ -1,6 +1,20 @@
<div class="px-lg-4"> <div class="errors d-flex flex-column gap-2 px-lg-4">
<div class="row"> <div class="d-flex border-bottom py-2 m-0 sticky-top acp-page-main-header align-items-center justify-content-between flex-wrap gap-2">
<div class="col-lg-9"> <div class="">
<h4 class="fw-bold tracking-tight mb-0">[[admin/advanced/errors:errors]]</h4>
</div>
<div class="d-flex align-items-center gap-1">
<a class="btn btn-sm btn-light text-nowrap" target="_top" href="{config.relative_path}/admin/advanced/errors/export">
<i class="fa fa-download text-primary"></i> [[admin/advanced/errors:export-error-log]]
</a>
<button class="btn btn-sm btn-light text-nowrap" data-action="clear">
<i class="fa fa-trash text-danger"></i> [[admin/advanced/errors:clear-error-log]]
</button>
</div>
</div>
<div class="px-2">
<div class="row"> <div class="row">
<div class="col-sm-6 text-center"> <div class="col-sm-6 text-center">
<div class="card"> <div class="card">
@ -25,26 +39,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<div class="col-lg-3 acp-sidebar">
<div class="card">
<div class="card-header">[[admin/advanced/errors:manage-error-log]]</div>
<div class="card-body">
<div class="d-grid gap-2" role="group">
<a class="btn btn-info" target="_top" href="{config.relative_path}/admin/advanced/errors/export">
<i class="fa fa-download"></i> [[admin/advanced/errors:export-error-log]]
</a>
<button class="btn btn-danger" data-action="clear">
<i class="fa fa-trash"></i> [[admin/advanced/errors:clear-error-log]]
</button>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<i class="fa fa-exclamation-triangle"></i> [[admin/advanced/errors:error.404]] <i class="fa fa-exclamation-triangle"></i> [[admin/advanced/errors:error.404]]
@ -54,13 +49,13 @@
<table class="table text-sm"> <table class="table text-sm">
<thead> <thead>
<th>[[admin/advanced/errors:route]]</th> <th>[[admin/advanced/errors:route]]</th>
<th>[[admin/advanced/errors:count]]</th> <th class="text-end">[[admin/advanced/errors:count]]</th>
</thead> </thead>
<tbody> <tbody>
{{{ each not-found }}} {{{ each not-found }}}
<tr> <tr>
<td>{./value}</td> <td>{./value}</td>
<td>{./score}</td> <td class="text-end">{./score}</td>
</tr> </tr>
{{{ end }}} {{{ end }}}
{{{ if !not-found.length }}} {{{ if !not-found.length }}}
@ -78,5 +73,4 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>

@ -54,18 +54,14 @@
<label class="form-label" for="perPage">[[admin/advanced/events:filter-perPage]]</label> <label class="form-label" for="perPage">[[admin/advanced/events:filter-perPage]]</label>
<input type="text" id="perPage" name="perPage" value="{query.perPage}" class="form-control" /> <input type="text" id="perPage" name="perPage" value="{query.perPage}" class="form-control" />
</div> </div>
<div class="d-grid"> <div class="d-grid gap-1">
<button type="submit" class="btn btn-primary" id="apply">[[admin/advanced/events:filters-apply]]</button> <button type="submit" class="btn btn-sm btn-light" id="apply"><i class="fa fa-filter text-primary"></i> [[admin/advanced/events:filters-apply]]</button>
<button class="btn btn-sm btn-light" data-action="clear">
<i class="fa fa-trash text-danger"></i> [[admin/advanced/events:delete-events]]
</button>
</div> </div>
</form> </form>
</div> </div>
</div> </div>
<div class="card">
<div class="card-body d-grid">
<button class="btn btn-danger" data-action="clear">
<i class="fa fa-eraser"></i> [[admin/advanced/events:delete-events]]
</button>
</div>
</div>
</div> </div>
</div> </div>

@ -1,23 +1,21 @@
<div class="row logs px-lg-4"> <div class="logs settings d-flex flex-column gap-2 px-lg-4">
<div class="col-lg-9"> <div class="d-flex border-bottom py-2 m-0 sticky-top acp-page-main-header align-items-center justify-content-between flex-wrap gap-2">
<div class="card"> <div class="">
<div class="card-header"><i class="fa fa-file-text-o"></i> [[admin/advanced/logs:logs]]</div> <h4 class="fw-bold tracking-tight mb-0">[[admin/advanced/logs:logs]]</h4>
<div class="card-body">
<pre style="height: 600px;">{data}</pre>
</div>
</div>
</div> </div>
<div class="col-lg-3 acp-sidebar"> <div class="d-flex align-items-center gap-1">
<div class="card"> <button class="btn btn-sm btn-light text-nowrap" data-action="clear">
<div class="card-header">[[admin/advanced/logs:control-panel]]</div> <i class="fa fa-trash text-danger"></i> [[admin/advanced/logs:clear]]
<div class="card-body d-grid gap-2">
<button class="btn btn-primary" data-action="reload">
<i class="fa fa-refresh"></i> [[admin/advanced/logs:reload]]
</button> </button>
<button class="btn btn-warning" data-action="clear"> <button class="btn btn-sm btn-light text-nowrap" data-action="reload">
<i class="fa fa-eraser"></i> [[admin/advanced/logs:clear]] <i class="fa fa-refresh text-primary"></i> [[admin/advanced/logs:reload]]
</button> </button>
</div> </div>
</div> </div>
<div class="card">
<div class="card-body">
<pre style="height: 600px;">{data}</pre>
</div>
</div> </div>
</div> </div>

@ -1,7 +1,13 @@
<div class="row logger settings px-lg-4"> <div class="logger settings d-flex flex-column gap-2 px-lg-4">
<div class="col-lg-12"> <div class="d-flex border-bottom py-2 m-0 sticky-top acp-page-main-header align-items-center justify-content-between flex-wrap gap-2">
<div class="card"> <div class="">
<div class="card-header">[[admin/development/logger:logger-settings]]</div> <h4 class="fw-bold tracking-tight mb-0">[[admin/development/logger:logger]]</h4>
</div>
<div class="d-flex align-items-center">
<button id="save" class="btn btn-primary btn-sm fw-semibold ff-secondary w-100 text-center text-nowrap">[[admin/admin:save-changes]]</button>
</div>
</div>
<div class="card-body"> <div class="card-body">
<p> <p>
[[admin/development/logger:description]] [[admin/development/logger:description]]
@ -13,24 +19,19 @@
<br/> <br/>
<form> <form>
<label> <div class="form-check form-switch mb-3">
<input type="checkbox" data-field="loggerStatus"> <strong>[[admin/development/logger:enable-http]]</strong> <input class="form-check-input" type="checkbox" data-field="loggerStatus">
</label> <label class="form-check-label">[[admin/development/logger:enable-http]]</label>
<br/> </div>
<br/>
<label> <div class="form-check form-switch mb-3">
<input type="checkbox" data-field="loggerIOStatus"> <strong>[[admin/development/logger:enable-socket]]</strong> <input class="form-check-input" type="checkbox" data-field="loggerIOStatus">
</label> <label class="form-check-label">[[admin/development/logger:enable-socket]]</label>
<br/> </div>
<br/>
<label for="loggerPath">[[admin/development/logger:file-path]]</label> <label class="form-label" for="loggerPath">[[admin/development/logger:file-path]]</label>
<input id="loggerPath" class="form-control" type="text" placeholder="[[admin/development/logger:file-path-placeholder]]" data-field="loggerPath" /> <input id="loggerPath" class="form-control" type="text" placeholder="[[admin/development/logger:file-path-placeholder]]" data-field="loggerPath" />
</form> </form>
</div> </div>
</div>
</div>
</div> </div>
<!-- IMPORT admin/partials/save_button.tpl -->

Loading…
Cancel
Save