Skip to content

Commit

Permalink
Chat bot icon changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratikshakhandagale committed Aug 29, 2024
1 parent b42a27a commit 708bc17
Show file tree
Hide file tree
Showing 21 changed files with 151 additions and 122 deletions.
1 change: 0 additions & 1 deletion src/app/components/bot-messages/bot-messages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ export class BotMessagesComponent implements OnInit, AfterViewInit {
}
}
});
console.log('result count ', result);
this.botMessageEvent.emit({ audio: result.audio, text: result.text, duration: botDuration / 1000 })
} else {
this.botMessageEvent.emit({ audio: 0, text: 0, duration: botDuration / 1000 })
Expand Down
2 changes: 0 additions & 2 deletions src/app/components/qrcode-popup/qrcode-popup.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ export class QrcodePopupComponent implements OnInit {
const tracks = stream.getTracks();
tracks.forEach(function(track: MediaStreamTrack) {
track.stop();
console.log('Track stopped:', track.readyState);

});
this.videoElement.srcObject = null;
}
Expand Down
1 change: 0 additions & 1 deletion src/app/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
const urlObj = new URL(document.baseURI);
const hostname = urlObj.hostname; // e.g., "subdomain.example.com"
const domainParts = hostname.split('.');
console.log(domainParts);
const jsonFilename = domainParts[0] + '.json';
const jsonUrl = `../assets/appConfig/${jsonFilename}`;
export const ConfigVariables = fetch(jsonUrl)
Expand Down
1 change: 0 additions & 1 deletion src/app/pages/player/player.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export class PlayerPage implements OnInit {
this.playerEvents(event);
});
epubElement.addEventListener('telemetryEvent', (event) => {
console.log("On telemetryEvent", event);
this.playerTelemetryEvents(event);
});
this.video.nativeElement.append(epubElement);
Expand Down
2 changes: 0 additions & 2 deletions src/app/pages/qr-scan-result/qr-scan-result.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export class QrScanResultPage implements OnInit, OnTabViewWillEnter {
let extras = this.router.getCurrentNavigation()?.extras;
if(extras) {
this.scanText = extras.state?.['scannedData'];
console.log('scan text ', this.scanText);
}
}

Expand All @@ -62,7 +61,6 @@ export class QrScanResultPage implements OnInit, OnTabViewWillEnter {
this.headerService.showStatusBar(false);
this.contentService.getContents(this.scanText).then((result) => {
this.showSheenAnimation = false;
console.log('Result: ', result);
this.configContents = result;
}).catch(err => {
this.showSheenAnimation = false;
Expand Down
2 changes: 0 additions & 2 deletions src/app/pages/splash/splash.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export class SplashPage implements OnInit {

async ngOnInit() {
ConfigVariables.then(config => {
console.log('Configuration:', config);
this.configVariables = config;
// Use the config data as needed
}).catch(error => {
console.error('Failed to load configuration:', error);
});
Expand Down
23 changes: 0 additions & 23 deletions src/app/services/api/http.capacitor.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,29 +165,6 @@ export class HttpCapacitorAdapter implements HttpClient {
mappedContent.push(content);
});
}

// response.data.forEach((provider : any) => {
// // Traverse through the items array of each provider
// provider.items.forEach((item: any) => {
// console.log("1");
// // Map item properties to ContentMetaData interface format
// const content: SearchContentMetaData = {
// bpp_id: item.bpp_id,
// bpp_uri: item.bpp_uri,
// provider_id: item.provider_id,
// provider_name: item.provider_name,
// unique_id: item.unique_id,
// id: item.id,
// item_id: item.item_id,
// title: item.title,
// image_url: item?.image_url.length ? (item?.descriptor?.images[0].url.split("/"))[0] : '', // You can populate this based on item properties
// description: item.description.long_desc || item.description.short_desc || ''
// };
// // Push the mapped object into the array
// mappedContent.push(content);
// console.log(mappedContent);
// });
// });

if(mappedContent){
let apiResponse: ApiResponse;
Expand Down
3 changes: 1 addition & 2 deletions src/app/services/app-update/app-update.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export class AppUpdateService {
async checkForUpdate() {
const result = await AppUpdate.getAppUpdateInfo();
// const result = await this.simulateCheckForUpdate(); // for testing
console.log('Update available:', result.updateAvailability === AppUpdateAvailability.UPDATE_AVAILABLE);

if (result.updateAvailability === AppUpdateAvailability.UPDATE_AVAILABLE) {
if (this.platform.is('android')) {
Expand Down Expand Up @@ -57,4 +56,4 @@ export class AppUpdateService {
// availableVersion: '2.0.0'
// };
// }
}
}
2 changes: 0 additions & 2 deletions src/app/services/recording.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export class RecordingService implements OnInit {
gestureName: 'swipe',
direction: 'x',
onStart: (ev) => {
console.log('swipe left start ', ev);
Haptics.impact({style: ImpactStyle.Light});
},
onMove: (ev) => {
Expand All @@ -41,7 +40,6 @@ export class RecordingService implements OnInit {
this.cancelRecording = true;
},
onEnd: ev => {
console.log('swipe left end ', ev);
Haptics.impact({style: ImpactStyle.Light});
this.recording = false;
this.recordEvent.next(false);
Expand Down
1 change: 0 additions & 1 deletion src/app/services/search.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export class SearchService {
}
}
let body = JSON.stringify(requestBody)
console.log("body ", body);
const apiRequest = new ApiRequest.Builder()
.withHost(config.api.BASE_URL)
.withPath(config.api.CONTENT_SEARCH_API)
Expand Down
1 change: 0 additions & 1 deletion src/app/services/sources/preprocessor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export class PreprocessorService {
config.forEach(obj => {
this.contentConfig.push(obj);
})
console.log('contentconfig ', this.contentConfig);
this.sourceEvent.next(this.contentConfig);
}
}
1 change: 0 additions & 1 deletion src/app/services/telemetry/telemetry.auto.sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class TelemetryAutoSyncService {
filter(() => this.shouldSync),
tap(() => this.telemetryService.sync().pipe(
tap((stat) => {
// console.log('AUTO_SYNC_INVOKED_SYNC----------------------------------------------', stat);
}),
catchError((e) => {
console.error(e);
Expand Down
1 change: 0 additions & 1 deletion src/app/tabs/tabs.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export class TabsPage implements OnTabViewWillEnter, OnInit{
private storage : StorageService,
private modalCtrl: ModalController) {
ConfigVariables.then(config => {
console.log('Configuration:', config);
this.configVariables = config;
// Use the config data as needed
}).catch(error => {
Expand Down
28 changes: 14 additions & 14 deletions src/assets/icon/book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 708bc17

Please sign in to comment.