Fix command palette demo: pass flat commands as documented; use documentation IP in demo
This commit is contained in:
@@ -745,7 +745,7 @@
|
|||||||
|
|
||||||
<div class="lt-subsection-header">Inline Messages</div>
|
<div class="lt-subsection-header">Inline Messages</div>
|
||||||
<div class="lt-section-body">
|
<div class="lt-section-body">
|
||||||
<div class="lt-msg lt-msg-error">Database connection refused on 10.10.10.50</div>
|
<div class="lt-msg lt-msg-error">Database connection refused on 192.0.2.50</div>
|
||||||
<div class="lt-msg lt-msg-success">Ticket #123456789 updated successfully</div>
|
<div class="lt-msg lt-msg-success">Ticket #123456789 updated successfully</div>
|
||||||
<div class="lt-msg lt-msg-warning">Rate limit: 80% consumed (40/50 req/min)</div>
|
<div class="lt-msg lt-msg-warning">Rate limit: 80% consumed (40/50 req/min)</div>
|
||||||
<div class="lt-msg lt-msg-info">Auto-refresh active — updates every 30s</div>
|
<div class="lt-msg lt-msg-info">Auto-refresh active — updates every 30s</div>
|
||||||
@@ -1761,28 +1761,13 @@ Storage array link-down on `compute-storage-01`.
|
|||||||
|
|
||||||
// Command palette demo commands
|
// Command palette demo commands
|
||||||
lt.cmdPalette.init([
|
lt.cmdPalette.init([
|
||||||
{
|
{ id: 'go-dashboard', group: 'Navigation', icon: '⌂', label: 'Dashboard', kbd: 'G D', action: () => lt.toast.info('→ Dashboard') },
|
||||||
group: 'Navigation',
|
{ id: 'go-tickets', group: 'Navigation', icon: '⊞', label: 'All Tickets', kbd: 'G T', action: () => lt.toast.info('→ Tickets') },
|
||||||
items: [
|
{ id: 'go-filters', group: 'Navigation', icon: '★', label: 'Saved Filters', action: () => lt.toast.info('→ Filters') },
|
||||||
{ icon: '⌂', label: 'Dashboard', kbd: 'G D', action: () => lt.toast.info('→ Dashboard') },
|
{ id: 'new-ticket', group: 'Actions', icon: '+', label: 'New Ticket', kbd: 'N', action: () => lt.toast.success('New ticket form') },
|
||||||
{ icon: '⊞', label: 'All Tickets', kbd: 'G T', action: () => lt.toast.info('→ Tickets') },
|
{ id: 'export-csv', group: 'Actions', icon: '⤓', label: 'Export CSV', action: () => lt.modal.open('export-modal') },
|
||||||
{ icon: '★', label: 'Saved Filters', action: () => lt.toast.info('→ Filters') },
|
{ id: 'refresh', group: 'Actions', icon: '⟳', label: 'Refresh Data', kbd: 'R', action: () => lt.toast.info('Refreshing...') },
|
||||||
]
|
{ id: 'keys-help', group: 'Help', icon: '?', label: 'Keyboard Shortcuts', kbd: '?', action: () => lt.modal.open('lt-keys-help') },
|
||||||
},
|
|
||||||
{
|
|
||||||
group: 'Actions',
|
|
||||||
items: [
|
|
||||||
{ icon: '+', label: 'New Ticket', kbd: 'N', action: () => lt.toast.success('New ticket form') },
|
|
||||||
{ icon: '⤓', label: 'Export CSV', action: () => lt.modal.open('export-modal') },
|
|
||||||
{ icon: '⟳', label: 'Refresh Data', kbd: 'R', action: () => lt.toast.info('Refreshing...') },
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
group: 'Help',
|
|
||||||
items: [
|
|
||||||
{ icon: '?', label: 'Keyboard Shortcuts', kbd: '?', action: () => lt.modal.open('lt-keys-help') },
|
|
||||||
]
|
|
||||||
},
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Range slider live value display
|
// Range slider live value display
|
||||||
|
|||||||
Reference in New Issue
Block a user