Ver Fonte

fix: eslint errors

0xJacky há 1 ano atrás
pai
commit
9c16b55dde

+ 3 - 1
app/src/api/template.ts

@@ -1,6 +1,6 @@
 import Curd from '@/api/curd'
 import http from '@/lib/http'
-import type { NgxServer } from '@/api/ngx'
+import type { NgxDirective, NgxLocation, NgxServer } from '@/api/ngx'
 
 export interface Variable {
   type?: string
@@ -18,6 +18,8 @@ export interface Template extends NgxServer {
     [key: string]: Variable
   }
   custom: string
+  locations?: NgxLocation[]
+  directives?: NgxDirective[]
 }
 
 class TemplateApi extends Curd<Template> {

+ 2 - 2
app/src/views/domain/ngx_conf/NgxUpstream.vue

@@ -5,8 +5,8 @@ import Modal from 'ant-design-vue/lib/modal'
 import _ from 'lodash'
 import type { NgxConfig, NgxDirective } from '@/api/ngx'
 import DirectiveEditor from '@/views/domain/ngx_conf/directive/DirectiveEditor.vue'
-import type { UpstreamStatus } from '@/api/upstream.ts'
-import upstream from '@/api/upstream.ts'
+import type { UpstreamStatus } from '@/api/upstream'
+import upstream from '@/api/upstream'
 
 const { $gettext } = useGettext()