Skip to content

Commit

Permalink
feat(dashing): initial experiment to implement dashing.io
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jan 28, 2019
1 parent 66ead6f commit 2ce5f6a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Expand Up @@ -28,4 +28,7 @@
<div fxFlex="0 1 calc(33.3% - 32px)" fxFlex.lt-md="0 1 calc(50% - 32px)" fxFlex.lt-sm="100%">
<mat-card><a routerLink="/dashboard/settings">Settings</a></mat-card>
</div>
<div fxFlex="0 1 calc(33.3% - 32px)" fxFlex.lt-md="0 1 calc(50% - 32px)" fxFlex.lt-sm="100%">
<mat-card><a routerLink="/dashboard/experiments/dashing">Dashing</a></mat-card>
</div>
</div>
@@ -1,3 +1,4 @@
<ngx-breadcrumbs title="Experiments" [crumbs]="crumbs"></ngx-breadcrumbs>
<div class="grid-container" style="height: 615px; overflow: hidden;">
<mat-grid-list cols="8" rowHeight="1:1" gutterSize="15px">
<mat-grid-tile *ngFor="let card of cards; let i = index;"
Expand Down
@@ -1,3 +1,9 @@
:host {
//display: block;
padding: 1.5%;
position: relative;
}

.grid-container {
margin: 10px;
}
Expand Down
Expand Up @@ -6,6 +6,7 @@ import { map } from 'rxjs/operators';
import { Breakpoints, BreakpointObserver } from '@angular/cdk/layout';

import { CdkDropList, CdkDragDrop, CdkDragEnter, moveItemInArray } from '@angular/cdk/drag-drop';
import { Crumb } from '@ngx-starter-kit/breadcrumbs';
const COLORS = [
'#ea4335',
'#4285f4',
Expand Down Expand Up @@ -51,6 +52,11 @@ function getColor() {
styleUrls: ['./dashing.component.scss'],
})
export class DashingComponent implements AfterViewInit {
crumbs: ReadonlyArray<Crumb> = [
{ name: 'Dashboard', link: '/dashboard' },
{ name: 'Experiments', link: '/dashboard/experiments' },
{ name: 'Dashing' },
];
@ViewChildren(CdkDropList) dropsQuery: QueryList<CdkDropList>;

drops: CdkDropList[];
Expand Down

0 comments on commit 2ce5f6a

Please sign in to comment.