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

EcrituresNumeriques / stylo / 12925854411

23 Jan 2025 09:11AM UTC coverage: 25.831% (-4.7%) from 30.523%
12925854411

push

github

web-flow
Merge pull request #1192 from EcrituresNumeriques/feat/vite6

322 of 518 branches covered (62.16%)

Branch coverage included in aggregate %.

3448 of 14077 relevant lines covered (24.49%)

1.66 hits per line

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

0.0
/front/src/components/collaborative/CollaborativeEditorWebSocketStatus.jsx
1
import React from 'react'
×
2
import PropTypes from 'prop-types'
×
3
import { Dot } from '@geist-ui/core'
×
4
import { Loader } from 'react-feather'
×
5

6
import styles from './CollaborativeEditorWebSocketStatus.module.scss'
×
7

8
export default function CollaborativeEditorWebSocketStatus({ status, state }) {
×
9
  if (state !== 'started') {
×
10
    return (
×
11
      <Dot type="warning" className={styles.dot}>
×
12
        Connecting
13
        <Loader className={styles.loadingIndicator} />
×
14
      </Dot>
×
15
    )
16
  }
×
17
  return (
×
18
    <>
×
19
      {status === 'connected' && (
×
20
        <Dot type="success" className={styles.dot}>
×
21
          Connected
22
        </Dot>
×
23
      )}
24
      {status === 'disconnected' && (
×
25
        <Dot type="error" className={styles.dot}>
×
26
          Disconnected
27
        </Dot>
×
28
      )}
29
      {status === 'connecting' && (
×
30
        <Dot type="warning" className={styles.dot}>
×
31
          Connecting
32
          <Loader className={styles.loadingIndicator} />
×
33
        </Dot>
×
34
      )}
35
    </>
×
36
  )
37
}
×
38

39
CollaborativeEditorWebSocketStatus.propTypes = {
×
40
  state: PropTypes.string.isRequired,
×
41
  status: PropTypes.string.isRequired,
×
42
}
×
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