1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
| const steps = i18n => { return [ { element: '#guide-start', popover: { title: i18n.t('msg.guide.guideTitle'), description: i18n.t('msg.guide.guideDesc'), position: 'bottom-right' } }, { element: '#guide-hamburger', popover: { title: i18n.t('msg.guide.hamburgerTitle'), description: i18n.t('msg.guide.hamburgerDesc') } }, { element: '#guide-breadcrumb', popover: { title: i18n.t('msg.guide.breadcrumbTitle'), description: i18n.t('msg.guide.breadcrumbDesc') } }, { element: '#guide-search', popover: { title: i18n.t('msg.guide.searchTitle'), description: i18n.t('msg.guide.searchDesc'), position: 'bottom-right' } }, { element: '#guide-full', popover: { title: i18n.t('msg.guide.fullTitle'), description: i18n.t('msg.guide.fullDesc'), position: 'bottom-right' } }, { element: '#guide-theme', popover: { title: i18n.t('msg.guide.themeTitle'), description: i18n.t('msg.guide.themeDesc'), position: 'bottom-right' } }, { element: '#guide-lang', popover: { title: i18n.t('msg.guide.langTitle'), description: i18n.t('msg.guide.langDesc'), position: 'bottom-right' } }, { element: '#guide-tags', popover: { title: i18n.t('msg.guide.tagTitle'), description: i18n.t('msg.guide.tagDesc') } }, { element: '#guide-sidebar', popover: { title: i18n.t('msg.guide.sidebarTitle'), description: i18n.t('msg.guide.sidebarDesc'), position: 'right-center' } } ] } export default steps
|