mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-08 07:17:07 +02:00
update bower assets (vue 0.10.5 -> 0.10.6)
This commit is contained in:
parent
659f36774a
commit
11a2f99733
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue",
|
||||
"version": "0.10.5",
|
||||
"version": "0.10.6",
|
||||
"main": "dist/vue.js",
|
||||
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
|
||||
"authors": [
|
||||
@ -17,11 +17,11 @@
|
||||
"*.md"
|
||||
],
|
||||
"homepage": "https://github.com/yyx990803/vue",
|
||||
"_release": "0.10.5",
|
||||
"_release": "0.10.6",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v0.10.5",
|
||||
"commit": "fe996b388971b014279b1f90df26ef95d8b00f05"
|
||||
"tag": "v0.10.6",
|
||||
"commit": "cf37f7efd6d63c0aa46b50c624816e645ddd7edd"
|
||||
},
|
||||
"_source": "git://github.com/yyx990803/vue.git",
|
||||
"_target": "~0.10.0",
|
||||
|
145
vendor/assets/javascripts/bower/vue/dist/vue.js
vendored
145
vendor/assets/javascripts/bower/vue/dist/vue.js
vendored
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Vue.js v0.10.5
|
||||
Vue.js v0.10.6
|
||||
(c) 2014 Evan You
|
||||
License: MIT
|
||||
*/
|
||||
@ -213,12 +213,14 @@ var config = require('./config'),
|
||||
ViewModel = require('./viewmodel'),
|
||||
utils = require('./utils'),
|
||||
makeHash = utils.hash,
|
||||
assetTypes = ['directive', 'filter', 'partial', 'effect', 'component']
|
||||
|
||||
// require these so Browserify can catch them
|
||||
// so they can be used in Vue.require
|
||||
require('./observer')
|
||||
require('./transition')
|
||||
assetTypes = ['directive', 'filter', 'partial', 'effect', 'component'],
|
||||
// Internal modules that are exposed for plugins
|
||||
pluginAPI = {
|
||||
utils: utils,
|
||||
config: config,
|
||||
transition: require('./transition'),
|
||||
observer: require('./observer')
|
||||
}
|
||||
|
||||
ViewModel.options = config.globalAssets = {
|
||||
directives : require('./directives'),
|
||||
@ -239,7 +241,7 @@ assetTypes.forEach(function (type) {
|
||||
}
|
||||
if (!value) return hash[id]
|
||||
if (type === 'partial') {
|
||||
value = utils.toFragment(value)
|
||||
value = utils.parseTemplateOption(value)
|
||||
} else if (type === 'component') {
|
||||
value = utils.toConstructor(value)
|
||||
} else if (type === 'filter') {
|
||||
@ -294,8 +296,8 @@ ViewModel.use = function (plugin) {
|
||||
/**
|
||||
* Expose internal modules for plugins
|
||||
*/
|
||||
ViewModel.require = function (path) {
|
||||
return require('./' + path)
|
||||
ViewModel.require = function (module) {
|
||||
return pluginAPI[module]
|
||||
}
|
||||
|
||||
ViewModel.extend = extend
|
||||
@ -551,6 +553,11 @@ var utils = module.exports = {
|
||||
*/
|
||||
toFragment: require('./fragment'),
|
||||
|
||||
/**
|
||||
* Parse the various types of template options
|
||||
*/
|
||||
parseTemplateOption: require('./template-parser.js'),
|
||||
|
||||
/**
|
||||
* get a value from an object keypath
|
||||
*/
|
||||
@ -745,7 +752,7 @@ var utils = module.exports = {
|
||||
}
|
||||
if (partials) {
|
||||
for (key in partials) {
|
||||
partials[key] = utils.toFragment(partials[key])
|
||||
partials[key] = utils.parseTemplateOption(partials[key])
|
||||
}
|
||||
}
|
||||
if (filters) {
|
||||
@ -754,7 +761,7 @@ var utils = module.exports = {
|
||||
}
|
||||
}
|
||||
if (template) {
|
||||
options.template = utils.toFragment(template)
|
||||
options.template = utils.parseTemplateOption(template)
|
||||
}
|
||||
},
|
||||
|
||||
@ -872,29 +879,12 @@ map.rect = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">','</svg>'
|
||||
|
||||
var TAG_RE = /<([\w:]+)/
|
||||
|
||||
module.exports = function (template) {
|
||||
|
||||
if (typeof template !== 'string') {
|
||||
return template
|
||||
}
|
||||
|
||||
// template by ID
|
||||
if (template.charAt(0) === '#') {
|
||||
var templateNode = document.getElementById(template.slice(1))
|
||||
if (!templateNode) return
|
||||
// if its a template tag and the browser supports it,
|
||||
// its content is already a document fragment!
|
||||
if (templateNode.tagName === 'TEMPLATE' && templateNode.content) {
|
||||
return templateNode.content
|
||||
}
|
||||
template = templateNode.innerHTML
|
||||
}
|
||||
|
||||
module.exports = function (templateString) {
|
||||
var frag = document.createDocumentFragment(),
|
||||
m = TAG_RE.exec(template)
|
||||
m = TAG_RE.exec(templateString)
|
||||
// text only
|
||||
if (!m) {
|
||||
frag.appendChild(document.createTextNode(template))
|
||||
frag.appendChild(document.createTextNode(templateString))
|
||||
return frag
|
||||
}
|
||||
|
||||
@ -905,7 +895,7 @@ module.exports = function (template) {
|
||||
suffix = wrap[2],
|
||||
node = document.createElement('div')
|
||||
|
||||
node.innerHTML = prefix + template.trim() + suffix
|
||||
node.innerHTML = prefix + templateString.trim() + suffix
|
||||
while (depth--) node = node.lastChild
|
||||
|
||||
// one element
|
||||
@ -1983,7 +1973,8 @@ var Compiler = require('./compiler'),
|
||||
* and a few reserved methods
|
||||
*/
|
||||
function ViewModel (options) {
|
||||
// just compile. options are passed directly to compiler
|
||||
// compile if options passed, if false return. options are passed directly to compiler
|
||||
if (options === false) return
|
||||
new Compiler(this, options)
|
||||
}
|
||||
|
||||
@ -1991,6 +1982,15 @@ function ViewModel (options) {
|
||||
// so it can be stringified/looped through as raw data
|
||||
var VMProto = ViewModel.prototype
|
||||
|
||||
/**
|
||||
* init allows config compilation after instantiation:
|
||||
* var a = new Vue(false)
|
||||
* a.init(config)
|
||||
*/
|
||||
def(VMProto, '$init', function (options) {
|
||||
new Compiler(this, options)
|
||||
})
|
||||
|
||||
/**
|
||||
* Convenience function to get a value from
|
||||
* a keypath
|
||||
@ -2048,8 +2048,8 @@ def(VMProto, '$unwatch', function (key, callback) {
|
||||
/**
|
||||
* unbind everything, remove everything
|
||||
*/
|
||||
def(VMProto, '$destroy', function () {
|
||||
this.$compiler.destroy()
|
||||
def(VMProto, '$destroy', function (noRemove) {
|
||||
this.$compiler.destroy(noRemove)
|
||||
})
|
||||
|
||||
/**
|
||||
@ -2145,6 +2145,7 @@ function query (el) {
|
||||
}
|
||||
|
||||
module.exports = ViewModel
|
||||
|
||||
});
|
||||
require.register("vue/src/binding.js", function(exports, require, module){
|
||||
var Batcher = require('./batcher'),
|
||||
@ -3150,6 +3151,55 @@ exports.eval = function (exp, compiler, data) {
|
||||
}
|
||||
return res
|
||||
}
|
||||
});
|
||||
require.register("vue/src/template-parser.js", function(exports, require, module){
|
||||
var toFragment = require('./fragment');
|
||||
|
||||
/**
|
||||
* Parses a template string or node and normalizes it into a
|
||||
* a node that can be used as a partial of a template option
|
||||
*
|
||||
* Possible values include
|
||||
* id selector: '#some-template-id'
|
||||
* template string: '<div><span>my template</span></div>'
|
||||
* DocumentFragment object
|
||||
* Node object of type Template
|
||||
*/
|
||||
module.exports = function(template) {
|
||||
var templateNode;
|
||||
|
||||
if (template instanceof window.DocumentFragment) {
|
||||
// if the template is already a document fragment -- do nothing
|
||||
return template
|
||||
}
|
||||
|
||||
if (typeof template === 'string') {
|
||||
// template by ID
|
||||
if (template.charAt(0) === '#') {
|
||||
templateNode = document.getElementById(template.slice(1))
|
||||
if (!templateNode) return
|
||||
} else {
|
||||
return toFragment(template)
|
||||
}
|
||||
} else if (template.nodeType) {
|
||||
templateNode = template
|
||||
} else {
|
||||
return
|
||||
}
|
||||
|
||||
// if its a template tag and the browser supports it,
|
||||
// its content is already a document fragment!
|
||||
if (templateNode.tagName === 'TEMPLATE' && templateNode.content) {
|
||||
return templateNode.content
|
||||
}
|
||||
|
||||
if (templateNode.tagName === 'SCRIPT') {
|
||||
return toFragment(templateNode.innerHTML)
|
||||
}
|
||||
|
||||
return toFragment(templateNode.outerHTML);
|
||||
}
|
||||
|
||||
});
|
||||
require.register("vue/src/text-parser.js", function(exports, require, module){
|
||||
var openChar = '{',
|
||||
@ -3354,6 +3404,7 @@ filters.lowercase = function (value) {
|
||||
* 12345 => $12,345.00
|
||||
*/
|
||||
filters.currency = function (value, sign) {
|
||||
value = parseFloat(value)
|
||||
if (!value && value !== 0) return ''
|
||||
sign = sign || '$'
|
||||
var s = Math.floor(value).toString(),
|
||||
@ -4271,7 +4322,9 @@ module.exports = {
|
||||
var el = this.iframeBind
|
||||
? this.el.contentWindow
|
||||
: this.el
|
||||
el.removeEventListener(this.arg, this.handler)
|
||||
if (this.handler) {
|
||||
el.removeEventListener(this.arg, this.handler)
|
||||
}
|
||||
},
|
||||
|
||||
unbind: function () {
|
||||
@ -4571,13 +4624,19 @@ module.exports = {
|
||||
},
|
||||
|
||||
update: function (value) {
|
||||
var prop = this.prop
|
||||
var prop = this.prop,
|
||||
isImportant
|
||||
/* jshint eqeqeq: true */
|
||||
// cast possible numbers/booleans into strings
|
||||
if (value != null) value += ''
|
||||
if (prop) {
|
||||
var isImportant = value.slice(-10) === '!important'
|
||||
? 'important'
|
||||
: ''
|
||||
if (isImportant) {
|
||||
value = value.slice(0, -10).trim()
|
||||
if (value) {
|
||||
isImportant = value.slice(-10) === '!important'
|
||||
? 'important'
|
||||
: ''
|
||||
if (isImportant) {
|
||||
value = value.slice(0, -10).trim()
|
||||
}
|
||||
}
|
||||
this.el.style.setProperty(prop, value, isImportant)
|
||||
if (this.prefixed) {
|
||||
|
File diff suppressed because one or more lines are too long
@ -46,7 +46,9 @@ module.exports = {
|
||||
var el = this.iframeBind
|
||||
? this.el.contentWindow
|
||||
: this.el
|
||||
el.removeEventListener(this.arg, this.handler)
|
||||
if (this.handler) {
|
||||
el.removeEventListener(this.arg, this.handler)
|
||||
}
|
||||
},
|
||||
|
||||
unbind: function () {
|
||||
|
@ -17,13 +17,19 @@ module.exports = {
|
||||
},
|
||||
|
||||
update: function (value) {
|
||||
var prop = this.prop
|
||||
var prop = this.prop,
|
||||
isImportant
|
||||
/* jshint eqeqeq: true */
|
||||
// cast possible numbers/booleans into strings
|
||||
if (value != null) value += ''
|
||||
if (prop) {
|
||||
var isImportant = value.slice(-10) === '!important'
|
||||
? 'important'
|
||||
: ''
|
||||
if (isImportant) {
|
||||
value = value.slice(0, -10).trim()
|
||||
if (value) {
|
||||
isImportant = value.slice(-10) === '!important'
|
||||
? 'important'
|
||||
: ''
|
||||
if (isImportant) {
|
||||
value = value.slice(0, -10).trim()
|
||||
}
|
||||
}
|
||||
this.el.style.setProperty(prop, value, isImportant)
|
||||
if (this.prefixed) {
|
||||
|
@ -35,6 +35,7 @@ filters.lowercase = function (value) {
|
||||
* 12345 => $12,345.00
|
||||
*/
|
||||
filters.currency = function (value, sign) {
|
||||
value = parseFloat(value)
|
||||
if (!value && value !== 0) return ''
|
||||
sign = sign || '$'
|
||||
var s = Math.floor(value).toString(),
|
||||
|
@ -30,29 +30,12 @@ map.rect = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">','</svg>'
|
||||
|
||||
var TAG_RE = /<([\w:]+)/
|
||||
|
||||
module.exports = function (template) {
|
||||
|
||||
if (typeof template !== 'string') {
|
||||
return template
|
||||
}
|
||||
|
||||
// template by ID
|
||||
if (template.charAt(0) === '#') {
|
||||
var templateNode = document.getElementById(template.slice(1))
|
||||
if (!templateNode) return
|
||||
// if its a template tag and the browser supports it,
|
||||
// its content is already a document fragment!
|
||||
if (templateNode.tagName === 'TEMPLATE' && templateNode.content) {
|
||||
return templateNode.content
|
||||
}
|
||||
template = templateNode.innerHTML
|
||||
}
|
||||
|
||||
module.exports = function (templateString) {
|
||||
var frag = document.createDocumentFragment(),
|
||||
m = TAG_RE.exec(template)
|
||||
m = TAG_RE.exec(templateString)
|
||||
// text only
|
||||
if (!m) {
|
||||
frag.appendChild(document.createTextNode(template))
|
||||
frag.appendChild(document.createTextNode(templateString))
|
||||
return frag
|
||||
}
|
||||
|
||||
@ -63,7 +46,7 @@ module.exports = function (template) {
|
||||
suffix = wrap[2],
|
||||
node = document.createElement('div')
|
||||
|
||||
node.innerHTML = prefix + template.trim() + suffix
|
||||
node.innerHTML = prefix + templateString.trim() + suffix
|
||||
while (depth--) node = node.lastChild
|
||||
|
||||
// one element
|
||||
|
20
vendor/assets/javascripts/bower/vue/src/main.js
vendored
20
vendor/assets/javascripts/bower/vue/src/main.js
vendored
@ -2,12 +2,14 @@ var config = require('./config'),
|
||||
ViewModel = require('./viewmodel'),
|
||||
utils = require('./utils'),
|
||||
makeHash = utils.hash,
|
||||
assetTypes = ['directive', 'filter', 'partial', 'effect', 'component']
|
||||
|
||||
// require these so Browserify can catch them
|
||||
// so they can be used in Vue.require
|
||||
require('./observer')
|
||||
require('./transition')
|
||||
assetTypes = ['directive', 'filter', 'partial', 'effect', 'component'],
|
||||
// Internal modules that are exposed for plugins
|
||||
pluginAPI = {
|
||||
utils: utils,
|
||||
config: config,
|
||||
transition: require('./transition'),
|
||||
observer: require('./observer')
|
||||
}
|
||||
|
||||
ViewModel.options = config.globalAssets = {
|
||||
directives : require('./directives'),
|
||||
@ -28,7 +30,7 @@ assetTypes.forEach(function (type) {
|
||||
}
|
||||
if (!value) return hash[id]
|
||||
if (type === 'partial') {
|
||||
value = utils.toFragment(value)
|
||||
value = utils.parseTemplateOption(value)
|
||||
} else if (type === 'component') {
|
||||
value = utils.toConstructor(value)
|
||||
} else if (type === 'filter') {
|
||||
@ -83,8 +85,8 @@ ViewModel.use = function (plugin) {
|
||||
/**
|
||||
* Expose internal modules for plugins
|
||||
*/
|
||||
ViewModel.require = function (path) {
|
||||
return require('./' + path)
|
||||
ViewModel.require = function (module) {
|
||||
return pluginAPI[module]
|
||||
}
|
||||
|
||||
ViewModel.extend = extend
|
||||
|
46
vendor/assets/javascripts/bower/vue/src/template-parser.js
vendored
Normal file
46
vendor/assets/javascripts/bower/vue/src/template-parser.js
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
var toFragment = require('./fragment');
|
||||
|
||||
/**
|
||||
* Parses a template string or node and normalizes it into a
|
||||
* a node that can be used as a partial of a template option
|
||||
*
|
||||
* Possible values include
|
||||
* id selector: '#some-template-id'
|
||||
* template string: '<div><span>my template</span></div>'
|
||||
* DocumentFragment object
|
||||
* Node object of type Template
|
||||
*/
|
||||
module.exports = function(template) {
|
||||
var templateNode;
|
||||
|
||||
if (template instanceof window.DocumentFragment) {
|
||||
// if the template is already a document fragment -- do nothing
|
||||
return template
|
||||
}
|
||||
|
||||
if (typeof template === 'string') {
|
||||
// template by ID
|
||||
if (template.charAt(0) === '#') {
|
||||
templateNode = document.getElementById(template.slice(1))
|
||||
if (!templateNode) return
|
||||
} else {
|
||||
return toFragment(template)
|
||||
}
|
||||
} else if (template.nodeType) {
|
||||
templateNode = template
|
||||
} else {
|
||||
return
|
||||
}
|
||||
|
||||
// if its a template tag and the browser supports it,
|
||||
// its content is already a document fragment!
|
||||
if (templateNode.tagName === 'TEMPLATE' && templateNode.content) {
|
||||
return templateNode.content
|
||||
}
|
||||
|
||||
if (templateNode.tagName === 'SCRIPT') {
|
||||
return toFragment(templateNode.innerHTML)
|
||||
}
|
||||
|
||||
return toFragment(templateNode.outerHTML);
|
||||
}
|
@ -32,6 +32,11 @@ var utils = module.exports = {
|
||||
*/
|
||||
toFragment: require('./fragment'),
|
||||
|
||||
/**
|
||||
* Parse the various types of template options
|
||||
*/
|
||||
parseTemplateOption: require('./template-parser.js'),
|
||||
|
||||
/**
|
||||
* get a value from an object keypath
|
||||
*/
|
||||
@ -226,7 +231,7 @@ var utils = module.exports = {
|
||||
}
|
||||
if (partials) {
|
||||
for (key in partials) {
|
||||
partials[key] = utils.toFragment(partials[key])
|
||||
partials[key] = utils.parseTemplateOption(partials[key])
|
||||
}
|
||||
}
|
||||
if (filters) {
|
||||
@ -235,7 +240,7 @@ var utils = module.exports = {
|
||||
}
|
||||
}
|
||||
if (template) {
|
||||
options.template = utils.toFragment(template)
|
||||
options.template = utils.parseTemplateOption(template)
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -16,7 +16,8 @@ var Compiler = require('./compiler'),
|
||||
* and a few reserved methods
|
||||
*/
|
||||
function ViewModel (options) {
|
||||
// just compile. options are passed directly to compiler
|
||||
// compile if options passed, if false return. options are passed directly to compiler
|
||||
if (options === false) return
|
||||
new Compiler(this, options)
|
||||
}
|
||||
|
||||
@ -24,6 +25,15 @@ function ViewModel (options) {
|
||||
// so it can be stringified/looped through as raw data
|
||||
var VMProto = ViewModel.prototype
|
||||
|
||||
/**
|
||||
* init allows config compilation after instantiation:
|
||||
* var a = new Vue(false)
|
||||
* a.init(config)
|
||||
*/
|
||||
def(VMProto, '$init', function (options) {
|
||||
new Compiler(this, options)
|
||||
})
|
||||
|
||||
/**
|
||||
* Convenience function to get a value from
|
||||
* a keypath
|
||||
@ -81,8 +91,8 @@ def(VMProto, '$unwatch', function (key, callback) {
|
||||
/**
|
||||
* unbind everything, remove everything
|
||||
*/
|
||||
def(VMProto, '$destroy', function () {
|
||||
this.$compiler.destroy()
|
||||
def(VMProto, '$destroy', function (noRemove) {
|
||||
this.$compiler.destroy(noRemove)
|
||||
})
|
||||
|
||||
/**
|
||||
@ -177,4 +187,4 @@ function query (el) {
|
||||
: el
|
||||
}
|
||||
|
||||
module.exports = ViewModel
|
||||
module.exports = ViewModel
|
||||
|
Loading…
Reference in New Issue
Block a user