action-types.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import { zipObject } from 'lodash';
  2. const ACTION_TYPES = [
  3. 'ADD_QUERY_FILTER',
  4. 'BLUR_SEARCH',
  5. 'CACHE_ZOOM_STATE',
  6. 'CHANGE_INSTANCE',
  7. 'CHANGE_TOPOLOGY_OPTION',
  8. 'CLEAR_CONTROL_ERROR',
  9. 'CLICK_BACKGROUND',
  10. 'CLICK_CLOSE_DETAILS',
  11. 'CLICK_FORCE_RELAYOUT',
  12. 'CLICK_NODE',
  13. 'CLICK_RELATIVE',
  14. 'CLICK_SHOW_TOPOLOGY_FOR_NODE',
  15. 'CLICK_TERMINAL',
  16. 'CLICK_TOPOLOGY',
  17. 'CLOSE_TERMINAL',
  18. 'CLOSE_WEBSOCKET',
  19. 'DEBUG_TOOLBAR_INTERFERING',
  20. 'DESELECT_NODE',
  21. 'DO_CONTROL_ERROR',
  22. 'DO_CONTROL_SUCCESS',
  23. 'DO_CONTROL',
  24. 'ENTER_EDGE',
  25. 'ENTER_NODE',
  26. 'FINISH_TIME_TRAVEL_TRANSITION',
  27. 'FOCUS_SEARCH',
  28. 'HIDE_HELP',
  29. 'HOVER_METRIC',
  30. 'JUMP_TO_TIME',
  31. 'LEAVE_EDGE',
  32. 'LEAVE_NODE',
  33. 'MONITOR_STATE',
  34. 'OPEN_WEBSOCKET',
  35. 'PAUSE_TIME_AT_NOW',
  36. 'PIN_METRIC',
  37. 'PIN_NETWORK',
  38. 'RECEIVE_API_DETAILS',
  39. 'RECEIVE_CONTROL_NODE_REMOVED',
  40. 'RECEIVE_CONTROL_PIPE_STATUS',
  41. 'RECEIVE_CONTROL_PIPE',
  42. 'RECEIVE_ERROR',
  43. 'RECEIVE_NODE_DETAILS',
  44. 'RECEIVE_NODES_DELTA',
  45. 'RECEIVE_NODES_FOR_TOPOLOGY',
  46. 'RECEIVE_NODES',
  47. 'RECEIVE_NOT_FOUND',
  48. 'RECEIVE_TOPOLOGIES',
  49. 'RESET_LOCAL_VIEW_STATE',
  50. 'RESUME_TIME',
  51. 'ROUTE_TOPOLOGY',
  52. 'SELECT_NETWORK',
  53. 'SET_EXPORTING_GRAPH',
  54. 'SET_RECEIVED_NODES_DELTA',
  55. 'SET_STORE_VIEW_STATE',
  56. 'SET_VIEW_MODE',
  57. 'SET_VIEWPORT_DIMENSIONS',
  58. 'SHOW_HELP',
  59. 'SHOW_NETWORKS',
  60. 'SHUTDOWN',
  61. 'SORT_ORDER_CHANGED',
  62. 'TOGGLE_CONTRAST_MODE',
  63. 'TOGGLE_TROUBLESHOOTING_MENU',
  64. 'UNHOVER_METRIC',
  65. 'UNPIN_METRIC',
  66. 'UNPIN_NETWORK',
  67. 'UPDATE_SEARCH',
  68. ];
  69. export default zipObject(ACTION_TYPES, ACTION_TYPES);