UNPKG

vuepress-theme-ccds-test

Version:

This is an anime blog theme based on vuepress, the theme is simple, colorful, versatile, and supports customization, providing multiple components to set the theme

57 lines (56 loc) 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assignDefaultLocaleOptions = void 0; const defaultLocaleOptions = { // navbar navbar: [], logo: null, darkMode: true, repo: null, selectLanguageText: 'Languages', selectLanguageAriaLabel: 'Select language', // sidebar sidebar: 'auto', sidebarDepth: 2, // page meta editLink: true, editLinkText: 'Edit this page', lastUpdated: true, lastUpdatedText: 'Last Updated', contributors: true, contributorsText: 'Contributors', // 404 page messages notFound: [ `There's nothing here.`, `How did we get here?`, `That's a Four-Oh-Four.`, `Looks like we've got some broken links.`, ], backToHome: 'Take me home', // `<OutboundLink>` sr-only openInNewWindow: 'open in new window', }; const defaultLocaleData = { // navbar selectLanguageName: 'English', }; /** * Assign default options to `themeConfig` */ const assignDefaultLocaleOptions = (localeOptions) => { if (!localeOptions.locales) { localeOptions.locales = {}; } if (!localeOptions.locales['/']) { localeOptions.locales['/'] = {}; } Object.assign(localeOptions, { ...defaultLocaleOptions, ...localeOptions, }); Object.assign(localeOptions.locales['/'], { ...defaultLocaleData, ...localeOptions.locales['/'], }); }; exports.assignDefaultLocaleOptions = assignDefaultLocaleOptions;