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

EcrituresNumeriques / stylo / 15420543596

03 Jun 2025 02:47PM UTC coverage: 37.711%. First build
15420543596

push

github

web-flow
 Limite les changements d'interface quand on bascule en prévisualisation (#1568)

553 of 781 branches covered (70.81%)

Branch coverage included in aggregate %.

0 of 6 new or added lines in 2 files covered. (0.0%)

5374 of 14936 relevant lines covered (35.98%)

2.55 hits per line

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

0.0
/front/src/components/collaborative/CollaborativeEditorActiveVersion.jsx
1
import React from 'react'
×
2

3
import { useArticleVersion } from '../../hooks/article.js'
×
4
import i18n from '../../i18n.js'
×
5

6
import Alert from '../molecules/Alert.jsx'
×
7
import Loading from '../molecules/Loading.jsx'
×
8

9
export default function CollaborativeEditorActiveVersion({ versionId }) {
×
10
  const { version, isLoading, error } = useArticleVersion({ versionId })
×
11

12
  if (isLoading) {
×
13
    return <Loading />
×
14
  }
×
15

16
  if (error) {
×
17
    return <Alert versionId={error.message()} />
×
18
  }
×
19

20
  if (versionId && version) {
×
21
    const versionNumber = `${version.version}.${version.revision}`
×
22
    const versionCodename =
×
23
      version.message.trim().length > 0 ? `"${version.message}"` : null
×
24

NEW
25
    const localDate = new Date()
×
NEW
26
    console.log(localDate.getTimezoneOffset() * 60000)
×
NEW
27
    console.log(version.createdAt)
×
28
    const versionDate = new Intl.DateTimeFormat(i18n.language, {
×
29
      dateStyle: 'full',
×
NEW
30
      timeStyle: 'short',
×
31
    }).format(new Date(version.createdAt))
×
32
    return (
×
33
      <Alert
×
34
        type="info"
×
35
        message={`Vous êtes sur la version ${versionNumber}${
×
36
          versionCodename ? ` ${versionCodename}` : ''
×
37
        } du ${versionDate}`}
×
38
      ></Alert>
×
39
    )
40
  }
×
41

42
  return (
×
NEW
43
    <></>
×
44
  )
45
}
×
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