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

geonetwork / geonetwork-ui / 12069834722

28 Nov 2024 01:27PM UTC coverage: 83.926% (+0.2%) from 83.736%
12069834722

push

github

jahow
chore: fix formatting on PULL_REQUEST_TEMPLATE.md

3159 of 4250 branches covered (74.33%)

Branch coverage included in aggregate %.

9116 of 10376 relevant lines covered (87.86%)

201.75 hits per line

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

56.25
/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.ts
1
import { Component, Input } from '@angular/core'
1✔
2

3
interface ColorScheme {
4
  outerBar: string
5
  innerBar: string
6
  text: string
7
}
8

9
@Component({
10
  selector: 'gn-ui-progress-bar',
11
  templateUrl: './progress-bar.component.html',
12
  styleUrls: ['./progress-bar.component.css'],
13
  standalone: true,
14
})
15
export class ProgressBarComponent {
1✔
16
  @Input() value = 0
1✔
17
  @Input() type: 'primary' | 'secondary' | 'default' = 'default'
1✔
18

19
  get progress() {
20
    return this.value > 0 ? (this.value < 100 ? this.value : 100) : 0
4!
21
  }
22

23
  get color(): ColorScheme {
24
    switch (this.type) {
6!
25
      case 'default':
26
        return {
6✔
27
          outerBar: 'bg-gray-200',
28
          innerBar: 'bg-gray-100',
29
          text: 'text-gray-900',
30
        }
31
      case 'primary':
32
        return {
×
33
          outerBar: 'bg-primary',
34
          innerBar: 'bg-primary-lighter',
35
          text: 'text-white',
36
        }
37
      case 'secondary':
38
        return {
×
39
          outerBar: 'bg-secondary',
40
          innerBar: 'bg-secondary-lighter',
41
          text: 'text-white',
42
        }
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