Console.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <transition name="slide-fade" appear>
  3. <div>
  4. <h1 class="mb-3">Console</h1>
  5. <div>
  6. <p>
  7. {{ $t("Allowed commands:") }}
  8. <template v-for="(command, index) in allowedCommandList" :key="command">
  9. <code>{{ command }}</code>
  10. <!-- No comma at the end -->
  11. <span v-if="index !== allowedCommandList.length - 1">, </span>
  12. </template>
  13. </p>
  14. </div>
  15. <Terminal class="terminal" :rows="20" mode="mainTerminal" name="console"></Terminal>
  16. </div>
  17. </transition>
  18. </template>
  19. <script>
  20. import { allowedCommandList } from "../../../backend/util-common";
  21. export default {
  22. components: {
  23. },
  24. data() {
  25. return {
  26. allowedCommandList,
  27. };
  28. },
  29. mounted() {
  30. },
  31. methods: {
  32. }
  33. };
  34. </script>
  35. <style scoped lang="scss">
  36. .terminal {
  37. height: 410px;
  38. }
  39. </style>