initial commit

This commit is contained in:
felix
2026-09-16 17:16:19 +02:00
commit d120237521
80 changed files with 26582 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{{! The list, the composer, the poll loop }}
<div class="chat-window">
<div class="chat-window__messages">
{{#unless this.messages.length}}
<p class="au-u-muted">{{@assistant.description}}</p>
{{/unless}}
{{#each this.messages key="id" as |message|}}
<Chat::Message
@message={{message}}
@isAssistant={{this.isAssistant message}}
@now={{this.now}}
/>
{{/each}}
{{#if this.waitingForAnswer}}
<AuLoader @inline={{true}}>{{@assistant.name}} denkt na</AuLoader>
{{/if}}
{{#if this.answerTimedOut}}
<AuAlert @skin="warning" @title="Geen antwoord">
De assistent heeft niet geantwoord.
<AuButton @skin="link" {{on "click" this.refresh}}>Vernieuwen</AuButton>
</AuAlert>
{{/if}}
{{#if this.send.last.isError}}
<AuAlert
@skin="error"
@title="Niet verstuurd"
>{{this.send.last.error.message}}</AuAlert>
{{/if}}
</div>
<Chat::Composer
@onSend={{perform this.send}}
@disabled={{this.waitingForAnswer}}
/>
</div>