export const FILES_LAST_SERVER_KEY = 'nexus:files:last_server_id'
export const FILES_HINT_DISMISSED_KEY = 'nexus:files-hint-dismissed'

import { DATA_TABLE_ITEMS_PER_PAGE_OPTIONS } from '@/constants/dataTable'

/** v-data-table 默认每页条数（Vuetify 默认 10 过少） */
export const FILES_TABLE_ITEMS_PER_PAGE = 50
export const FILES_TABLE_ITEMS_PER_PAGE_OPTIONS = [
  { value: 25, title: '25' },
  { value: 50, title: '50' },
  { value: 100, title: '100' },
  { value: 250, title: '250' },
  ...DATA_TABLE_ITEMS_PER_PAGE_OPTIONS.filter(o => o.value === -1),
] as const

export const FILES_CACHE_TTL_MS = 5000
export const FILES_CACHE_MAX_ENTRIES = 50
