Skip to content

Commit 3b7e847

Browse files
committed
Final changes v1.0.0
1 parent 36639fa commit 3b7e847

File tree

6 files changed

+47
-138
lines changed

6 files changed

+47
-138
lines changed

README.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
# NgxAi
1+
[![demolive](https://img.shields.io/badge/demo-live-green.svg)](http://angularai.jerouw.nl/)
2+
[![npmversion](https://img.shields.io/npm/v/ngx-ai.svg)]()
3+
[![npmlicense](https://img.shields.io/npm/l/ngx-ai.svg)](https://github.com/jeroenouw/AngularAI/blob/master/LICENSE/)
4+
[![stars](https://img.shields.io/github/stars/jeroenouw/AngularAI.svg)](https://github.com/jeroenouw/AngularAI/stargazers)
5+
[![downloads](https://img.shields.io/npm/dy/ngx-ai.svg)]()
6+
7+
# Angular 5 AI
8+
A small AI application containing [Angular 5](https://angular.io), [Material](https://material.io/) and [Dialogflow](https://dialogflow.com/).
9+
10+
## [Live demo](http://angularai.jerouw.nl)
11+
![demo](https://jerouw.nl/wp-content/uploads/2017/10/angular5ai.png "demo")
12+
13+
## Features
14+
* Angular 5
15+
* Material Design
16+
* RXJS observables
17+
* Dialogflow AI
18+
* Chatbot
19+
20+
## Example sentences
21+
* Can you get smarter?
22+
* You're boring
23+
* Who is your boss?
24+
* You are funny
25+
* Are we friends?
26+
* I'll be back
27+
* You're wrong
28+
29+
## Contributing
30+
Want to file a bug, contribute some code, or improve documentation? Feel free to place an [issue](https://github.com/jeroenouw/AngularAI/issues).
31+
32+
### credits
33+
[Angular Firebase](https://angularfirebase.com/)
34+
[Dialogflow](https://dialogflow.com/)

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-ai",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"author": "Jeroen Ouwehand",
55
"description": "Angular 5 AI",
66
"keywords": [
@@ -23,7 +23,11 @@
2323
"start": "ng serve",
2424
"test": "ng test",
2525
"pree2e": "webdriver-manager update --standalone false --gecko false",
26-
"e2e": "protractor"
26+
"e2e": "protractor",
27+
"dist": "ng build",
28+
"prod": "ng build --prod",
29+
"prod:aot": "ng build --prod --aot",
30+
"prod:opt": "ng build --prod --build-optimizer"
2731
},
2832
"dependencies": {
2933
"@angular/animations": "^5.0.0-rc.8",

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
44
import { FormsModule } from '@angular/forms';
5+
import { HttpClientModule } from '@angular/common/http';
56
import { MatButtonModule, MatInputModule, MatCardModule, MatIconModule } from '@angular/Material';
67

78
import { AppComponent } from './app.component';
@@ -18,6 +19,7 @@ import { AiComponent } from './components/ai/ai.component';
1819
BrowserModule,
1920
BrowserAnimationsModule,
2021
FormsModule,
22+
HttpClientModule,
2123
MatButtonModule, MatInputModule, MatCardModule, MatIconModule
2224
],
2325
providers: [

src/app/components/ai/ai.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<mat-card>
22
<h1 class="mat-display-1">Angular 5 AI</h1>
3-
<h4 >Please ask me something...</h4>
43

54
<mat-card-content *ngFor="let message of allMessages | async">
65
<div
@@ -11,10 +10,11 @@ <h4 >Please ask me something...</h4>
1110
</mat-card-content>
1211

1312
<mat-input-container>
14-
<input matInput [(ngModel)]="formInput" placeholder="Your Message..." (keyup.enter)="sendMessageToBot()" type="text">
13+
<input matInput [(ngModel)]="formInput" min="2" placeholder="Your Message..." (keyup.enter)="sendMessageToBot()" type="text">
1514
</mat-input-container>
1615

1716
<mat-card-actions class="button center">
1817
<button mat-raised-button (click)="sendMessageToBot()">Send</button>
1918
</mat-card-actions>
19+
2020
</mat-card>

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
platformBrowserDynamic().bootstrapModule(AppModule);
11+
platformBrowserDynamic().bootstrapModule(AppModule, {
12+
preserveWhitespaces: false
13+
});

src/styles.scss

Lines changed: 0 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,6 @@ figure {
7878
margin: 1em 40px;
7979
}
8080

81-
/**
82-
* 1. Add the correct box sizing in Firefox.
83-
* 2. Show the overflow in Edge and IE.
84-
*/
85-
86-
hr {
87-
box-sizing: content-box; /* 1 */
88-
height: 0; /* 1 */
89-
overflow: visible; /* 2 */
90-
}
91-
9281
/**
9382
* 1. Correct the inheritance and scaling of font size in all browsers.
9483
* 2. Correct the odd `em` font sizing in all browsers.
@@ -141,18 +130,6 @@ strong {
141130
font-weight: bolder;
142131
}
143132

144-
/**
145-
* 1. Correct the inheritance and scaling of font size in all browsers.
146-
* 2. Correct the odd `em` font sizing in all browsers.
147-
*/
148-
149-
code,
150-
kbd,
151-
samp {
152-
font-family: monospace, monospace; /* 1 */
153-
font-size: 1em; /* 2 */
154-
}
155-
156133
/**
157134
* Add the correct font style in Android 4.3-.
158135
*/
@@ -178,27 +155,6 @@ small {
178155
font-size: 80%;
179156
}
180157

181-
/**
182-
* Prevent `sub` and `sup` elements from affecting the line height in
183-
* all browsers.
184-
*/
185-
186-
sub,
187-
sup {
188-
font-size: 75%;
189-
line-height: 0;
190-
position: relative;
191-
vertical-align: baseline;
192-
}
193-
194-
sub {
195-
bottom: -0.25em;
196-
}
197-
198-
sup {
199-
top: -0.5em;
200-
}
201-
202158
/* Embedded content
203159
========================================================================== */
204160

@@ -220,14 +176,6 @@ audio:not([controls]) {
220176
height: 0;
221177
}
222178

223-
/**
224-
* Remove the border on images inside links in IE 10-.
225-
*/
226-
227-
img {
228-
border-style: none;
229-
}
230-
231179
/**
232180
* Hide the overflow in IE.
233181
*/
@@ -372,83 +320,3 @@ textarea {
372320
[type="number"]::-webkit-outer-spin-button {
373321
height: auto;
374322
}
375-
376-
/**
377-
* 1. Correct the odd appearance in Chrome and Safari.
378-
* 2. Correct the outline style in Safari.
379-
*/
380-
381-
[type="search"] {
382-
-webkit-appearance: textfield; /* 1 */
383-
outline-offset: -2px; /* 2 */
384-
}
385-
386-
/**
387-
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
388-
*/
389-
390-
[type="search"]::-webkit-search-cancel-button,
391-
[type="search"]::-webkit-search-decoration {
392-
-webkit-appearance: none;
393-
}
394-
395-
/**
396-
* 1. Correct the inability to style clickable types in iOS and Safari.
397-
* 2. Change font properties to `inherit` in Safari.
398-
*/
399-
400-
::-webkit-file-upload-button {
401-
-webkit-appearance: button; /* 1 */
402-
font: inherit; /* 2 */
403-
}
404-
405-
/* Interactive
406-
========================================================================== */
407-
408-
/*
409-
* Add the correct display in IE 9-.
410-
* 1. Add the correct display in Edge, IE, and Firefox.
411-
*/
412-
413-
details, /* 1 */
414-
menu {
415-
display: block;
416-
}
417-
418-
/*
419-
* Add the correct display in all browsers.
420-
*/
421-
422-
summary {
423-
display: list-item;
424-
}
425-
426-
/* Scripting
427-
========================================================================== */
428-
429-
/**
430-
* Add the correct display in IE 9-.
431-
*/
432-
433-
canvas {
434-
display: inline-block;
435-
}
436-
437-
/**
438-
* Add the correct display in IE.
439-
*/
440-
441-
template {
442-
display: none;
443-
}
444-
445-
/* Hidden
446-
========================================================================== */
447-
448-
/**
449-
* Add the correct display in IE 10-.
450-
*/
451-
452-
[hidden] {
453-
display: none;
454-
}

0 commit comments

Comments
 (0)