Delete some console logs. Change inputs in filters to small instead of x-small
This commit is contained in:
parent
07d3c0407d
commit
0168c5e894
|
@ -76,7 +76,6 @@ export class FeedbackComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
if (changes.showForm) {
|
if (changes.showForm) {
|
||||||
console.log(changes);
|
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<div class="uk-margin-small-left">
|
<div class="uk-margin-small-left">
|
||||||
<div class="uk-text-meta">Top 100 values are shown in the filters</div>
|
<div class="uk-text-meta">Top 100 values are shown in the filters</div>
|
||||||
<div class="uk-flex uk-flex-bottom uk-margin-top">
|
<div class="uk-flex uk-flex-bottom uk-margin-top">
|
||||||
<div input class="uk-width-1-2@m uk-margin-right" [placeholder]="{label: 'Search', static: true}" inputClass="inner x-small" [(value)]="keyword"></div>
|
<div input class="uk-width-1-2@m uk-margin-right" [placeholder]="{label: 'Search', static: true}" inputClass="inner small" [(value)]="keyword"></div>
|
||||||
<div *ngIf="showResultCount === true" input type="select" class="uk-width-expand" placeholder="Sort by" inputClass="border-bottom" [(value)]="sortBy" [options]="sortByOptions"></div>
|
<div *ngIf="showResultCount === true" input type="select" class="uk-width-expand" placeholder="Sort by" inputClass="border-bottom" [(value)]="sortBy" [options]="sortByOptions"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -76,7 +76,6 @@ export class SearchFilterComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges) {
|
ngOnChanges(changes: SimpleChanges) {
|
||||||
if (changes.filter) {
|
if (changes.filter) {
|
||||||
console.log(this.filter);
|
|
||||||
this.filter.values = this.filter.values.filter(value => !value.name.toLowerCase().includes('unknown') && !value.name.toLowerCase().includes('not available'));
|
this.filter.values = this.filter.values.filter(value => !value.name.toLowerCase().includes('unknown') && !value.name.toLowerCase().includes('not available'));
|
||||||
if (this.filter.filterType == "radio") {
|
if (this.filter.filterType == "radio") {
|
||||||
this.filter.radioValue = "";
|
this.filter.radioValue = "";
|
||||||
|
@ -262,7 +261,6 @@ export class SearchFilterComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
getFilterName(value) {
|
getFilterName(value) {
|
||||||
let name = value.name + " (" + value.number.format() + ")";
|
let name = value.name + " (" + value.number.format() + ")";
|
||||||
console.log(name);
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ export class MetricsService {
|
||||||
for(let i=0; i<results.length; i++) {
|
for(let i=0; i<results.length; i++) {
|
||||||
let result = results[i]["row"];
|
let result = results[i]["row"];
|
||||||
let id: string = result[1];
|
let id: string = result[1];
|
||||||
console.log(id,result[0])
|
|
||||||
if(map.has(id)) {
|
if(map.has(id)) {
|
||||||
if(result[0] == "views"){
|
if(result[0] == "views"){
|
||||||
map.get(id).numOfViews = result[3];
|
map.get(id).numOfViews = result[3];
|
||||||
|
|
|
@ -26,8 +26,6 @@ export class SearchProjectsService {
|
||||||
url += refineParams;
|
url += refineParams;
|
||||||
}
|
}
|
||||||
url += "&page="+(page-1)+"&size="+size + "&format=json";
|
url += "&page="+(page-1)+"&size="+size + "&format=json";
|
||||||
|
|
||||||
console.log(url)
|
|
||||||
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url)
|
return this.http.get((properties.useCache)? (properties.cacheUrl+encodeURIComponent(url)): url)
|
||||||
//.map(res => <any> res.json())
|
//.map(res => <any> res.json())
|
||||||
.pipe(map(res => [res['meta'].total, this.parseResults(res['results']),RefineResultsUtils.parse(res['refineResults'],refineFields, "project")]));
|
.pipe(map(res => [res['meta'].total, this.parseResults(res['results']),RefineResultsUtils.parse(res['refineResults'],refineFields, "project")]));
|
||||||
|
|
|
@ -267,9 +267,7 @@ export class EntitiesAutocompleteComponent {
|
||||||
}
|
}
|
||||||
private getSelectedNameFromGivenId(){
|
private getSelectedNameFromGivenId(){
|
||||||
this.showInput = true;
|
this.showInput = true;
|
||||||
if(this.selectedValue && this.selectedValue.length > 0 ){
|
if(this.selectedValue && this.selectedValue.length > 0 ) {
|
||||||
|
|
||||||
console.log(this.selectedValue+" "+this.entityType )
|
|
||||||
this.sub = this._search.fetchByType(this.selectedValue,this.entityType, this.properties).subscribe(
|
this.sub = this._search.fetchByType(this.selectedValue,this.entityType, this.properties).subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.selected.push( data[0]);
|
this.selected.push( data[0]);
|
||||||
|
|
|
@ -15,7 +15,6 @@ export class PageURLResolverComponent {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.route.queryParams.subscribe(params => {
|
this.route.queryParams.subscribe(params => {
|
||||||
console.log(params);
|
|
||||||
this.parameters = Object.assign({}, params);
|
this.parameters = Object.assign({}, params);
|
||||||
this.navigateTO(this.router.url.split("?")[0])
|
this.navigateTO(this.router.url.split("?")[0])
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
<div class="searchFilterBoxValues ">
|
<div class="searchFilterBoxValues ">
|
||||||
<form [class]="(isDisabled ? 'uk-disabled' : '') + ' uk-flex uk-flex-middle uk-flex-wrap'" [formGroup]="rangeForm" >
|
<form [class]="(isDisabled ? 'uk-disabled' : '') + ' uk-flex uk-flex-middle uk-flex-wrap'" [formGroup]="rangeForm" >
|
||||||
<div input [formInput]="rangeForm.get('yearFrom')" [placeholder]="{label: 'e.g. ' + yearMin, static: true}"
|
<div input [formInput]="rangeForm.get('yearFrom')" [placeholder]="{label: 'e.g. ' + yearMin, static: true}"
|
||||||
inputClass="inner x-small" class=" uk-width-1-3"></div>
|
inputClass="inner small" class=" uk-width-1-3"></div>
|
||||||
<span class="uk-margin-small-left uk-margin-small-right">-</span>
|
<span class="uk-margin-small-left uk-margin-small-right">-</span>
|
||||||
<div input [formInput]="rangeForm.get('yearTo')" [placeholder]="{label: 'e.g. ' + yearMax, static: true}"
|
<div input [formInput]="rangeForm.get('yearTo')" [placeholder]="{label: 'e.g. ' + yearMax, static: true}"
|
||||||
inputClass="inner x-small" class=" uk-width-1-3"></div>
|
inputClass="inner small" class=" uk-width-1-3"></div>
|
||||||
<button type="submit" (click)="yearChanged()"
|
<button type="submit" (click)="yearChanged()"
|
||||||
[ngStyle]="{'cursor': (rangeForm.valid && (rangeForm.get('yearFrom').dirty || rangeForm.get('yearTo').dirty)) ? 'pointer' : 'default'}"
|
[ngStyle]="{'cursor': (rangeForm.valid && (rangeForm.get('yearFrom').dirty || rangeForm.get('yearTo').dirty)) ? 'pointer' : 'default'}"
|
||||||
class="uk-icon uk-icon-button uk-button-default uk-margin-small-left"
|
class="uk-icon uk-icon-button uk-button-default uk-margin-small-left"
|
||||||
|
|
|
@ -258,7 +258,6 @@ export class ResultPreview {
|
||||||
|
|
||||||
public static organizationInfoConvert(result: OrganizationInfo): ResultPreview {
|
public static organizationInfoConvert(result: OrganizationInfo): ResultPreview {
|
||||||
let resultPreview: ResultPreview = new ResultPreview();
|
let resultPreview: ResultPreview = new ResultPreview();
|
||||||
console.log(result);
|
|
||||||
if(result.title && result.title.name) {
|
if(result.title && result.title.name) {
|
||||||
resultPreview.title = result.title.name;
|
resultPreview.title = result.title.name;
|
||||||
if(result.name) {
|
if(result.name) {
|
||||||
|
|
|
@ -108,7 +108,6 @@ export class TabsComponent implements AfterContentInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
selectTab(tab: TabComponent, scroll=true){
|
selectTab(tab: TabComponent, scroll=true){
|
||||||
console.log("Select tab ",tab.tabId);
|
|
||||||
this.unSelectTab(this.selected, tab.tabId);
|
this.unSelectTab(this.selected, tab.tabId);
|
||||||
tab.active = true;
|
tab.active = true;
|
||||||
this.selected = tab.tabId;
|
this.selected = tab.tabId;
|
||||||
|
@ -123,7 +122,6 @@ export class TabsComponent implements AfterContentInit {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.disableScroll = false;
|
this.disableScroll = false;
|
||||||
}, 600);
|
}, 600);
|
||||||
console.log(window.scrollY, tab.tabId, document.getElementById(tab.tabId))
|
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue