penambahan routing master dan monitoring
This commit is contained in:
@@ -0,0 +1,140 @@
|
||||
:host ::ng-deep .Likes .ct-series-a .ct-point {
|
||||
stroke: #28d094;
|
||||
}
|
||||
:host ::ng-deep .Likes .ct-line {
|
||||
fill: none;
|
||||
stroke-width: 2px;
|
||||
}
|
||||
:host ::ng-deep .Likes .ct-point{
|
||||
stroke-width: 0px;
|
||||
}
|
||||
:host ::ng-deep .Likes .ct-series-a .ct-line {
|
||||
stroke: #28d094;
|
||||
}
|
||||
:host ::ng-deep .Likes .ct-series-a .ct-area {
|
||||
fill: #28d094;
|
||||
}
|
||||
:host ::ng-deep .Comments .ct-series-a .ct-point {
|
||||
stroke: #FF9149;
|
||||
}
|
||||
:host ::ng-deep .Comments .ct-line {
|
||||
fill: none;
|
||||
stroke-width: 2px;
|
||||
}
|
||||
:host ::ng-deep .Comments .ct-point{
|
||||
stroke-width: 0px;
|
||||
}
|
||||
:host ::ng-deep .Comments .ct-series-a .ct-line {
|
||||
stroke: #FF9149;
|
||||
}
|
||||
:host ::ng-deep .Comments .ct-series-a .ct-area {
|
||||
fill: #FF9149;
|
||||
}
|
||||
:host ::ng-deep .Views .ct-series-a .ct-point {
|
||||
stroke: #FF4961;
|
||||
}
|
||||
:host ::ng-deep .Views .ct-line {
|
||||
fill: none;
|
||||
stroke-width: 2px;
|
||||
}
|
||||
:host ::ng-deep .Views .ct-point{
|
||||
stroke-width: 0px;
|
||||
}
|
||||
:host ::ng-deep .Views .ct-series-a .ct-line {
|
||||
stroke: #FF4961;
|
||||
}
|
||||
:host ::ng-deep .Views .ct-series-a .ct-area {
|
||||
fill: #FF4961;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-cost .ct-series-a .ct-point{
|
||||
stroke: #ff9149;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-cost .ct-series-a .ct-line{
|
||||
stroke: #ff9149;
|
||||
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-cost .ct-series-a .ct-area{
|
||||
fill: #ff9149;
|
||||
fill-opacity: 1;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-cost .ct-point{
|
||||
stroke-width: 0px;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-cost svg {
|
||||
margin-left: 13px;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-sales .ct-series-a .ct-point{
|
||||
stroke: #28d094;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-sales .ct-series-a .ct-line{
|
||||
stroke: #28d094;
|
||||
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-sales .ct-series-a .ct-area{
|
||||
fill: #28d094;
|
||||
fill-opacity: 1;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-sales .ct-point{
|
||||
stroke-width: 0px;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-sales svg {
|
||||
margin-left: 13px;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-revenue .ct-series-a .ct-point{
|
||||
stroke: #ff4961;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-revenue .ct-series-a .ct-line{
|
||||
stroke: #ff4961;
|
||||
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-revenue .ct-series-a .ct-area{
|
||||
fill: #ff4961;
|
||||
fill-opacity: 1;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-revenue .ct-point{
|
||||
stroke-width: 0px;
|
||||
}
|
||||
:host ::ng-deep .sp-line-total-revenue svg {
|
||||
margin-left: 13px;
|
||||
}
|
||||
:host ::ng-deep .ct-bar {
|
||||
fill: none;
|
||||
stroke-width: 2px;
|
||||
}
|
||||
:host ::ng-deep .sp-bar-total-cost .ct-series-a .ct-bar{
|
||||
stroke: #ff9148;
|
||||
}
|
||||
:host ::ng-deep .sp-bar-total-sales .ct-series-a .ct-bar{
|
||||
stroke: #28d094;
|
||||
}
|
||||
:host ::ng-deep .sp-bar-total-revenue .ct-series-a .ct-bar{
|
||||
stroke: #ff4961;
|
||||
}
|
||||
:host ::ng-deep .sp-bar-total-cost {
|
||||
margin-bottom: -90px;
|
||||
}
|
||||
:host ::ng-deep .sp-bar-total-sales{
|
||||
margin-bottom: -90px;
|
||||
}
|
||||
:host ::ng-deep .sp-bar-total-revenue{
|
||||
margin-bottom: -90px;
|
||||
}
|
||||
:host ::ng-deep .feedbacks .ct-series-a .ct-slice-donut {
|
||||
stroke: #28d094;
|
||||
stroke-width: 10px !important;
|
||||
}
|
||||
:host ::ng-deep .Subscribers .ct-series-a .ct-slice-donut {
|
||||
stroke: #ff9149;
|
||||
stroke-width: 10px !important;
|
||||
}
|
||||
:host ::ng-deep .Users .ct-series-a .ct-slice-donut {
|
||||
stroke: #ff4961;
|
||||
stroke-width: 10px !important;
|
||||
}
|
||||
:host ::ng-deep .ct-series-b .ct-slice-donut {
|
||||
stroke: #eeeeee;
|
||||
stroke-width: 12px !important;
|
||||
}
|
||||
:host ::ng-deep .text-muted {
|
||||
position: absolute;
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
<div class="app-content content">
|
||||
<div class="content-wrapper">
|
||||
<div class="content-header row mb-1">
|
||||
<app-breadcrumb class="col-12" [breadcrumb]="breadcrumb"></app-breadcrumb>
|
||||
</div>
|
||||
<div class="content-body">
|
||||
<section id="social-cards">
|
||||
<div class="row mt-2">
|
||||
<div class="col-xl-4 col-md-6 col-12">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="card-body text-center">
|
||||
<div class="card-header mb-2">
|
||||
<span class="success">New Feedbacks</span>
|
||||
<h3 class="display-4 blue-grey darken-1">2,487</h3>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<i
|
||||
class="knob-center-icon icon-note knob hide-value responsive angle-offset"
|
||||
style="
|
||||
width: 79px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
vertical-align: middle;
|
||||
margin-top: 70px;
|
||||
margin-left: -30px;
|
||||
border: 0px;
|
||||
background: none;
|
||||
font: bold 30px Arial;
|
||||
text-align: center;
|
||||
color: rgb(225, 225, 225);
|
||||
padding: 0px;
|
||||
font-size: 50px;
|
||||
"
|
||||
></i>
|
||||
<x-chartist
|
||||
*ngIf="feedbacksdonutChart"
|
||||
class="feedbacks"
|
||||
[data]="feedbacksdonutChart.data"
|
||||
[type]="feedbacksdonutChart.type"
|
||||
[options]="feedbacksdonutChart.options"
|
||||
[responsiveOptions]="
|
||||
feedbacksdonutChart.responsiveOptions
|
||||
"
|
||||
[events]="feedbacksdonutChart.events"
|
||||
>
|
||||
</x-chartist>
|
||||
<ul class="list-inline clearfix mt-2">
|
||||
<li
|
||||
class="border-right-blue-grey border-right-lighten-2 pr-1"
|
||||
>
|
||||
<h1 class="blue-grey darken-1 text-bold-400">95%</h1>
|
||||
<span class="success"
|
||||
><i class="la la-caret-up"></i> Positive</span
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<h1 class="blue-grey darken-1 text-bold-400">5%</h1>
|
||||
<span class="danger darken-2"
|
||||
><i class="la la-caret-down"></i> Negative</span
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-md-6 col-12">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="card-body text-center">
|
||||
<div class="card-header mb-2">
|
||||
<span class="success">New Feedbacks</span>
|
||||
<h3 class="display-4 blue-grey darken-1">2,487</h3>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<i
|
||||
class="knob-center-icon icon-note knob hide-value responsive angle-offset"
|
||||
style="
|
||||
width: 79px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
vertical-align: middle;
|
||||
margin-top: 70px;
|
||||
margin-left: -30px;
|
||||
border: 0px;
|
||||
background: none;
|
||||
font: bold 30px Arial;
|
||||
text-align: center;
|
||||
color: rgb(225, 225, 225);
|
||||
padding: 0px;
|
||||
font-size: 50px;
|
||||
"
|
||||
></i>
|
||||
<x-chartist
|
||||
*ngIf="feedbacksdonutChart"
|
||||
class="feedbacks"
|
||||
[data]="feedbacksdonutChart.data"
|
||||
[type]="feedbacksdonutChart.type"
|
||||
[options]="feedbacksdonutChart.options"
|
||||
[responsiveOptions]="
|
||||
feedbacksdonutChart.responsiveOptions
|
||||
"
|
||||
[events]="feedbacksdonutChart.events"
|
||||
>
|
||||
</x-chartist>
|
||||
<ul class="list-inline clearfix mt-2">
|
||||
<li
|
||||
class="border-right-blue-grey border-right-lighten-2 pr-1"
|
||||
>
|
||||
<h1 class="blue-grey darken-1 text-bold-400">95%</h1>
|
||||
<span class="success"
|
||||
><i class="la la-caret-up"></i> Positive</span
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<h1 class="blue-grey darken-1 text-bold-400">5%</h1>
|
||||
<span class="danger darken-2"
|
||||
><i class="la la-caret-down"></i> Negative</span
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-md-6 col-12">
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="card-body text-center">
|
||||
<div class="card-header mb-2">
|
||||
<span class="success">New Feedbacks</span>
|
||||
<h3 class="display-4 blue-grey darken-1">2,487</h3>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<i
|
||||
class="knob-center-icon icon-note knob hide-value responsive angle-offset"
|
||||
style="
|
||||
width: 79px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
vertical-align: middle;
|
||||
margin-top: 70px;
|
||||
margin-left: -30px;
|
||||
border: 0px;
|
||||
background: none;
|
||||
font: bold 30px Arial;
|
||||
text-align: center;
|
||||
color: rgb(225, 225, 225);
|
||||
padding: 0px;
|
||||
font-size: 50px;
|
||||
"
|
||||
></i>
|
||||
<x-chartist
|
||||
*ngIf="feedbacksdonutChart"
|
||||
class="feedbacks"
|
||||
[data]="feedbacksdonutChart.data"
|
||||
[type]="feedbacksdonutChart.type"
|
||||
[options]="feedbacksdonutChart.options"
|
||||
[responsiveOptions]="
|
||||
feedbacksdonutChart.responsiveOptions
|
||||
"
|
||||
[events]="feedbacksdonutChart.events"
|
||||
>
|
||||
</x-chartist>
|
||||
<ul class="list-inline clearfix mt-2">
|
||||
<li
|
||||
class="border-right-blue-grey border-right-lighten-2 pr-1"
|
||||
>
|
||||
<h1 class="blue-grey darken-1 text-bold-400">95%</h1>
|
||||
<span class="success"
|
||||
><i class="la la-caret-up"></i> Positive</span
|
||||
>
|
||||
</li>
|
||||
<li>
|
||||
<h1 class="blue-grey darken-1 text-bold-400">5%</h1>
|
||||
<span class="danger darken-2"
|
||||
><i class="la la-caret-down"></i> Negative</span
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- // Social cards section end -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { BuildingComponent } from './building.component';
|
||||
|
||||
describe('BuildingComponent', () => {
|
||||
let component: BuildingComponent;
|
||||
let fixture: ComponentFixture<BuildingComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ BuildingComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(BuildingComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,58 @@
|
||||
import { Component } from "@angular/core";
|
||||
import { ChartApiService } from "src/app/_services/chart.api";
|
||||
|
||||
@Component({
|
||||
selector: "app-building",
|
||||
templateUrl: "./building.component.html",
|
||||
styleUrls: ["./building.component.css"],
|
||||
})
|
||||
export class BuildingComponent {
|
||||
Data: any;
|
||||
public breadcrumb: any;
|
||||
feedbacksdonutChart: any;
|
||||
|
||||
constructor(private chartApiservice: ChartApiService) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Advance Social Cards",
|
||||
links: [
|
||||
{
|
||||
name: "Home",
|
||||
isLink: true,
|
||||
link: "/dashboard/sales",
|
||||
},
|
||||
{
|
||||
name: "Advance Cards",
|
||||
isLink: true,
|
||||
link: "#",
|
||||
},
|
||||
{
|
||||
name: "Social",
|
||||
isLink: false,
|
||||
link: "#",
|
||||
},
|
||||
],
|
||||
};
|
||||
this.chartApiservice.getStatisticsData().subscribe((Response) => {
|
||||
this.Data = Response;
|
||||
this.getlineArea();
|
||||
});
|
||||
}
|
||||
|
||||
getlineArea() {
|
||||
const ChartData = this.Data;
|
||||
this.feedbacksdonutChart = {
|
||||
type: "Pie",
|
||||
data: ChartData["feedbacksdonutChart"],
|
||||
options: {
|
||||
showLabel: false,
|
||||
chartPadding: 0,
|
||||
fullwidth: true,
|
||||
height: "200px",
|
||||
donut: true,
|
||||
startAngle: 0,
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user