Skip to content

Commit afc5458

Browse files
committed
revert removed missing import
1 parent c74438a commit afc5458

File tree

7 files changed

+20
-4
lines changed

7 files changed

+20
-4
lines changed

admin/postcss.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {}
5-
}
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {}
5+
}
66
}

admin/src/components.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import '@vue/runtime-core'
55

66
declare module '@vue/runtime-core' {
77
export interface GlobalComponents {
8+
AAlert: typeof import('ant-design-vue/es')['Alert']
89
ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb']
910
ABreadcrumbItem: typeof import('ant-design-vue/es')['BreadcrumbItem']
1011
AButton: typeof import('ant-design-vue/es')['Button']
@@ -18,8 +19,11 @@ declare module '@vue/runtime-core' {
1819
ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']
1920
AMenu: typeof import('ant-design-vue/es')['Menu']
2021
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
22+
AModal: typeof import('ant-design-vue/es')['Modal']
23+
ASubMenu: typeof import('ant-design-vue/es')['SubMenu']
2124
ATable: typeof import('ant-design-vue/es')['Table']
2225
ATag: typeof import('ant-design-vue/es')['Tag']
26+
ATextarea: typeof import('ant-design-vue/es')['Textarea']
2327
RouterLink: typeof import('vue-router')['RouterLink']
2428
RouterView: typeof import('vue-router')['RouterView']
2529
Screenfull: typeof import('./components/Screenfull/index.vue')['default']

admin/src/layout/aside.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
</template>
2121

2222
<script setup lang='ts'>
23+
import Sidebar from './components/sidebar.vue'
24+
import Content from './components/content.vue'
2325
import { useRoute } from 'vue-router'
2426
import { useLayoutStore } from '../store/modules/layout'
2527
import { findCurrentMenubar } from '../utils/util'

admin/src/views/Dashboard/GlobalTransactions/AllTransactions.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import { forceStopTransaction, IListAllTransactionsReq, listAllTransactions } from '/@/api/api_dtm'
5757
import { computed, ref } from 'vue-demi'
5858
import { usePagination } from 'vue-request'
59+
import DialogTransactionDetail from './_Components/DialogTransactionDetail.vue'
5960
6061
const gid = ref('')
6162

admin/src/views/Dashboard/GlobalTransactions/_Components/DialogTransactionDetail.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<script setup lang="ts">
1717
import { ref } from 'vue'
1818
import { getTransaction } from '/@/api/api_dtm'
19+
import screenfull from '/@/components/Screenfull/index.vue'
1920
// import VueJsonPretty from 'vue-json-pretty';
2021
// import 'vue-json-pretty/lib/styles.css'
2122

admin/src/views/Dashboard/KVPairs/Topics.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
</div>
2626
</template>
2727
<script setup lang="ts">
28+
import DialogTopicDetail from './_Components/DialogTopicDetail.vue'
29+
import DialogTopicSubscribe from './_Components/DialogTopicSubscribe.vue'
2830
import { deleteTopic, IListAllKVReq, listKVPairs } from '/@/api/api_dtm'
2931
import { computed, ref } from 'vue-demi'
3032
import { usePagination } from 'vue-request'

admin/vite.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
55
import Components from 'unplugin-vue-components/vite'
66
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
77
import { ViteEjsPlugin } from 'vite-plugin-ejs'
8+
import dns from 'dns'
89

910
const setAlias = (alias: [string, string][]) =>
1011
alias.map((v) => {
1112
return { find: v[0], replacement: path.resolve(__dirname, v[1]) }
1213
})
14+
// https://cn.vitejs.dev/config/server-options.html#server-host
15+
dns.setDefaultResultOrder('verbatim')
1316

1417
export default ({ mode }: ConfigEnv): UserConfigExport => {
1518
return {
@@ -51,11 +54,14 @@ export default ({ mode }: ConfigEnv): UserConfigExport => {
5154
}
5255
},
5356
server: {
57+
host: 'localhost',
5458
port: 6789,
5559
base: 'admin',
5660
proxy: {
5761
'/api': {
62+
changeOrigin: true,
5863
target: 'http://localhost:36789'
64+
5965
}
6066
}
6167
},

0 commit comments

Comments
 (0)