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

EcrituresNumeriques / stylo / 14472767041

15 Apr 2025 03:02PM UTC coverage: 33.491% (+2.1%) from 31.374%
14472767041

push

github

ggrossetie
fix: surcharge le style de liens externes pour ne pas afficher l'icone par défaut

515 of 777 branches covered (66.28%)

Branch coverage included in aggregate %.

5016 of 15738 relevant lines covered (31.87%)

2.3 hits per line

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

0.0
/front/src/components/Write/ArticleEditorMenu.jsx
1
import React, { useCallback } from 'react'
×
2
import { useDispatch, useSelector } from 'react-redux'
×
3
import { useTranslation } from 'react-i18next'
×
4

5
import styles from './articleEditorMenu.module.scss'
×
6
import ArticleVersions from './ArticleVersions.jsx'
×
7
import Sommaire from './Sommaire'
×
8
import Versions from './Versions'
×
9
import { Sidebar } from 'lucide-react'
×
10

11
export default function ArticleEditorMenu({
×
12
  articleInfos,
×
13
  readOnly,
×
14
  compareTo,
×
15
  selectedVersion,
×
16
}) {
×
17
  const expanded = useSelector(
×
18
    (state) => state.articlePreferences.expandSidebarLeft
×
19
  )
×
20
  const dispatch = useDispatch()
×
21
  const toggleExpand = useCallback(
×
22
    () =>
×
23
      dispatch({
×
24
        type: 'ARTICLE_PREFERENCES_TOGGLE',
×
25
        key: 'expandSidebarLeft',
×
26
      }),
×
27
    []
×
28
  )
×
29
  const { t } = useTranslation()
×
30

31
  return (
×
32
    <nav className={`${expanded ? styles.expandleft : styles.retractleft}`}>
×
33
      <button
×
34
        onClick={toggleExpand}
×
35
        className={expanded ? styles.close : styles.open}
×
36
      >
37
        <Sidebar />
×
38
        {expanded
×
39
          ? t('write.sidebar.closeButton')
×
40
          : t('write.sidebar.biblioAndCoButton')}
×
41
      </button>
×
42
      {expanded && (
×
43
        <div>
×
44
          <ArticleVersions
×
45
            articleId={articleInfos._id}
×
46
            selectedVersion={selectedVersion}
×
47
            compareTo={compareTo}
×
48
            readOnly={readOnly}
×
49
          />
×
50
          <Sommaire />
×
51
        </div>
×
52
      )}
53
    </nav>
×
54
  )
55
}
×
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