Skip to content

Commit

Permalink
Implement devtools chrome extension (#717)
Browse files Browse the repository at this point in the history
A browser extension that helps you debug Yorkie.

With this extension, you can access the 🐶 Yorkie panel within the
Chrome Developer Tools.

Here's an overview of the Key features:

Left Tab: Document
- Instant access to document keys.
- Visualize the rootObject structure for a comprehensive understanding.

CRDT insights
- Clearly display data types for each CRDTElement using intuitive
  icons and informative tooltips.
- Click on any CRDTElement to unveil datatype-specific details
  tailored to your debugging needs.

View Options
- By default, enjoy a JSON view for quick analysis.
- Explore tree data types with an interactive graph view, offering a
  deeper understanding of the data structure.

---------

Co-authored-by: Youngteac Hong <[email protected]>
  • Loading branch information
chacha912 and hackerwins authored Jan 19, 2024
1 parent 639bb77 commit 2f951cc
Show file tree
Hide file tree
Showing 44 changed files with 10,242 additions and 949 deletions.
1 change: 1 addition & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = {
mode: 'production',
optimization: {
minimize: false,
nodeEnv: false,
},
module: {
rules: [
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-scheduler/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default function Editor() {
}, 'create default content if not exists');

// 04. subscribe doc's change event from local and remote.
doc.subscribe((event) => {
doc.subscribe(() => {
callback(doc.getRoot().content);
});

Expand Down
Loading

0 comments on commit 2f951cc

Please sign in to comment.