-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(model): make model fullscreen with sidenav controls
- Loading branch information
ezpzlmnsqz1337
committed
Aug 27, 2022
1 parent
606d944
commit 603d166
Showing
5 changed files
with
107 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<template> | ||
<b-sidebar | ||
id="sidebar-footer" | ||
title="Big Robot Arm UI" | ||
shadow | ||
right | ||
width="40vw" | ||
> | ||
<template #footer> | ||
<div class="d-flex justify-content-end px-3 py-3"> | ||
<b-button variant="danger" @click="disconnect()" | ||
><fa-icon icon="fa-solid fa-ban" /> Disconnect</b-button | ||
> | ||
</div> | ||
</template> | ||
<b-tabs pills fill card> | ||
<b-tab class="my-3"> | ||
<template #title> | ||
<fa-icon icon="fa-solid fa-terminal" /> | ||
</template> | ||
<b-card-text><Terminal /></b-card-text> | ||
</b-tab> | ||
<b-tab class="my-3"> | ||
<template #title> | ||
<fa-icon icon="fa-solid fa-gamepad" /> | ||
</template> | ||
<ManualControl /> | ||
</b-tab> | ||
<b-tab class="my-3"> | ||
<template #title> | ||
<fa-icon icon="fa-solid fa-sliders" /> | ||
</template> | ||
<Sequences /> | ||
</b-tab> | ||
<b-tab class="my-3"> | ||
<template #title> | ||
<fa-icon icon="fa-solid fa-square-plus" /> | ||
</template> | ||
<RecordCommands /> | ||
</b-tab> | ||
</b-tabs> | ||
</b-sidebar> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import ManualControl from '@/components/ManualControl.vue' | ||
import RecordCommands from '@/components/RecordCommands.vue' | ||
import Sequences from '@/components/Sequences.vue' | ||
import Terminal from '@/components/Terminal.vue' | ||
import { WebsocketMessage } from '@/constants/WebsocketMessage' | ||
import ws from '@/shared' | ||
import { Vue, Component } from 'vue-property-decorator' | ||
@Component({ | ||
components: { | ||
ManualControl, | ||
Terminal, | ||
Sequences, | ||
RecordCommands | ||
} | ||
}) | ||
export default class Sidebar extends Vue { | ||
disconnect() { | ||
ws.send(WebsocketMessage.WS_DISCONNECT) | ||
} | ||
} | ||
</script> | ||
|
||
<!-- Add "scoped" attribute to limit CSS to this component only --> | ||
<style scoped lang="scss"></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters