-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addresses #635 implemented statistic infobox similar to loklak #704
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1fb2bd8
Addresses #635 implemented statistic infobox similar to loklak
nikhilrayaprolu de4a65c
Merge branch 'master' into statsbox
nikhilrayaprolu bcf9586
fixed lint errors
nikhilrayaprolu 815d7fb
Merge branch 'master' into statsbox
mariobehling 9876198
requested changes made
nikhilrayaprolu c54f1b2
Merge branch 'statsbox' of https://github.com/nikhilrayaprolu/susper.…
nikhilrayaprolu 58b11a4
requested changes made
nikhilrayaprolu 24fb31b
added graphs to statsbox
nikhilrayaprolu 2b5ebc7
made requested changes
nikhilrayaprolu 6c1a34e
requested changes made
nikhilrayaprolu 144e9b8
statistics is changed to analytics
nikhilrayaprolu 7423b94
changed the font size of analytics
nikhilrayaprolu 85f483e
Merge branch 'master' into statsbox
nikhilrayaprolu 47d0b4a
removed all extra modules in tests
nikhilrayaprolu 854e0a9
Merge branch 'statsbox' of https://github.com/nikhilrayaprolu/susper.…
nikhilrayaprolu 4e4bbaf
rearranged positions
nikhilrayaprolu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
.card { | ||
/* Add shadows to create the "card" effect */ | ||
border: 1px solid rgba(150,150,150,0.3); | ||
border-bottom-color: rgba(125,125,125,0.3); | ||
margin-bottom: 16px; | ||
padding: 22px 22px 18px 22px; | ||
transition: 0.3s; | ||
width: 434px; | ||
margin-top: 10px; | ||
|
||
} | ||
.badge-info { | ||
background-color: #468847; | ||
padding: 0.25em; | ||
} | ||
.badge-info:hover { | ||
background-color: #356635; | ||
} | ||
|
||
|
||
|
||
/* Add some padding inside the card container */ | ||
.card-container { | ||
padding: 2px 16px; | ||
} | ||
|
||
/* Heading */ | ||
h2 { | ||
font-size: 2.4em; | ||
} | ||
|
||
/* Description */ | ||
p { | ||
line-height: 20px; | ||
font-family: Arial, sans-serif; | ||
font-size: 13px; | ||
} | ||
|
||
/* Points of interest */ | ||
h3 { | ||
font-size: 1.3em; | ||
margin-left: -15px; | ||
} | ||
|
||
a { | ||
color: #1a0dab; | ||
text-decoration: none; | ||
margin-left: -14px; | ||
font-size: 13px; | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
/** Screen Responsiveness **/ | ||
@media screen and (max-width: 1280px) { | ||
.card{ | ||
width: 368px; | ||
} | ||
} | ||
@media screen and (max-width: 1180px) { | ||
.card{ | ||
width: 268px; | ||
} | ||
} | ||
@media screen and (max-width: 998px) { | ||
.card { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div class="card"> | ||
<h2 class="heading"><b>Analytics</b></h2> | ||
<div id="filtersearch" *ngFor="let nav of navigation$|async; let i = index"> | ||
<div class="card-container" id="relate" *ngIf="nav.displayname =='Provider' || nav.displayname =='Authors'"> | ||
<h3 class="related-searches"><b>Top {{nav.displayname}}</b></h3> | ||
<div style="display: block;cursor:pointer;cursor: hand;" *ngFor="let element of ((i != selectedelement)? (nav.elements| slice:0:5) :nav.elements )"> | ||
<a (click)="changeurl(element.modifier,element)" *ngIf="element.name"> | ||
{{element.name}} <span class="badge badge-info">{{element.count}}</span> | ||
</a> | ||
<a (click)="changeurl(element.modifier,element)" *ngIf="!element.name"> | ||
Undefined Author <span class="badge badge-info">{{element.count}}</span> | ||
</a> | ||
</div> | ||
<a style="display: block;cursor:pointer;cursor: hand;" (click)="selectelement(i)" *ngIf="selectedelement!=i"> | ||
more.. | ||
</a> | ||
<a style="display: block;cursor:pointer;cursor: hand;" (click)="deselectelement(i)" *ngIf="selectedelement===i"> | ||
less.. | ||
</a> | ||
</div> | ||
</div> | ||
<div style="display: block;"> | ||
<canvas baseChart | ||
[datasets]="lineChartData" | ||
[labels]="lineChartLabels" | ||
[options]="lineChartOptions" | ||
[chartType]="lineChartType" | ||
[colors]="lineChartColors" | ||
></canvas> | ||
</div> | ||
<div style="display: block;"> | ||
<canvas baseChart | ||
[datasets]="barChartData" | ||
[labels]="barChartLabels" | ||
[options]="barChartOptions" | ||
[chartType]="barChartType" | ||
[colors]="lineChartColors" | ||
></canvas> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { StatsboxComponent } from './statsbox.component'; | ||
import {RouterTestingModule} from "@angular/router/testing"; | ||
import {HttpModule, JsonpModule} from "@angular/http"; | ||
import {StoreModule} from "@ngrx/store"; | ||
import {reducer} from "../reducers/index"; | ||
import {ChartsModule} from "ng2-charts"; | ||
|
||
describe('StatsboxComponent', () => { | ||
let component: StatsboxComponent; | ||
let fixture: ComponentFixture<StatsboxComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [ | ||
RouterTestingModule, | ||
HttpModule, | ||
JsonpModule, | ||
ChartsModule, | ||
StoreModule.provideStore(reducer), | ||
], | ||
declarations: [ | ||
StatsboxComponent, | ||
] | ||
}) | ||
.compileComponents(); | ||
})); | ||
beforeEach(() => { | ||
fixture = TestBed.createComponent(StatsboxComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for adding this line no. 32?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes without this it is giving me
SpeechSynthesisUtterance
not found