diff --git a/.air.toml b/.air.toml index a9855a67..0d1e7033 100644 --- a/.air.toml +++ b/.air.toml @@ -13,7 +13,7 @@ bin = "tmp/main" # Customize binary. full_bin = "APP_ENV=dev APP_USER=air ./tmp/main" # Watch these filename extensions. -include_ext = ["go", "tpl", "tmpl", "html"] +include_ext = ["go", "tpl", "tmpl", "html", "conf"] # Ignore these filename extensions or directories. exclude_dir = ["assets", "tmp", "vendor", "frontend/node_modules", "upload"] # Watch these directories if you specified. diff --git a/frontend/components.d.ts b/frontend/components.d.ts index d7ff438d..842c10ce 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -28,6 +28,8 @@ declare module '@vue/runtime-core' { ALayoutFooter: typeof import('ant-design-vue/es')['LayoutFooter'] ALayoutHeader: typeof import('ant-design-vue/es')['LayoutHeader'] ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] + AList: typeof import('ant-design-vue/es')['List'] + AListItem: typeof import('ant-design-vue/es')['ListItem'] AMenu: typeof import('ant-design-vue/es')['Menu'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AModal: typeof import('ant-design-vue/es')['Modal'] diff --git a/frontend/src/api/template.ts b/frontend/src/api/template.ts new file mode 100644 index 00000000..d15057a6 --- /dev/null +++ b/frontend/src/api/template.ts @@ -0,0 +1,25 @@ +import Curd from '@/api/curd' +import http from '@/lib/http' + +class Template extends Curd { + get_config_list() { + return http.get('template/configs') + } + + get_block_list() { + return http.get('template/blocks') + } + + get_config(name: string) { + return http.get('template/config/' + name) + } + + get_block(name: string) { + return http.get('template/block/' + name) + } + +} + +const template = new Template('/template') + +export default template diff --git a/frontend/src/components/SetLanguage/SetLanguage.vue b/frontend/src/components/SetLanguage/SetLanguage.vue index 5b20f35c..1d889d8e 100644 --- a/frontend/src/components/SetLanguage/SetLanguage.vue +++ b/frontend/src/components/SetLanguage/SetLanguage.vue @@ -1,7 +1,6 @@ - +