2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-22 02:50:34 +03:00

refactor: set defaultOptions in shared/constants

This commit is contained in:
pimlie
2019-03-09 18:38:10 +01:00
committed by Alexander Lichter
parent c1f97c4ea4
commit 2b24acc8b2
13 changed files with 20 additions and 46 deletions
+9
View File
@@ -44,6 +44,15 @@ export const metaTemplateKeyName = 'template'
// This is the key name for the content-holding property
export const contentKeyName = 'content'
export const defaultOptions = {
keyName,
attribute,
ssrAttribute,
tagIDKeyName,
contentKeyName,
metaTemplateKeyName
}
// List of metaInfo property keys which are configuration options (and dont generate html)
export const metaInfoOptionKeys = [
'titleChunk',
+1 -19
View File
@@ -1,23 +1,5 @@
import { isObject, isFunction } from './is-type'
import {
keyName,
attribute,
ssrAttribute,
tagIDKeyName,
metaTemplateKeyName,
contentKeyName
} from './constants'
// set some default options
const defaultOptions = {
keyName,
contentKeyName,
metaTemplateKeyName,
attribute,
ssrAttribute,
tagIDKeyName
}
import { defaultOptions } from './constants'
export default function setOptions(options) {
// combine options