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

EcrituresNumeriques / stylo / 14090633575

26 Mar 2025 06:19PM UTC coverage: 31.811% (+0.01%) from 31.801%
14090633575

push

github

web-flow
chore: remplace feather par lucide (plus d'icĂ´nes) (#1374)

470 of 703 branches covered (66.86%)

Branch coverage included in aggregate %.

4 of 47 new or added lines in 46 files covered. (8.51%)

2 existing lines in 1 file now uncovered.

4483 of 14867 relevant lines covered (30.15%)

2.26 hits per line

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

0.0
/front/src/components/collaborative/CollaborativeEditorMenu.jsx
1
import clsx from 'clsx'
×
2
import React, { useState } from 'react'
×
NEW
3
import { ChevronRight } from 'lucide-react'
×
4
import { useTranslation } from 'react-i18next'
×
5
import { useArticleWorkingCopy } from '../../hooks/article.js'
×
6
import Sidebar from '../Sidebar.jsx'
×
7
import ArticleMetadata from '../Write/ArticleMetadata.jsx'
×
8
import ArticleTableOfContents from './ArticleTableOfContents.jsx'
×
9

10
import styles from './CollaborativeEditorMenu.module.scss'
×
11

12
export default function CollaborativeEditorMenu({ articleId }) {
×
13
  const { t } = useTranslation()
×
14
  const [opened, setOpened] = useState(false)
×
15
  const [activeMenu, setActiveMenu] = useState('')
×
16

17
  const { article } = useArticleWorkingCopy({ articleId })
×
18

19
  const metadata = article?.workingVersion?.metadata
×
20

21
  return (
×
22
    <div className={styles.menu} role="menu">
×
23
      <Sidebar
×
24
        className={clsx(styles.container, opened && styles.opened)}
×
25
        opened={opened}
×
26
        setOpened={setOpened}
×
27
        labelOpened={t('editorMenu.open.label')}
×
28
        labelClosed={t('editorMenu.close.label')}
×
29
      >
30
        <section>
×
31
          {activeMenu === '' && (
×
32
            <ul className={styles.entries}>
×
33
              <li onClick={() => setActiveMenu('toc')}>
×
34
                {t('toc.title')}
×
35
                <ChevronRight
×
36
                  style={{ strokeWidth: 3 }}
×
37
                  height={32}
×
38
                  width={32}
×
39
                />
×
40
              </li>
×
41
              <li onClick={() => setActiveMenu('metadata')}>
×
42
                {t('metadata.title')}
×
43
                <ChevronRight
×
44
                  style={{ strokeWidth: 3 }}
×
45
                  height={32}
×
46
                  width={32}
×
47
                />
×
48
              </li>
×
49
            </ul>
×
50
          )}
51
          <div className={styles.content}>
×
52
            {activeMenu === 'metadata' && (
×
53
              <ArticleMetadata
×
54
                onBack={() => setActiveMenu('')}
×
55
                metadata={metadata}
×
56
                readOnly={true}
×
57
              />
×
58
            )}
59
            {activeMenu === 'toc' && (
×
60
              <ArticleTableOfContents onBack={() => setActiveMenu('')} />
×
61
            )}
62
          </div>
×
63
        </section>
×
64
      </Sidebar>
×
65
    </div>
×
66
  )
67
}
×
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