export const EVENT_BUS_TYPE = {
  // library
  CURRENT_LIBRARY_CHANGED: 'current_library_changed',
  SEARCH_LIBRARY_CONTENT: 'search_library_content',

  // group
  ADD_NEW_GROUP: 'add_new_group',
  ADD_SHARED_REPO_INTO_GROUP: 'add_shared_repo_into_group',
  UNSHARE_REPO_TO_GROUP: 'unshare_repo_to_group',

  RESTORE_IMAGE: 'restore_image',
  OPEN_MARKDOWN: 'open_markdown',

  // migrate tags
  OPEN_TREE_PANEL: 'open_tree_panel',
  OPEN_LIBRARY_SETTINGS_TAGS: 'open_library_settings_tags',

  // tags
  TAG_STATUS: 'tag_status',
  TAGS_DATA: 'tags_data',
  SELECT_TAG: 'select_tag',
  UPDATE_SELECTED_TAG: 'update_selected_tag',

  // download file
  DOWNLOAD_FILE: 'download_file',
  CREATE_FILE: 'create_file',
  CREATE_FOLDER: 'create_folder',
  MOVE_FILE: 'move_file',
  COPY_FILE: 'copy_file',
  SHARE_FILE: 'share_file',
  RENAME_FILE: 'rename_file',
  PERMISSION: 'permission',
  ACCESS_LOG: 'access_log',
  PREVIEW_IMAGE: 'preview_image',

  // sys-admin pages
  CLEAR_DEVICE_ERRORS: 'clear_device_errors',
  SHOW_CLEAN_BTN: 'show_clean_btn',
  SYNC_USERNAME: 'sync_username',
  OPEN_CREATE_REPO_DIALOG: 'open_create_repo_dialog',
  OPEN_CLEAN_TRASH_DIALOG: 'open_clean_trash_dialog',
  HANDLE_SELECTED_OPERATIONS: 'handle_selected_operations',
  RESET_PER_PAGE: 'reset_per_page',
};
