feat(ui): Cmd+K registration across all POS pages + fix quotations/whatsapp script tags
This commit is contained in:
@@ -506,4 +506,12 @@ const Accounting = (() => {
|
|||||||
loadIncomeStatement, loadCashFlow, loadReconciliation, loadPeriodClose,
|
loadIncomeStatement, loadCashFlow, loadReconciliation, loadPeriodClose,
|
||||||
exportarContabilidad, showNewEntryModal, closeNewEntryModal, addEntryLine, submitNewEntry,
|
exportarContabilidad, showNewEntryModal, closeNewEntryModal, addEntryLine, submitNewEntry,
|
||||||
};
|
};
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Catálogo", href: "/pos/catalog", icon: "📁" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "👤" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -529,4 +529,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.BrandCatalog = BrandCatalog;
|
window.BrandCatalog = BrandCatalog;
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Catálogo", href: "/pos/catalog", icon: "📁" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "👤" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -755,4 +755,12 @@ const Config = (() => {
|
|||||||
loadCurrency, saveCurrency,
|
loadCurrency, saveCurrency,
|
||||||
openModal, closeModal
|
openModal, closeModal
|
||||||
};
|
};
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Catálogo", href: "/pos/catalog", icon: "📁" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "👤" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -799,4 +799,12 @@ const Customers = (() => {
|
|||||||
// Expose globally for inline HTML onclick handlers
|
// Expose globally for inline HTML onclick handlers
|
||||||
window.Customers = publicApi;
|
window.Customers = publicApi;
|
||||||
return publicApi;
|
return publicApi;
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Catálogo", href: "/pos/catalog", icon: "📁" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "👤" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -490,4 +490,12 @@ const Invoicing = (() => {
|
|||||||
showDetail, showCancelModal, confirmCancel, processQueue,
|
showDetail, showCancelModal, confirmCancel, processQueue,
|
||||||
showNewInvoiceModal, closeNewInvoiceModal, submitNewInvoice, notaCreditoPlaceholder,
|
showNewInvoiceModal, closeNewInvoiceModal, submitNewInvoice, notaCreditoPlaceholder,
|
||||||
};
|
};
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Catálogo", href: "/pos/catalog", icon: "📁" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "👤" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -1350,4 +1350,12 @@ const POS = (() => {
|
|||||||
showCutZModal, closeCutZModal, loadCutX, confirmCutZ,
|
showCutZModal, closeCutZModal, loadCutX, confirmCutZ,
|
||||||
openCancelModal, closeCancelModal, changeQuantity, applyDiscount,
|
openCancelModal, closeCancelModal, changeQuantity, applyDiscount,
|
||||||
};
|
};
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Catálogo", href: "/pos/catalog", icon: "📁" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "👤" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -714,6 +714,13 @@ const Reports = (() => {
|
|||||||
init, setTheme, switchTab,
|
init, setTheme, switchTab,
|
||||||
loadVentas, loadInventario, loadClientes, loadFinancieros, fmt
|
loadVentas, loadInventario, loadClientes, loadFinancieros, fmt
|
||||||
};
|
};
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Reportes", href: "/pos/reports", icon: "📈" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// ── Global: Export visible table as CSV (Excel-compatible) ──
|
// ── Global: Export visible table as CSV (Excel-compatible) ──
|
||||||
|
|||||||
@@ -525,4 +525,12 @@
|
|||||||
};
|
};
|
||||||
} catch(e) {}
|
} catch(e) {}
|
||||||
|
|
||||||
|
// Register Cmd+K items
|
||||||
|
if (typeof registerCmdKItem === "function") {
|
||||||
|
registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "🛒" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Catálogo", href: "/pos/catalog", icon: "📁" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "👤" });
|
||||||
|
registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "📊" });
|
||||||
|
}
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
<body>
|
<body>
|
||||||
<script src="/pos/static/js/pos-utils.js?v=2" defer></script>
|
<script src="/pos/static/js/pos-utils.js?v=2" defer></script>
|
||||||
<script src="/pos/static/js/i18n.js" defer></script>
|
<script src="/pos/static/js/i18n.js" defer></script>
|
||||||
<script src="/pos/static/js/app-init.js" defer
|
<script src="/pos/static/js/app-init.js" defer></script>
|
||||||
<script src="/pos/static/js/splash-loader.js?v=1" defer></script>></script>
|
<script src="/pos/static/js/splash-loader.js?v=1" defer></script>
|
||||||
<script src="/pos/static/js/sidebar.js" defer></script>
|
<script src="/pos/static/js/sidebar.js" defer></script>
|
||||||
|
|
||||||
<div class="page">
|
<div class="page">
|
||||||
|
|||||||
@@ -133,8 +133,8 @@ function posLogout(){localStorage.removeItem('pos_token');window.location.href='
|
|||||||
|
|
||||||
<!-- Sidebar -->
|
<!-- Sidebar -->
|
||||||
<script src="/pos/static/js/i18n.js" defer></script>
|
<script src="/pos/static/js/i18n.js" defer></script>
|
||||||
<script src="/pos/static/js/app-init.js" defer
|
<script src="/pos/static/js/app-init.js" defer></script>
|
||||||
<script src="/pos/static/js/splash-loader.js?v=1" defer></script>></script>
|
<script src="/pos/static/js/splash-loader.js?v=1" defer></script>
|
||||||
<script src="/pos/static/js/whatsapp2.js?v=5" defer></script>
|
<script src="/pos/static/js/whatsapp2.js?v=5" defer></script>
|
||||||
<script src="/pos/static/js/pos-utils.js?v=2" defer></script>
|
<script src="/pos/static/js/pos-utils.js?v=2" defer></script>
|
||||||
<script src="/pos/static/js/sidebar.js" defer></script>
|
<script src="/pos/static/js/sidebar.js" defer></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user