repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/components/index.ts | src/platforms/web/runtime/components/index.ts | import Transition from './transition'
import TransitionGroup from './transition-group'
export default {
Transition,
TransitionGroup
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/modules/transition.ts | src/platforms/web/runtime/modules/transition.ts | import { inBrowser, isIE9, warn } from 'core/util/index'
import { mergeVNodeHook } from 'core/vdom/helpers/index'
import { activeInstance } from 'core/instance/lifecycle'
import {
once,
isDef,
isUndef,
isObject,
toNumber,
isFunction
} from 'shared/util'
import {
nextFrame,
resolveTransition,
whenTra... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/modules/dom-props.ts | src/platforms/web/runtime/modules/dom-props.ts | import { isDef, isUndef, extend, toNumber, isTrue } from 'shared/util'
import type { VNodeWithData } from 'types/vnode'
import { isSVG } from 'web/util/index'
let svgContainer
function updateDOMProps(oldVnode: VNodeWithData, vnode: VNodeWithData) {
if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/modules/class.ts | src/platforms/web/runtime/modules/class.ts | import { isDef, isUndef } from 'shared/util'
import type { VNodeData } from 'types/vnode'
import { concat, stringifyClass, genClassForVnode } from 'web/util/index'
function updateClass(oldVnode: any, vnode: any) {
const el = vnode.elm
const data: VNodeData = vnode.data
const oldData: VNodeData = oldVnode.data
... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/modules/attrs.ts | src/platforms/web/runtime/modules/attrs.ts | import { isIE, isIE9, isEdge } from 'core/util/env'
import { extend, isDef, isUndef, isTrue } from 'shared/util'
import type { VNodeWithData } from 'types/vnode'
import {
isXlink,
xlinkNS,
getXlinkProp,
isBooleanAttr,
isEnumeratedAttr,
isFalsyAttrValue,
convertEnumeratedValue
} from 'web/util/index'
fu... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/modules/index.ts | src/platforms/web/runtime/modules/index.ts | import attrs from './attrs'
import klass from './class'
import events from './events'
import domProps from './dom-props'
import style from './style'
import transition from './transition'
export default [attrs, klass, events, domProps, style, transition]
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/modules/events.ts | src/platforms/web/runtime/modules/events.ts | import { isDef, isUndef } from 'shared/util'
import { updateListeners } from 'core/vdom/helpers/index'
import { isIE, isFF, supportsPassive, isUsingMicroTask } from 'core/util/index'
import {
RANGE_TOKEN,
CHECKBOX_RADIO_TOKEN
} from 'web/compiler/directives/model'
import { currentFlushTimestamp } from 'core/observe... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/modules/style.ts | src/platforms/web/runtime/modules/style.ts | import { getStyle, normalizeStyleBinding } from 'web/util/style'
import {
cached,
camelize,
extend,
isDef,
isUndef,
hyphenate
} from 'shared/util'
import type { VNodeWithData } from 'types/vnode'
const cssVarRE = /^--/
const importantRE = /\s*!important$/
const setProp = (el, name, val) => {
/* istanbul ... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/directives/model.ts | src/platforms/web/runtime/directives/model.ts | /**
* Not type checking this file because flow doesn't like attaching
* properties to Elements.
*/
import { isTextInputType } from 'web/util/element'
import { looseEqual, looseIndexOf } from 'shared/util'
import { mergeVNodeHook } from 'core/vdom/helpers/index'
import { warn, isIE9, isIE, isEdge } from 'core/util/i... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/directives/show.ts | src/platforms/web/runtime/directives/show.ts | import VNode from 'core/vdom/vnode'
import type { VNodeDirective, VNodeWithData } from 'types/vnode'
import { enter, leave } from 'web/runtime/modules/transition'
// recursively search for possible transition defined inside the component root
function locateNode(vnode: VNode | VNodeWithData): VNodeWithData {
// @ts-... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/runtime/directives/index.ts | src/platforms/web/runtime/directives/index.ts | import model from './model'
import show from './show'
export default {
model,
show
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/util.ts | src/platforms/web/compiler/util.ts | import { makeMap } from 'shared/util'
export const isUnaryTag = makeMap(
'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
'link,meta,param,source,track,wbr'
)
// Elements that you can, intentionally, leave open
// (and which close themselves)
export const canBeLeftOpenTag = makeMap(
'colgroup,dd,... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/options.ts | src/platforms/web/compiler/options.ts | import {
isPreTag,
mustUseProp,
isReservedTag,
getTagNamespace
} from '../util/index'
import modules from './modules/index'
import directives from './directives/index'
import { genStaticKeys } from 'shared/util'
import { isUnaryTag, canBeLeftOpenTag } from './util'
import { CompilerOptions } from 'types/compil... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/index.ts | src/platforms/web/compiler/index.ts | import { baseOptions } from './options'
import { createCompiler } from 'compiler/index'
const { compile, compileToFunctions } = createCompiler(baseOptions)
export { compile, compileToFunctions }
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/modules/model.ts | src/platforms/web/compiler/modules/model.ts | /**
* Expand input[v-model] with dynamic type bindings into v-if-else chains
* Turn this:
* <input v-model="data[type]" :type="type">
* into this:
* <input v-if="type === 'checkbox'" type="checkbox" v-model="data[type]">
* <input v-else-if="type === 'radio'" type="radio" v-model="data[type]">
* <input v-... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/modules/class.ts | src/platforms/web/compiler/modules/class.ts | import { parseText } from 'compiler/parser/text-parser'
import { getAndRemoveAttr, getBindingAttr, baseWarn } from 'compiler/helpers'
import { ASTElement, CompilerOptions, ModuleOptions } from 'types/compiler'
function transformNode(el: ASTElement, options: CompilerOptions) {
const warn = options.warn || baseWarn
... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/modules/index.ts | src/platforms/web/compiler/modules/index.ts | import klass from './class'
import style from './style'
import model from './model'
export default [klass, style, model]
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/modules/style.ts | src/platforms/web/compiler/modules/style.ts | import { parseText } from 'compiler/parser/text-parser'
import { parseStyleText } from 'web/util/style'
import { getAndRemoveAttr, getBindingAttr, baseWarn } from 'compiler/helpers'
import { ASTElement, CompilerOptions, ModuleOptions } from 'types/compiler'
function transformNode(el: ASTElement, options: CompilerOptio... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/directives/model.ts | src/platforms/web/compiler/directives/model.ts | import config from 'core/config'
import { addHandler, addProp, getBindingAttr } from 'compiler/helpers'
import { genComponentModel, genAssignmentCode } from 'compiler/directives/model'
import { ASTDirective, ASTElement, ASTModifiers } from 'types/compiler'
let warn
// in some cases, the event used has to be determine... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/directives/html.ts | src/platforms/web/compiler/directives/html.ts | import { addProp } from 'compiler/helpers'
import { ASTDirective, ASTElement } from 'types/compiler'
export default function html(el: ASTElement, dir: ASTDirective) {
if (dir.value) {
addProp(el, 'innerHTML', `_s(${dir.value})`, dir)
}
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/directives/text.ts | src/platforms/web/compiler/directives/text.ts | import { addProp } from 'compiler/helpers'
import { ASTDirective, ASTElement } from 'types/compiler'
export default function text(el: ASTElement, dir: ASTDirective) {
if (dir.value) {
addProp(el, 'textContent', `_s(${dir.value})`, dir)
}
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/platforms/web/compiler/directives/index.ts | src/platforms/web/compiler/directives/index.ts | import model from './model'
import text from './text'
import html from './html'
export default {
model,
text,
html
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/vnode.ts | src/types/vnode.ts | import VNode from 'core/vdom/vnode'
import { Ref } from 'v3'
import { Component } from './component'
import { ASTModifiers } from './compiler'
/**
* @internal
*/
export type VNodeChildren =
| Array<null | VNode | string | number | VNodeChildren>
| string
/**
* @internal
*/
export type VNodeComponentOptions = ... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/utils.ts | src/types/utils.ts | // If the type T accepts type "any", output type Y, otherwise output type N.
// https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/options.ts | src/types/options.ts | import VNode from 'core/vdom/vnode'
import { DebuggerEvent } from 'v3/debug'
import { SetupContext } from 'v3/apiSetup'
import { Component } from './component'
export type InternalComponentOptions = {
_isComponent: true
parent: Component
_parentVnode: VNode
render?: Function
staticRenderFns?: Array<Function>... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/ssr.ts | src/types/ssr.ts | import VNode from 'core/vdom/vnode'
import { Component } from './component'
export type ComponentWithCacheContext = {
type: 'ComponentWithCache'
bufferIndex: number
buffer: Array<string>
key: string
}
export type ElementContext = {
type: 'Element'
children: Array<VNode>
rendered: number
endTag: string... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/compiler.ts | src/types/compiler.ts | import { BindingMetadata } from 'sfc/types'
export type CompilerOptions = {
warn?: Function // allow customizing warning in different environments; e.g. node
modules?: Array<ModuleOptions> // platform specific modules; e.g. style; class
directives?: { [key: string]: Function } // platform specific directives
s... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/modules.d.ts | src/types/modules.d.ts | declare module 'de-indent' {
export default function deindent(input: string): string
}
declare namespace jasmine {
interface Matchers<T> {
toHaveBeenWarned(): void
toHaveBeenTipped(): void
}
interface ArrayLikeMatchers<T> {
toHaveBeenWarned(): void
toHaveBeenTipped(): void
}
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/component.ts | src/types/component.ts | import type VNode from 'core/vdom/vnode'
import type Watcher from 'core/observer/watcher'
import { ComponentOptions } from './options'
import { SetupContext } from 'v3/apiSetup'
import { ScopedSlotsData, VNodeChildren, VNodeData } from './vnode'
import { GlobalAPI } from './global-api'
import { EffectScope } from 'v3/r... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/types/global-api.ts | src/types/global-api.ts | import { Config } from 'core/config'
import { Component } from './component'
/**
* @internal
*/
export interface GlobalAPI {
// new(options?: any): Component
(options?: any): void
cid: number
options: Record<string, any>
config: Config
util: Object
extend: (options: typeof Component | object) => typeo... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/config.ts | src/core/config.ts | import { no, noop, identity } from 'shared/util'
import { LIFECYCLE_HOOKS } from 'shared/constants'
import type { Component } from 'types/component'
/**
* @internal
*/
export interface Config {
// user
optionMergeStrategies: { [key: string]: Function }
silent: boolean
productionTip: boolean
performance: b... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/index.ts | src/core/index.ts | import Vue from './instance/index'
import { initGlobalAPI } from './global-api/index'
import { isServerRendering } from 'core/util/env'
import { FunctionalRenderContext } from 'core/vdom/create-functional-component'
import { version } from 'v3'
initGlobalAPI(Vue)
Object.defineProperty(Vue.prototype, '$isServer', {
... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/debug.ts | src/core/util/debug.ts | import config from '../config'
import { noop, isArray, isFunction } from 'shared/util'
import type { Component } from 'types/component'
import { currentInstance } from 'v3/currentInstance'
import { getComponentName } from '../vdom/create-component'
export let warn: (msg: string, vm?: Component | null) => void = noop
e... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/env.ts | src/core/util/env.ts | // can we use __proto__?
export const hasProto = '__proto__' in {}
// Browser environment sniffing
export const inBrowser = typeof window !== 'undefined'
export const UA = inBrowser && window.navigator.userAgent.toLowerCase()
export const isIE = UA && /msie|trident/.test(UA)
export const isIE9 = UA && UA.indexOf('msie... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/options.ts | src/core/util/options.ts | import config from '../config'
import { warn } from './debug'
import { set } from '../observer/index'
import { unicodeRegExp } from './lang'
import { nativeWatch, hasSymbol } from './env'
import { isArray, isFunction } from 'shared/util'
import { ASSET_TYPES, LIFECYCLE_HOOKS } from 'shared/constants'
import {
exten... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/perf.ts | src/core/util/perf.ts | import { inBrowser } from './env'
export let mark
export let measure
if (__DEV__) {
const perf = inBrowser && window.performance
/* istanbul ignore if */
if (
perf &&
// @ts-ignore
perf.mark &&
// @ts-ignore
perf.measure &&
// @ts-ignore
perf.clearMarks &&
// @ts-ignore
perf.... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/next-tick.ts | src/core/util/next-tick.ts | /* globals MutationObserver */
import { noop } from 'shared/util'
import { handleError } from './error'
import { isIE, isIOS, isNative } from './env'
export let isUsingMicroTask = false
const callbacks: Array<Function> = []
let pending = false
function flushCallbacks() {
pending = false
const copies = callbacks... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/props.ts | src/core/util/props.ts | import { warn } from './debug'
import { observe, toggleObserving, shouldObserve } from '../observer/index'
import {
hasOwn,
isArray,
isObject,
isFunction,
toRawType,
hyphenate,
capitalize,
isPlainObject
} from 'shared/util'
import type { Component } from 'types/component'
type PropOptions = {
type: F... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/lang.ts | src/core/util/lang.ts | /**
* unicode letters used for parsing html tags, component names and property paths.
* using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
* skipping \u10000-\uEFFFF due to it freezing up PhantomJS
*/
export const unicodeRegExp =
/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/index.ts | src/core/util/index.ts | export * from 'shared/util'
export * from './lang'
export * from './env'
export * from './options'
export * from './debug'
export * from './props'
export * from './error'
export * from './next-tick'
export { defineReactive } from '../observer/index'
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/util/error.ts | src/core/util/error.ts | import config from '../config'
import { warn } from './debug'
import { inBrowser } from './env'
import { isPromise } from 'shared/util'
import { pushTarget, popTarget } from '../observer/dep'
export function handleError(err: Error, vm: any, info: string) {
// Deactivate deps tracking while processing error handler t... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/create-element.ts | src/core/vdom/create-element.ts | import config from '../config'
import VNode, { createEmptyVNode } from './vnode'
import { createComponent } from './create-component'
import { traverse } from '../observer/traverse'
import {
warn,
isDef,
isUndef,
isArray,
isTrue,
isObject,
isPrimitive,
resolveAsset,
isFunction
} from '../util/index'
... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/vnode.ts | src/core/vdom/vnode.ts | import type { Component } from 'types/component'
import type { ComponentOptions } from 'types/options'
import type { VNodeComponentOptions, VNodeData } from 'types/vnode'
/**
* @internal
*/
export default class VNode {
tag?: string
data: VNodeData | undefined
children?: Array<VNode> | null
text?: string
el... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/create-functional-component.ts | src/core/vdom/create-functional-component.ts | import VNode, { cloneVNode } from './vnode'
import { createElement } from './create-element'
import { resolveInject } from '../instance/inject'
import { normalizeChildren } from '../vdom/helpers/normalize-children'
import { resolveSlots } from '../instance/render-helpers/resolve-slots'
import { normalizeScopedSlots } f... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/create-component.ts | src/core/vdom/create-component.ts | import VNode from './vnode'
import { isArray } from 'core/util'
import { resolveConstructorOptions } from 'core/instance/init'
import { queueActivatedComponent } from 'core/observer/scheduler'
import { createFunctionalComponent } from './create-functional-component'
import { warn, isDef, isUndef, isTrue, isObject } fr... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/patch.ts | src/core/vdom/patch.ts | /**
* Virtual DOM patching algorithm based on Snabbdom by
* Simon Friis Vindum (@paldepind)
* Licensed under the MIT License
* https://github.com/paldepind/snabbdom/blob/master/LICENSE
*
* modified by Evan You (@yyx990803)
*
* Not type-checking this because this file is perf-critical and the cost
* of making f... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/resolve-async-component.ts | src/core/vdom/helpers/resolve-async-component.ts | import {
warn,
once,
isDef,
isUndef,
isTrue,
isObject,
hasSymbol,
isPromise,
remove
} from 'core/util/index'
import VNode, { createEmptyVNode } from 'core/vdom/vnode'
import { currentRenderingInstance } from 'core/instance/render'
import type { VNodeData } from 'types/vnode'
import type { Component }... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/normalize-scoped-slots.ts | src/core/vdom/helpers/normalize-scoped-slots.ts | import { def } from 'core/util/lang'
import { normalizeChildren } from 'core/vdom/helpers/normalize-children'
import { emptyObject, isArray } from 'shared/util'
import { isAsyncPlaceholder } from './is-async-placeholder'
import type VNode from '../vnode'
import { Component } from 'types/component'
import { currentInsta... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/extract-props.ts | src/core/vdom/helpers/extract-props.ts | import {
tip,
hasOwn,
isDef,
isUndef,
hyphenate,
formatComponentName
} from 'core/util/index'
import type { Component } from 'types/component'
import type { VNodeData } from 'types/vnode'
export function extractPropsFromVNodeData(
data: VNodeData,
Ctor: typeof Component,
tag?: string
): object | unde... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/normalize-children.ts | src/core/vdom/helpers/normalize-children.ts | import VNode, { createTextVNode } from 'core/vdom/vnode'
import {
isFalse,
isTrue,
isArray,
isDef,
isUndef,
isPrimitive
} from 'shared/util'
// The template compiler attempts to minimize the need for normalization by
// statically analyzing the template at compile time.
//
// For plain HTML markup, normali... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/is-async-placeholder.ts | src/core/vdom/helpers/is-async-placeholder.ts | import VNode from '../vnode'
export function isAsyncPlaceholder(node: VNode): boolean {
// @ts-expect-error not really boolean type
return node.isComment && node.asyncFactory
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/merge-hook.ts | src/core/vdom/helpers/merge-hook.ts | import VNode from '../vnode'
import { createFnInvoker } from './update-listeners'
import { remove, isDef, isUndef, isTrue } from 'shared/util'
export function mergeVNodeHook(
def: Record<string, any>,
hookKey: string,
hook: Function
) {
if (def instanceof VNode) {
def = def.data!.hook || (def.data!.hook = ... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/get-first-component-child.ts | src/core/vdom/helpers/get-first-component-child.ts | import { isDef, isArray } from 'shared/util'
import VNode from '../vnode'
import { isAsyncPlaceholder } from './is-async-placeholder'
export function getFirstComponentChild(
children?: Array<VNode>
): VNode | undefined {
if (isArray(children)) {
for (let i = 0; i < children.length; i++) {
const c = child... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/update-listeners.ts | src/core/vdom/helpers/update-listeners.ts | import { warn, invokeWithErrorHandling } from 'core/util/index'
import { cached, isUndef, isTrue, isArray } from 'shared/util'
import type { Component } from 'types/component'
const normalizeEvent = cached(
(
name: string
): {
name: string
once: boolean
capture: boolean
passive: boolean
han... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/helpers/index.ts | src/core/vdom/helpers/index.ts | export * from './merge-hook'
export * from './extract-props'
export * from './update-listeners'
export * from './normalize-children'
export * from './resolve-async-component'
export * from './get-first-component-child'
export * from './is-async-placeholder'
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/modules/directives.ts | src/core/vdom/modules/directives.ts | import { emptyNode } from 'core/vdom/patch'
import { resolveAsset, handleError } from 'core/util/index'
import { mergeVNodeHook } from 'core/vdom/helpers/index'
import type { VNodeDirective, VNodeWithData } from 'types/vnode'
import type { Component } from 'types/component'
export default {
create: updateDirectives,... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/modules/template-ref.ts | src/core/vdom/modules/template-ref.ts | import {
remove,
isDef,
hasOwn,
isArray,
isFunction,
invokeWithErrorHandling,
warn
} from 'core/util'
import type { VNodeWithData } from 'types/vnode'
import { Component } from 'types/component'
import { isRef } from 'v3'
export default {
create(_: any, vnode: VNodeWithData) {
registerRef(vnode)
... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/vdom/modules/index.ts | src/core/vdom/modules/index.ts | import directives from './directives'
import ref from './template-ref'
export default [ref, directives]
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/observer/array.ts | src/core/observer/array.ts | /*
* not type checking this file because flow doesn't play well with
* dynamically accessing methods on Array prototype
*/
import { TriggerOpTypes } from '../../v3'
import { def } from '../util/index'
const arrayProto = Array.prototype
export const arrayMethods = Object.create(arrayProto)
const methodsToPatch = [... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/observer/watcher.ts | src/core/observer/watcher.ts | import {
warn,
remove,
isObject,
parsePath,
_Set as Set,
handleError,
invokeWithErrorHandling,
noop,
isFunction
} from '../util/index'
import { traverse } from './traverse'
import { queueWatcher } from './scheduler'
import Dep, { pushTarget, popTarget, DepTarget } from './dep'
import { DebuggerEvent,... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/observer/scheduler.ts | src/core/observer/scheduler.ts | import type Watcher from './watcher'
import config from '../config'
import Dep, { cleanupDeps } from './dep'
import { callHook, activateChildComponent } from '../instance/lifecycle'
import { warn, nextTick, devtools, inBrowser, isIE } from '../util/index'
import type { Component } from 'types/component'
export const ... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/observer/traverse.ts | src/core/observer/traverse.ts | import { _Set as Set, isObject, isArray } from '../util/index'
import type { SimpleSet } from '../util/index'
import VNode from '../vdom/vnode'
import { isRef } from '../../v3'
const seenObjects = new Set()
/**
* Recursively traverse an object to evoke all converted
* getters, so that every nested property inside t... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/observer/dep.ts | src/core/observer/dep.ts | import config from '../config'
import { DebuggerOptions, DebuggerEventExtraInfo } from 'v3'
let uid = 0
const pendingCleanupDeps: Dep[] = []
export const cleanupDeps = () => {
for (let i = 0; i < pendingCleanupDeps.length; i++) {
const dep = pendingCleanupDeps[i]
dep.subs = dep.subs.filter(s => s)
dep.... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/observer/index.ts | src/core/observer/index.ts | import Dep from './dep'
import VNode from '../vdom/vnode'
import { arrayMethods } from './array'
import {
def,
warn,
hasOwn,
isArray,
hasProto,
isPlainObject,
isPrimitive,
isUndef,
isValidArrayIndex,
isServerRendering,
hasChanged,
noop
} from '../util/index'
import { isReadonly, isRef, TrackOpTy... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/global-api/extend.ts | src/core/global-api/extend.ts | import { ASSET_TYPES } from 'shared/constants'
import type { Component } from 'types/component'
import type { GlobalAPI } from 'types/global-api'
import { defineComputed, proxy } from '../instance/state'
import { extend, mergeOptions, validateComponentName } from '../util/index'
import { getComponentName } from '../vdo... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/global-api/use.ts | src/core/global-api/use.ts | import type { GlobalAPI } from 'types/global-api'
import { toArray, isFunction } from '../util/index'
export function initUse(Vue: GlobalAPI) {
Vue.use = function (plugin: Function | any) {
const installedPlugins =
this._installedPlugins || (this._installedPlugins = [])
if (installedPlugins.indexOf(plu... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/global-api/mixin.ts | src/core/global-api/mixin.ts | import type { GlobalAPI } from 'types/global-api'
import { mergeOptions } from '../util/index'
export function initMixin(Vue: GlobalAPI) {
Vue.mixin = function (mixin: Object) {
this.options = mergeOptions(this.options, mixin)
return this
}
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/global-api/index.ts | src/core/global-api/index.ts | import config from '../config'
import { initUse } from './use'
import { initMixin } from './mixin'
import { initExtend } from './extend'
import { initAssetRegisters } from './assets'
import { set, del } from '../observer/index'
import { ASSET_TYPES } from 'shared/constants'
import builtInComponents from '../components/... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/global-api/assets.ts | src/core/global-api/assets.ts | import { ASSET_TYPES } from 'shared/constants'
import type { GlobalAPI } from 'types/global-api'
import { isFunction, isPlainObject, validateComponentName } from '../util/index'
export function initAssetRegisters(Vue: GlobalAPI) {
/**
* Create asset registration methods.
*/
ASSET_TYPES.forEach(type => {
... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/components/keep-alive.ts | src/core/components/keep-alive.ts | import { isRegExp, isArray, remove } from 'shared/util'
import { getFirstComponentChild } from 'core/vdom/helpers/index'
import type VNode from 'core/vdom/vnode'
import type { VNodeComponentOptions } from 'types/vnode'
import type { Component } from 'types/component'
import { getComponentName } from '../vdom/create-com... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/components/index.ts | src/core/components/index.ts | import KeepAlive from './keep-alive'
export default {
KeepAlive
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/inject.ts | src/core/instance/inject.ts | import { warn, hasSymbol, isFunction, isObject } from '../util/index'
import { defineReactive, toggleObserving } from '../observer/index'
import type { Component } from 'types/component'
import { resolveProvided } from 'v3/apiInject'
export function initProvide(vm: Component) {
const provideOption = vm.$options.prov... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render.ts | src/core/instance/render.ts | import {
warn,
nextTick,
emptyObject,
handleError,
defineReactive,
isArray
} from '../util/index'
import { createElement } from '../vdom/create-element'
import { installRenderHelpers } from './render-helpers/index'
import { resolveSlots } from './render-helpers/resolve-slots'
import { normalizeScopedSlots ... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/init.ts | src/core/instance/init.ts | import config from '../config'
import { initProxy } from './proxy'
import { initState } from './state'
import { initRender } from './render'
import { initEvents } from './events'
import { mark, measure } from '../util/perf'
import { initLifecycle, callHook } from './lifecycle'
import { initProvide, initInjections } fro... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/proxy.ts | src/core/instance/proxy.ts | /* not type checking this file because flow doesn't play well with Proxy */
import config from 'core/config'
import { warn, makeMap, isNative } from '../util/index'
let initProxy
if (__DEV__) {
const allowedGlobals = makeMap(
'Infinity,undefined,NaN,isFinite,isNaN,' +
'parseFloat,parseInt,decodeURI,decod... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/state.ts | src/core/instance/state.ts | import config from '../config'
import Watcher from '../observer/watcher'
import Dep, { pushTarget, popTarget } from '../observer/dep'
import { isUpdatingChildComponent } from './lifecycle'
import { initSetup } from 'v3/apiSetup'
import {
set,
del,
observe,
defineReactive,
toggleObserving
} from '../observer/... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/index.ts | src/core/instance/index.ts | import { initMixin } from './init'
import { stateMixin } from './state'
import { renderMixin } from './render'
import { eventsMixin } from './events'
import { lifecycleMixin } from './lifecycle'
import { warn } from '../util/index'
import type { GlobalAPI } from 'types/global-api'
function Vue(options) {
if (__DEV__... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/events.ts | src/core/instance/events.ts | import type { Component } from 'types/component'
import {
tip,
toArray,
isArray,
hyphenate,
formatComponentName,
invokeWithErrorHandling
} from '../util/index'
import { updateListeners } from '../vdom/helpers/index'
export function initEvents(vm: Component) {
vm._events = Object.create(null)
vm._hasHoo... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/lifecycle.ts | src/core/instance/lifecycle.ts | import config from '../config'
import Watcher, { WatcherOptions } from '../observer/watcher'
import { mark, measure } from '../util/perf'
import VNode, { createEmptyVNode } from '../vdom/vnode'
import { updateComponentListeners } from './events'
import { resolveSlots } from './render-helpers/resolve-slots'
import { tog... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/render-slot.ts | src/core/instance/render-helpers/render-slot.ts | import { extend, warn, isObject, isFunction } from 'core/util/index'
import VNode from 'core/vdom/vnode'
/**
* Runtime helper for rendering <slot>
*/
export function renderSlot(
name: string,
fallbackRender: ((() => Array<VNode>) | Array<VNode>) | null,
props: Record<string, any> | null,
bindObject: object |... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/resolve-slots.ts | src/core/instance/render-helpers/resolve-slots.ts | import type VNode from 'core/vdom/vnode'
import type { Component } from 'types/component'
/**
* Runtime helper for resolving raw children VNodes into a slot object.
*/
export function resolveSlots(
children: Array<VNode> | null | undefined,
context: Component | null
): { [key: string]: Array<VNode> } {
if (!ch... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/render-static.ts | src/core/instance/render-helpers/render-static.ts | import VNode from 'core/vdom/vnode'
import { isArray } from 'core/util'
/**
* Runtime helper for rendering static trees.
*/
export function renderStatic(
index: number,
isInFor: boolean
): VNode | Array<VNode> {
const cached = this._staticTrees || (this._staticTrees = [])
let tree = cached[index]
// if has... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/resolve-scoped-slots.ts | src/core/instance/render-helpers/resolve-scoped-slots.ts | import type { ScopedSlotsData } from 'types/vnode'
import { isArray } from 'core/util'
export function resolveScopedSlots(
fns: ScopedSlotsData,
res?: Record<string, any>,
// the following are added in 2.6
hasDynamicKeys?: boolean,
contentHashKey?: number
): { $stable: boolean } & { [key: string]: Function }... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/bind-object-props.ts | src/core/instance/render-helpers/bind-object-props.ts | import config from 'core/config'
import {
warn,
isObject,
toObject,
isReservedAttribute,
camelize,
hyphenate,
isArray
} from 'core/util/index'
import type { VNodeData } from 'types/vnode'
/**
* Runtime helper for merging v-bind="object" into a VNode's data.
*/
export function bindObjectProps(
data: ... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/bind-object-listeners.ts | src/core/instance/render-helpers/bind-object-listeners.ts | import { warn, extend, isPlainObject } from 'core/util/index'
import type { VNodeData } from 'types/vnode'
export function bindObjectListeners(data: any, value: any): VNodeData {
if (value) {
if (!isPlainObject(value)) {
__DEV__ && warn('v-on without argument expects an Object value', this)
} else {
... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/index.ts | src/core/instance/render-helpers/index.ts | import { toNumber, toString, looseEqual, looseIndexOf } from 'shared/util'
import { createTextVNode, createEmptyVNode } from 'core/vdom/vnode'
import { renderList } from './render-list'
import { renderSlot } from './render-slot'
import { resolveFilter } from './resolve-filter'
import { checkKeyCodes } from './check-key... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/render-list.ts | src/core/instance/render-helpers/render-list.ts | import { isObject, isDef, hasSymbol, isArray } from 'core/util/index'
import VNode from 'core/vdom/vnode'
/**
* Runtime helper for rendering v-for lists.
*/
export function renderList(
val: any,
render: (val: any, keyOrIndex: string | number, index?: number) => VNode
): Array<VNode> | null {
let ret: Array<VNo... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/check-keycodes.ts | src/core/instance/render-helpers/check-keycodes.ts | import config from 'core/config'
import { hyphenate, isArray } from 'shared/util'
function isKeyNotMatch<T>(expect: T | Array<T>, actual: T): boolean {
if (isArray(expect)) {
return expect.indexOf(actual) === -1
} else {
return expect !== actual
}
}
/**
* Runtime helper for checking keyCodes from confi... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/resolve-filter.ts | src/core/instance/render-helpers/resolve-filter.ts | import { identity, resolveAsset } from 'core/util/index'
/**
* Runtime helper for resolving filters
*/
export function resolveFilter(id: string): Function {
return resolveAsset(this.$options, 'filters', id, true) || identity
}
| typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/core/instance/render-helpers/bind-dynamic-keys.ts | src/core/instance/render-helpers/bind-dynamic-keys.ts | // helper to process dynamic keys for dynamic arguments in v-bind and v-on.
// For example, the following template:
//
// <div id="app" :[key]="value">
//
// compiles to the following:
//
// _c('div', { attrs: bindDynamicKeys({ "id": "app" }, [key, value]) })
import { warn } from 'core/util/debug'
export function bin... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/shared/util.ts | src/shared/util.ts | export const emptyObject: Record<string, any> = Object.freeze({})
export const isArray = Array.isArray
// These helpers produce better VM code in JS engines due to their
// explicitness and function inlining.
export function isUndef(v: any): v is undefined | null {
return v === undefined || v === null
}
export fun... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/shared/constants.ts | src/shared/constants.ts | export const SSR_ATTR = 'data-server-rendered'
export const ASSET_TYPES = ['component', 'directive', 'filter'] as const
export const LIFECYCLE_HOOKS = [
'beforeCreate',
'created',
'beforeMount',
'mounted',
'beforeUpdate',
'updated',
'beforeDestroy',
'destroyed',
'activated',
'deactivated',
'erro... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/debug.ts | src/v3/debug.ts | import { TrackOpTypes, TriggerOpTypes } from './reactivity/operations'
export interface DebuggerOptions {
onTrack?: (event: DebuggerEvent) => void
onTrigger?: (event: DebuggerEvent) => void
}
export type DebuggerEvent = {
/**
* @internal
*/
effect: any
} & DebuggerEventExtraInfo
export type DebuggerEve... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/currentInstance.ts | src/v3/currentInstance.ts | import { Component } from 'types/component'
export let currentInstance: Component | null = null
/**
* This is exposed for compatibility with v3 (e.g. some functions in VueUse
* relies on it). Do not use this internally, just use `currentInstance`.
*
* @internal this function needs manual type declaration because ... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/apiAsyncComponent.ts | src/v3/apiAsyncComponent.ts | import { warn, isFunction, isObject } from 'core/util'
interface AsyncComponentOptions {
loader: Function
loadingComponent?: any
errorComponent?: any
delay?: number
timeout?: number
suspensible?: boolean
onError?: (
error: Error,
retry: () => void,
fail: () => void,
attempts: number
) =... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/h.ts | src/v3/h.ts | import { createElement } from '../core/vdom/create-element'
import { currentInstance } from './currentInstance'
import { warn } from 'core/util'
/**
* @internal this function needs manual public type declaration because it relies
* on previously manually authored types from Vue 2
*/
export function h(type: any, pro... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/apiInject.ts | src/v3/apiInject.ts | import { isFunction, warn } from 'core/util'
import { currentInstance } from './currentInstance'
import type { Component } from 'types/component'
export interface InjectionKey<T> extends Symbol {}
export function provide<T>(key: InjectionKey<T> | string | number, value: T) {
if (!currentInstance) {
if (__DEV__)... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/apiLifecycle.ts | src/v3/apiLifecycle.ts | import { DebuggerEvent } from './debug'
import { Component } from 'types/component'
import { mergeLifecycleHook, warn } from '../core/util'
import { currentInstance } from './currentInstance'
function createLifeCycle<T extends (...args: any[]) => any = () => void>(
hookName: string
) {
return (fn: T, target: any =... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/apiWatch.ts | src/v3/apiWatch.ts | import { isRef, Ref } from './reactivity/ref'
import { ComputedRef } from './reactivity/computed'
import { isReactive, isShallow } from './reactivity/reactive'
import {
warn,
noop,
isArray,
isFunction,
emptyObject,
hasChanged,
isServerRendering,
invokeWithErrorHandling
} from 'core/util'
import { curren... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
vuejs/vue | https://github.com/vuejs/vue/blob/9e88707940088cb1f4cd7dd210c9168a50dc347c/src/v3/index.ts | src/v3/index.ts | /**
* Note: also update dist/vue.runtime.mjs when adding new exports to this file.
*/
export const version: string = '__VERSION__'
export {
ref,
shallowRef,
isRef,
toRef,
toRefs,
unref,
proxyRefs,
customRef,
triggerRef,
Ref,
ToRef,
ToRefs,
UnwrapRef,
ShallowRef,
ShallowUnwrapRef,
Ref... | typescript | MIT | 9e88707940088cb1f4cd7dd210c9168a50dc347c | 2026-01-04T15:25:31.454261Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.