Skip to content

Commit 73196c9

Browse files
feat: demo page with navbar (#42)
1 parent e3ac46c commit 73196c9

27 files changed

+319
-131
lines changed

.commitlintrc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module.exports = {
2-
extends: [
3-
'@commitlint/config-conventional',
4-
],
2+
extends: ['@commitlint/config-conventional'],
53
rules: {
64
'header-max-length': [0, 'always', 120],
7-
}
5+
},
86
};

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,12 @@ export class ChatModule {}
195195

196196
The repository includes a library with an AI assistant as well as other useful parts:
197197

198-
| Name | Type | Description |
199-
| ----------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------- |
200-
| `@boldare/ai-assistant` | `library` | A NestJS library based on the OpenAI Assistant for building efficient, scalable, and quick solutions for AI assistants/chatbots |
201-
| `@boldare/ai-embedded` | `library` | The code enables embedding the chatbot on various websites through JavaScript scripts. |
202-
| `api` | `application` | Example usage of the `@boldare/ai-assistant` library. |
203-
| `spa` | `application` | Example client application (SPA) with a chatbot. |
198+
| Name | Description | More |
199+
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|
200+
| `@boldare/ai-assistant` | A NestJS library based on the OpenAI Assistant for building efficient, scalable, and quick solutions for AI assistants/chatbots | [Documentation](https://github.com/boldare/ai-assistant/wiki/%F0%9F%A4%96-AI-Assistant) |
201+
| `@boldare/ai-embedded` | The code enables embedding the chatbot on various websites through JavaScript scripts. | [Documentation](https://github.com/boldare/ai-assistant/wiki/%F0%9F%96%87-Integrating-Chatbot-into-Your-Website) |
202+
| `api` | Example usage of the `@boldare/ai-assistant` library. | [Documentation](https://github.com/boldare/ai-assistant/wiki/%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-Repository) |
203+
| `spa` | Example client application (SPA) with a chatbot. | [Documenation](https://github.com/boldare/ai-assistant/wiki/%F0%9F%92%AC-Chatbot-%E2%80%90-Client-application) |
204204

205205
## Getting started
206206

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { ChatIframeWrapperComponent } from './chat-iframe-wrapper.component';
4+
5+
describe('ChatIframeWrapperComponent', () => {
6+
let component: ChatIframeWrapperComponent;
7+
let fixture: ComponentFixture<ChatIframeWrapperComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
imports: [ChatIframeWrapperComponent],
12+
}).compileComponents();
13+
14+
fixture = TestBed.createComponent(ChatIframeWrapperComponent);
15+
component = fixture.componentInstance;
16+
fixture.detectChanges();
17+
});
18+
19+
it('should create', () => {
20+
expect(component).toBeTruthy();
21+
});
22+
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'ai-chat-iframe-wrapper',
5+
standalone: true,
6+
templateUrl: './chat-iframe-wrapper.component.html',
7+
styleUrl: './chat-iframe-wrapper.component.scss',
8+
})
9+
export class ChatIframeWrapperComponent {}

apps/spa/src/app/components/chat/chat-iframe/chat-iframe.component.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
11
import { Routes } from '@angular/router';
2+
import { ChatComponent } from './containers/chat/chat.component';
23

34
export const routes: Routes = [
45
{
56
path: '',
6-
loadComponent: () =>
7-
import('./containers/chat-example/chat-example.component').then(
8-
mod => mod.ChatExampleComponent,
9-
),
7+
component: ChatComponent,
8+
children: [
9+
{
10+
path: '',
11+
loadComponent: () =>
12+
import('./containers/chat-home/chat-home.component').then(
13+
mod => mod.ChatHomeComponent,
14+
),
15+
},
16+
{
17+
path: 'integration',
18+
loadComponent: () =>
19+
import(
20+
'./containers/chat-integration/chat-integration.component'
21+
).then(mod => mod.ChatIntegrationComponent),
22+
},
23+
],
1024
},
1125
{
1226
path: 'iframe',
1327
loadComponent: () =>
14-
import('./containers/chat/chat.component').then(mod => mod.ChatComponent),
28+
import('./containers/chat-iframe/chat-iframe.component').then(
29+
mod => mod.ChatIframeComponent,
30+
),
1531
},
1632
];
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
A NestJS library for building efficient, scalable, and quick solutions based on
2+
the OpenAI Assistant API (chatbots) 🤖 🚀
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
:host {
2+
max-width: 600px;
3+
margin-top: 40px;
4+
color: var(--color-grey-600);
5+
font-size: 18px;
6+
text-align: center;
7+
letter-spacing: 0.03em;
8+
line-height: 1.6;
9+
font-weight: 300;
10+
}

0 commit comments

Comments
 (0)