setup for mdstore inspector ui
This commit is contained in:
parent
01635641f9
commit
87df817768
|
@ -1,16 +0,0 @@
|
||||||
package eu.dnetlib.data.mdstore.manager.controller;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMethod;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
public class SwaggerController {
|
|
||||||
|
|
||||||
@RequestMapping(value = {
|
|
||||||
"/apidoc", "/api-doc", "/doc", "/swagger"
|
|
||||||
}, method = RequestMethod.GET)
|
|
||||||
public String apiDoc() {
|
|
||||||
return "redirect:swagger-ui/index.html";
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -7,6 +7,7 @@ import { ResourcesComponent } from './resources/resources.component';
|
||||||
import { VocabulariesComponent, VocabularyEditorComponent } from './vocabularies/vocabularies.component';
|
import { VocabulariesComponent, VocabularyEditorComponent } from './vocabularies/vocabularies.component';
|
||||||
import { ContextViewerComponent, ContextsComponent } from './contexts/contexts.component';
|
import { ContextViewerComponent, ContextsComponent } from './contexts/contexts.component';
|
||||||
import { DsmSearchComponent, DsmResultsComponent, DsmApiComponent } from './dsm/dsm.component';
|
import { DsmSearchComponent, DsmResultsComponent, DsmApiComponent } from './dsm/dsm.component';
|
||||||
|
import { MdstoreInspectorComponent, MdstoresComponent } from './mdstores/mdstores.component';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path:"" , redirectTo:'info', pathMatch: 'full' },
|
{ path:"" , redirectTo:'info', pathMatch: 'full' },
|
||||||
|
@ -20,7 +21,8 @@ const routes: Routes = [
|
||||||
{ path:"voc_editor" , component:VocabularyEditorComponent },
|
{ path:"voc_editor" , component:VocabularyEditorComponent },
|
||||||
{ path:"dsm/search" , component:DsmSearchComponent },
|
{ path:"dsm/search" , component:DsmSearchComponent },
|
||||||
{ path:"dsm/results/:page/:size" , component:DsmResultsComponent },
|
{ path:"dsm/results/:page/:size" , component:DsmResultsComponent },
|
||||||
{ path:"dsm/api" , component:DsmApiComponent }
|
{ path:"mdstores" , component:MdstoresComponent },
|
||||||
|
{ path:"mdstore/:id/:limit" , component:MdstoreInspectorComponent }
|
||||||
];
|
];
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
|
@ -34,6 +34,7 @@ import { DsmSearchComponent, DsmResultsComponent, DsmApiComponent, DsmAddApiDial
|
||||||
import { MatPaginatorModule } from '@angular/material/paginator';
|
import { MatPaginatorModule } from '@angular/material/paginator';
|
||||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
import { SpinnerHttpInterceptor } from './common/spinner.service';
|
import { SpinnerHttpInterceptor } from './common/spinner.service';
|
||||||
|
import { MdstoresComponent, MdstoreInspectorComponent } from './mdstores/mdstores.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -59,7 +60,9 @@ import { SpinnerHttpInterceptor } from './common/spinner.service';
|
||||||
DsmResultsComponent,
|
DsmResultsComponent,
|
||||||
DsmApiComponent,
|
DsmApiComponent,
|
||||||
DsmAddApiDialog,
|
DsmAddApiDialog,
|
||||||
DsmBrowseDialog
|
DsmBrowseDialog,
|
||||||
|
MdstoresComponent,
|
||||||
|
MdstoreInspectorComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
</div>
|
</div>
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
|
|
||||||
|
|
||||||
<mat-expansion-panel>
|
<mat-expansion-panel>
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title>Simple Resources</mat-panel-title>
|
<mat-panel-title>Simple Resources</mat-panel-title>
|
||||||
|
@ -52,6 +51,15 @@
|
||||||
</div>
|
</div>
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
|
|
||||||
|
<mat-expansion-panel>
|
||||||
|
<mat-expansion-panel-header>
|
||||||
|
<mat-panel-title>Tools</mat-panel-title>
|
||||||
|
</mat-expansion-panel-header>
|
||||||
|
<div>
|
||||||
|
<a class="menu-item" [routerLink]="['mdstores']">MDStore Inspector</a>
|
||||||
|
</div>
|
||||||
|
</mat-expansion-panel>
|
||||||
|
|
||||||
<mat-expansion-panel>
|
<mat-expansion-panel>
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title>Logs</mat-panel-title>
|
<mat-panel-title>Logs</mat-panel-title>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
<h2>Metadata Store Inspector</h2>
|
|
@ -0,0 +1 @@
|
||||||
|
<h2>Metadata Stores</h2>
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { MdstoresComponent } from './mdstores.component';
|
||||||
|
|
||||||
|
describe('MdstoresComponent', () => {
|
||||||
|
let component: MdstoresComponent;
|
||||||
|
let fixture: ComponentFixture<MdstoresComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ MdstoresComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(MdstoresComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
|
@ -0,0 +1,19 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-mdstores',
|
||||||
|
templateUrl: './mdstores.component.html',
|
||||||
|
styleUrls: ['./mdstores.component.css']
|
||||||
|
})
|
||||||
|
export class MdstoresComponent {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-mdstore-inspector',
|
||||||
|
templateUrl: './mdstore-inspector.component.html',
|
||||||
|
styleUrls: ['./mdstores.component.css']
|
||||||
|
})
|
||||||
|
export class MdstoreInspectorComponent {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue