@canyonjs/report-component 0.0.1-beta.9 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css ADDED
@@ -0,0 +1,70 @@
1
+ .canyonjs-report-html {
2
+ /*background-color: #535bf2;*/
3
+ }
4
+ .canyonjs-report-html .line-number-wrapper {
5
+ display: flex;
6
+ justify-self: end;
7
+ }
8
+ .canyonjs-report-html .line-number-wrapper > span {
9
+ display: block;
10
+ /*width: 300px;*/
11
+ }
12
+
13
+ .canyonjs-report-html .line-number {
14
+ /*width: 50px;*/
15
+ }
16
+
17
+ .canyonjs-report-html .line-change {
18
+ width: 18px;
19
+ /*background-color: pink;*/
20
+ font-size: 16px;
21
+ text-align: center;
22
+ font-weight: bolder;
23
+ color: green;
24
+ }
25
+
26
+ .canyonjs-report-html .line-coverage {
27
+ background-color: #eaeaea;
28
+ width: 10px;
29
+ padding-right: 5px;
30
+ color: rgba(0, 0, 0, 0.5);
31
+ /*height: 10px;*/
32
+ }
33
+
34
+ /* 老的*/
35
+
36
+ .canyonjs-report-html .YourHighlightClass {
37
+ padding: 0;
38
+ color: white;
39
+ background: rgb(244, 176, 27);
40
+ }
41
+
42
+ /*新版canyon-report*/
43
+
44
+ /*额外的*/
45
+ .canyonjs-report-html .content-class-no-found-branch {
46
+ background: rgba(255, 229, 100, 0.6);
47
+ }
48
+
49
+ .canyonjs-report-html .content-class-no-found {
50
+ background: #f3aeac;
51
+ }
52
+
53
+ .canyonjs-report-html .insert-e-decoration::before {
54
+ content: "E";
55
+ background-color: black;
56
+ color: yellow;
57
+ padding: 0 2px;
58
+ border-radius: 2px;
59
+ margin-right: 5px;
60
+ }
61
+
62
+ .canyonjs-report-html .insert-i-decoration::before {
63
+ content: "I";
64
+ background-color: black;
65
+ color: yellow;
66
+ padding: 0 2px;
67
+ border-radius: 2px;
68
+ margin-right: 5px;
69
+ }
70
+
package/dist/index.d.ts CHANGED
@@ -10,12 +10,16 @@ interface FileDataResponse {
10
10
  fileContent: string;
11
11
  fileCodeChange: number[];
12
12
  }
13
+ interface DataSourceItem {
14
+ path: string;
15
+ [key: string]: unknown;
16
+ }
13
17
  interface CanyonReportProps {
14
18
  /** 报告名称 */
15
19
  name: string;
16
20
  /** 当前选中的文件 */
17
21
  value: string;
18
- dataSource: any[];
22
+ dataSource: DataSourceItem[];
19
23
  onSelect: (val: string) => Promise<FileDataResponse>;
20
24
  }
21
25
  //#endregion