constants.ts 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2017 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. * >>
  19. */
  20. import { createTypes } from 'utils/redux'
  21. enum Types {
  22. UPLOAD_CURRENT_SLIDE_COVER = 'davinci/Display/UPLOAD_CURRENT_SLIDE_COVER',
  23. UPLOAD_CURRENT_SLIDE_COVER_SUCCESS = 'davinci/Display/UPLOAD_CURRENT_SLIDE_COVER_SUCCESS',
  24. UPLOAD_CURRENT_SLIDE_COVER_FAILURE = 'davinci/Display/UPLOAD_CURRENT_SLIDE_COVER_FAILURE',
  25. LOAD_SLIDE_DETAIL = 'davinci/Display/LOAD_SLIDE_DETAIL',
  26. LOAD_SLIDE_DETAIL_SUCCESS = 'davinci/Display/LOAD_SLIDE_DETAIL_SUCCESS',
  27. LOAD_SLIDE_DETAIL_FAILURE = 'davinci/Display/LOAD_SLIDE_DETAIL_FAILURE',
  28. ADD_SLIDE_LAYERS = 'davinci/Display/ADD_SLIDE_LAYERS',
  29. ADD_SLIDE_LAYERS_SUCCESS = 'davinci/Display/ADD_SLIDE_LAYERS_SUCCESS',
  30. ADD_SLIDE_LAYERS_FAILURE = 'davinci/Display/ADD_SLIDE_LAYERS_FAILURE',
  31. EDIT_SLIDE_LAYERS = 'davinci/Display/EDIT_SLIDE_LAYERS',
  32. EDIT_SLIDE_LAYERS_SUCCESS = 'davinci/Display/EDIT_SLIDE_LAYERS_SUCCESS',
  33. EDIT_SLIDE_LAYERS_FAILURE = 'davinci/Display/EDIT_SLIDE_LAYERS_FAILURE',
  34. EDIT_SLIDE_LAYER_PARAMS = 'davinci/Display/EDIT_SLIDE_LAYER_PARAMS',
  35. CHANGE_LAYER_OPERATION_INFO = 'davinci/Display/CHANGE_LAYER_OPERATION_INFO',
  36. DELETE_SLIDE_LAYERS = 'davinci/Display/DELETE_SLIDE_LAYERS',
  37. DELETE_SLIDE_LAYERS_SUCCESS = 'davinci/Display/DELETE_SLIDE_LAYERS_SUCCESS',
  38. DELETE_SLIDE_LAYERS_FAILURE = 'davinci/Display/DELETE_SLIDE_LAYERS_FAILURE',
  39. RESIZE_LAYER = 'davinci/Display/RESIZE_LAYER',
  40. RESIZE_LAYER_ADJUSTED = 'davinci/Display/RESIZE_LAYER_ADJUSTED',
  41. DRAG_LAYER = 'davinci/Display/DRAG_LAYER',
  42. DRAG_LAYER_ADJUSTED = 'davinci/Display/DRAG_LAYER_ADJUSTED',
  43. CHANGE_LAYERS_STACK = 'davinci/Display/CHANGE_LAYERS_STACK',
  44. SET_LAYERS_ALIGNMENT = 'davinci/Display/SET_LAYERS_ALIGNMENT',
  45. SELECT_LAYER = 'davinci/Display/SELECT_LAYER',
  46. CLEAR_LAYERS_OPERATION_INFO = 'davinci/Display/CLEAR_LAYERS_OPERATION_INFO',
  47. SHOW_EDITOR_BASELINES = 'davinci/Display/SHOW_EDITOR_BASELINES',
  48. CLEAR_EDITOR_BASELINES = 'davinci/Display/CLEAR_EDITOR_BASELINES',
  49. COPY_SLIDE_LAYERS = 'davinci/Display/COPY_SLIDE_LAYERS',
  50. COPY_SLIDE_LAYERS_SUCCESS = 'davinci/Display/COPY_SLIDE_LAYERS_SUCCESS',
  51. PASTE_SLIDE_LAYERS = 'davinci/Display/PASTE_SLIDE_LAYERS',
  52. UNDO_OPERATION = 'davinci/Display/UNDO_OPERATION',
  53. UNDO_OPERATION_SUCCESS = 'davinci/Display/UNDO_OPERATION_SUCCESS',
  54. UNDO_OPERATION_FAILURE = 'davinci/Display/UNDO_OPERATION_FAILURE',
  55. REDO_OPERATION = 'davinci/Display/REDO_OPERATION',
  56. REDO_OPERATION_SUCCESS = 'davinci/Display/REDO_OPERATION_SUCCESS',
  57. REDO_OPERATION_FAILURE = 'davinci/Display/REDO_OPERATION_FAILURE',
  58. LOAD_DISPLAY_SHARE_LINK = 'davinci/Display/LOAD_DISPLAY_SHARE_LINK',
  59. LOAD_DISPLAY_SHARE_LINK_SUCCESS = 'davinci/Display/LOAD_DISPLAY_SHARE_LINK_SUCCESS',
  60. LOAD_DISPLAY_AUTHORIZED_SHARE_LINK_SUCCESS = 'davinci/Display/LOAD_DISPLAY_AUTHORIZED_SHARE_LINK_SUCCESS',
  61. LOAD_DISPLAY_SHARE_LINK_FAILURE = 'davinci/Display/LOAD_DISPLAY_SHARE_LINK_FAILURE',
  62. LOAD_DISPLAY_PASSWORD_SHARE_LINK_SUCCESS = 'davinci/Dashboard/LOAD_DISPLAY_PASSWORD_SHARE_LINK_SUCCESS',
  63. OPEN_SHARE_PANEL = 'davinci/Display/OPEN_SHARE_PANEL',
  64. CLOSE_SHARE_PANEL = 'davinci/Display/CLOSE_SHARE_PANEL',
  65. RESET_DISPLAY_STATE = 'davinci/Display/RESET_DISPLAY_STATE',
  66. MONITORED_SYNC_DATA_ACTION = 'davinci/Display/MONITORED_SYNC_DATA_ACTION',
  67. MONITORED_SEARCH_DATA_ACTION = 'davinci/Display/MONITORED_SEARCH_DATA_ACTION',
  68. MONITORED_LINKAGE_DATA_ACTION = 'davinci/Display/MONITORED_LINKAGE_DATA_ACTION'
  69. }
  70. export const ActionTypes = createTypes(Types)
  71. export { GraphTypes, DefaultDisplayParams } from './components/constants'
  72. export enum DragTriggerTypes {
  73. MouseMove = 'mousemove',
  74. KeyDown = 'keydown'
  75. }