blob: 61f91e0e4b49848d3cbfa324cc41eebacc239e5c [file] [log] [blame]
Sukanya Pandey96f69ca2020-05-20 15:32:57 +05301<template>
2 <b-container fluid="xl">
3 <page-title />
4
5 <page-section :section-title="$t('pageSerialoverLAN.subTitle')">
6 <p>{{ $t('pageSerialoverLAN.subTitleDesc') }}</p>
7
8 <div class="terminal-container">
9 <serial-over-lan-console />
10 </div>
11 <div class="text-right">
12 <b-button
13 variant="link"
14 type="button"
15 class="button-launch"
16 @click="openConsoleWindow()"
17 >
18 <icon-launch />
19
20 {{ $t('pageSerialoverLAN.openNewTab') }}
21 </b-button>
22 </div>
23 </page-section>
24 </b-container>
25</template>
26
27<script>
28import IconLaunch from '@carbon/icons-vue/es/launch/32';
29import PageTitle from '@/components/Global/PageTitle';
30import PageSection from '@/components/Global/PageSection';
31import SerialOverLanConsole from './SerialOverLanConsole';
32
33export default {
34 name: 'SerialOverLan',
35 components: { IconLaunch, PageSection, PageTitle, SerialOverLanConsole },
36 methods: {
37 openConsoleWindow() {
38 window.open(
39 '#/console/serial-over-lan-console',
40 '_blank',
41 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=550'
42 );
43 }
44 }
45};
46</script>
47
48<style scoped>
49.button-launch > svg {
50 height: 25px;
51}
52.terminal-container {
53 width: 100%;
54}
55</style>