Skip to content

Commit 928a512

Browse files
committed
fix default tag
1 parent 15d1592 commit 928a512

4 files changed

Lines changed: 43 additions & 14 deletions

File tree

resources/common/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ class SearchDialog {
7979
path,
8080
name: `${method.toUpperCase()} ${path}`,
8181
operationId: paths[path][method].operationId,
82-
tag: paths[path][method].tags[0] || 'default',
82+
tag: paths[path][method].tags
83+
? paths[path][method].tags[0]
84+
: 'default',
8385
})
8486
}
8587
}

resources/redoc/index.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ body {
2222
background-color: rgb(24, 111, 175);
2323
}
2424

25-
.method-put,
25+
.method-put {
26+
background-color: rgb(149, 80, 124);
27+
}
28+
2629
.method-patch {
2730
background-color: rgb(149, 80, 124);
2831
}
@@ -31,8 +34,14 @@ body {
3134
background-color: rgb(204, 51, 51);
3235
}
3336

34-
.method-head,
35-
.method-options,
37+
.method-head {
38+
background-color: rgb(162, 61, 173);
39+
}
40+
41+
.method-options {
42+
background-color: rgb(148, 112, 20);
43+
}
44+
3645
.method-trace {
37-
background-color: #9e9e9e;
46+
background-color: #000;
3847
}

resources/stoplight/index.css

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
background-color: #19abff;
2424
}
2525

26-
.method-put,
26+
.method-put {
27+
background-color: #f46d2a;
28+
}
29+
2730
.method-patch {
2831
background-color: #f46d2a;
2932
}
@@ -32,8 +35,14 @@
3235
background-color: #f05151;
3336
}
3437

35-
.method-head,
36-
.method-options,
38+
.method-head {
39+
background-color: rgb(144, 97, 249);
40+
}
41+
42+
.method-options {
43+
background-color: rgb(13, 90, 167);
44+
}
45+
3746
.method-trace {
38-
background-color: #9e9e9e;
47+
background-color: rgb(13, 11, 40);
3948
}

resources/swagger/index.css

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,26 @@ html[data-theme="dark"] {
2121
background-color: #49cc90;
2222
}
2323

24-
.method-put,
25-
.method-patch {
24+
.method-put {
2625
background-color: #fca130;
2726
}
2827

28+
.method-patch {
29+
background-color: #50e3c2;
30+
}
31+
2932
.method-delete {
3033
background-color: #f93e3e;
3134
}
3235

33-
.method-head,
34-
.method-options,
36+
.method-head {
37+
background-color: #9012fe;
38+
}
39+
40+
.method-options {
41+
background-color: #0d5aa7;
42+
}
43+
3544
.method-trace {
36-
background-color: #9e9e9e;
45+
background-color: #000;
3746
}

0 commit comments

Comments
 (0)