Skip to content

Instantly share code, notes, and snippets.

View lesonky's full-sized avatar
🎉
mia mia mia

Shaojiasong lesonky

🎉
mia mia mia
View GitHub Profile
@lesonky
lesonky / Verdaccio使用详解.md
Created April 9, 2021 10:31
Verdaccio使用详解

Verdaccio是使用Nodejs构建的一款轻量级npm私有库。最开始使用比较多的是sinopia,Verdaccio是从sinopia@1.4.0进行fork出来的,到现在已经更新到4.4.1版本了。 官方文档对其进行的简述:

  • It's a web app based on Node.js
  • It's a private npm registry
  • It's a local network proxy
  • It's a Pluggable application
  • It's a fairly easy install and use
  • We offer Docker and Kubernetes support
  • It is 100% compatible with yarn, npm and pnpm
@lesonky
lesonky / 一些小技巧.md
Last active May 16, 2021 13:14
开发小技巧
  1. 解决 chromedriver 无法安装的问题
设置npm config set "chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver"
设置yarn config set "chromedriver_cdnurl" "https://npm.taobao.org/mirrors/chromedriver"
  1. 解决 poxyTable 翻墙问题
// https://github.com/ly525/blog/issues/312
问题
 I  Your application is running here: http://0.0.0.0:9527
@lesonky
lesonky / 如何将iconfont融入vuetify.md
Last active May 23, 2024 03:46
如何将 iconfont 融入 vuetify #iconfont #vuetify

前言: vuetify 为我们提供了很多 iconfont 选择,并且提供了一个 VIcon 的组件,使用还是比较方便的,但是随着需求的不断迭代,公版的 iconfont 已经不足以满足我们的需求,我们需要一个自己定制一些 icon,那么问题就来了,如果让自定义的icon和原有的 VIcon 组件结合呢,毕竟提供两种 icon 组件会在使用的时候感到困惑.

解决问题:

根据 [vuetify 的文档][1],我们找到最后一段

// Instead of provided icon fonts presets you can use your own component icons. You also can switch icons that are used in Vuetify component with your own.
@lesonky
lesonky / CGrid.md
Last active April 4, 2019 00:59
VueCheetahGrid 使用

CGrid.vue

/**
 * 项目中的基础表格,这里包括了二层表头,和合并单元格的表格
 * 合并单元格并不是真的合并,而是通过theme定制的方式来做的
 */

<template>
  <c-grid ref="cgrid"
@lesonky
lesonky / .editorconfig
Last active March 26, 2019 02:04
VSCODE Vue 开发配置
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@lesonky
lesonky / Readme.md
Last active August 9, 2019 05:49
群晖NAS安装https证书

安装指导

$ sudo -i
$ wget https://github.com/Neilpang/acme.sh/archive/master.tar.gz
$ tar xvf master.tar.gz
$ cd acme.sh-master/

这里要修改邮箱

@lesonky
lesonky / DDNS支持.md
Last active March 16, 2020 06:13
自建shadowscoks服务器及使用 #shadowsocks

这里使用DNSpod.cn的服务来实现DDns动态地址绑定

1. 添加dnspod_ddns.py文件

1.1 运行nano /usr/local/bin/dnspod_ddns.py

文件内容(注意需要修改main函数的params):

#!/usr/bin/env python3
# -*- coding:utf-8 -*-
@lesonky
lesonky / alias.md
Last active May 16, 2021 08:38
Mac 配置
alias reload="source ~/.zshrc"
alias zshrc="code ~/.zshrc"
alias aliasrc="code ~/.setting/.alias"
alias del="rm -rf"
alias cls="clear"
alias useproxy="export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890"
alias unuseproxy="unset https_proxy http_proxy all_proxy"
alias gitproxy="git config --global https.proxy https://127.0.0.1:7890"
alias ungitproxy="git config --global --unset https.proxy"
@lesonky
lesonky / color.scss
Created January 3, 2019 07:23
Vuetify Colors
// red
$red500: #f44336;
$red50: #ffebee;
$red100: #ffcdd2;
$red200: #ef9a9a;
$red300: #e57373;
$red400: #ef5350;
$red500: #f44336;
$red600: #e53935;
$red700: #d32f2f;
@lesonky
lesonky / Readme.md
Last active August 17, 2021 08:51
如何使用JavaScript实现纯前端读取和导出excel文件