Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BosNaufal/vue-loading-bar
/ functions
Functions
233 in github.com/BosNaufal/vue-loading-bar
⨍
Functions
233
◇
Types & classes
0
↓ 48 callers
Function
warn
()
build.js:2251
↓ 17 callers
Function
isObject
* Quick object check - this is primarily used to tell * Objects from primitive values when we know the value * is a JSON-compliant type. * * @para
build.js:260
↓ 15 callers
Function
hasOwn
* Check whether the object has the property. * * @param {Object} obj * @param {String} key * @return {Boolean}
build.js:72
↓ 13 callers
Function
cb
()
build.js:362
↓ 11 callers
Function
createAnchor
* Create an "anchor" for performing dom insertion/removals. * This is used in a number of scenarios: * - fragment instance * - v-html * - v-if *
build.js:1331
↓ 11 callers
Function
inDoc
* Check if a node is in the document. * Note: document.documentElement.contains should work here * but always returns false for comment nodes in pha
build.js:1089
↓ 11 callers
Function
toArray
* Convert an Array-like object to a real Array. * * @param {Array-like} list * @param {Number} [start] - start index * @return {Array}
build.js:225
↓ 10 callers
Function
resolveAsset
* Resolve an asset. * This function is used because child instances need access * to assets defined in its ancestor chain. * * @param {Object} opt
build.js:1833
↓ 9 callers
Function
defineReactive
* Define a reactive property on an Object. * * @param {Object} obj * @param {String} key * @param {*} val
build.js:2140
↓ 9 callers
Function
isPlainObject
(obj)
build.js:275
↓ 9 callers
Function
removeClass
* Remove class with compatibility for IE & SVG * * @param {Element} el * @param {Strong} cls
build.js:1240
↓ 9 callers
Function
replace
* Replace target with el * * @param {Element} target * @param {Element} el
build.js:1184
↓ 8 callers
Function
getAttr
* Get and remove an attribute from a node. * * @param {Node} node * @param {String} _attr
build.js:1102
↓ 7 callers
Function
def
* Define a non-enumerable property * * @param {Object} obj * @param {String} key * @param {*} val * @param {Boolean} [enumerable]
build.js:297
↓ 7 callers
Function
extend
* Mix properties into target object. * * @param {Object} to * @param {Object} from
build.js:242
↓ 7 callers
Function
parseDirective
* Parse a directive value and extract the expression * and its filters into a descriptor. * * Example: * * "a + 1 | uppercase" will yield: * {
build.js:635
↓ 7 callers
Function
remove
* Remove el from DOM * * @param {Element} el
build.js:1158
↓ 6 callers
Function
addClass
* Add class with compatibility for IE & SVG * * @param {Element} el * @param {Strong} cls
build.js:1222
↓ 6 callers
Function
before
* Insert el before target * * @param {Element} el * @param {Element} target
build.js:1133
↓ 6 callers
Function
bind$1
* Simple bind, faster than native * * @param {Function} fn * @param {Object} ctx * @return {Function}
build.js:210
↓ 6 callers
Function
camelize
(str)
build.js:163
↓ 6 callers
Function
cloneNode
* 1. Deal with Safari cloning nested <template> bug by * manually cloning all template instances. * 2. Deal with IE10/11 textarea placeholder bug
build.js:4210
↓ 6 callers
Function
parseExpression
* Parse an expression into re-written getter/setters. * * @param {String} exp * @param {Boolean} needSet * @return {Function}
build.js:2836
↓ 6 callers
Function
parseTemplate
* Process the template option and normalizes it into a * a DocumentFragment that can be used as a partial or a * instance template. * * @param {*}
build.js:4268
↓ 6 callers
Function
pushDir
* Push a directive. * * @param {String} dirName * @param {Object|Function} def * @param {Boolean} [interp]
build.js:6921
↓ 6 callers
Function
toNumber
* Check and convert possible numeric strings to numbers * before setting back to data * * @param {*} value * @return {*|Number}
build.js:121
↓ 5 callers
Function
compile
* Compile a template and return a reusable composite link * function, which recursively contains more link functions * inside. This top level compil
build.js:6274
↓ 5 callers
Function
getBindAttr
* Get an attribute with colon or v-bind: prefix. * * @param {Node} node * @param {String} name * @return {String|null}
build.js:1118
↓ 5 callers
Function
initProp
* Set a prop's initial value on a vm and its data object. * * @param {Vue} vm * @param {Object} prop * @param {*} value
build.js:1471
↓ 5 callers
Function
isTemplate
* Check if an element is a template tag. * Note if the template appears inside an SVG its tagName * will be in lowercase. * * @param {Element} el
build.js:1309
↓ 5 callers
Function
observe
* Attempt to create an observer instance for a value, * returns the new observer if successfully observed, * or the existing observer if the value a
build.js:2116
↓ 5 callers
Function
query
* Query an element selector if it's not an element already. * * @param {String|Element} el * @return {Element}
build.js:1066
↓ 4 callers
Function
applyTransition
* Apply transitions with an operation callback. * * @param {Element} el * @param {Number} direction * 1: enter *
build.js:1039
↓ 4 callers
Function
assertAsset
* Assert asset exists
build.js:1847
↓ 4 callers
Function
cancellable
* Make a cancellable version of an async callback. * * @param {Function} fn * @return {Function}
build.js:361
↓ 4 callers
Function
compileDirectives
* Compile the directives on an element and return a linker. * * @param {Array|NamedNodeMap} attrs * @param {Object} options * @return {Function}
build.js:6833
↓ 4 callers
Function
escapeRegex
* Escape a string so it can be used in a RegExp * constructor. * * @param {String} str
build.js:714
↓ 4 callers
Function
getPath
* Get from an object from a path string * * @param {Object} obj * @param {String} path
build.js:2621
↓ 4 callers
Function
linkAndCapture
* Apply a linker to a vm/element pair and capture the * directives created during the process. * * @param {Function} linker * @param {Vue} vm
build.js:6313
↓ 4 callers
Function
looseEqual
* Check if two values are loosely equal - that is, * if they are plain objects, do they have the same shape? * * @param {*} a * @param {*} b * @r
build.js:382
↓ 4 callers
Function
modifyListenerCount
(vm, event, count)
build.js:8787
↓ 4 callers
Function
off
* Remove event listener shorthand. * * @param {Element} el * @param {String} event * @param {Function} cb
build.js:1211
↓ 4 callers
Function
on$1
* Add event listener shorthand. * * @param {Element} el * @param {String} event * @param {Function} cb
build.js:1199
↓ 4 callers
Function
parseText
* Parse a template text string into an array of tokens. * * @param {String} text * @return {Array<Object> | null} * - {String} type
build.js:740
↓ 4 callers
Function
set
(obj, key, val)
build.js:10
↓ 4 callers
Function
trimNode
* Trim possible empty head/tail textNodes inside a parent. * * @param {Node} node
build.js:1290
↓ 3 callers
Function
_toString
* Guard text output, make sure undefined outputs * empty string * * @param {*} value * @return {String}
build.js:109
↓ 3 callers
Function
compileRegex
()
build.js:718
↓ 3 callers
Function
contains
* String contain helper * * @param {*} val * @param {String} search
build.js:8988
↓ 3 callers
Function
extractContent
* Extract raw content inside an element into a temporary * container div * * @param {Element} el * @param {Boolean} asFragment * @return {Element
build.js:1265
↓ 3 callers
Function
hyphenate
(str)
build.js:180
↓ 3 callers
Function
indexOf
* Manual indexOf because it's slightly faster than * native. * * @param {Array} arr * @param {*} obj
build.js:346
↓ 3 callers
Function
isSimplePath
* Check if an expression is a simple path. * * @param {String} exp * @return {Boolean}
build.js:2866
↓ 3 callers
Function
makeUnlinkFn
* Linker functions return an unlink function that * tearsdown all directives instances generated during * the process. * * We create unlink functi
build.js:6352
↓ 3 callers
Function
mapNodeRange
* Map a function to a range of nodes . * * @param {Node} node * @param {Node} end * @param {Function} op
build.js:1366
↓ 3 callers
Function
mergeOptions
* Merge two option objects into a new one. * Core utility used in both instantiation and inheritance. * * @param {Object} parent * @param {Object}
build.js:1797
↓ 3 callers
Function
stripQuotes
* Strip quotes from a string * * @param {String} str * @return {String | false}
build.js:148
↓ 2 callers
Function
_debounce
* Debounce a function so it only gets called after the * input stops arriving after the given wait period. * * @param {Function} func * @param {Nu
build.js:315
↓ 2 callers
Function
append
* Append operation that takes a callback. * * @param {Node} el * @param {Node} target * @param {Vue} vm - unused * @param {Function} [c
build.js:8600
↓ 2 callers
Function
assertProp
* Assert whether a prop is valid. * * @param {Object} prop * @param {*} value
build.js:1483
↓ 2 callers
Function
clean
* "clean" a getter/setter converted object into a plain * object copy. * * @param {Object} - obj * @return {Object}
build.js:8442
↓ 2 callers
Function
compileNode
* Compile a node and return a nodeLinkFn based on the * node type. * * @param {Node} node * @param {Object} options * @return {Function|null}
build.js:6484
↓ 2 callers
Function
compileSetter
* Compile a setter function for the expression. * * @param {String} exp * @return {Function|undefined}
build.js:2817
↓ 2 callers
Function
extractAttrs
* Helper to extract a component container's attributes * into a plain object array. * * @param {Element} el * @return {Array}
build.js:7083
↓ 2 callers
Function
extractFragment
* Extract qualified content nodes from a node list. * * @param {NodeList} nodes * @param {Element} parent * @param {Boolean} main * @return {Docu
build.js:9242
↓ 2 callers
Function
findPrevFrag
* Helper to find the previous element that is a fragment * anchor. This is necessary because a destroyed frag's * element could still be lingering i
build.js:5099
↓ 2 callers
Function
findRef
(node)
build.js:1346
↓ 2 callers
Function
formatToken
* Format a single token. * * @param {Object} token * @param {Boolean} single * @return {String}
build.js:815
↓ 2 callers
Function
getIsBinding
* Get "is" binding from an element. * * @param {Element} el * @return {Object|undefined}
build.js:1450
↓ 2 callers
Function
getValue
* Get select value * * @param {SelectElement} el * @param {Boolean} multi * @param {Boolean} init * @return {Array|*}
build.js:3769
↓ 2 callers
Function
guardArrayAssets
* Guard an Array-format assets option and converted it * into the key-value Object format. * * @param {Object|Array} assets * @return {Object}
build.js:1768
↓ 2 callers
Function
injectHook
* Inject a hook to a hot reloadable component so that * we can keep track of it. * * @param {Object} options * @param {String} name * @param {Fun
build.js:9550
↓ 2 callers
Function
insert
* Shared DOM insertion function. * * @param {Vue} vm * @param {Element} target * @param {Function} [cb] * @param {Boolean} [withTransit
build.js:8562
↓ 2 callers
Function
isLiteral
(exp)
build.js:85
↓ 2 callers
Function
isRealTemplate
* Check if a node is a supported template node with a * DocumentFragment content. * * @param {Node} node * @return {Boolean}
build.js:4084
↓ 2 callers
Function
isReserved
* Check if a string starts with $ or _ * * @param {String} str * @return {Boolean}
build.js:96
↓ 2 callers
Function
makeComputedGetter
(getter, owner)
build.js:7318
↓ 2 callers
Function
makeGetterFn
* Build a getter function. Requires eval. * * We isolate the try/catch so it doesn't affect the * optimization of the parse function when it is not
build.js:2802
↓ 2 callers
Function
makeOptionsHot
* Make a Component options object hot. * * @param {String} id * @param {Object} options
build.js:9527
↓ 2 callers
Function
makeTerminalNodeLinkFn
* Build a node link function for a terminal directive. * A terminal link function terminates the current * compilation recursion and handles compila
build.js:6801
↓ 2 callers
Function
mergeData
* Helper that recursively merges two data objects together.
build.js:1556
↓ 2 callers
Function
mergeField
(key)
build.js:1815
↓ 2 callers
Function
nodeToFragment
* Convert a template node to a DocumentFragment. * * @param {Node} node * @return {DocumentFragment}
build.js:4151
↓ 2 callers
Function
parse
* Parse a string path into an array of segments * * @param {String} path * @return {Array|undefined}
build.js:2508
↓ 2 callers
Function
patchView
* Shim the view directive (component or router-view). * * @param {Object} View
build.js:9446
↓ 2 callers
Function
prepend
* Prepend el to target * * @param {Element} el * @param {Element} target
build.js:1169
↓ 2 callers
Function
pushFilter
* Push a filter to the current directive object
build.js:577
↓ 2 callers
Function
pushJob
* Push a job into the queue. * * @param {Function} job
build.js:5226
↓ 2 callers
Function
register
* Helper to register an event/watch callback. * * @param {Vue} vm * @param {String} action * @param {String} key * @param {Function|Str
build.js:7434
↓ 2 callers
Function
registerCallbacks
* Register callbacks for option events and watchers. * * @param {Vue} vm * @param {String} action * @param {Object} hash
build.js:7409
↓ 2 callers
Function
removeNodeRange
* Remove a range of nodes with transition, store * the nodes in a fragment with correct ordering, * and call callback when done. * * @param {Node}
build.js:1388
↓ 2 callers
Function
removeWithTransition
* Remove with transition. * * @param {Element} el * @param {Vue} vm * @param {Function} [cb]
build.js:1021
↓ 2 callers
Function
runBatcherQueue
* Run the watchers in a single queue. * * @param {Array} queue
build.js:2928
↓ 2 callers
Function
setTokenType
(type)
build.js:6610
↓ 2 callers
Function
stringToFragment
* Convert a string template to a DocumentFragment. * Determines correct wrapping by tag types. Wrapping * strategy found in jQuery & component/domif
build.js:4101
↓ 2 callers
Function
teardownDirs
* Teardown partial linked directives. * * @param {Vue} vm * @param {Array} dirs * @param {Boolean} destroying
build.js:6369
↓ 2 callers
Function
tokensToExp
* Format a list of tokens into an expression. * e.g. tokens parsed from 'a {{b}} c' can be serialized * into one single expression as '"a " + b + "
build.js:797
↓ 2 callers
Function
trim
(parent, node)
build.js:1295
↓ 1 callers
Function
addView
* Add a component view to a Component's hot list * * @param {Function} Component * @param {Directive} view - view directive instance
build.js:9470
↓ 1 callers
Function
after
* Insert el after target * * @param {Element} el * @param {Element} target
build.js:1144
next →
1–100 of 233, ranked by callers