index.js 775 B

1234567891011121314151617
  1. import i18n from '@/locales'
  2. import { arrayToObj } from '@/utils/utils'
  3. export const PRICE_COMPARA_KEY_SUFFIX = '__oc_price_compara_'
  4. export const BLOCKED_RESOURCES = [
  5. { label: i18n.t('dictionary.snapshot'), value: 'snapshot' },
  6. { label: i18n.t('dictionary.eip'), value: 'eip' },
  7. { label: i18n.t('dictionary.dbinstances'), value: 'dbinstance' },
  8. { label: i18n.t('dictionary.elasticcache'), value: 'elasticcache' },
  9. { label: i18n.t('dictionary.nat'), value: 'natgateway' },
  10. { label: i18n.t('dictionary.file_system'), value: 'file_system' },
  11. { label: i18n.t('scope.text_79'), value: 'kubecluster' },
  12. { label: i18n.t('dictionary.dbinstancebackups'), value: 'dbinstancebackups' },
  13. ]
  14. export const BLOCKED_RESOURCES_MAP = arrayToObj(BLOCKED_RESOURCES, 'value')