@@ -34,7 +34,7 @@ export default class SecuritySchemes extends LitElement {
34
34
${ this . schemes [ s ] . type === 'apiKey' ?html `
35
35
Send < code > '${ this . schemes [ s ] . name } '</ code > in < code > '${ this . schemes [ s ] . in } '</ code > with the given value
36
36
< 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:402px ; " placeholder ="api-token " >
37
+ < input type ="text " name ="token " style ="width:222px ; " placeholder ="api-token " >
38
38
< button
39
39
class ="m-btn "
40
40
data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -45,8 +45,8 @@ export default class SecuritySchemes extends LitElement {
45
45
${ this . schemes [ s ] . type === 'http' && this . schemes [ s ] . scheme === 'basic' ?html `
46
46
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
47
< 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:200px ; " placeholder ="username ">
49
- < input type ="text " name ="password " style ="width:200px ; " placeholder ="password ">
48
+ < input type ="text " name ="username " style ="width:110px ; " placeholder ="username ">
49
+ < input type ="text " name ="password " style ="width:110px ; " placeholder ="password ">
50
50
< button
51
51
class ="m-btn "
52
52
data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -57,7 +57,7 @@ export default class SecuritySchemes extends LitElement {
57
57
${ this . schemes [ s ] . type === 'http' && this . schemes [ s ] . scheme === 'bearer' ?html `
58
58
Send < code > 'Authorization'</ code > in header which will contains the word < code > 'Bearer'</ code > ffollowed by a space and a Token String.
59
59
< 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:402px ; " placeholder ="api-token ">
60
+ < input type ="text " name ="token " style ="width:222px ; " placeholder ="api-token ">
61
61
< button
62
62
class ="m-btn "
63
63
data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -66,14 +66,14 @@ export default class SecuritySchemes extends LitElement {
66
66
</ div >
67
67
` :`` }
68
68
${ this . schemes [ s ] . type === 'oauth2' ?html `
69
- < div style =" width:500px " >
69
+ < div >
70
70
${ Object . keys ( this . schemes [ s ] . flows ) . map ( f => html `
71
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
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
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 > ` :`` }
74
74
< div class ="oauth " style ="margin:5px 0 ">
75
- < input type ="text " name ="client " style ="width:200px ; " placeholder ="client-id ">
76
- < input type ="text " name ="secret " style ="width:200px ; " placeholder ="client-secret ">
75
+ < input type ="text " name ="client " style ="width:110px ; " placeholder ="client-id ">
76
+ < input type ="text " name ="secret " style ="width:110px ; " placeholder ="client-secret ">
77
77
</ div >
78
78
` ) }
79
79
</ div >
0 commit comments