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

atinc / ngx-tethys / 0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

04 Sep 2023 08:40AM UTC coverage: 15.616% (-74.6%) from 90.2%
0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

Pull #2829

circleci

cmm-va
fix: add test
Pull Request #2829: fix: add tabIndex

300 of 6386 branches covered (0.0%)

Branch coverage included in aggregate %.

78 of 78 new or added lines in 26 files covered. (100.0%)

2849 of 13779 relevant lines covered (20.68%)

83.41 hits per line

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

75.0
/src/comment/comment.component.ts
1
import { isTemplateRef } from 'ngx-tethys/util';
2
import { SafeAny } from 'ngx-tethys/types';
3
import { ChangeDetectionStrategy, Component, Input, TemplateRef } from '@angular/core';
4
import { ThyAvatarComponent } from 'ngx-tethys/avatar';
5
import { ThyStringOrTemplateOutletDirective } from 'ngx-tethys/shared';
6
import { NgIf, NgTemplateOutlet } from '@angular/common';
7

8
/**
9
 * 评论组件
10
 * @name thy-comment
11
 */
12
@Component({
1✔
13
    selector: 'thy-comment',
14
    templateUrl: './comment.component.html',
×
15
    host: {
16
        class: 'thy-comment'
1✔
17
    },
18
    changeDetection: ChangeDetectionStrategy.OnPush,
19
    standalone: true,
20
    imports: [NgIf, NgTemplateOutlet, ThyStringOrTemplateOutletDirective, ThyAvatarComponent]
21
})
22
export class ThyCommentComponent {
1✔
23
    /**
24
     * 展示评论作者
25
     */
26
    @Input() thyAuthor?: string | TemplateRef<SafeAny>;
27

28
    /**
29
     * 展示评论时间
30
     */
31
    @Input() thyDatetime?: string | TemplateRef<SafeAny>;
32

33
    /**
34
     * 展示评论作者头像
35
     */
36
    @Input() thyAvatar?: string | TemplateRef<SafeAny>;
37

38
    isTemplateRef = isTemplateRef;
39
}
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

© 2025 Coveralls, Inc