- Updated Searcher component styles for improved UI. - Added a new Dashboard for fines with statistics and filters. - Introduced FineResultCard and FinePaymentSummary components for displaying fine details and payment summaries. - Implemented FineSearchPanel for searching fines by folio or CURP. - Added download functionality for fine tickets and receipts. - Updated routing to include a dashboard view for fines. - Integrated user search functionality for filtering fines by agent. - Improved overall layout and organization of fine-related components.
22 lines
570 B
JavaScript
22 lines
570 B
JavaScript
import { lang } from '@Lang/i18n';
|
|
import { hasPermission } from '@Plugins/RolePermission.js';
|
|
|
|
// Ruta API
|
|
const apiTo = (name, params = {}) => route(`fines.${name}`, params)
|
|
|
|
// Ruta visual
|
|
const viewTo = ({ name = '', params = {}, query = {} }) => view({ name: `fine.${name}`, params, query })
|
|
|
|
// Obtener traducción del componente
|
|
const transl = (str) => lang(`fine.${str}`)
|
|
|
|
// Determina si un usuario puede hacer algo no en base a los permisos
|
|
const can = (permission) => hasPermission(`fine.${permission}`)
|
|
|
|
export {
|
|
can,
|
|
viewTo,
|
|
apiTo,
|
|
transl
|
|
}
|