MCPcopy Create free account

hub / github.com/QDMarkMan/vue-base-template / functions

Functions86 in github.com/QDMarkMan/vue-base-template

↓ 13 callersMethodlogger
(msg)
scripts/util.js:85
↓ 12 callersMethoderror
(msg)
scripts/util.js:97
↓ 10 callersMethodsuccess
(msg)
scripts/util.js:89
↓ 8 callersFunctionerrorLog
scripts/deploy.js:27
↓ 8 callersFunctionresolve
vue.config.js:16
↓ 6 callersMethodreplaceAll
* 全局替换字符串 * @param {*} targetStr * @param {*} oldStr * @param {*} newStr
scripts/util.js:132
↓ 5 callersFunctioninitDateStr
scripts/util.js:295
↓ 5 callersFunctionsuccessLog
scripts/deploy.js:29
↓ 4 callersFunctiondefaultLog
scripts/deploy.js:28
↓ 4 callersMethodisPathInDir
* Check file is alredy in dir true/fasle => yes/no * @param {*string} dir 文件夹名称 * @param {*string} existsPath 制定文件夹路径
scripts/util.js:185
↓ 4 callersFunctionreslove
(file = '.')
scripts/util.js:18
↓ 3 callersFunction_replaceCommonContent
(content, comment)
scripts/template/index.js:22
↓ 3 callersMethodcreateDirAndFile
* If module is Empty then create dir and file * @param {*} filePath .vue/.js 文件路径 * @param {*} content 内容 * @param {*} dirPath 文件夹目录
scripts/util.js:202
↓ 3 callersMethodgetCurrentDate
* @author: etongfu * @description: 获取当前时间 * @param {format} {*} 格式 date:YYYY-MM-DD time: hh:mm:ss full:YYYY-MM-DD hh:mm:ss * @param {useCN}
scripts/util.js:304
↓ 3 callersMethodshowNotify
* 开启客户端强提醒 * @param {*string} title 标题 * @param {*string} message 展示信息 * @param {*boolean} wait 等待回掉关闭 * @param {*function} cb 回掉
scripts/util.js:111
↓ 3 callersMethodzipDir
* 压缩文件夹 * @param {*} dir 要压缩的文件夹 默认 ROOTPATH.distDir * @param {*} zipedPath 压缩之后 的zip存放路径
scripts/util.js:242
↓ 2 callersFunction_runExtraTask
(folder, module, comment = "", page)
scripts/buildModule.js:112
↓ 2 callersFunctioncreatescript
()
src/utils/loader.js:27
↓ 2 callersMethoddoBackup
* @author: etongfu * @description: 执行备份 * @param {type} {*} * @returns: {*}
scripts/backup.js:29
↓ 2 callersMethodhasEnvFile
* 检测env.loacl文件是否存在
scripts/util.js:74
↓ 2 callersFunctionloadFinished
()
src/utils/loader.js:19
↓ 2 callersFunctionrunCommond
(commond)
scripts/deploy.js:75
↓ 1 callersMethodaddEvent
* 绑定事件 * @param {*} element * @param {*} eType * @param {*} handle * @param {*} bol
src/utils/index.js:99
↓ 1 callersFunctionaddStyleResource
(rule, files)
vue.config.js:24
↓ 1 callersFunctionbuildDirAndFiles
* 通过我们询问的答案来创建文件/文件夹 * @param {*String} folder 目录名称 * @param {*String} module 模块名称 * @param {*String} comment 注释 * @param {*Boolean} buildExtra 生成
scripts/buildModule.js:199
↓ 1 callersMethodbuildEnvFile
* 创建.env配置文件文件 * @param {*} config * @description 创建的env文件会保存在scripts文件夹中
scripts/util.js:52
↓ 1 callersFunctionbuildPlugins
()
vue.config.js:34
↓ 1 callersFunctionbuiltHooks
()
scripts/buildHooks.js:42
↓ 1 callersFunctioncheckByConfig
(env, config = {})
scripts/deploy.js:111
↓ 1 callersMethodclearDir
* 清空指定文件目录 * @param {*} dir
scripts/util.js:277
↓ 1 callersFunctionconnectSSh
()
scripts/deploy.js:57
↓ 1 callersMethodcreateDir
* create dir * @param {*} dirPath
scripts/util.js:227
↓ 1 callersFunctiondealVersion
config/cdn.config.js:21
↓ 1 callersFunctiondeleteCookie
(key)
src/utils/cookie.js:19
↓ 1 callersFunctiondeleteToken
()
src/utils/cookie.js:34
↓ 1 callersMethodfileExist
* 判断文件是否存在 * @param {*path} filePath
scripts/util.js:234
↓ 1 callersMethodgenerateRouter
* Generate a router for module * The vue file path is @/name/name/index * The default full url is http:xxxxx/dirName/routeName/_suffix * @par
scripts/template/index.js:107
↓ 1 callersFunctiongetCookie
(key)
src/utils/cookie.js:15
↓ 1 callersMethodgetExistsDirsByPath
* get directory bt target path * @param {*} path
scripts/util.js:169
↓ 1 callersMethodgetIeVersion
* 获取IE历览器版本 火狐获取可能有点儿问题 * 返回number类型当前大浏览器的大版本号
src/utils/index.js:81
↓ 1 callersFunctioninitEvent
(folder, module, comment = "")
scripts/buildModule.js:127
↓ 1 callersMethodinjectRoute
* router new route to file
scripts/template/index.js:130
↓ 1 callersFunctionlisteners
(timer, binding)
src/directives/mouse_press.js:10
↓ 1 callersFunctionreadToken
()
src/utils/cookie.js:31
↓ 1 callersFunctionrunBeforeCommand
()
scripts/deploy.js:81
↓ 1 callersFunctionrunDeployTask
()
scripts/deploy.js:145
↓ 1 callersFunctionsetCookie
(key, value)
src/utils/cookie.js:11
↓ 1 callersMethodtoBoolean
* 字符串转Boolena
scripts/util.js:157
↓ 1 callersMethodtrim
* 去除空格(字符串,要去除空格的类型) * type 1-所有空格 2-前后空格 3-前空格 4-后空格
scripts/util.js:140
↓ 1 callersFunctionuploadZipBySSH
()
scripts/deploy.js:87
↓ 1 callersMethodwarning
(msg)
scripts/util.js:93
↓ 1 callersFunctionzipDist
()
scripts/deploy.js:41
FunctionbeforeCreate
()
src/main.js:19
FunctionbeforeHooks
()
scripts/buildHooks.js:38
Functionbind
(el, binding, vnode)
src/directives/click_outside.js:14
Functioncancel
()
src/directives/mouse_press.js:22
MethodclearBackups
* @author: etongfu * @description: 清空所有备份
scripts/backup.js:19
FunctioncompileDist
()
scripts/deploy.js:34
Methodconfig
* 配置文件
scripts/util.js:40
Methodconstructor
(dirName, moduleName, event, filename = "index")
scripts/template/index.js:87
MethodcopyFile
* 复制文件 * @param {*} dirPath 源文件 * @param {*} targetPath 目标文件
scripts/util.js:262
Functioncreated
()
src/mixins/list.js:54
Functioncreated
()
src/mixins/types.js:18
Functiondata
()
src/mixins/list.js:10
Functiondata
()
src/mixins/types.js:3
Functiondemo
(data)
src/api/demos/index.js:9
Functiondemo
(data)
scripts/template/api.template.js:9
FunctiondocumentHandler
(e)
src/directives/click_outside.js:15
MethodenvPath
* env path
scripts/util.js:34
FunctiongetAllTypesList
()
src/mixins/types.js:10
FunctionhandleCurrentChange
(val)
src/mixins/list.js:27
FunctionhandleSizeChange
(val)
src/mixins/list.js:23
FunctionlistExceptionCb
* 处理异常情况 * ==> 简单处理 仅仅是对表格处理为空以及取消loading
src/mixins/list.js:49
FunctionlistSuccessCb
* 表格数据请求成功的回调 * @param {*} apiResult * @returns {*} promise
src/mixins/list.js:36
FunctionloadScript
(scripts)
src/utils/loader.js:5
FunctionloginByStore
({ commit }, loginPara)
src/store/modules/user.js:28
FunctionloginByUserName
(data)
src/api/login.js:3
Functionlogout
()
src/store/modules/user.js:41
MethodreplaceStr
* 替换字符串中所有得字符串 * @param {*全局替换字符串} str * @param {*目标字符串} targetStr * @param {*要替换得新字符串} newStr
src/utils/index.js:26
MethodsetStorage
* * @param {*storage名} name * @param {*storage值} value * @param {*类型 session/local} type
src/utils/index.js:37
Functionstart
(e)
src/directives/mouse_press.js:12
Functionstop
()
src/directives/mouse_press.js:28
FunctionsupportStorage
()
src/utils/index.js:9
Functionunbind
(el)
src/directives/click_outside.js:38
Functionupdate
(el, binding)
src/directives/click_outside.js:33
FunctionwriteToken
(value)
src/utils/cookie.js:28