• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

EcrituresNumeriques / stylo / 14865094533

06 May 2025 04:42PM UTC coverage: 37.581% (-0.1%) from 37.729%
14865094533

push

github

web-flow
Prévisualisation en ligne (#1469)

Co-authored-by: Thomas Parisot <thom4parisot@users.noreply.github.com>

532 of 759 branches covered (70.09%)

Branch coverage included in aggregate %.

0 of 124 new or added lines in 14 files covered. (0.0%)

1 existing line in 1 file now uncovered.

5239 of 14597 relevant lines covered (35.89%)

2.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/front/src/components/collaborative/CollaborativeEditor.jsx
1
import React from 'react'
×
2
import { DiffEditor } from '@monaco-editor/react'
×
3
import { useParams } from 'react-router-dom'
×
4

5
import ArticleStats from '../ArticleStats.jsx'
×
6
import CollaborativeEditorArticleHeader from './CollaborativeEditorArticleHeader.jsx'
×
7
import CollaborativeTextEditor from './CollaborativeTextEditor.jsx'
×
8
import CollaborativeEditorMenu from './CollaborativeEditorMenu.jsx'
×
9

10
import defaultEditorOptions from '../Write/providers/monaco/options.js'
×
11

12
import styles from './CollaborativeEditor.module.scss'
×
13

14
export default function CollaborativeEditor() {
×
NEW
15
  const { articleId, mode = 'write', compareTo, versionId } = useParams()
×
16

17
  if (compareTo) {
×
18
    return (
×
19
      <section className={styles.container}>
×
20
        <div className={styles.main} role="main">
×
21
          <DiffEditor
×
22
            className={styles.diffEditor}
×
23
            width={'100%'}
×
24
            height={'auto'}
×
25
            modified={'aa'}
×
26
            original={'bb'}
×
27
            language="markdown"
×
28
            theme="dark"
×
29
            options={defaultEditorOptions}
×
30
          />
×
31
        </div>
×
32
      </section>
×
33
    )
34
  }
×
35

36
  return (
×
37
    <section className={styles.container}>
×
NEW
38
      <div className={styles.main}>
×
NEW
39
        <CollaborativeEditorArticleHeader
×
NEW
40
          articleId={articleId}
×
NEW
41
          versionId={versionId}
×
NEW
42
        />
×
NEW
43
        <CollaborativeTextEditor
×
NEW
44
          mode={mode}
×
NEW
45
          articleId={articleId}
×
NEW
46
          versionId={versionId}
×
NEW
47
        />
×
48
        <ArticleStats />
×
49
      </div>
×
50

51
      <CollaborativeEditorMenu
×
52
        articleId={articleId}
×
53
        versionId={versionId}
×
54
        compareTo={compareTo}
×
55
      />
×
56
    </section>
×
57
  )
58
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc