mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-31 08:32:00 +08:00

* fix: date time value retain on location switch * chore: added inline comments * feat: added shortcut strings based on user os * feat: added shortcut strings based on user os * feat: added shortcut strings based on user os
20 lines
559 B
TypeScript
20 lines
559 B
TypeScript
import { getUserOperatingSystem, UserOperatingSystem } from 'utils/getUserOS';
|
|
|
|
const userOS = getUserOperatingSystem();
|
|
export const LogsExplorerShortcuts = {
|
|
StageAndRunQuery: 'enter+meta',
|
|
FocusTheSearchBar: 's',
|
|
};
|
|
|
|
export const LogsExplorerShortcutsName = {
|
|
StageAndRunQuery: `${
|
|
userOS === UserOperatingSystem.MACOS ? 'cmd' : 'ctrl'
|
|
}+enter`,
|
|
FocusTheSearchBar: 's',
|
|
};
|
|
|
|
export const LogsExplorerShortcutsDescription = {
|
|
StageAndRunQuery: 'Stage and Run the current query',
|
|
FocusTheSearchBar: 'Shift the focus to the last query filter bar',
|
|
};
|