mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Made a basic TTY system.
This commit is contained in:
parent
62ecea8aa3
commit
ef163b6174
4 changed files with 26 additions and 5 deletions
|
@ -7,6 +7,7 @@ const props = defineProps<{
|
|||
initialY?: number;
|
||||
width?: string;
|
||||
height?: string;
|
||||
black?: boolean | false;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(["close", "min", "maximize", "restore"]);
|
||||
|
@ -66,7 +67,8 @@ const stopDrag = () => {
|
|||
width: props.width || '400px',
|
||||
height: props.height || '300px',
|
||||
}"
|
||||
class="fixed bg-white dark:bg-gray-800 rounded-xl shadow-lg overflow-hidden flex flex-col shadow-lg shadow-xl/30"
|
||||
class="fixed rounded-xl shadow-lg overflow-hidden flex flex-col shadow-lg shadow-xl/30"
|
||||
:class="props.black ? 'bg-black text-white' : 'bg-white text-black'"
|
||||
>
|
||||
<div
|
||||
@mousedown="startDrag"
|
||||
|
|
|
@ -1,8 +1,16 @@
|
|||
<script setup lang="ts">
|
||||
import { Input } from "~/components/ui/input";
|
||||
const commandInputBox = ref();
|
||||
</script>
|
||||
<template>
|
||||
<div>
|
||||
<Input />
|
||||
<div class="text-white">
|
||||
<div class="flex flex-row">
|
||||
<span class="mx-1">></span
|
||||
><input
|
||||
v-model="commandInputBox"
|
||||
type="text"
|
||||
class="border-none bg-black outline-0 w-full text-wrap"
|
||||
@keyup.enter="console.log(commandInputBox)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue