@@ -355,18 +355,11 @@ async function handleTest() {
355355
356356<template >
357357 <AModal
358- v-model:open =" visible"
359- :title =" `${$gettext('Health Check Configuration')} - ${site?.name || getTestUrl()}`"
360- width =" 800px"
361- @cancel =" handleCancel"
358+ v-model:open =" visible" :title =" `${$gettext('Health Check Configuration')} - ${site?.name || getTestUrl()}`"
359+ width =" 800px" @cancel =" handleCancel"
362360 >
363361 <div >
364- <AForm
365- :model =" formData"
366- layout =" vertical"
367- :label-col =" { span: 24 }"
368- :wrapper-col =" { span: 24 }"
369- >
362+ <AForm :model =" formData" layout =" vertical" :label-col =" { span: 24 }" :wrapper-col =" { span: 24 }" >
370363 <div >
371364 <!-- Enable/Disable Health Check -->
372365 <AFormItem :label =" $gettext('Enable Health Check')" >
@@ -450,18 +443,12 @@ async function handleTest() {
450443 </AFormItem >
451444
452445 <AFormItem v-if =" formData.method !== 'GET'" :label =" $gettext('Request Body')" >
453- <ATextarea
454- v-model:value =" formData.body"
455- :rows =" 3"
456- placeholder =" {" ; key" ; : " ; value" ; }"
457- />
446+ <ATextarea v-model:value =" formData.body" :rows =" 3" />
458447 </AFormItem >
459448
460449 <AFormItem :label =" $gettext('Expected Status Codes')" >
461450 <ASelect
462- v-model:value =" formData.expectedStatus"
463- mode =" multiple"
464- style =" width : 100% "
451+ v-model:value =" formData.expectedStatus" mode =" multiple" style =" width : 100% "
465452 placeholder =" 200, 201, 204..."
466453 >
467454 <ASelectOption :value =" 200" >
@@ -505,16 +492,11 @@ async function handleTest() {
505492 v-if =" ['grpc', 'grpcs'].includes(formData.protocol)"
506493 :message =" formData.protocol === 'grpcs'
507494 ? $gettext('gRPCS uses TLS encryption. Server must implement gRPC Health Check service. For testing, SSL validation is disabled by default.')
508- : $gettext('gRPC health check requires server to implement gRPC Health Check service (grpc.health.v1.Health).')"
509- type =" info"
510- show-icon
511- class =" mb-4"
495+ : $gettext('gRPC health check requires server to implement gRPC Health Check service (grpc.health.v1.Health).')" type =" info" show-icon class =" mb-4"
512496 />
513497 <AAlert
514498 :message =" $gettext('Note: If the server does not support gRPC Reflection, health checks may fail. Please ensure your gRPC server has Reflection enabled.')"
515- type =" warning"
516- show-icon
517- class =" mb-4"
499+ type =" warning" show-icon class =" mb-4"
518500 />
519501 <ARow :gutter =" 16" >
520502 <ACol :span =" 12" >
@@ -536,22 +518,12 @@ async function handleTest() {
536518 <ARow :gutter =" 16" >
537519 <ACol :span =" 12" >
538520 <AFormItem :label =" $gettext('Check Interval (seconds)')" >
539- <AInputNumber
540- v-model:value =" formData.interval"
541- :min =" 30"
542- :max =" 3600"
543- style =" width : 100% "
544- />
521+ <AInputNumber v-model:value =" formData.interval" :min =" 30" :max =" 3600" style =" width : 100% " />
545522 </AFormItem >
546523 </ACol >
547524 <ACol :span =" 12" >
548525 <AFormItem :label =" $gettext('Timeout (seconds)')" >
549- <AInputNumber
550- v-model:value =" formData.timeout"
551- :min =" 5"
552- :max =" 60"
553- style =" width : 100% "
554- />
526+ <AInputNumber v-model:value =" formData.timeout" :min =" 5" :max =" 60" style =" width : 100% " />
555527 </AFormItem >
556528 </ACol >
557529 </ARow >
@@ -564,12 +536,7 @@ async function handleTest() {
564536 <ARow :gutter =" 16" >
565537 <ACol :span =" 12" >
566538 <AFormItem :label =" $gettext('Max Redirects')" >
567- <AInputNumber
568- v-model:value =" formData.maxRedirects"
569- :min =" 0"
570- :max =" 10"
571- style =" width : 100% "
572- />
539+ <AInputNumber v-model:value =" formData.maxRedirects" :min =" 0" :max =" 10" style =" width : 100% " />
573540 </AFormItem >
574541 </ACol >
575542 <ACol :span =" 12" >
@@ -648,68 +615,68 @@ async function handleTest() {
648615</template >
649616
650617<style scoped>
651- .grpc-help-content {
652- font-size : 14px ;
653- line-height : 1.6 ;
654- }
618+ .grpc-help-content {
619+ font-size : 14px ;
620+ line-height : 1.6 ;
621+ }
655622
656- .grpc-help-content h4 {
657- color : #1890ff ;
658- margin : 16px 0 8px 0 ;
659- font-size : 16px ;
660- font-weight : 600 ;
661- }
623+ .grpc-help-content h4 {
624+ color : #1890ff ;
625+ margin : 16px 0 8px 0 ;
626+ font-size : 16px ;
627+ font-weight : 600 ;
628+ }
662629
663- .grpc-help-content h5 {
664- color : #595959 ;
665- margin : 12px 0 4px 0 ;
666- font-size : 14px ;
667- font-weight : 500 ;
668- }
630+ .grpc-help-content h5 {
631+ color : #595959 ;
632+ margin : 12px 0 4px 0 ;
633+ font-size : 14px ;
634+ font-weight : 500 ;
635+ }
669636
670- .grpc-help-content p {
671- margin : 8px 0 ;
672- color : #595959 ;
673- }
637+ .grpc-help-content p {
638+ margin : 8px 0 ;
639+ color : #595959 ;
640+ }
674641
675- .code-examples {
676- margin : 16px 0 ;
677- }
642+ .code-examples {
643+ margin : 16px 0 ;
644+ }
678645
679- .code-examples pre {
680- background-color : #f6f8fa ;
681- border : 1px solid #e1e4e8 ;
682- border-radius : 6px ;
683- padding : 12px ;
684- margin : 8px 0 ;
685- overflow-x : auto ;
686- font-family : ' SFMono-Regular' , Consolas, ' Liberation Mono' , Menlo, monospace ;
687- font-size : 13px ;
688- line-height : 1.4 ;
689- }
646+ .code-examples pre {
647+ background-color : #f6f8fa ;
648+ border : 1px solid #e1e4e8 ;
649+ border-radius : 6px ;
650+ padding : 12px ;
651+ margin : 8px 0 ;
652+ overflow-x : auto ;
653+ font-family : ' SFMono-Regular' , Consolas, ' Liberation Mono' , Menlo, monospace ;
654+ font-size : 13px ;
655+ line-height : 1.4 ;
656+ }
690657
691- .code-examples code {
692- color : #24292e ;
693- background : transparent ;
694- border : none ;
695- padding : 0 ;
696- }
658+ .code-examples code {
659+ color : #24292e ;
660+ background : transparent ;
661+ border : none ;
662+ padding : 0 ;
663+ }
697664
698- .dark .code-examples pre {
699- background-color : #161b22 ;
700- border-color : #30363d ;
701- }
665+ .dark .code-examples pre {
666+ background-color : #161b22 ;
667+ border-color : #30363d ;
668+ }
702669
703- .dark .code-examples code {
704- color : #e6edf3 ;
705- }
670+ .dark .code-examples code {
671+ color : #e6edf3 ;
672+ }
706673
707- .dark .grpc-help-content h4 {
708- color : #58a6ff ;
709- }
674+ .dark .grpc-help-content h4 {
675+ color : #58a6ff ;
676+ }
710677
711- .dark .grpc-help-content h5 ,
712- .dark .grpc-help-content p {
713- color : #c9d1d9 ;
714- }
678+ .dark .grpc-help-content h5 ,
679+ .dark .grpc-help-content p {
680+ color : #c9d1d9 ;
681+ }
715682 </style >
0 commit comments