File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import Curd from '@/api/curd'
2
2
import http from '@/lib/http'
3
- import type { NgxServer } from '@/api/ngx'
3
+ import type { NgxDirective , NgxLocation , NgxServer } from '@/api/ngx'
4
4
5
5
export interface Variable {
6
6
type ?: string
@@ -18,6 +18,8 @@ export interface Template extends NgxServer {
18
18
[ key : string ] : Variable
19
19
}
20
20
custom : string
21
+ locations ?: NgxLocation [ ]
22
+ directives ?: NgxDirective [ ]
21
23
}
22
24
23
25
class TemplateApi extends Curd < Template > {
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import Modal from 'ant-design-vue/lib/modal'
5
5
import _ from ' lodash'
6
6
import type { NgxConfig , NgxDirective } from ' @/api/ngx'
7
7
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'
10
10
11
11
const { $gettext } = useGettext ()
12
12
You can’t perform that action at this time.
0 commit comments