UNPKG

@hperchec/scorpion-ui-template-default

Version:
94 lines (90 loc) 2.73 kB
/** * @vuepress * --- * title: SettingsVerifyEmail route * headline: SettingsVerifyEmail route * sidebarTitle: .SettingsVerifyEmail * sidebarDepth: 0 # To disable auto sidebar links * prev: false # Disable prev link * next: false # Disable prev link * --- */ import { Core, utils } from '@hperchec/scorpion-ui' const { capitalize } = utils const translate = (...args) => Core.context.services['router'].options.translate(...args) // eslint-disable-line dot-notation /** * @name SettingsVerifyEmail * @static * @type {PrivateRoute} * @description * - **Name**: SettingsVerifyEmail * - **Path**: `/settings/email/verify/:hash` * - **Params**: * - `hash {String}`: The temporary hash * - **Query**: *none* */ export default { /** * @description Route path * @name SettingsVerifyEmail.path * @type {string} * @default /settings/email/verify/:hash */ path: '/settings/email/verify/:hash', /** * @description Route name * @name SettingsVerifyEmail.name * @type {string} * @default SettingsVerifyEmail */ name: 'SettingsVerifyEmail', /** * @alias SettingsVerifyEmail.component * @returns {Object} * @description * Route component. By default, returns `Core.context.vue.components.private.views.settings.verifyEmail.Index` */ component: () => Core.context.vue.components.private.views.settings.verifyEmail.Index, /** * Options */ options: { /** * @description Route meta * @alias SettingsVerifyEmail.meta * @type {Object} */ meta: { /** * @alias SettingsVerifyEmail.meta.breadcrumb * @type {Object} * @description Breadcrumb options */ breadcrumb: { /** * @alias SettingsVerifyEmail.meta.breadcrumb.schema * @default ['Settings', '<this>'] */ schema: [ 'Settings', '<this>' ], /** * @alias SettingsVerifyEmail.meta.breadcrumb.title * @type {Function} * @return {string} * @description * Return translated SettingsVerifyEmail view title (translate: `views.Settings.VerifyEmail.Index.title`) */ title: (vm) => capitalize(translate('views.Settings.VerifyEmail.Index.title')) }, /** * @alias SettingsVerifyEmail.meta.pageMeta * @type {Object} * @property {Function} title - Return translated Settings view title (translate: `views.Settings.VerifyEmail.Index.title`) * @description * Route page meta */ pageMeta: { title: (vm) => capitalize(translate('views.Settings.VerifyEmail.Index.title')) } } } }