@@ -75,7 +75,7 @@ export default class ApiRequest extends LitElement {
75
75
</ style >
76
76
< div class ="col regular-font request-panel ${ this . renderStyle === 'read' ? 'read-mode' : 'view-mode' } ">
77
77
< div class ="req-res-title "> REQUEST</ div >
78
- < div style =' padding-left: ${ this . renderStyle === 'read' ? '16px' : '0' } ; ' >
78
+ < div >
79
79
${ this . inputParametersTemplate ( 'path' ) }
80
80
${ this . inputParametersTemplate ( 'query' ) }
81
81
${ this . requestBodyTemplate ( ) }
@@ -95,7 +95,7 @@ export default class ApiRequest extends LitElement {
95
95
this . responseText = '' ;
96
96
this . responseUrl = '' ;
97
97
this . curlSyntax = '' ;
98
- this . activeSchemaTab = this . defaultSchemaTab === 'model' ? 'model' : 'example' ;
98
+ this . activeSchemaTab = this . defaultSchemaTab ;
99
99
this . activeResponseTab = 'response' ;
100
100
}
101
101
@@ -161,7 +161,7 @@ export default class ApiRequest extends LitElement {
161
161
162
162
tableRows . push ( html `
163
163
< tr >
164
- < td style ="min-width:100px; ">
164
+ < td style ="width:160px; min-width:100px; ">
165
165
< div class ="param-name ">
166
166
${ param . required ? html `< span style ='color:orangered '> *</ span > ` : '' } ${ param . name }
167
167
</ div >
@@ -175,11 +175,11 @@ export default class ApiRequest extends LitElement {
175
175
}
176
176
</ div >
177
177
</ td >
178
- < td style ="min-width:100px; ">
178
+ < td style ="width:160px; min-width:100px; ">
179
179
${ paramSchema . type === 'array'
180
180
? html `
181
181
< tag-input class ="request-param "
182
- style = "width:100%;font-size:calc(var(--small-) + 1px) ; background:var(--input-bg);line-height:13px; "
182
+ style = "width:160px ; background:var(--input-bg);line-height:13px; "
183
183
data-ptype = "${ paramType } "
184
184
data-pname = "${ param . name } "
185
185
data-array = "true "
@@ -201,7 +201,7 @@ export default class ApiRequest extends LitElement {
201
201
< div class ="param-constraint ">
202
202
${ paramSchema . default ? html `< span style ="font-weight:bold "> Default: </ span > ${ paramSchema . default } < br /> ` : '' }
203
203
${ paramSchema . constrain ? html `${ paramSchema . constrain } < br /> ` : '' }
204
- ${ paramSchema . allowedValues ? html `${ paramSchema . allowedValues } ` : '' }
204
+ ${ paramSchema . allowedValues ? html `< span style =" font-weight:bold " > Allowed: </ span > ${ paramSchema . allowedValues } ` : '' }
205
205
</ div > `
206
206
: ''
207
207
}
@@ -211,7 +211,7 @@ export default class ApiRequest extends LitElement {
211
211
? html `
212
212
< tr >
213
213
< td style ="border:none "> </ td >
214
- < td colspan ="2 " style ="border:none; margin-top:0; padding:0 5px; ">
214
+ < td colspan ="2 " style ="border:none; margin-top:0; padding:0 5px 8px 5px ; ">
215
215
< span class ="m-markdown-small "> ${ unsafeHTML ( marked ( param . description || '' ) ) } </ span >
216
216
</ td >
217
217
</ tr > `
@@ -223,7 +223,7 @@ export default class ApiRequest extends LitElement {
223
223
return html `
224
224
< div class ="table-title top-gap "> ${ title } </ div >
225
225
< div style ="display:block; overflow-x:auto; max-width:100%; ">
226
- < table class ="m-table " style ="width:100%; word-break:break-word;; ">
226
+ < table class ="m-table " style ="width:100%; word-break:break-word; ">
227
227
${ tableRows }
228
228
</ table >
229
229
</ div > ` ;
@@ -307,7 +307,7 @@ export default class ApiRequest extends LitElement {
307
307
const arrayType = fieldSchema . type === 'array' ? fieldSchema . items . type : '' ;
308
308
formDataTableRows . push ( html `
309
309
< tr >
310
- < td style ="min-width:100px; ">
310
+ < td style ="width:160px; min-width:100px; ">
311
311
< div class ="param-name "> ${ fieldName } </ div >
312
312
< div class ="param-type ">
313
313
${ fieldType === 'array'
@@ -316,11 +316,11 @@ export default class ApiRequest extends LitElement {
316
316
}
317
317
</ div >
318
318
</ td >
319
- < td style ="min-width:100px; ">
319
+ < td style ="width:160px; min-width:100px; ">
320
320
${ fieldType === 'array'
321
321
? html `
322
322
< tag-input class ="request-form-param "
323
- style ="width:100%; font-size:calc(var(--title-font-size) + 1px) ; background:var(--input-bg);line-height:13px; "
323
+ style ="width:160px ; background:var(--input-bg);line-height:13px; "
324
324
data-ptype ="${ fieldType } "
325
325
data-pname ="${ fieldName } "
326
326
data-array ="true "
@@ -330,7 +330,7 @@ export default class ApiRequest extends LitElement {
330
330
: html `< input
331
331
spellcheck ="false "
332
332
type ="${ fieldSchema . format === 'binary' ? 'file' : 'text' } "
333
- style ="width:100% " class ="request-form-param "
333
+ style ="width:160px " class ="request-form-param "
334
334
data-pname ="${ fieldName } "
335
335
data-ptype ="${ fieldType } "
336
336
data-array ="false "
@@ -345,7 +345,7 @@ export default class ApiRequest extends LitElement {
345
345
? html `
346
346
< tr >
347
347
< td style ="border:none "> </ td >
348
- < td colspan ="2 " style ="border:none; margin-top:0; padding:0 5px; ">
348
+ < td colspan ="2 " style ="border:none; margin-top:0; padding:0 5px 8px 5px ; ">
349
349
< span class ="m-markdown-small "> ${ unsafeHTML ( marked ( fieldSchema . description || '' ) ) } </ span >
350
350
</ td >
351
351
</ tr > `
@@ -372,7 +372,7 @@ export default class ApiRequest extends LitElement {
372
372
? html `${ formDataHtml } `
373
373
: html `
374
374
< div class ="tab-panel col " style ="border-width:0 0 1px 0; ">
375
- < div id =" tab_buttons " class ="tab-buttons row " @click ="${ ( e ) => { this . activeSchemaTab = e . target . dataset . tab ; } } ">
375
+ < div class ="tab-buttons row " @click ="${ ( e ) => { this . activeSchemaTab = e . target . dataset . tab ; } } ">
376
376
${ this . defaultSchemaTab === 'model'
377
377
? html `
378
378
< button class ="tab-btn ${ this . activeSchemaTab === 'model' ? 'active' : '' } " data-tab = 'model ' > MODEL</ button >
@@ -410,10 +410,10 @@ export default class ApiRequest extends LitElement {
410
410
}
411
411
</ div >
412
412
</ div >
413
- < div id = ' tab_example ' class = 'tab-content col ' style = 'flex:1; display:${ this . activeSchemaTab === 'example' ? 'flex' : 'none' } ; '>
413
+ < div class ='tab-content col ' style = 'flex:1; display:${ this . activeSchemaTab === 'example' ? 'flex' : 'none' } ; '>
414
414
${ textareaExampleHtml }
415
415
</ div >
416
- < div id =" tab_model " class ="tab-content col " style ="flex:1; display:${ this . activeSchemaTab === 'model' ? 'flex' : 'none' } ; ">
416
+ < div class ="tab-content col " style ="flex:1; display:${ this . activeSchemaTab === 'model' ? 'flex' : 'none' } ; ">
417
417
${ Object . keys ( shortMimeTypes ) . map ( ( k ) => html `
418
418
${ this . schemaStyle === 'table'
419
419
? html `
@@ -441,13 +441,13 @@ export default class ApiRequest extends LitElement {
441
441
return html `
442
442
< div style ="display:flex; align-items: center; margin:16px 0; font-size:var(--font-size-small); ">
443
443
< div style ="display:flex; flex-direction:column; margin:0; width:calc(100% - 60px); ">
444
- < div style ="display:flex;flex-direction:row;overflow:hidden; "> < div style ="font-weight:bold; " > API_Server : </ div >
444
+ < div style ="display:flex;flex-direction:row;overflow:hidden; "> < div style ="font-weight:bold;padding-right:5px; " > API SERVER : </ div >
445
445
${ this . selectedServer
446
446
? html `${ this . selectedServer } `
447
447
: html `< div style ="font-weight:bold;color:var(--error-color) "> Not Set</ div > `
448
448
}
449
449
</ div >
450
- < div style ="display:flex;flex-direction:row;overflow:hidden;line-height:16px;color:var(--fg2 ) ">
450
+ < div style ="display:flex;flex-direction:row;overflow:hidden;line-height:16px;color:var(--fg3 ) ">
451
451
${ this . apiKeyValue && this . apiKeyName
452
452
? html `
453
453
< div style ="font-weight:bold;color:var(--success-color) "> Authentication: </ div >
0 commit comments