@@ -13,6 +13,15 @@ export default class SecuritySchemes extends LitElement {
13
13
${ FontStyles }
14
14
${ TableStyles }
15
15
${ InputStyles }
16
+ < style >
17
+ .url {
18
+ display : inline-flex;
19
+ color : # 999 ;
20
+ max-width : 220px ;
21
+ overflow-wrap : break-word;
22
+ word-break : break-all;
23
+ }
24
+ </ style >
16
25
< div > AUTHENTICATION</ div >
17
26
< table style ="width:auto " class ="m-table ">
18
27
< tr >
@@ -34,7 +43,7 @@ export default class SecuritySchemes extends LitElement {
34
43
${ this . schemes [ s ] . type === 'apiKey' ?html `
35
44
Send < code > '${ this . schemes [ s ] . name } '</ code > in < code > '${ this . schemes [ s ] . in } '</ code > with the given value
36
45
< div class ="api-key " data-type ="${ this . schemes [ s ] . type } " data-in ="${ this . schemes [ s ] . in } " data-name ="${ this . schemes [ s ] . name } " style ="margin:5px 0 ">
37
- < input type ="text " name ="token " style ="width:222px ; " placeholder ="api-token " >
46
+ < input type ="text " name ="token " style ="width:202px ; " placeholder ="api-token " >
38
47
< button
39
48
class ="m-btn "
40
49
data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -45,8 +54,8 @@ export default class SecuritySchemes extends LitElement {
45
54
${ this . schemes [ s ] . type === 'http' && this . schemes [ s ] . scheme === 'basic' ?html `
46
55
Send < code > 'Authorization'</ code > in header which will contains the word < code > 'Basic'</ code > followed by a space and a base64-encoded string username:password.
47
56
< div class ="api-key " data-type ="${ this . schemes [ s ] . type } " data-scheme ="${ this . schemes [ s ] . scheme } " data-in ="header " data-name ="Authorization " style ="margin:15px 0 ">
48
- < input type ="text " name ="username " style ="width:110px ; " placeholder ="username ">
49
- < input type ="text " name ="password " style ="width:110px ; " placeholder ="password ">
57
+ < input type ="text " name ="username " style ="width:100px ; " placeholder ="username ">
58
+ < input type ="text " name ="password " style ="width:100px ; " placeholder ="password ">
50
59
< button
51
60
class ="m-btn "
52
61
data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -57,7 +66,7 @@ export default class SecuritySchemes extends LitElement {
57
66
${ this . schemes [ s ] . type === 'http' && this . schemes [ s ] . scheme === 'bearer' ?html `
58
67
Send < code > 'Authorization'</ code > in header which will contains the word < code > 'Bearer'</ code > ffollowed by a space and a Token String.
59
68
< div class ="api-key " data-type ="${ this . schemes [ s ] . type } " data-scheme ="${ this . schemes [ s ] . scheme } " data-in ="header " data-name ="Authorization " style ="margin:15px 0 ">
60
- < input type ="text " name ="token " style ="width:222px ; " placeholder ="api-token ">
69
+ < input type ="text " name ="token " style ="width:202px ; " placeholder ="api-token ">
61
70
< button
62
71
class ="m-btn "
63
72
data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -68,12 +77,12 @@ export default class SecuritySchemes extends LitElement {
68
77
${ this . schemes [ s ] . type === 'oauth2' ?html `
69
78
< div >
70
79
${ Object . keys ( this . schemes [ s ] . flows ) . map ( f => html `
71
- ${ this . schemes [ s ] . flows [ f ] . authorizationUrl ?html `< div > < b > Auth URL:</ b > < code style =" color:#999 "> ${ this . schemes [ s ] . flows [ f ] . authorizationUrl } </ code > </ div > ` :`` }
72
- ${ this . schemes [ s ] . flows [ f ] . tokenUrl ?html `< div > < b > Token URL:</ b > < code style =" color:#999 "> ${ this . schemes [ s ] . flows [ f ] . tokenUrl } </ code > </ div > ` :`` }
73
- ${ this . schemes [ s ] . flows [ f ] . refreshUrl ?html `< div > < b > Refresh URL:</ b > < code style =" color:#999 "> ${ this . schemes [ s ] . flows [ f ] . refreshUrl } </ code > </ div > ` :`` }
80
+ ${ this . schemes [ s ] . flows [ f ] . authorizationUrl ?html `< div > < b > Auth URL:</ b > < code class =" url "> ${ this . schemes [ s ] . flows [ f ] . authorizationUrl } </ code > </ div > ` :`` }
81
+ ${ this . schemes [ s ] . flows [ f ] . tokenUrl ?html `< div > < b > Token URL:</ b > < code class =" url "> ${ this . schemes [ s ] . flows [ f ] . tokenUrl } </ code > </ div > ` :`` }
82
+ ${ this . schemes [ s ] . flows [ f ] . refreshUrl ?html `< div > < b > Refresh URL:</ b > < code class =" url "> ${ this . schemes [ s ] . flows [ f ] . refreshUrl } </ code > </ div > ` :`` }
74
83
< div class ="oauth " style ="margin:5px 0 ">
75
- < input type ="text " name ="client " style ="width:110px ; " placeholder ="client-id ">
76
- < input type ="text " name ="secret " style ="width:110px ; " placeholder ="client-secret ">
84
+ < input type ="text " name ="client " style ="width:100px ; " placeholder ="client-id ">
85
+ < input type ="text " name ="secret " style ="width:100px ; " placeholder ="client-secret ">
77
86
</ div >
78
87
` ) }
79
88
</ div >
0 commit comments