- 博客(56)
- 资源 (2)
- 收藏
- 关注
原创 阿里云效搭建github的前端流水线
先构建一个vue项目,新建一个node模板,配置流水线源,按照说明一步步配置就可以了,最好开始webhook复制webhook地址,添加入github仓库的settings的webhooks中,Content type设置为json流水线源设置好了之后,我是去掉了测试部分,实际项目可自行修改,然后是构建部分,构建集群的选择,由于github拉取代码会比较慢,所有选择了香港的集群然后按照需求选择其他,一般的构建命令打包路径。
2023-07-21 16:52:09
1031
原创 使用verdaccio搭建自己的私有仓库
此时访问http://*******.com/verdaccio/可以看到verdaccio的首页。修改verdaccio/config.yaml的配置文件,禁止用户注册。同时在nginx配置做反向代理,nginx -t可以看到配置文件位置。可以通过nrm切换数据源,目前的nrm的open报错,需要指定版本。通过nrm添加npm地址配置,切换配置。输入verdaccio可查看效果。在本地cmd测试,首先注册账号。可看到安装位置,打开配置文件。安装verdaccio。服务器安装node,
2023-04-11 10:18:09
680
原创 node nginx mysql在linux的安装
usr/local/nginx/sbin/nginx为nginx的位置。如果nginx命令不生效,可以安装nginx的时候可以添加软链接。修改nginx配置文件,找到nginx.config。安装nrm,修改npm配置,主要是淘宝镜像。index.js 启动的文件。3000为node开启的接口。安装pm2,通过pm2启动。–watch 监听文件修改。test 启动的命名。
2023-02-06 18:10:51
407
原创 vue githooks配置
------------------------------------分割线------------------------------------------------------>同时安装两个包@commitlint/cli,@commitlint/config-conventional。查看.git/hooks/pre-commit文件,会触发lint-staged。由于使用的vue2,没有找到合适的ts检测的包,vue3可以使用vue-tsc;配置git commit的钩子触发,
2022-08-23 19:09:44
736
原创 202206
vue build命令在 @vue/cli-plugin-babel 4.5.18版本会导致??和?.语法无法解析降低版本或者安装同时babel.config.js文件添加
2022-06-22 16:27:17
112
原创 20220511
代码格式化问题取消vetur的prettier格式化使用eslint“vetur.format.defaultFormatter.js”: “none”,
2022-05-11 18:04:01
91
原创 2022-03
antdv 的tab的td的hover修改样式.ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td { background: red;}echarts的柱状图的背景为条纹状series: [{ data: data, type: 'bar', itemStyle: {
2022-03-05 15:17:34
136
1
原创 2022-01
axios header设置为中文会引发错误TypeError: Failed to execute ‘setRequestHeader’ on ‘XMLHttpRequest’: String contains non ISO-8859-1
2022-01-18 18:16:26
109
原创 20211015
vite批量文件,由于无法使用require.context,所以使用的import.meta.globEager或者import.meta.glob// 批量引入const modulesFiles = import.meta.globEager("./modules/*.ts")const modules = []for (const key in modulesFiles) { modules.push(...(modulesFiles[key].default))}const mo
2021-10-15 11:32:13
275
原创 20211011
vue获取所有路由$router.options.routespowerToys 查看svg缩略图svg图像转ts会有背景,修改rectvscode 删除一行ctrl+shift+k
2021-10-12 09:48:07
92
原创 20210930
productionSourceMap 打包配置是否有资源地图,只有js生成,显示错误行数,减少打包代码的大小引用commitlint git提交规范vue add commitlint package会添加两个命令,cz和loggit cz 命令需要安装依赖git add . 添加所有变更github文档引用module.exports = { extends: ['./node_modules/vue-cli-plugin-commitlint/lib/lint'],
2021-10-08 16:56:34
99
原创 2021-09-29
process.cwd()父组件传子组件<template v-for="(_, name) in $scopedSlots" :slot="name" slot-scope="slotData"> <slot :name="name" v-bind="slotData" /></template>npm install --registry=https://registry.npm.taobao.org
2021-09-29 20:04:46
88
原创 2021-09-22
layui纪念一下第三方cookie被禁用,cookie相关,单点登录vue 的.native修饰符,组件的原生事件vue proxy的配置pathRewrite重写按照正则匹配
2021-09-26 11:11:54
118
原创 vux学习
vue ,webpack添加样式webpack.base.conf.jsconst themeConfig={ name: 'less-theme', path: 'src/assets/less/common.less'};module.exports = vuxLoader.merge(webpackConfig, { plugins: ['vux-ui', themeConfig]})
2021-02-13 11:40:53
134
原创 前端面试题.随便网上抄的
答案都是百度的搜的.1.事件委派将事件统一绑定给元素共同的祖先元素(后代元素事件触发时,通过冒泡,通过祖先元素的响应函数来处理事件),这样可以只绑定一次,即可应用到多个元素上。事件的委派利用了冒泡,通过委派可以减少事件绑定的次数,提高程序的性能event中的target表示的触发事件的对象 ,使用它对触发事件的元素进行判断。2.window.onload和(document).ready()区别执行时间上的区别:window.onload必须等到页面内(包括图片的)所有元素加载到浏览器中后才能执行。而
2021-02-01 13:25:29
260
原创 png转svg上传iconfont
下载inkscape,安装完成.点击文件 → 打开,打开png图片,选择图片,点击图层 → 层置顶点击路径 → 临摹位图轮廓选择选项,删除背景点击文件 → 另存为svg上传到https://www.iconfont.cn/
2020-12-09 15:29:41
930
原创 weui学习
form表单<div class="weui-form"> <div class="weui-form__control-area"> <div class="weui-cells__group weui-cells__group_form"> <div class="weui-cells weui-cells_form"> <div class="weui-cell w
2020-09-22 11:24:46
139
原创 react学习
动态配置react组件,复制给首字母大写的变量,引入,同时将所有的参数…赋值const ClassFuc = createMap[v.type];return <ClassFuc {...v}/>;
2020-09-22 11:22:40
232
原创 redis学习
windows安装redis 下载地址安装最新的msi选择安装的路径,以及是否加入环境变量安装完成后redis自动加入了服务设置密码找到安装目录redis.windows-service.conf, redis.windows.conf添加requirepass 123456临时设置密码,重启后会重置redis-cli.exe -h 127.0.0.1 -p 6379config get requirepassconfig set requirepass "123456"confi
2020-09-08 11:57:16
94
原创 phpstorm
设置创建php文件的头部说明File | Settings | Editor | File and Code TemplatesFiles->PHP File<?php/** * Project: ${PROJECT_NAME} * Author: admin * Describe: * CreateTime: ${YEAR}-${MONTH}-${DAY} ${TIME} */
2020-09-01 16:56:21
107
原创 docker学习
windows7安装http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/选择最新的版本有git勾选不用选择安装git;安装完成后提示缺少快捷方式,修改修改为你的git地址;
2020-08-28 12:03:33
136
原创 thinkphp6学习
composer 安装composer create-project topthink/think tp多应用composer require topthink/think-multi-app隐藏index.php的.htaccess,文档缺少一个问号<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME}
2020-06-30 17:35:40
859
原创 Spreadsheet学习
packagist地址https://packagist.org/packages/phpoffice/phpspreadsheetcomposer地址composer require phpoffice/phpspreadsheet导出表格use PhpOffice\PhpSpreadsheet\IOFactory;use PhpOffice\PhpSpreadsheet\Spreadsheet;use PhpOffice\PhpSpreadsheet\Style\Alignment;/
2020-06-30 10:34:33
609
jquery写的loading类
2020-06-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅