Remove some logs. Change main message.

This commit is contained in:
kostis30fyllou 2019-09-05 17:20:53 +03:00
parent fd426eff60
commit 9d19201459
3 changed files with 5 additions and 10 deletions

View File

@ -89,7 +89,6 @@ export class ContentComponent implements OnInit {
onFilesChange(file: File) {
if (file !== null && file !== undefined) {
console.log(file);
const ext = file.name.split('.')[file.name.split('.').length - 1];
const allowedExtensions = ['tsv', 'txt'];
if (allowedExtensions.lastIndexOf(ext) !== -1 && file.size <= 51200) {
@ -121,7 +120,6 @@ export class ContentComponent implements OnInit {
}
promptToLeave(nextUrl: string): boolean {
console.log(nextUrl);
if (nextUrl.indexOf('upload-content') >= 0 || nextUrl.indexOf('configure-profile') >= 0 || nextUrl.indexOf('save-profile') >= 0) {
return true;
} else {

View File

@ -50,7 +50,6 @@ export class ManageprofilesComponent implements OnInit {
this.route.queryParams
.subscribe(
params => {
// console.log('queryParams', params['communityId']);
this.communityId = params['communityId'];
this.initialServerHandshake(this.communityId);
});
@ -89,7 +88,6 @@ export class ManageprofilesComponent implements OnInit {
private getExampleProfiles(): void {
this.manageProfilesService.getExampleProfiles()
.subscribe(res => {
console.log(res);
this.exampleProfiles = res;
});
}
@ -154,7 +152,6 @@ export class ManageprofilesComponent implements OnInit {
loadSavedProfile(id: string, name: string): void {
this.manageProfilesService.loadSavedProfile(id)
.subscribe(res => {
console.log(res);
// clear localstorage values
this.clearLocalStorage();
// store to client all profile data
@ -209,7 +206,6 @@ export class ManageprofilesComponent implements OnInit {
// get new profile data
this.manageProfilesService.uploadFile(file)
.subscribe(res => {
console.log(res);
localStorage.setItem('concepts', res.concepts);
localStorage.setItem('poswords', JSON.stringify(res.poswords));
localStorage.setItem('negwords', JSON.stringify(res.negwords));
@ -248,7 +244,6 @@ export class ManageprofilesComponent implements OnInit {
// get new profile data
this.manageProfilesService.loadExampleProfile(name)
.subscribe(res => {
console.log(res);
localStorage.setItem('concepts', res.concepts);
localStorage.setItem('docname', res.docname);
localStorage.setItem('docsnumber', res.docsnumber);

View File

@ -23,9 +23,11 @@
<!--</ul>-->
<!--</div>-->
<!--</div>-->
<div class="uk-alert uk-alert-primary">
<div><span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>
This functionality is not yet fully integrated, stay tuned!
<div class="uk-alert uk-alert-primary uk-flex uk-flex-middle">
<span class="uk-margin-small-right uk-icon" uk-icon="warning"></span>
<div>
Manage text mining rules, test the rules and see the results, save and load mining profiles.<br>
These algorithms mine full-texts to identify links between literature and your research initiative, to appear in your dashboard.
</div>
</div>