-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update our fork based on [email protected] April 2022 Release https://github.com/rrweb-io/rrweb/releases/tag/rrdom%400.1.2
- Loading branch information
Showing
265 changed files
with
28,566 additions
and
11,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
.vscode | ||
.vscode/* | ||
!/.vscode/rrweb-monorepo.code-workspace | ||
.idea | ||
node_modules | ||
package-lock.json | ||
# yarn.lock | ||
build | ||
dist | ||
es | ||
lib | ||
|
||
temp | ||
|
||
*.log | ||
|
||
.env | ||
|
||
.DS_Store | ||
|
||
build | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"non-interactive": true, | ||
"hooks": { | ||
"before:init": [ | ||
"npm run bundle", | ||
"npm run typings" | ||
] | ||
}, | ||
"hooks": {}, | ||
"git": { | ||
"requireCleanWorkingDir": false | ||
"commit": false, | ||
"tag": false, | ||
"push": false | ||
}, | ||
"npm": { | ||
"publish": false | ||
}, | ||
"github": { | ||
"release": true | ||
"release": true, | ||
"releaseName": "Release ${version}" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": " rrweb monorepo", // added a space to bump it to the top | ||
"path": ".." | ||
}, | ||
{ | ||
"name": "rrdom (package)", | ||
"path": "../packages/rrdom" | ||
}, | ||
{ | ||
"name": "rrweb (package)", | ||
"path": "../packages/rrweb" | ||
}, | ||
{ | ||
"name": "rrweb-player (package)", | ||
"path": "../packages/rrweb-player" | ||
}, | ||
{ | ||
"name": "rrweb-snapshot (package)", | ||
"path": "../packages/rrweb-snapshot" | ||
} | ||
], | ||
"settings": { | ||
"jest.disabledWorkspaceFolders": [ | ||
" rrweb monorepo", | ||
"rrweb-player (package)", | ||
"rrdom (package)" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,10 @@ | |
|
||
# rrweb | ||
|
||
**[The new adventure of the rrweb community](http://www.myriptide.com/rrweb-community/)** | ||
**[The rrweb documentary (in Chinese, with English subtitles)](https://www.bilibili.com/video/BV1wL4y1B7wN?share_source=copy_web)** | ||
|
||
[![Join the chat at slack](https://img.shields.io/badge/[email protected]?logo=slack)](https://join.slack.com/t/rrweb/shared_invite/zt-siwoc6hx-uWay3s2wyG8t5GpZVb8rWg) | ||
[![Twitter Follow](https://img.shields.io/badge/twitter-@rrweb__io-teal.svg?logo=twitter)](https://twitter.com/rrweb_io) | ||
![total gzip size](https://img.badgesize.io/https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js?compression=gzip&label=total%20gzip%20size) | ||
![recorder gzip size](https://img.badgesize.io/https://cdn.jsdelivr.net/npm/rrweb@latest/dist/record/rrweb-record.min.js?compression=gzip&label=recorder%20gzip%20size) | ||
[![](https://data.jsdelivr.com/v1/package/npm/rrweb/badge)](https://www.jsdelivr.com/package/npm/rrweb) | ||
|
@@ -26,13 +27,21 @@ rrweb refers to 'record and replay the web', which is a tool for recording and r | |
|
||
[**🍳 Recipes 🍳**](./docs/recipes/index.md) | ||
|
||
## Version History | ||
|
||
### 2.0.0 | ||
|
||
This version updates the highlight rrweb fork on rrweb 1.1.3 April 2022 Release. | ||
Because this is a major update, it may not be suitable for customers looking for stable recording and replay functionality. | ||
However, the major update brings lots of rrweb features that have been in development. See the rrweb release notes for more details. | ||
|
||
## Project Structure | ||
|
||
rrweb is mainly composed of 3 parts: | ||
|
||
- **[rrweb-snapshot](https://github.com/rrweb-io/rrweb-snapshot)**, including both snapshot and rebuilding features. The snapshot is used to convert the DOM and its state into a serializable data structure with a unique identifier; the rebuilding feature is to rebuild the snapshot into corresponding DOM. | ||
- **[rrweb-snapshot](https://github.com/rrweb-io/rrweb/tree/master/packages/rrweb-snapshot/)**, including both snapshot and rebuilding features. The snapshot is used to convert the DOM and its state into a serializable data structure with a unique identifier; the rebuilding feature is to rebuild the snapshot into corresponding DOM. | ||
- **[rrweb](https://github.com/rrweb-io/rrweb)**, including two functions, record and replay. The record function is used to record all the mutations in the DOM; the replay is to replay the recorded mutations one by one according to the corresponding timestamp. | ||
- **[rrweb-player](https://github.com/rrweb-io/rrweb-player)**, is a player UI for rrweb, providing GUI-based functions like pause, fast-forward, drag and drop to play at any time. | ||
- **[rrweb-player](https://github.com/rrweb-io/rrweb/tree/master/packages/rrweb-player/)**, is a player UI for rrweb, providing GUI-based functions like pause, fast-forward, drag and drop to play at any time. | ||
|
||
## Roadmap | ||
|
||
|
@@ -59,10 +68,14 @@ Since we want the record and replay sides to share a strongly typed data structu | |
|
||
[Typescript handbook](https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html) | ||
|
||
1. Fork the rrweb component repository you want to patch. | ||
2. Run `npm install` to install required dependencies. | ||
3. Patch the code and pass all the tests. | ||
4. Push the code and create a pull request. | ||
1. Fork this repository. | ||
2. Run `yarn install` in the root to install required dependencies for all sub-packages (note: `npm install` is _not_ recommended). | ||
3. Run `yarn dev` in the root to get auto-building for all the sub-packages whenever you modify anything. | ||
4. Navigate to one of the sub-packages (in the `packages` folder) where you'd like to make a change. | ||
5. Patch the code and run `yarn test` to run the tests, make sure they pass before you commit anything. | ||
6. Push the code and create a pull request. | ||
|
||
Protip: You can run `yarn test` in the root folder to run all the tests. | ||
|
||
In addition to adding integration tests and unit tests, rrweb also provides a REPL testing tool. | ||
|
||
|
@@ -117,8 +130,39 @@ In addition to adding integration tests and unit tests, rrweb also provides a RE | |
|
||
## Who's using rrweb | ||
|
||
<p align="center"> | ||
<a href="http://www.smartx.com/" target="_blank"> | ||
<img width="260px" src="https://www.rrweb.io/logos/smartx.png"> | ||
</a> | ||
</p> | ||
<table> | ||
<tr> | ||
<td align="center"> | ||
<a href="http://www.smartx.com/" target="_blank"> | ||
<img width="195px" src="https://www.rrweb.io/logos/smartx.png"> | ||
</a> | ||
</td> | ||
<td align="center"> | ||
<a href="https://posthog.com?utm_source=rrweb&utm_medium=sponsorship&utm_campaign=open-source-sponsorship" target="_blank"> | ||
<img width="195px" src="https://www.rrweb.io/logos/posthog.png"> | ||
</a> | ||
</td> | ||
<td align="center"> | ||
<a href="https://statcounter.com/session-replay/" target="_blank"> | ||
<img width="195px" src="https://statcounter.com/images/logo-statcounter-arc-blue.svg"> | ||
</a> | ||
</td> | ||
<td align="center"> | ||
<a href="https://cux.io" target="_blank"> | ||
<img style="padding: 8px" alt="The first ever UX automation tool" width="195px" src="https://static.cux.io/logo.svg"> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<a href="https://recordonce.com/" target="_blank"> | ||
<img width="195px" src="https://uploads-ssl.webflow.com/5f3d133183156245630d4446/5f3d1940abe8db8612c23521_Record-Once-logo-554x80px.svg"> | ||
</a> | ||
</td> | ||
<td align="center"> | ||
<a href="https://remsupp.com" target="_blank"> | ||
<img style="padding: 8px" alt="Remote Access & Co-Browsing" width="195px" src="https://remsupp.com/images/logo.png"> | ||
</a> | ||
</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
# rrweb | ||
|
||
**[rrweb 社区新的征程](http://www.myriptide.com/rrweb-community-cn/)** | ||
**[rrweb 纪录片(中文)](https://www.bilibili.com/video/BV1wL4y1B7wN?share_source=copy_web)** | ||
|
||
[![Join the chat at slack](https://img.shields.io/badge/[email protected]?logo=slack)](https://join.slack.com/t/rrweb/shared_invite/zt-siwoc6hx-uWay3s2wyG8t5GpZVb8rWg) | ||
![total gzip size](https://img.badgesize.io/https://cdn.jsdelivr.net/npm/rrweb@latest/dist/rrweb.min.js?compression=gzip&label=total%20gzip%20size) | ||
|
@@ -28,9 +28,9 @@ rrweb 是 'record and replay the web' 的简写,旨在利用现代浏览器所 | |
|
||
rrweb 主要由 3 部分组成: | ||
|
||
- **[rrweb-snapshot](https://github.com/rrweb-io/rrweb-snapshot)**,包含 snapshot 和 rebuild 两个功能。snapshot 用于将 DOM 及其状态转化为可序列化的数据结构并添加唯一标识;rebuild 则是将 snapshot 记录的数据结构重建为对应的 DOM。 | ||
- **[rrweb-snapshot](https://github.com/rrweb-io/rrweb/tree/master/packages/rrweb-snapshot/)**,包含 snapshot 和 rebuild 两个功能。snapshot 用于将 DOM 及其状态转化为可序列化的数据结构并添加唯一标识;rebuild 则是将 snapshot 记录的数据结构重建为对应的 DOM。 | ||
- **[rrweb](https://github.com/rrweb-io/rrweb)**,包含 record 和 replay 两个功能。record 用于记录 DOM 中的所有变更(mutation);replay 则是将记录的变更按照对应的时间一一重放。 | ||
- **[rrweb-player](https://github.com/rrweb-io/rrweb-player)**,为 rrweb 提供一套 UI 控件,提供基于 GUI 的暂停、快进、拖拽至任意时间点播放等功能。 | ||
- **[rrweb-player](https://github.com/rrweb-io/rrweb/tree/master/packages/rrweb-player/)**,为 rrweb 提供一套 UI 控件,提供基于 GUI 的暂停、快进、拖拽至任意时间点播放等功能。 | ||
|
||
## Roadmap | ||
|
||
|
@@ -58,7 +58,7 @@ rrweb 主要由 3 部分组成: | |
[Typescript 手册](https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html) | ||
|
||
1. Fork 需要修改的 rrweb 组件仓库 | ||
2. `npm install` 安装所需依赖 | ||
2. `yarn install` 安装所需依赖 | ||
3. 修改代码并通过测试 | ||
4. 提交代码,创建 pull request | ||
|
||
|
@@ -115,8 +115,22 @@ rrweb 主要由 3 部分组成: | |
|
||
## Who's using rrweb | ||
|
||
<p align="center"> | ||
<a href="http://www.smartx.com/" target="_blank"> | ||
<img width="260px" src="https://www.rrweb.io/logos/smartx.png"> | ||
</a> | ||
</p> | ||
<table> | ||
<tr> | ||
<td align="center"> | ||
<a href="http://www.smartx.com/" target="_blank"> | ||
<img width="260px" src="https://www.rrweb.io/logos/smartx.png"> | ||
</a> | ||
</td> | ||
<td align="center"> | ||
<a href="https://posthog.com?utm_source=rrweb&utm_medium=sponsorship&utm_campaign=open-source-sponsorship" target="_blank"> | ||
<img width="260px" src="https://www.rrweb.io/logos/posthog.png"> | ||
</a> | ||
</td> | ||
<td align="center"> | ||
<a href="https://statcounter.com/session-replay/" target="_blank"> | ||
<img width="260px" src="https://statcounter.com/images/logo-statcounter-arc-blue.svg"> | ||
</a> | ||
</td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.