Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QDMarkMan/vue-base-template
/ functions
Functions
86 in github.com/QDMarkMan/vue-base-template
⨍
Functions
86
◇
Types & classes
12
↓ 13 callers
Method
logger
(msg)
scripts/util.js:85
↓ 12 callers
Method
error
(msg)
scripts/util.js:97
↓ 10 callers
Method
success
(msg)
scripts/util.js:89
↓ 8 callers
Function
errorLog
scripts/deploy.js:27
↓ 8 callers
Function
resolve
vue.config.js:16
↓ 6 callers
Method
replaceAll
* 全局替换字符串 * @param {*} targetStr * @param {*} oldStr * @param {*} newStr
scripts/util.js:132
↓ 5 callers
Function
initDateStr
scripts/util.js:295
↓ 5 callers
Function
successLog
scripts/deploy.js:29
↓ 4 callers
Function
defaultLog
scripts/deploy.js:28
↓ 4 callers
Method
isPathInDir
* Check file is alredy in dir true/fasle => yes/no * @param {*string} dir 文件夹名称 * @param {*string} existsPath 制定文件夹路径
scripts/util.js:185
↓ 4 callers
Function
reslove
(file = '.')
scripts/util.js:18
↓ 3 callers
Function
_replaceCommonContent
(content, comment)
scripts/template/index.js:22
↓ 3 callers
Method
createDirAndFile
* If module is Empty then create dir and file * @param {*} filePath .vue/.js 文件路径 * @param {*} content 内容 * @param {*} dirPath 文件夹目录
scripts/util.js:202
↓ 3 callers
Method
getCurrentDate
* @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 callers
Method
showNotify
* 开启客户端强提醒 * @param {*string} title 标题 * @param {*string} message 展示信息 * @param {*boolean} wait 等待回掉关闭 * @param {*function} cb 回掉
scripts/util.js:111
↓ 3 callers
Method
zipDir
* 压缩文件夹 * @param {*} dir 要压缩的文件夹 默认 ROOTPATH.distDir * @param {*} zipedPath 压缩之后 的zip存放路径
scripts/util.js:242
↓ 2 callers
Function
_runExtraTask
(folder, module, comment = "", page)
scripts/buildModule.js:112
↓ 2 callers
Function
createscript
()
src/utils/loader.js:27
↓ 2 callers
Method
doBackup
* @author: etongfu * @description: 执行备份 * @param {type} {*} * @returns: {*}
scripts/backup.js:29
↓ 2 callers
Method
hasEnvFile
* 检测env.loacl文件是否存在
scripts/util.js:74
↓ 2 callers
Function
loadFinished
()
src/utils/loader.js:19
↓ 2 callers
Function
runCommond
(commond)
scripts/deploy.js:75
↓ 1 callers
Method
addEvent
* 绑定事件 * @param {*} element * @param {*} eType * @param {*} handle * @param {*} bol
src/utils/index.js:99
↓ 1 callers
Function
addStyleResource
(rule, files)
vue.config.js:24
↓ 1 callers
Function
buildDirAndFiles
* 通过我们询问的答案来创建文件/文件夹 * @param {*String} folder 目录名称 * @param {*String} module 模块名称 * @param {*String} comment 注释 * @param {*Boolean} buildExtra 生成
scripts/buildModule.js:199
↓ 1 callers
Method
buildEnvFile
* 创建.env配置文件文件 * @param {*} config * @description 创建的env文件会保存在scripts文件夹中
scripts/util.js:52
↓ 1 callers
Function
buildPlugins
()
vue.config.js:34
↓ 1 callers
Function
builtHooks
()
scripts/buildHooks.js:42
↓ 1 callers
Function
checkByConfig
(env, config = {})
scripts/deploy.js:111
↓ 1 callers
Method
clearDir
* 清空指定文件目录 * @param {*} dir
scripts/util.js:277
↓ 1 callers
Function
connectSSh
()
scripts/deploy.js:57
↓ 1 callers
Method
createDir
* create dir * @param {*} dirPath
scripts/util.js:227
↓ 1 callers
Function
dealVersion
config/cdn.config.js:21
↓ 1 callers
Function
deleteCookie
(key)
src/utils/cookie.js:19
↓ 1 callers
Function
deleteToken
()
src/utils/cookie.js:34
↓ 1 callers
Method
fileExist
* 判断文件是否存在 * @param {*path} filePath
scripts/util.js:234
↓ 1 callers
Method
generateRouter
* 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 callers
Function
getCookie
(key)
src/utils/cookie.js:15
↓ 1 callers
Method
getExistsDirsByPath
* get directory bt target path * @param {*} path
scripts/util.js:169
↓ 1 callers
Method
getIeVersion
* 获取IE历览器版本 火狐获取可能有点儿问题 * 返回number类型当前大浏览器的大版本号
src/utils/index.js:81
↓ 1 callers
Function
initEvent
(folder, module, comment = "")
scripts/buildModule.js:127
↓ 1 callers
Method
injectRoute
* router new route to file
scripts/template/index.js:130
↓ 1 callers
Function
listeners
(timer, binding)
src/directives/mouse_press.js:10
↓ 1 callers
Function
readToken
()
src/utils/cookie.js:31
↓ 1 callers
Function
runBeforeCommand
()
scripts/deploy.js:81
↓ 1 callers
Function
runDeployTask
()
scripts/deploy.js:145
↓ 1 callers
Function
setCookie
(key, value)
src/utils/cookie.js:11
↓ 1 callers
Method
toBoolean
* 字符串转Boolena
scripts/util.js:157
↓ 1 callers
Method
trim
* 去除空格(字符串,要去除空格的类型) * type 1-所有空格 2-前后空格 3-前空格 4-后空格
scripts/util.js:140
↓ 1 callers
Function
uploadZipBySSH
()
scripts/deploy.js:87
↓ 1 callers
Method
warning
(msg)
scripts/util.js:93
↓ 1 callers
Function
zipDist
()
scripts/deploy.js:41
Function
beforeCreate
()
src/main.js:19
Function
beforeHooks
()
scripts/buildHooks.js:38
Function
bind
(el, binding, vnode)
src/directives/click_outside.js:14
Function
cancel
()
src/directives/mouse_press.js:22
Method
clearBackups
* @author: etongfu * @description: 清空所有备份
scripts/backup.js:19
Function
compileDist
()
scripts/deploy.js:34
Method
config
* 配置文件
scripts/util.js:40
Method
constructor
(dirName, moduleName, event, filename = "index")
scripts/template/index.js:87
Method
copyFile
* 复制文件 * @param {*} dirPath 源文件 * @param {*} targetPath 目标文件
scripts/util.js:262
Function
created
()
src/mixins/list.js:54
Function
created
()
src/mixins/types.js:18
Function
data
()
src/mixins/list.js:10
Function
data
()
src/mixins/types.js:3
Function
demo
(data)
src/api/demos/index.js:9
Function
demo
(data)
scripts/template/api.template.js:9
Function
documentHandler
(e)
src/directives/click_outside.js:15
Method
envPath
* env path
scripts/util.js:34
Function
getAllTypesList
()
src/mixins/types.js:10
Function
handleCurrentChange
(val)
src/mixins/list.js:27
Function
handleSizeChange
(val)
src/mixins/list.js:23
Function
listExceptionCb
* 处理异常情况 * ==> 简单处理 仅仅是对表格处理为空以及取消loading
src/mixins/list.js:49
Function
listSuccessCb
* 表格数据请求成功的回调 * @param {*} apiResult * @returns {*} promise
src/mixins/list.js:36
Function
loadScript
(scripts)
src/utils/loader.js:5
Function
loginByStore
({ commit }, loginPara)
src/store/modules/user.js:28
Function
loginByUserName
(data)
src/api/login.js:3
Function
logout
()
src/store/modules/user.js:41
Method
replaceStr
* 替换字符串中所有得字符串 * @param {*全局替换字符串} str * @param {*目标字符串} targetStr * @param {*要替换得新字符串} newStr
src/utils/index.js:26
Method
setStorage
* * @param {*storage名} name * @param {*storage值} value * @param {*类型 session/local} type
src/utils/index.js:37
Function
start
(e)
src/directives/mouse_press.js:12
Function
stop
()
src/directives/mouse_press.js:28
Function
supportStorage
()
src/utils/index.js:9
Function
unbind
(el)
src/directives/click_outside.js:38
Function
update
(el, binding)
src/directives/click_outside.js:33
Function
writeToken
(value)
src/utils/cookie.js:28