import keyMirror from 'keymirror';

export const actionTypes = keyMirror({
  INIT_UNDO_LIST: null,
  ADD_UNDO_CONFIG: null,
  REMOVE_UNDO_CONFIG: null,
  GET_USER_INFO: null,
  GET_TENANTS: null,
  GET_USERS: null,
  USERS_PAGE_CHANGE: null,
  USERS_SEARCH: null,
  USERS_RESET: null,
  USER_CREATE: null,
  USER_DELETE: null,
  LOGIN_OUT: null,
  UPDATE_THUMB: null,
  USER_NONENTITY_MODULE: null,

  // 大屏组
  GROUP_GET_LIST_START: null,
  GROUP_GET_LIST_SUCCESS: null,
  GROUP_GET_LIST_FAILURE: null,
  GROUP_CURRENT_CHANGE: null,

  // 大屏列表
  SCREEN_GET_LIST_START: null,
  SCREEN_GET_LIST_SUCCESS: null,
  SCREEN_GET_LIST_FAILURE: null,
  SCREEN_COPY_SUCCESS: null,
  SCREEN_UPDATE_SUCCESS: null,
  SCREEN_LIST_UPDATE_SUCCESS: null,
  SCREEN_DELETE_SUCCESS: null,
  SCREEN_NEXT_PAGE: null,
  SCREEN_TOP_PAGE: null,
  SCREEN_SEARCH: null,
  SCREEN_DRAG_START: null,
  SCREEN_DRAG_END: null,
  SCREEN_SELECT: null,
  SCREEN_UNSELECT: null,
  SCREEN_ALL_SELECT: null,
  SCREEN_EXPORT_OPEN: null,
  SCREEN_EXPORT_CLOSE: null,
  SCREEN_LIST_CLEAR: null,
  UPDAE_SCREEN_SORT_TYPE: null,

  // 数据源列表
  SOURCE_GET_LIST_SUCCESS: null,
  SOURCE_GET_LIST_FAILURE: null,
  SOURCES_GET_START: null,
  SOURCES_GET_SUCCESS: null,
  SOURCES_GET_FAILURE: null,
  SOURCES_SEARCH: null,
  SOURCES_PAGE_CHANGE: null,

  // 编辑大屏
  CLEAR: null,
  SCREEN_GET_START: null,
  SCREEN_GET_FAILURE: null,
  SCREEN_EDIT_COMPONENT_NAME_UPDATE: null,
  SCREEN_EDIT_GET_START: null,
  SCREEN_EDIT_GET_SUCCESS: null,
  SCREEN_EDIT_GET_FAILURE: null,
  SCREEN_SCALE_CHANGE: null,
  SCREEN_NODE_SCALE_CHANGE: null,
  SCREEN_LEFT_COLLAPSED: null,
  SCREEN_RIGHT_COLLAPSED: null,
  SCREEN_REDIRECT: null,
  COMPONENT_CONFIG_ACTIVE_KEY_CHANGE: null,
  COMPONENT_EDIT_MODAL_SHOW: null,
  COMPONENT_EDIT_MODAL_HIDE: null,
  COMPONENT_EDIT_MODAL_FOCUS: null,
  SCREEN_DATA_STATE: null, //数据拉取状态
  SCREEN_EDIT_MODEL: null, //编辑模式
  OPEN_EDIT: null,
  CLOSE_EDIT: null,

  // 图层
  LAYER_UPDATE: null,
  LAYER_SELECT: null,
  CHILD_SELECT: null,
  SELECT_RESET: null,
  CHILD_SELECT_RESET: null,
  RESET_CHILD_SELECTED: null,

  // 编辑页图层以及组件的右键
  CONTEXT_MENU_SHOW: null,
  CONTEXT_MENU_HIDE: null,
  COPY_MODAL_SHOW: null,
  COPY_MODAL_HIDE: null,
  CROSS_COPY_STATR: null,
  CROSS_COPY_SUCCESS: null,
  CROSS_COPY_FAILURE: null,

  // 大屏详情
  SCREEN_DETAIL_GET_START: null,
  SCREEN_DETAIL_GET_SUCCESS: null,
  SCREEN_DETAIL_GET_FAILURE: null,
  SCREEN_DETAIL_GET_DELETE: null,
  SCREEN_DETAIL_NEED_PASSWORD: null,
  SCREEN_DETAIL_NEED_TOKEN: null,
  SCREEN_DETAIL_NEED_USER_EXPIRED: null,
  SCREEN_DETAIL_GET_RESULT: null,
  SCREEN_DETAIL_SET_ACTIVATED: null,
  SCREEN_DETAIL_SET_CENTER_ACTIVATED: null,
  SCREEN_DETAIL_PERMISSION: null,

  // 组件的主题管理
  THEME_GET_LIST_START: null,
  THEME_GET_LIST_SUCCESS: null,
  THEME_GET_LIST_FAILURE: null,
  THEME_GET_CONFIG_LIST_SUCCESS: null,
  THEME_GET_CONFIG_LIST_START: null,
  THEME_GET_CONFIG_LIST_FAILURE: null,
  THEME_PACK_LOADING: null,
  THEME_TASK_STATE: null,
  THEME_LOADING: null,
  THEME_COMPONENT_BACKUP: null,
  CLEAR_THEME_COMPONENT_BACKUP: null,
  THEME_COMPONENT_UPDATE: null,

  // 收藏夹管理
  FAVORITE_GET_LIST_START: null,
  FAVORITE_GET_LIST_SUCCESS: null,
  FAVORITE_GET_LIST_FAILURE: null,
  FAVORITE_CREATE_START: null,
  FAVORITE_CREATE_SUCCESS: null,
  FAVORITE_CREATE_FAILURE: null,
  FAVORITE_UPDATE_START: null,
  FAVORITE_UPDATE_SUCCESS: null,
  FAVORITE_UPDATE_FAILURE: null,
  FAVORITE_DELETE_STATR: null,
  FAVORITE_DELETE_SUCCESS: null,
  FAVORITE_DELETE_FAILURE: null,

  // 行业组件模块
  MODULE_GET_LIST_START: null,
  MODULE_GET_LIST_SUCCESS: null,
  MODULE_GET_LIST_FAILURE: null,
  MODULE_CREATE_SUCCESS: null,
  MODULE_DELETE_SUCCESS: null,
  MODULE_UPDATE_SUCCESS: null,
  MODULE_CATEGORY_CREATE_SUCCESS: null,
  MODULE_CATEGORY_UPDATE_SUCCESS: null,
  MODULE_CATEGORY_DELETE_SUCCESS: null,
  MODULE_CATEGORY_SORT_SUCCESS: null,
  MODULE_LOADING: null,

  // 动态面板
  PANEL_GET: null,
  PANEL_ADD: null,
  PANEL_COPY: null,
  PANEL_DELETE: null,
  PANEL_UPDATE: null,
  PANEL_STATE_ADD: null,
  PANEL_STATE_COPY: null,
  PANEL_STATE_DELETE: null,
  PANEL_STATE_SORT: null,

  // 大屏
  SCREEN_GET: null,
  SCREEN_UPDATE: null,
  SCREEN_SHARE_UPDATE: null,
  SCREEN_CONFIG_UPDATE: null,

  // 组件
  COMPONENTS_ADD: null,
  COMPONENTS_DELETE: null,
  COMPONENT_UPDATE: null,
  COMPONENT_DATA_UPDATE: null,
  COMPONENT_DATA_GET_SUCCESS: null,
  COMPONENT_DATA_GET_FAILURE: null,
  COMPONENT_DATA_CONFIG_UPDATE: null,
  COMPONENT_CHILDREN_DELETE: null,
  COMPONENT_CHILDREN_ADD: null,
  COMPONENT_SOURCE_CHANGE: null,
  COMPONENT_DATA_CONTAINER_CONFIG_UPDATE: null,
  HYBRID_UPDATE: null,
  // updateUseDataContainer

  // 回收站
  RECYCLE_DATA: null,

  // 事件
  CALLBACKS_INIT: null,
  CALLBACKS_DATA_CONTAINER_INIT: null,
  CALLBACK_EMIT: null,
  EVENTS_INIT: null,
  EVENT_EMIT: null,

  // 过滤器
  FILTER_GET: null,
  FILTER_ADD: null,
  FILTER_UPDATE: null,
  FILTER_DELETE: null,

  // 大屏模板
  TEMPLATE_GET_LIST_START: null,
  TEMPLATE_GET_LIST_SUCCESS: null,
  TEMPLATE_GET_LIST_FAILURE: null,
  TEMPLATE_CATEGORY_GET_LIST_SUCCESS: null,
  TEMPLATE_CATEGORY_CREATE_SUCCESS: null,
  TEMPLATE_CATEGORY_UPDATE_SUCCESS: null,
  TEMPLATE_CATEGORY_DELETE_SUCCESS: null,
  TEMPLATE_CATEGORY_SORT_SUCCESS: null,
  TEMPLATE_UPDATE: null,
  TEMPLATE_LOADING: null,
  MY_TEMPLATES: null,
  RECOMMEND_TEMPLATES: null,

  // 字体
  FONT_GET_LIST_START: null,
  FONT_GET_LIST_SUCCESS: null,
  FONT_GET_LIST_FAILURE: null,

  // 大屏组件constant
  CONSTANT_GET_LIST_START: null,
  CONSTANT_GET_LIST_SUCCESS: null,
  CONSTANT_GET_LIST_FAILURE: null,
  CONSTANT_LOADING: null,

  // 租户constant
  TENANT_CONSTANT_GET_LIST_START: null,
  TENANT_CONSTANT_GET_LIST_SUCCESS: null,
  TENANT_CONSTANT_GET_LIST_FAILURE: null,
  TENANT_CONSTANT_LOADING: null,

  //
  FOCUS_LAYER_ADD: null,
  FOCUS_LAYER_DELETE: null,

  // 终端组件
  MOBILE_CONSTANT_GET_LIST_START: null,
  MOBILE_CONSTANT_GET_LIST_SUCCESS: null,
  MOBILE_CONSTANT_GET_LIST_FAILURE: null,
  MOBILE_CONSTANT_LOADING: null,

  // 动态面板预览
  PANEL_DETAIL_GET_START: null,
  PANEL_DETAIL_GET_SUCCESS: null,
  PANEL_DETAIL_GET_FAILURE: null,

  // 应用
  APP_GET_LIST_SUCCESS: null,
  APP_GET_SUCCESS: null,
  APP_PUBLISH_SUCCESS: null,

  COMPONENTS_BACKUP: null,

  // 版本升级确认弹窗 - 全局性质
  UPDATE_VERSION_DATA: null,

  // 站内公告
  ANNOUNCEMENT_DATA: null,
  ANNOUNCEMENT_UPDATE: null,

  // 空间管理
  SPACE_CONSTANT_GET_LIST: null,
  SPACE_CONSTANT_SET_CURRENT: null,
  SPACE_CONSTANT_SET_LIST_ITEM: null,
  SPACE_CONSTANT_SET_ACTIVE: null,
  SPACE_CONSTANT_SET_LOADING: null,
  SPACE_CONSTANT_SET_DELETE: null,
  SPACE_CONSTANT_SET_UPDATE: null,
  SPACE_CONSTANT_SET_USER_LIST: null,
  SPACE_CONSTANT_SET_ALL_USER_LIST: null,
  SPACE_CONSTANT_SET_MOVE_SCREEN: null,
  SPACE_CONSTANT_SET_M_CURRENT: null,

  // create -> 素材中心
  MATERIAL_LIB_SET_LIST: null, //官方分类
  MATERIAL_LIB_SET_COLLECT_LIST: null, //收藏分类
  MATERIAL_LIB_SET_UPDATE: null,
  MATERIAL_LIB_LOADING: null,
  MATERIAL_LIB_SET_CURRENT: null,
  MATERIAL_LIB_SET_DATA: null,
  MATERIAL_LIB_SET_CATEGORYS: null,
  MATERIAL_CLEAR: null,

  // 平台迁移
  GET_TRANSFER_INFO: null,

  // 驾驶舱
  UPDATE_PORTAL_INFO: null,
  UPDATE_NAVIGATION_BY_ID: null,
  UPDATE_CUR_SELECTED_KEY: null,
  UPDATE_CUR_EXPANDED_NAV_KEYS: null,
  UPDATE_PORTAL_BASE_INFO: null,
  UPDATE_PORTAL_NAVIGATION_INFO: null,
  UPDATE_EDIT_PAGE_CURRENT_TAB: null,

  // 数据容器
  DATA_CONTAINER_LIST: null,
  DATA_CONTAINER_ADD: null,
  DATA_CONTAINER_UPDATE: null,
  DATA_CONTAINER_EVENTS_UPDATE: null,
  DATA_CONTAINER_CONFIG_UPDATE: null,
  DATA_CONTAINER_DELETE: null,
  DATA_COMPONENT_GET_SUCCESS: null,
  DATA_COMPONENT_GET_FAILURE: null,
  DATA_FILTER_RESULT_UPDATE: null,
  DATA_COMPONENT_FILTER_UPDATE: null,

  // 教程
  GLOBAL_COURSE_LIST: null,

  NODE_SET_STATE: null, //图层显隐状态
  NODE_SET_SELECT_LIST_NODES: null, // 图层高亮list
  NODE_SET_SELECT_LIST_EDGES: null,
  NODE_SET_CURRENT: null, //当前ID
  NODE_CLEAR_SELECT_NODE: null,
  NODE_SET_TREE_KEYS: null, // 当前layer tree keys

  // 获取csv数据
  CSVDATA_GET_SUCCESS: null,

  // 队列（自动操作某些交互）
  QUEUE_SET_CUSTOM_EVENTS: null,
  QUEUE_ADD_CUSTOM_EVENT: null,
  QUEUE_CLEAR_CUSTOM_EVENTS: null,

  UPDATE_SCREEN_STATUS: null,

  //更新大屏调试模式配置
  UPDATE_SCREEN_DEBUG_CONFIG: null,
});
