Skip to content

Commit 9c16b55

Browse files
committed
fix: eslint errors
1 parent 384c2ae commit 9c16b55

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

app/src/api/template.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Curd from '@/api/curd'
22
import http from '@/lib/http'
3-
import type { NgxServer } from '@/api/ngx'
3+
import type { NgxDirective, NgxLocation, NgxServer } from '@/api/ngx'
44

55
export interface Variable {
66
type?: string
@@ -18,6 +18,8 @@ export interface Template extends NgxServer {
1818
[key: string]: Variable
1919
}
2020
custom: string
21+
locations?: NgxLocation[]
22+
directives?: NgxDirective[]
2123
}
2224

2325
class TemplateApi extends Curd<Template> {

app/src/views/domain/ngx_conf/NgxUpstream.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Modal from 'ant-design-vue/lib/modal'
55
import _ from 'lodash'
66
import type { NgxConfig, NgxDirective } from '@/api/ngx'
77
import DirectiveEditor from '@/views/domain/ngx_conf/directive/DirectiveEditor.vue'
8-
import type { UpstreamStatus } from '@/api/upstream.ts'
9-
import upstream from '@/api/upstream.ts'
8+
import type { UpstreamStatus } from '@/api/upstream'
9+
import upstream from '@/api/upstream'
1010
1111
const { $gettext } = useGettext()
1212

0 commit comments

Comments
 (0)