Browse Source

chore: eslint fixed

Akino 2 months ago
parent
commit
c7f32406db

+ 1 - 1
app/src/views/dashboard/NginxDashBoard.vue

@@ -1,4 +1,5 @@
 <script setup lang="ts">
+import ngx from '@/api/ngx'
 import { useNginxPerformance } from '@/composables/useNginxPerformance'
 import { useSSE } from '@/composables/useSSE'
 import { NginxStatus } from '@/constants'
@@ -10,7 +11,6 @@ import PerformanceStatisticsCard from './components/PerformanceStatisticsCard.vu
 import PerformanceTablesCard from './components/PerformanceTablesCard.vue'
 import ProcessDistributionCard from './components/ProcessDistributionCard.vue'
 import ResourceUsageCard from './components/ResourceUsageCard.vue'
-import ngx from '@/api/ngx'
 
 // Global state
 const global = useGlobalStore()

+ 3 - 3
app/src/views/dashboard/components/PerformanceTablesCard.vue

@@ -196,9 +196,9 @@ const maxRPS = computed(() => {
                 {{ $gettext('Maximum worker process number:') }}
                 <strong>{{ nginxInfo.worker_processes }}</strong>
                 <span class="text-gray-500 text-xs ml-2">
-                  {{ 
-                    nginxInfo.process_mode === 'auto' 
-                      ? $gettext('auto = CPU cores') 
+                  {{
+                    nginxInfo.process_mode === 'auto'
+                      ? $gettext('auto = CPU cores')
                       : $gettext('manually set')
                   }}
                 </span>