@if (plugin) {
{{ plugin.icon }}

{{ plugin.titleKey ? (plugin.titleKey | translate) : plugin.title }}

v{{ plugin.version }} {{ plugin.enabled ? ('active' | translate) : ('inactive' | translate) }}

{{ plugin.descriptionKey ? (plugin.descriptionKey | translate) : plugin.description }}

{{ 'pluginSettingsAuthor' | translate }}: {{ plugin.author }}
@if (plugin.enabled) { @if (plugin.recordsEndpoint || (plugin.commands && plugin.commands.length > 0)) {
@if (plugin.commands && plugin.commands.length > 0) { } @if (plugin.recordsEndpoint) { }
} @if (activeSubTab === 'settings') {
tune

{{ 'pluginSettingsParamsHeading' | translate }}

Ajusta el comportamiento y las opciones de ejecución. Los cambios se aplicarán inmediatamente a las nuevas órdenes enviadas a los puestos.

@for (field of schema; track field.key) {
@if (field.description) { {{ field.descriptionKey ? (field.descriptionKey | translate) : field.description }} }
@switch (field.type) { @case ('select') { @for (opt of field.options; track opt) { {{ opt }} } } @case ('checkbox') {
{{ configData[field.key] ? 'Habilitado' : 'Deshabilitado' }}
} @case ('number') { } @case ('text') { } @case ('textarea') {
PowerShell
@if (field.action) { }
@if (!isEditingScript(field.key)) {
@for (line of getScriptLines(configData[field.key]); track $index) {
{{ $index + 1 }}
}
} @else {
}
} }
}
} @else if (activeSubTab === 'permissions' && plugin.commands && plugin.commands.length > 0) {
admin_panel_settings

{{ 'pluginSettingsRolesHeading' | translate }}

{{ 'pluginSettingsRolesDesc' | translate }}

@for (role of availableRoles; track role.key) { } @for (cmd of plugin.commands; track cmd.slug) { @for (role of availableRoles; track role.key) { } }
{{ 'pluginSettingsColCommand' | translate }}
{{ role.name }} {{ role.shortCode || role.key }}
{{ cmd.icon || 'play_circle' }}
{{ getCommandLabel(cmd) }} {{ cmd.slug }}
} @else if (activeSubTab === 'records' && plugin.recordsEndpoint) {
history_edu

Historial de Registros y Actividad

Registro cronológico de sesiones y eventos gestionados por {{ plugin.titleKey ? (plugin.titleKey | translate) : plugin.title }}

@if (loadingRecords) {

Cargando registros...

} @else if (records.length === 0) {
receipt_long

No hay registros disponibles

@if (recordsSearch) { No se encontraron resultados para la búsqueda "{{ recordsSearch }}". } @else { Aún no se ha generado ningún registro o actividad en este plugin. }

} @else {
@for (col of (plugin.recordsColumns || []); track col.key) { } @for (row of records; track row.id || $index) { @for (col of (plugin.recordsColumns || []); track col.key) { } }
{{ col.labelKey ? (col.labelKey | translate) : col.label }}
@switch (col.key) { @case ('dni') { {{ row[col.key] || '-' }} } @case ('end_reason') { {{ formatReason(row[col.key]) }} } @case ('duration_minutes') { {{ row[col.key] != null ? row[col.key] + ' min' : '-' }} } @default { {{ row[col.key] ?? '-' }} } }
Mostrando {{ startIndex }} a {{ endIndex }} de {{ recordsTotal }} registros
Pág. {{ recordsPage }} de {{ totalPages }}
}
} } @else {
pause_circle_outline

Plugin actualmente inactivo

Este plugin se encuentra desactivado. Sus comandos, reglas contextuales y badges están pausados y ocultos para los clientes del sistema.

Para ver o modificar sus parámetros de configuración y reactivar sus funciones, activa el interruptor superior.

} } @else {
info

Selecciona un plugin para ver y editar su configuración.

}