A: 添加网络相关工具类 (NetUtils, SysInfoUtils) 及模型 (NetInfo)

A: 新增网络事件捕获及诊断功能支持 (TCP/UDP 连接、进程信息获取)
U: 更新项目引用,Shell 添加对 Infrastructure 的依赖
U: 优化 WebPanel 消息处理逻辑,支持多种新指令 (GetNetInfo 等)
U: 调整 ClientApp 中 WinDivertCommand.vue 的接口调用逻辑
D: 移除 Core 项目及相关配置
This commit is contained in:
jimmy committed 2025-05-10 22:46:59 +08:00
1 parent b14594ffb3
commit 0feeb00fae
11 files changed
+556 -29

No files matched your search

@@ -1,25 +1,28 @@
<script setup lang="ts">
import CommandManager from '@/components/CommandManager.vue'
import type { CommandType } from '@/types/command'
import {onMounted,onUnmounted} from 'vue'
import CSharpBridgeV2 from "@/correspond/CSharpBridgeV2"
import { onMounted, onUnmounted } from 'vue'
import CSharpBridgeV2 from '@/correspond/CSharpBridgeV2'
const bridge = CSharpBridgeV2.getBridge()
bridge.listen("showMessage",(data) => {
console.log('11111111',data);
bridge.listen('showMessage', (data) => {
console.log('11111111', data)
})
function func() {
console.log('点击anniu')
bridge.send('showMessage',{
title: "来自前端的问候",
content: "Hello C#!"
},(data) => {
console.log(data,'======');
console.log(window.externalFunctions.__BRIDGE_LISTEN__FUNCTIONS__);
})
bridge.send(
'showMessage',
{
title: '来自前端的问候',
content: 'Hello C#!',
},
(data) => {
console.log(data, '======')
console.log(window.externalFunctions.__BRIDGE_LISTEN__FUNCTIONS__)
},
)
}
const commands: CommandType[] = [
@@ -32,19 +35,43 @@ const commands: CommandType[] = [
label: '标题',
type: 'text',
value: 'Vue',
placeholder: 'text'
},{
placeholder: 'text',
},
{
name: 'content',
label: '标题',
type: 'text',
value: 'Hello C#!',
placeholder: 'text'
placeholder: 'text',
},
],
result: null,
},
{
name: 'GetNetInfo',
description: 'GetNetInfo!!',
params: [],
result: null,
},
{
name: 'GetProgramDiagnostics',
description: 'GetProgramDiagnostics!!',
params: [],
result: null,
},
{
name: 'InspectProcess',
description: 'InspectProcess!!',
params: [],
result: null,
},
{
name: 'GetAllTcpConnections',
description: 'GetAllTcpConnections!!',
params: [],
result: null,
},
]
</script>
<template>