mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
config_tools: add tooltips for virtio devices
add tooltips for virtio network, input and console. Tracked-On: #7897 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
3aee139da9
commit
de8877e71a
@ -5,7 +5,14 @@
|
|||||||
<b style="margin-bottom: 2rem">Virtio console device</b>
|
<b style="margin-bottom: 2rem">Virtio console device</b>
|
||||||
<b-row class="align-items-center my-2 mt-4">
|
<b-row class="align-items-center my-2 mt-4">
|
||||||
<b-col md="2">
|
<b-col md="2">
|
||||||
<label>Use type: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.ConsoleConfiguration.properties.use_type.description"></span>
|
||||||
|
</n-popover>Use type:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
<b-form-select v-model="console.use_type" :options="getUseTypes"/>
|
<b-form-select v-model="console.use_type" :options="getUseTypes"/>
|
||||||
@ -14,7 +21,14 @@
|
|||||||
|
|
||||||
<b-row class="align-items-center">
|
<b-row class="align-items-center">
|
||||||
<b-col md="2">
|
<b-col md="2">
|
||||||
<label>Backend type: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.ConsoleConfiguration.properties.backend_type.description"></span>
|
||||||
|
</n-popover>Backend type:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
<b-form-select v-model="console.backend_type" :options="ConsoleBackendType"/>
|
<b-form-select v-model="console.backend_type" :options="ConsoleBackendType"/>
|
||||||
@ -23,7 +37,14 @@
|
|||||||
|
|
||||||
<b-row class="align-items-center my-2" v-if="console.backend_type === 'file'">
|
<b-row class="align-items-center my-2" v-if="console.backend_type === 'file'">
|
||||||
<b-col md="2">
|
<b-col md="2">
|
||||||
<label>Output file path: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.ConsoleConfiguration.properties.output_file_path.description"></span>
|
||||||
|
</n-popover>Output file path:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
<b-form-input v-model="console.output_file_path"/>
|
<b-form-input v-model="console.output_file_path"/>
|
||||||
@ -32,7 +53,14 @@
|
|||||||
|
|
||||||
<b-row class="align-items-center my-2" v-else-if="console.backend_type === 'tty'">
|
<b-row class="align-items-center my-2" v-else-if="console.backend_type === 'tty'">
|
||||||
<b-col md="2">
|
<b-col md="2">
|
||||||
<label>TTY device path: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.ConsoleConfiguration.properties.tty_device_path.description"></span>
|
||||||
|
</n-popover>TTY device path:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
<b-form-input v-model="console.tty_device_path"/>
|
<b-form-input v-model="console.tty_device_path"/>
|
||||||
@ -41,7 +69,14 @@
|
|||||||
|
|
||||||
<b-row class="align-items-center my-2" v-else-if="console.backend_type === 'sock client' || console.backend_type === 'sock server'">
|
<b-row class="align-items-center my-2" v-else-if="console.backend_type === 'sock client' || console.backend_type === 'sock server'">
|
||||||
<b-col md="2">
|
<b-col md="2">
|
||||||
<label>Sock file path: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.ConsoleConfiguration.properties.sock_file_path.description"></span>
|
||||||
|
</n-popover>Sock file path:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
<b-form-input v-model="console.sock_file_path"/>
|
<b-form-input v-model="console.sock_file_path"/>
|
||||||
@ -82,10 +117,11 @@ import _ from "lodash";
|
|||||||
import {Icon} from "@vicons/utils";
|
import {Icon} from "@vicons/utils";
|
||||||
import {Plus, Minus} from '@vicons/fa'
|
import {Plus, Minus} from '@vicons/fa'
|
||||||
import {fieldProps, vueUtils} from '@lljj/vue3-form-naive';
|
import {fieldProps, vueUtils} from '@lljj/vue3-form-naive';
|
||||||
|
import IconInfo from '@lljj/vjsf-utils/icons/IconInfo.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Console",
|
name: "Console",
|
||||||
components: {Icon, Plus, Minus},
|
components: {Icon, Plus, Minus, IconInfo},
|
||||||
props: {
|
props: {
|
||||||
...fieldProps,
|
...fieldProps,
|
||||||
fieldProps: {
|
fieldProps: {
|
||||||
@ -95,6 +131,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
ConsoleConfiguration: this.rootSchema.definitions['BasicVirtioConsoleBackendType'],
|
||||||
enumNames: this.rootSchema.definitions['VirtioConsoleUseType']['enumNames'],
|
enumNames: this.rootSchema.definitions['VirtioConsoleUseType']['enumNames'],
|
||||||
enum: this.rootSchema.definitions['VirtioConsoleUseType']['enum'],
|
enum: this.rootSchema.definitions['VirtioConsoleUseType']['enum'],
|
||||||
ConsoleBackendType: this.rootSchema.definitions['BasicVirtioConsoleBackendType']['enum'],
|
ConsoleBackendType: this.rootSchema.definitions['BasicVirtioConsoleBackendType']['enum'],
|
||||||
@ -176,7 +213,7 @@ export default {
|
|||||||
.virtio_console_demo {
|
.virtio_console_demo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 2px solid #cccccc;
|
border: 2px solid #cccccc;
|
||||||
padding: 8px 2px 12px 6px;
|
padding: 12px 2px 12px 6px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,15 @@
|
|||||||
<div class="virtio_input_demo">
|
<div class="virtio_input_demo">
|
||||||
<b style="margin-bottom: 2rem">Virtio input device</b>
|
<b style="margin-bottom: 2rem">Virtio input device</b>
|
||||||
<b-row class="align-items-center my-2 mt-4">
|
<b-row class="align-items-center my-2 mt-4">
|
||||||
<b-col md="2">
|
<b-col md="3">
|
||||||
<label>Backend device file: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.InputConfiguration.properties.backend_device_file.description"></span>
|
||||||
|
</n-popover>Backend device file:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="8">
|
<b-col md="8">
|
||||||
<b-form-select v-model="input.backend_device_file" :options="BackendDeviceFileType"/>
|
<b-form-select v-model="input.backend_device_file" :options="BackendDeviceFileType"/>
|
||||||
@ -13,7 +20,13 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
|
|
||||||
<b-row class="align-items-center my-2">
|
<b-row class="align-items-center my-2">
|
||||||
<b-col md="2">
|
<b-col md="3">
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.InputConfiguration.properties.id.description"></span>
|
||||||
|
</n-popover>
|
||||||
Guest virtio input device unique identifier:
|
Guest virtio input device unique identifier:
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
@ -57,10 +70,11 @@ import _ from "lodash";
|
|||||||
import {Icon} from "@vicons/utils";
|
import {Icon} from "@vicons/utils";
|
||||||
import {Plus, Minus} from '@vicons/fa'
|
import {Plus, Minus} from '@vicons/fa'
|
||||||
import {fieldProps, vueUtils} from '@lljj/vue3-form-naive';
|
import {fieldProps, vueUtils} from '@lljj/vue3-form-naive';
|
||||||
|
import IconInfo from '@lljj/vjsf-utils/icons/IconInfo.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Input",
|
name: "Input",
|
||||||
components: {Icon, Plus, Minus},
|
components: {Icon, Plus, Minus, IconInfo},
|
||||||
props: {
|
props: {
|
||||||
...fieldProps,
|
...fieldProps,
|
||||||
fieldProps: {
|
fieldProps: {
|
||||||
@ -114,7 +128,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
label:after{
|
label:before{
|
||||||
content: '*';
|
content: '*';
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
@ -145,7 +159,7 @@ label:after{
|
|||||||
.virtio_input_demo {
|
.virtio_input_demo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 2px solid #cccccc;
|
border: 2px solid #cccccc;
|
||||||
padding: 8px 0 12px 6px;
|
padding: 12px 0 12px 6px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,14 @@
|
|||||||
<b style="margin-bottom: 2rem">Virtio network device</b>
|
<b style="margin-bottom: 2rem">Virtio network device</b>
|
||||||
<b-row class="align-items-center my-2 mt-4">
|
<b-row class="align-items-center my-2 mt-4">
|
||||||
<b-col md="2">
|
<b-col md="2">
|
||||||
<label>Virtio framework: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.NetworkConfiguration.properties.virtio_framework.description"></span>
|
||||||
|
</n-popover>Virtio framework:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
<b-form-select v-model="network.virtio_framework" :options="NetworkFrameworkType"/>
|
<b-form-select v-model="network.virtio_framework" :options="NetworkFrameworkType"/>
|
||||||
@ -14,7 +21,14 @@
|
|||||||
|
|
||||||
<b-row class="align-items-center my-2">
|
<b-row class="align-items-center my-2">
|
||||||
<b-col md="2">
|
<b-col md="2">
|
||||||
<label>Network interface name: </label>
|
<label>
|
||||||
|
<n-popover trigger="hover" placement="top-start">
|
||||||
|
<template #trigger>
|
||||||
|
<IconInfo/>
|
||||||
|
</template>
|
||||||
|
<span v-html="this.NetworkConfiguration.properties.interface_name.description"></span>
|
||||||
|
</n-popover>Network interface name:
|
||||||
|
</label>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col md="4">
|
<b-col md="4">
|
||||||
<b-form-input :state="validateInterfaceName(network.interface_name)" v-model="network.interface_name" placeholder="An arbitrary-long string with letters, digits, underscores or dashes."/>
|
<b-form-input :state="validateInterfaceName(network.interface_name)" v-model="network.interface_name" placeholder="An arbitrary-long string with letters, digits, underscores or dashes."/>
|
||||||
@ -57,10 +71,11 @@ import _ from "lodash";
|
|||||||
import {Icon} from "@vicons/utils";
|
import {Icon} from "@vicons/utils";
|
||||||
import {Plus, Minus} from '@vicons/fa'
|
import {Plus, Minus} from '@vicons/fa'
|
||||||
import {fieldProps, vueUtils} from '@lljj/vue3-form-naive';
|
import {fieldProps, vueUtils} from '@lljj/vue3-form-naive';
|
||||||
|
import IconInfo from '@lljj/vjsf-utils/icons/IconInfo.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Network",
|
name: "Network",
|
||||||
components: {Icon, Plus, Minus},
|
components: {Icon, Plus, Minus, IconInfo},
|
||||||
props: {
|
props: {
|
||||||
...fieldProps,
|
...fieldProps,
|
||||||
fieldProps: {
|
fieldProps: {
|
||||||
@ -115,7 +130,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
label:after{
|
label:before{
|
||||||
content: '*';
|
content: '*';
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
@ -146,7 +161,7 @@ label:after{
|
|||||||
.virtio_network_demo {
|
.virtio_network_demo {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 2px solid #cccccc;
|
border: 2px solid #cccccc;
|
||||||
padding: 8px 0 12px 6px;
|
padding: 12px 0 12px 6px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user