0.0.42 • Published 3 months ago

monaco-review v0.0.42

Weekly downloads
17
License
MIT
Repository
-
Last release
3 months ago

monaco-editor-code-review

Build Status Coverage Status FOSSA Status

screenshot

Lightweight extension (45KiB) for monaco-editor to allow the creation, editing of "comments" in code. This module has 2 explicit dependencies (uuid + moment). There is an peer-dependency dependency on monaco-editor.

For a working examplple of all the features and the behaviours

Simply add the monaco-editor-code-review/index.js to your .html page.

<script src="../index.js"></script>
//Type: ./src/types/index.ts#ReviewManagerConfig
const overriddenConfig = {};

//Type: ./src/types/index.ts#ReviewComment
const existingComments = [{id:"1",
                         createdBy:'developer-1',
                         createdAt:new Date().getTime(),
                         text:'',
                         lineNumber:1 }];

const editor = monaco.editor.create(document.getElementById("container"), {
        value: '...some source code ''',
        language: "javascript",
        contextmenu: true
    });
const reviewManager = MonacoEditorCodeReview.createReviewManager(editor,
                                                    "name-of-current-user",
                                                    existingComments,
                                                    (newComments)=>{console.info("** new comments **", newComments);},
                                                    overriddenConfig);

Features

Motivation

Your first reaction might be there is no need for this because github or gitlab all have excellent code review tools, and you are right! However - Monaco can be embedded in many types of applications, and this library enables you integrate a light way of allowing users to annotate documents rendered in it.

License

FOSSA Status

0.0.42

3 months ago

0.0.40

3 months ago

0.0.41

3 months ago

0.0.39

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.36-s

2 years ago

0.0.36

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.30

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.25

3 years ago

0.0.24

3 years ago

0.0.23

3 years ago

0.0.22

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago