@@ -13,6 +13,15 @@ export default class SecuritySchemes extends LitElement {
1313 ${ FontStyles }
1414 ${ TableStyles }
1515 ${ 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 >
1625 < div > AUTHENTICATION</ div >
1726 < table style ="width:auto " class ="m-table ">
1827 < tr >
@@ -34,7 +43,7 @@ export default class SecuritySchemes extends LitElement {
3443 ${ this . schemes [ s ] . type === 'apiKey' ?html `
3544 Send < code > '${ this . schemes [ s ] . name } '</ code > in < code > '${ this . schemes [ s ] . in } '</ code > with the given value
3645 < 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 " >
3847 < button
3948 class ="m-btn "
4049 data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -45,8 +54,8 @@ export default class SecuritySchemes extends LitElement {
4554 ${ this . schemes [ s ] . type === 'http' && this . schemes [ s ] . scheme === 'basic' ?html `
4655 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.
4756 < 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 ">
5059 < button
5160 class ="m-btn "
5261 data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -57,7 +66,7 @@ export default class SecuritySchemes extends LitElement {
5766 ${ this . schemes [ s ] . type === 'http' && this . schemes [ s ] . scheme === 'bearer' ?html `
5867 Send < code > 'Authorization'</ code > in header which will contains the word < code > 'Bearer'</ code > ffollowed by a space and a Token String.
5968 < 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 ">
6170 < button
6271 class ="m-btn "
6372 data-action ="${ this . keyValue ?'CLEAR' :'SET' } "
@@ -68,12 +77,12 @@ export default class SecuritySchemes extends LitElement {
6877 ${ this . schemes [ s ] . type === 'oauth2' ?html `
6978 < div >
7079 ${ 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 > ` :`` }
7483 < 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 ">
7786 </ div >
7887 ` ) }
7988 </ div >
0 commit comments