|
|
@ -4322,13 +4322,15 @@ var keyNames = { |
|
|
|
esc: ['Esc', 'Escape'], |
|
|
|
tab: 'Tab', |
|
|
|
enter: 'Enter', |
|
|
|
space: ' ', |
|
|
|
// #9112: IE11 uses `Spacebar` for Space key name.
|
|
|
|
space: [' ', 'Spacebar'], |
|
|
|
// #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
|
|
|
|
up: ['Up', 'ArrowUp'], |
|
|
|
left: ['Left', 'ArrowLeft'], |
|
|
|
right: ['Right', 'ArrowRight'], |
|
|
|
down: ['Down', 'ArrowDown'], |
|
|
|
'delete': ['Backspace', 'Delete'] |
|
|
|
// #9112: IE11 uses `Del` for Delete key name.
|
|
|
|
'delete': ['Backspace', 'Delete', 'Del'] |
|
|
|
}; |
|
|
|
|
|
|
|
// #4868: modifiers that prevent the execution of the listener
|
|
|
@ -4822,9 +4824,7 @@ function genChildren ( |
|
|
|
el$1.tag !== 'template' && |
|
|
|
el$1.tag !== 'slot' |
|
|
|
) { |
|
|
|
// because el may be a functional component and return an Array instead of a single root.
|
|
|
|
// In this case, just a simple normalization is needed
|
|
|
|
var normalizationType = state.maybeComponent(el$1) ? ",1" : ""; |
|
|
|
var normalizationType = checkSkip && state.maybeComponent(el$1) ? ",1" : ""; |
|
|
|
return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType) |
|
|
|
} |
|
|
|
var normalizationType$1 = checkSkip |
|
|
@ -7972,7 +7972,10 @@ var TemplateRenderer = function TemplateRenderer (options) { |
|
|
|
// extra functionality with client manifest
|
|
|
|
if (options.clientManifest) { |
|
|
|
var clientManifest = this.clientManifest = options.clientManifest; |
|
|
|
this.publicPath = clientManifest.publicPath; |
|
|
|
// ensure publicPath ends with /
|
|
|
|
this.publicPath = clientManifest.publicPath === '' |
|
|
|
? '' |
|
|
|
: clientManifest.publicPath.replace(/([^\/])$/, '$1/'); |
|
|
|
// preload/prefetch directives
|
|
|
|
this.preloadFiles = (clientManifest.initial || []).map(normalizeFile); |
|
|
|
this.prefetchFiles = (clientManifest.async || []).map(normalizeFile); |
|
|
@ -8035,7 +8038,7 @@ TemplateRenderer.prototype.renderStyles = function renderStyles (context) { |
|
|
|
? cssFiles.map(function (ref) { |
|
|
|
var file = ref.file; |
|
|
|
|
|
|
|
return ("<link rel=\"stylesheet\" href=\"" + (this$1.getPublicPath(file)) + "\">"); |
|
|
|
return ("<link rel=\"stylesheet\" href=\"" + (this$1.publicPath) + file + "\">"); |
|
|
|
}).join('') |
|
|
|
: '') + |
|
|
|
// context.styles is a getter exposed by vue-style-loader which contains
|
|
|
@ -8081,7 +8084,7 @@ TemplateRenderer.prototype.renderPreloadLinks = function renderPreloadLinks (con |
|
|
|
if (asType === 'font') { |
|
|
|
extra = " type=\"font/" + extension + "\" crossorigin"; |
|
|
|
} |
|
|
|
return ("<link rel=\"preload\" href=\"" + (this$1.getPublicPath(file)) + "\"" + (asType !== '' ? (" as=\"" + asType + "\"") : '') + extra + ">") |
|
|
|
return ("<link rel=\"preload\" href=\"" + (this$1.publicPath) + file + "\"" + (asType !== '' ? (" as=\"" + asType + "\"") : '') + extra + ">") |
|
|
|
}).join('') |
|
|
|
} else { |
|
|
|
return '' |
|
|
@ -8108,7 +8111,7 @@ TemplateRenderer.prototype.renderPrefetchLinks = function renderPrefetchLinks (c |
|
|
|
if (alreadyRendered(file)) { |
|
|
|
return '' |
|
|
|
} |
|
|
|
return ("<link rel=\"prefetch\" href=\"" + (this$1.getPublicPath(file)) + "\">") |
|
|
|
return ("<link rel=\"prefetch\" href=\"" + (this$1.publicPath) + file + "\">") |
|
|
|
}).join('') |
|
|
|
} else { |
|
|
|
return '' |
|
|
@ -8146,7 +8149,7 @@ TemplateRenderer.prototype.renderScripts = function renderScripts (context) { |
|
|
|
return needed.map(function (ref) { |
|
|
|
var file = ref.file; |
|
|
|
|
|
|
|
return ("<script src=\"" + (this$1.getPublicPath(file)) + "\" defer></script>") |
|
|
|
return ("<script src=\"" + (this$1.publicPath) + file + "\" defer></script>") |
|
|
|
}).join('') |
|
|
|
} else { |
|
|
|
return '' |
|
|
@ -8169,10 +8172,6 @@ TemplateRenderer.prototype.createStream = function createStream (context) { |
|
|
|
return new TemplateStream(this, this.parsedTemplate, context || {}) |
|
|
|
}; |
|
|
|
|
|
|
|
TemplateRenderer.prototype.getPublicPath = function getPublicPath (file) { |
|
|
|
return path.posix.join(this.publicPath, file) |
|
|
|
}; |
|
|
|
|
|
|
|
function normalizeFile (file) { |
|
|
|
var withoutQuery = file.replace(/\?.*/, ''); |
|
|
|
var extension = path.extname(withoutQuery).slice(1); |
|
|
|