Skip to content

Commit

Permalink
Added: blinking cursor to Terminal. Removed / added comments
Browse files Browse the repository at this point in the history
Removed from ChatMessages
Added to api/context
  • Loading branch information
johnconnor-sec committed Dec 31, 2024
1 parent 416cee4 commit 6434031
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
2 changes: 2 additions & 0 deletions web/src/lib/api/contexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ export const contextAPI = {
}

// TODO: add context element somewhere in the UI
// Should the file upload functionality be used as the context element?
// Or should there be another area to upload a context file?
2 changes: 0 additions & 2 deletions web/src/lib/components/chat/ChatMessages.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@
</div>
{/if}

<!-- Check 24-12-08 chat-interface for more updates here -->

<div class="messages-container p-4 flex-1 overflow-y-auto max-h-dvh" bind:this={messagesContainer}>
<div class="messages-content flex flex-col gap-4">
{#each $chatState.messages as message}
Expand Down
35 changes: 17 additions & 18 deletions web/src/lib/components/terminal/Terminal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@

<!-- Command input -->
{#if mounted}
<div class="flex items-center command-input">
<div class="flex items-center">
<span class="mr-2 terminal-prompt font-bold">$</span>
<!-- {#if showCursor}
{#if showCursor}
<span class="animate-blink terminal-text">▋</span>
{/if} -->
{/if}
<input
type="text"
bind:value={currentCommand}
on:keydown={handleKeydown}
class="flex-1 bg-transparent border-none outline-none terminal-text caret-primary-500"
class="flex-1 bg-transparent border-none outline-none terminal-text"
placeholder="Type a command..."
/>
</div>
Expand Down Expand Up @@ -153,28 +153,27 @@
@apply text-gray-600;
}
/* .animate-blink {
.animate-blink {
animation: blink 1s step-end infinite;
flex-col: 1;
}*/
}
@keyframes blink {
50% {
opacity: 0;
}
}
/* Custom scrollbar */
::-webkit-scrollbar {
@apply w-2;
}
::-webkit-scrollbar-track {
@apply bg-gray-800/50 rounded-full;
}
::-webkit-scrollbar-thumb {
@apply bg-gray-600/50 rounded-full hover:bg-gray-500/50 transition-colors;
}
/*::-webkit-scrollbar {*/
/* @apply w-2;*/
/*}*/
/**/
/*::-webkit-scrollbar-track {*/
/* @apply bg-gray-800/50 rounded-full;*/
/*}*/
/**/
/*::-webkit-scrollbar-thumb {*/
/* @apply bg-gray-600/50 rounded-full hover:bg-gray-500/50 transition-colors;*/
/*}*/
</style>

0 comments on commit 6434031

Please sign in to comment.