Compare commits
10 Commits
8e0572d35b
...
eb65b56b78
| Author | SHA1 | Date | |
|---|---|---|---|
| eb65b56b78 | |||
| b0415ed972 | |||
| 4b211e425d | |||
| 9459eee606 | |||
| a81c458775 | |||
| ee0eab22f8 | |||
| 9ccb7a14b5 | |||
| 05cc0e985a | |||
| 6dc5ba1a1e | |||
| a6ae8e533e |
@@ -1,21 +1,17 @@
|
|||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
import { RouterModule, Routes } from "@angular/router";
|
import { RouterModule, Routes } from "@angular/router";
|
||||||
import { VisualizationPageComponent } from "./visualization-page/visualization-page.component";
|
import { VisualizationPageComponent } from "./visualization-page/visualization-page.component";
|
||||||
import { MainPageComponent } from "./main-page/main-page.component";
|
|
||||||
import { UploadPageComponent } from "./upload-page/upload-page.component";
|
|
||||||
import { HelpPageComponent } from "./help-page/help-page.component";
|
|
||||||
import { DashboardPageComponent } from "./dashboard-page/dashboard-page.component";
|
import { DashboardPageComponent } from "./dashboard-page/dashboard-page.component";
|
||||||
import { DashboardComponent } from "./dashboard-page/dashboard/dashboard.component";
|
import { DashboardComponent } from "./dashboard-page/dashboard/dashboard.component";
|
||||||
import { CustomizableGridComponent } from "./customizable-grid/customizable-grid.component";
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: "", component: MainPageComponent },
|
{ path: "", loadComponent: () => import("./main-page/main-page.component").then(m => m.MainPageComponent) },
|
||||||
{ path: "vis", component: VisualizationPageComponent },
|
{ path: "vis", component: VisualizationPageComponent },
|
||||||
{ path: "dashboard", component: DashboardPageComponent },
|
{ path: "dashboard", component: DashboardPageComponent },
|
||||||
{ path: "dashboard/:id", component: DashboardComponent },
|
{ path: "dashboard/:id", component: DashboardComponent },
|
||||||
{ path: "upload", component: UploadPageComponent },
|
{ path: "upload", loadComponent: () => import("./upload-page/upload-page.component").then(m => m.UploadPageComponent) },
|
||||||
{ path: "grid", component: CustomizableGridComponent },
|
{ path: "grid", loadComponent: () => import("./customizable-grid/customizable-grid.component").then(m => m.CustomizableGridComponent) },
|
||||||
{ path: "help", component: HelpPageComponent },
|
{ path: "help", loadComponent: () => import("./help-page/help-page.component").then(m => m.HelpPageComponent) },
|
||||||
// { path: '**', component: PageNotFoundComponent }
|
// { path: '**', component: PageNotFoundComponent }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,6 @@ import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|||||||
|
|
||||||
import { AppRoutingModule } from "./app-routing.module";
|
import { AppRoutingModule } from "./app-routing.module";
|
||||||
import { AppComponent } from "./app.component";
|
import { AppComponent } from "./app.component";
|
||||||
import { MainPageComponent } from "./main-page/main-page.component";
|
|
||||||
import { HelpPageComponent } from "./help-page/help-page.component";
|
|
||||||
import { UploadPageComponent } from "./upload-page/upload-page.component";
|
|
||||||
import { VisualizationPageComponent } from "./visualization-page/visualization-page.component";
|
import { VisualizationPageComponent } from "./visualization-page/visualization-page.component";
|
||||||
|
|
||||||
import { DatePickerComponent } from "./components/datepicker/date-picker.component";
|
import { DatePickerComponent } from "./components/datepicker/date-picker.component";
|
||||||
@@ -27,7 +24,6 @@ import { MatTooltipModule } from "@angular/material/tooltip";
|
|||||||
import { OverlayModule } from "@angular/cdk/overlay";
|
import { OverlayModule } from "@angular/cdk/overlay";
|
||||||
import { YAxisDefinitionComponent } from "./y-axis-definition/y-axis-definition.component";
|
import { YAxisDefinitionComponent } from "./y-axis-definition/y-axis-definition.component";
|
||||||
import { QueryAutocompleteComponent } from "./query-autocomplete/query-autocomplete.component";
|
import { QueryAutocompleteComponent } from "./query-autocomplete/query-autocomplete.component";
|
||||||
import { LimitByComponent } from "./limit-by/limit-by.component";
|
|
||||||
import { PlotDetailsComponent } from "./plot-details/plot-details.component";
|
import { PlotDetailsComponent } from "./plot-details/plot-details.component";
|
||||||
import { PlotViewComponent } from "./plot-view/plot-view.component";
|
import { PlotViewComponent } from "./plot-view/plot-view.component";
|
||||||
import {
|
import {
|
||||||
@@ -37,7 +33,6 @@ import {
|
|||||||
} from "./gallery-view/gallery-view.component";
|
} from "./gallery-view/gallery-view.component";
|
||||||
import { ImageToggleComponent } from "./image-toggle/image-toggle.component";
|
import { ImageToggleComponent } from "./image-toggle/image-toggle.component";
|
||||||
import { DashboardPageComponent } from "./dashboard-page/dashboard-page.component";
|
import { DashboardPageComponent } from "./dashboard-page/dashboard-page.component";
|
||||||
import { NewDashboardComponent } from "./dashboard-page/new-dashboard/new-dashboard.component";
|
|
||||||
import {
|
import {
|
||||||
MAT_DIALOG_DEFAULT_OPTIONS,
|
MAT_DIALOG_DEFAULT_OPTIONS,
|
||||||
MatDialogModule,
|
MatDialogModule,
|
||||||
@@ -52,46 +47,44 @@ import { TextWidgetComponent } from "./dashboard-page/dashboard/text-widget/text
|
|||||||
import { AddPlotDialogComponent } from "./dashboard-page/dashboard/add-plot-dialog/add-plot-dialog.component";
|
import { AddPlotDialogComponent } from "./dashboard-page/dashboard/add-plot-dialog/add-plot-dialog.component";
|
||||||
import { PlotWidgetComponent } from "./dashboard-page/dashboard/plot-widget/plot-widget.component";
|
import { PlotWidgetComponent } from "./dashboard-page/dashboard/plot-widget/plot-widget.component";
|
||||||
import { FullScreenPlotDialogComponent } from "./dashboard-page/dashboard/full-screen-plot-dialog/full-screen-plot-dialog.component";
|
import { FullScreenPlotDialogComponent } from "./dashboard-page/dashboard/full-screen-plot-dialog/full-screen-plot-dialog.component";
|
||||||
import { CustomizableGridComponent } from "./customizable-grid/customizable-grid.component";
|
|
||||||
|
|
||||||
import { DragDropModule } from "@angular/cdk/drag-drop";
|
import { DragDropModule } from "@angular/cdk/drag-drop";
|
||||||
import { ConfirmationDialogComponent } from "./confirmation-dialog/confirmation-dialog.component";
|
import { ConfirmationDialogComponent } from "./confirmation-dialog/confirmation-dialog.component";
|
||||||
import { FocusDirective } from "./focus.directive";
|
import { FocusDirective } from "./focus.directive";
|
||||||
import { MarkdownModule } from "ngx-markdown";
|
import { MarkdownModule } from "ngx-markdown";
|
||||||
|
import { MainPageComponent } from "./main-page/main-page.component";
|
||||||
|
import { LimitByComponent } from "./limit-by/limit-by.component";
|
||||||
|
|
||||||
@NgModule({ declarations: [
|
@NgModule({ declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
MainPageComponent,
|
|
||||||
HelpPageComponent,
|
|
||||||
UploadPageComponent,
|
|
||||||
VisualizationPageComponent,
|
VisualizationPageComponent,
|
||||||
YAxisDefinitionComponent,
|
|
||||||
QueryAutocompleteComponent,
|
QueryAutocompleteComponent,
|
||||||
LimitByComponent,
|
|
||||||
PlotDetailsComponent,
|
PlotDetailsComponent,
|
||||||
PlotViewComponent,
|
PlotViewComponent,
|
||||||
GalleryViewComponent,
|
GalleryViewComponent,
|
||||||
GalleryItemView,
|
GalleryItemView,
|
||||||
GalleryFilterView,
|
GalleryFilterView,
|
||||||
ImageToggleComponent,
|
|
||||||
DashboardPageComponent,
|
DashboardPageComponent,
|
||||||
NewDashboardComponent,
|
|
||||||
DashboardComponent,
|
DashboardComponent,
|
||||||
TextWidgetComponent,
|
TextWidgetComponent,
|
||||||
AddPlotDialogComponent,
|
AddPlotDialogComponent,
|
||||||
PlotWidgetComponent,
|
PlotWidgetComponent,
|
||||||
FullScreenPlotDialogComponent,
|
FullScreenPlotDialogComponent,
|
||||||
CustomizableGridComponent,
|
|
||||||
ConfirmationDialogComponent,
|
ConfirmationDialogComponent,
|
||||||
FocusDirective,
|
FocusDirective,
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent], imports: [MarkdownModule.forRoot(),
|
bootstrap: [AppComponent],
|
||||||
|
imports: [
|
||||||
|
MarkdownModule.forRoot(),
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
DatePickerComponent,
|
DatePickerComponent,
|
||||||
DragDropModule,
|
DragDropModule,
|
||||||
|
ImageToggleComponent,
|
||||||
|
LimitByComponent,
|
||||||
|
MainPageComponent,
|
||||||
MatAutocompleteModule,
|
MatAutocompleteModule,
|
||||||
MatBadgeModule,
|
MatBadgeModule,
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
@@ -110,7 +103,10 @@ import { MarkdownModule } from "ngx-markdown";
|
|||||||
MatTableModule,
|
MatTableModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
OverlayModule], providers: [{
|
OverlayModule,
|
||||||
|
YAxisDefinitionComponent
|
||||||
|
],
|
||||||
|
providers: [{
|
||||||
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
||||||
useValue: { hasBackdrop: true },
|
useValue: { hasBackdrop: true },
|
||||||
}, provideHttpClient(withInterceptorsFromDi())] })
|
}, provideHttpClient(withInterceptorsFromDi())] })
|
||||||
|
|||||||
@@ -1,12 +1,18 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { CdkDragEnter, CdkDropList, moveItemInArray, DragRef} from '@angular/cdk/drag-drop';
|
import { CdkDragEnter, CdkDropList, moveItemInArray, DragRef, DragDropModule} from '@angular/cdk/drag-drop';
|
||||||
import { AfterViewInit } from '@angular/core';
|
import { AfterViewInit } from '@angular/core';
|
||||||
import { ViewChild } from '@angular/core';
|
import { ViewChild } from '@angular/core';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-customizable-grid',
|
selector: 'app-customizable-grid',
|
||||||
templateUrl: './customizable-grid.component.html'
|
templateUrl: './customizable-grid.component.html',
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
BrowserModule,
|
||||||
|
DragDropModule
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class CustomizableGridComponent implements AfterViewInit {
|
export class CustomizableGridComponent implements AfterViewInit {
|
||||||
@ViewChild(CdkDropList) placeholder!: CdkDropList;
|
@ViewChild(CdkDropList) placeholder!: CdkDropList;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { AfterViewInit, Component, ElementRef, Inject, ViewChild } from '@angular/core';
|
import { Component, Inject, ViewChild } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { PlotConfig } from 'src/app/plot.service';
|
import { PlotConfig } from 'src/app/plot.service';
|
||||||
import { VisualizationPageComponent } from 'src/app/visualization-page/visualization-page.component';
|
import { VisualizationPageComponent } from 'src/app/visualization-page/visualization-page.component';
|
||||||
|
|||||||
@@ -1,11 +1,26 @@
|
|||||||
import { Component, ElementRef, Inject, OnInit, ViewChild } from '@angular/core';
|
import { Component, ElementRef, Inject, OnInit, ViewChild } from '@angular/core';
|
||||||
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog';
|
import {MAT_DIALOG_DATA, MatDialogModule, MatDialogRef} from '@angular/material/dialog';
|
||||||
import { DashboardCreationData } from 'src/app/dashboard.service';
|
import { DashboardCreationData } from 'src/app/dashboard.service';
|
||||||
import { AbstractControl, FormControl, FormGroup, ValidationErrors, ValidatorFn, Validators } from '@angular/forms';
|
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
import { OverlayModule } from '@angular/cdk/overlay';
|
||||||
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
|
import { MatInputModule } from '@angular/material/input';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-new-dashboard',
|
selector: 'app-new-dashboard',
|
||||||
templateUrl: './new-dashboard.component.html'
|
templateUrl: './new-dashboard.component.html',
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
BrowserModule,
|
||||||
|
FormsModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatDialogModule,
|
||||||
|
MatFormFieldModule,
|
||||||
|
MatInputModule,
|
||||||
|
ReactiveFormsModule
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class NewDashboardComponent implements OnInit {
|
export class NewDashboardComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'pdb-help-page',
|
selector: 'pdb-help-page',
|
||||||
templateUrl: './help-page.component.html',
|
templateUrl: './help-page.component.html',
|
||||||
styleUrls: ['./help-page.component.scss']
|
styleUrls: ['./help-page.component.scss'],
|
||||||
|
standalone: true
|
||||||
})
|
})
|
||||||
export class HelpPageComponent implements OnInit {
|
export class HelpPageComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pdb-image-toggle',
|
selector: 'pdb-image-toggle',
|
||||||
templateUrl: './image-toggle.component.html',
|
templateUrl: './image-toggle.component.html',
|
||||||
styleUrls: ['./image-toggle.component.scss']
|
styleUrls: ['./image-toggle.component.scss'],
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
BrowserModule
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class ImageToggleComponent implements OnInit {
|
export class ImageToggleComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,25 @@
|
|||||||
import { Component, Input} from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import {FormControl} from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatFormField, MatLabel } from '@angular/material/form-field';
|
||||||
|
import { MatInput } from '@angular/material/input';
|
||||||
|
import { MatOption, MatSelect } from '@angular/material/select';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pdb-limit-by',
|
selector: 'pdb-limit-by',
|
||||||
templateUrl: './limit-by.component.html',
|
templateUrl: './limit-by.component.html',
|
||||||
styleUrls: ['./limit-by.component.scss']
|
styleUrls: ['./limit-by.component.scss'],
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
BrowserModule,
|
||||||
|
FormsModule,
|
||||||
|
MatFormField,
|
||||||
|
MatInput,
|
||||||
|
MatLabel,
|
||||||
|
MatSelect,
|
||||||
|
MatOption,
|
||||||
|
ReactiveFormsModule
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class LimitByComponent {
|
export class LimitByComponent {
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { RouterLink } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pdb-main-page',
|
selector: 'pdb-main-page',
|
||||||
templateUrl: './main-page.component.html',
|
templateUrl: './main-page.component.html',
|
||||||
styleUrls: ['./main-page.component.scss']
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
RouterLink
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class MainPageComponent implements OnInit {
|
export class MainPageComponent {
|
||||||
|
|
||||||
constructor() { }
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'pdb-upload-page',
|
selector: 'pdb-upload-page',
|
||||||
templateUrl: './upload-page.component.html',
|
templateUrl: './upload-page.component.html',
|
||||||
styleUrls: ['./upload-page.component.scss']
|
styleUrls: ['./upload-page.component.scss'],
|
||||||
|
standalone: true
|
||||||
})
|
})
|
||||||
export class UploadPageComponent implements OnInit {
|
export class UploadPageComponent implements OnInit {
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,27 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
import { YAxisDefinition } from '../plot.service';
|
import { YAxisDefinition } from '../plot.service';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
import { MatFormField, MatLabel } from '@angular/material/form-field';
|
||||||
|
import { MatOptgroup, MatOption, MatSelect } from '@angular/material/select';
|
||||||
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatInput } from '@angular/material/input';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pdb-y-axis-definition',
|
selector: 'pdb-y-axis-definition',
|
||||||
templateUrl: './y-axis-definition.component.html',
|
templateUrl: './y-axis-definition.component.html',
|
||||||
styleUrls: ['./y-axis-definition.component.scss']
|
styleUrls: ['./y-axis-definition.component.scss'],
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
BrowserModule,
|
||||||
|
FormsModule,
|
||||||
|
MatFormField,
|
||||||
|
MatInput,
|
||||||
|
MatLabel,
|
||||||
|
MatSelect,
|
||||||
|
MatOption,
|
||||||
|
MatOptgroup,
|
||||||
|
ReactiveFormsModule
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class YAxisDefinitionComponent {
|
export class YAxisDefinitionComponent {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user