feat: display network interface
This commit is contained in:
@@ -241,3 +241,7 @@ export async function downloadIconCache(url: string, name: string) {
|
||||
export async function getNetworkInterfaces() {
|
||||
return invoke<string[]>("get_network_interfaces");
|
||||
}
|
||||
|
||||
export async function getNetworkInterfacesInfo() {
|
||||
return invoke<INetworkInterface[]>("get_network_interfaces_info");
|
||||
}
|
||||
|
||||
18
src/services/types.d.ts
vendored
18
src/services/types.d.ts
vendored
@@ -197,6 +197,24 @@ interface IVergeTestItem {
|
||||
icon?: string;
|
||||
url: string;
|
||||
}
|
||||
interface IAddress {
|
||||
V4?: {
|
||||
ip: string;
|
||||
broadcast?: string;
|
||||
netmask?: string;
|
||||
};
|
||||
V6?: {
|
||||
ip: string;
|
||||
broadcast?: string;
|
||||
netmask?: string;
|
||||
};
|
||||
}
|
||||
interface INetworkInterface {
|
||||
name: string;
|
||||
addr: IAddress[];
|
||||
mac_addr?: string;
|
||||
index: number;
|
||||
}
|
||||
|
||||
interface ISeqProfileConfig {
|
||||
prepend: [];
|
||||
|
||||
Reference in New Issue
Block a user