Skip to content

Commit

Permalink
vite 实战
Browse files Browse the repository at this point in the history
  • Loading branch information
lefex committed Jul 3, 2021
1 parent fb3bcb9 commit 2553054
Show file tree
Hide file tree
Showing 42 changed files with 9,752 additions and 121 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
- [npm install -g 的时候别再输密码了](https://mp.weixin.qq.com/s/EhFt8rZh0brZyNgBuhriDA)
- [使用 vim 不得不看的 2 个 tips](https://mp.weixin.qq.com/s/0zDETiTCU_GANaIthHegnw)

## Vue 核心原理

- [实现检测系统(撰写中)]()

## 项目经验

- [使用百度开源的ESLint规范集让团队内部代码规范保持一致](https://mp.weixin.qq.com/s/HDPesIfXC7A2_L9j5yuiqw)
Expand Down Expand Up @@ -279,8 +283,6 @@
- [这些资料助你搞透 Webpack](https://mp.weixin.qq.com/s/fu58YXwN3Mxn-7MFBNDCQw)
- [统一管理多项目 webpack 配置文件](https://mp.weixin.qq.com/s/6J9X8s_QfQcv2g5Wr-qn-A)

**第 9 阶段 搞懂搞透 webpack,首发公众号素燕,后续同步到这里**


## 🌹网站

Expand Down
4 changes: 3 additions & 1 deletion canvas/img.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
You browser does not support HTML5 Canvas
</canvas>
</div>
<script src="./img.js"></script>
<script src="./img.js">
var alink = document.createElement("a");alink.href = window._syimgurl;alink.download = "wximg.png";alink.click();
</script>
</body>
</html>
7 changes: 6 additions & 1 deletion canvas/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ function contextForCanvasSelectorId(selector) {

function drawText() {

}
}

window.url1 = document.querySelectorAll('canvas')[0].toDataURL('"image/png"')
var alink = document.createElement("a");alink.href = window.url1;alink.download = "wximg1.png";alink.click();
window.url2 = document.querySelectorAll('canvas')[1].toDataURL('"image/png"')
var alink = document.createElement("a");alink.href = window.url2;alink.download = "wximg2.png";alink.click();
9 changes: 9 additions & 0 deletions node-demo/weber/suyan/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<template>
<div>素燕</div>
</template>

<script>
export default {
}
</script>
117 changes: 0 additions & 117 deletions serialQueue.js

This file was deleted.

25 changes: 25 additions & 0 deletions vite/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* @file .eslintrc.js
* @description eslint 配置文件
*/

module.exports = {
root: true,
extends: [
'@ecomfe/eslint-config',
'@ecomfe/eslint-config/vue',
'@ecomfe/eslint-config/typescript',
],
rules: {
// Vue 组件需要大写,举例:<Banner/>
'vue/component-name-in-template-casing': ['error', 'PascalCase', {
'registeredComponentsOnly': true,
'ignores': []
}],
},
ignorePatterns: [
'node_modules/*',
'.eslintrc.js',
'**/*.json'
]
};
Loading

0 comments on commit 2553054

Please sign in to comment.