Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Oct 20, 2023
1 parent d9cea8f commit b417a87
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
2 changes: 2 additions & 0 deletions cpl/ECMAScript.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# JavaScript

[JavaScripture The bridge between W3C, WHATWG and ECMAScript](https://www.javascripture.com/)

ECMAScript

Blob-binary large object
Expand Down
4 changes: 4 additions & 0 deletions index/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

## 协议

### [IDL(Interface Definition Language)](https://www.omg.org/spec/IDL/)

- [An OMG® Interface Definition Language™ Publication Interface Definition Language™](https://www.omg.org/spec/IDL/4.2/PDF)

### [mqtt](https://mqtt.org/)
MQTT(Message Queuing Telemetry Transport,消息队列遥测传输协议),是一种基于发布/订阅(publish/subscribe)模式的“轻量级”通讯协议,该协议构建于TCP/IP协议上,由IBM在1999年发布。

Expand Down
3 changes: 3 additions & 0 deletions index/computerScience.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

## Programing Language

- [编程语言](./programminglanguage.md)
- [python](../cpl/python.md)
- [rust](../cpl/rust.md)
- [C](../cpl/c.md)
- [Cplusplus](../cpl/cplusplus.md)
- [ECMAScript](../cpl/ECMAScript.md)
- [lua](../cpl/lua.md)
- [Java](../java/Java.md)

### Dev

- [CMD](../dev-note/cmd.md)
Expand Down
16 changes: 14 additions & 2 deletions nodejs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,26 @@

## 构建工具

### Parcel
### [Parcel](https://parceljs.org/docs/)

Parcel is a zero configuration build tool for the web

- [Parcel](https://parceljs.org/docs/)
### [rollup](https://rollupjs.org/introduction/)

Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. I


## 相关库

### UI
- [bootstrap](https://getbootstrap.com/)
- [fast bootstrap](https://fastbootstrap.com/)

- [naive ui](https://www.naiveui.com/en-US/os-theme)


### 其他

- [jspdf](https://github.com/parallax/jsPDF)
- [npmjs](https://www.npmjs.com/package/jspdf)
- [Element Plus](https://element-plus.org/en-US/component/button.html)
Expand Down
25 changes: 24 additions & 1 deletion nodejs/quill.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,32 @@

## dev


按照sharp
npm config get userconfig 获取配置信息
npm config edit 打开默认的配置文件
npm config set sharp_binary_host "https://npmmirror.com/mirrors/sharp"
npm config set sharp_libvips_binary_host "https://npmmirror.com/mirrors/sharp-libvips"

## rollup打包
看不懂webpack的逻辑,直接增加rollup打包,思路就清晰了
npm install rollup --save-dev
npm install @rollup/plugin-typescript --save-dev
npm install @rollup/plugin-image --save-dev
npm install @rollup/plugin-replace --save-dev
npm install @rollup/plugin-node-resolve --save-dev
npm install @rollup/plugin-commonjs --save-dev
npm install rollup-plugin-postcss --save-dev
npm install rollup-plugin-rawsvg --save-dev

## [delta](https://github.com/quilljs/delta)
Delta 是用于描述富文本文档结构的内容与变更。由于其描述的通用性,quill.js 将其独立维护。它的数据结构是基于 JSON 格式的,方便服务间进行互解析

[An O(ND) Difference Algorithm and Its Variations](https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.4.6927&rep=rep1&type=pdf)[github上的实现](https://github.com/jhchen/fast-diff)

[Diff, Match and Patch library](https://neil.fraser.name/news/2007/10/09/)[GitHub](https://github.com/google/diff-match-patch/)上的地址

## [parchment](https://github.com/quilljs/parchment)
Parchment is Quill's document model. It is a parallel tree structure to the DOM tree, and provides functionality useful for content editors, like Quill. A Parchment tree is made up of Blots, which mirror a DOM node counterpart. Blots can provide structure, formatting, and/or content. Attributors can also provide lightweight formatting information.

通过Parchment你可以自定义出Quill能够识别的内容和格式,或者添加全新的内容和格式。
[一个例子](https://kang-bing-kui.gitbook.io/quill/zhi-nan-guides/clonewithparchment)

0 comments on commit b417a87

Please sign in to comment.