Skip to content

Commit

Permalink
Merge pull request #43 from cometchat-pro/ai-features
Browse files Browse the repository at this point in the history
added AI Features
  • Loading branch information
raj-dubey1 authored Oct 17, 2023
2 parents 2b683b2 + 856dbf5 commit 6e0ca17
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 33 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

3 changes: 3 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copyright (c) 2023 CometChat Inc.

License agreement: https://www.cometchat.com/legal-terms-of-service
12 changes: 6 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"cometchat-angular-sample-app": {
"cometchat-chat-sample-app-angular": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
Expand All @@ -20,7 +20,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/cometchat-angular-sample-app",
"outputPath": "dist/cometchat-chat-sample-app-angular",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -79,18 +79,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "cometchat-angular-sample-app:build:production"
"browserTarget": "cometchat-chat-sample-app-angular:build:production"
},
"development": {
"browserTarget": "cometchat-angular-sample-app:build:development"
"browserTarget": "cometchat-chat-sample-app-angular:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "cometchat-angular-sample-app:build"
"browserTarget": "cometchat-chat-sample-app-angular:build"
}
},
"test": {
Expand Down Expand Up @@ -119,5 +119,5 @@
}
}
},
"defaultProject": "cometchat-angular-sample-app"
"defaultProject": "cometchat-chat-sample-app-angular"
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "cometchat-chat-sample-app-angular",
"version": "4.0.0",
"version": "4.0.1",
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -18,8 +19,8 @@
"@angular/platform-browser": "~13.3.0",
"@angular/platform-browser-dynamic": "~13.3.0",
"@angular/router": "~13.3.0",
"@cometchat/calls-sdk-javascript": "^4.0.1",
"@cometchat/chat-uikit-angular":"~4.0.0",
"@cometchat/calls-sdk-javascript": "^4.0.4",
"@cometchat/chat-uikit-angular":"~4.0.1",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
Expand Down
6 changes: 6 additions & 0 deletions src/MetaInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const MetaInfo = {
name:"cometchat-chat-sample-app-angular",
version:"4.0.1",
type:"sample",
platform:"Angular"
}
6 changes: 3 additions & 3 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});

it(`should have as title 'cometchat-angular-sample-app'`, () => {
it(`should have as title 'cometchat-chat-sample-app-angular'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('cometchat-angular-sample-app');
expect(app.title).toEqual('cometchat-chat-sample-app-angular');
});

it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('.content span')?.textContent).toContain('cometchat-angular-sample-app app is running!');
expect(compiled.querySelector('.content span')?.textContent).toContain('cometchat-chat-sample-app-angular app is running!');
});
});
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { AppModule } from './app/app.module';

import { environment } from './environments/environment';
import { UIKitSettingsBuilder } from '@cometchat/uikit-shared';
import { MetaInfo } from './MetaInfo';

if (environment.production) {
enableProdMode();
Expand All @@ -20,6 +21,7 @@ const uiKitSettings = new UIKitSettingsBuilder()


CometChatUIKit.init(uiKitSettings)!.then(()=>{
try{CometChat.setDemoMetaInfo(MetaInfo)}catch(err){}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));

Expand Down

0 comments on commit 6e0ca17

Please sign in to comment.