[Connect | new-theme]: app.component.ts & develop.module.ts & develop-routing.module.ts: Added route enabled check for Develop page | develop.component.ts: Added example bullet for research products & Updated view of bullets (removed quotes - type bold).
This commit is contained in:
parent
7256d6eb5b
commit
e331fe3691
|
@ -353,7 +353,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
]
|
||||
});
|
||||
this.menuItems.push({
|
||||
rootItem: new MenuItem("develop", "Develop", "", "/develop", false, [], null, {}),
|
||||
rootItem: new MenuItem("develop", "Develop", "", "/develop", false, [], ["/develop"], {}),
|
||||
items: []
|
||||
});
|
||||
if (this.isManager) {
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
import { NgModule} from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
||||
import {DevelopComponent} from "./develop.component";
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: DevelopComponent, canActivate: [IsRouteEnabled], canDeactivate: [PreviousRouteRecorder]}
|
||||
])
|
||||
]
|
||||
})
|
||||
export class DevelopRoutingModule {
|
||||
}
|
|
@ -41,27 +41,33 @@ import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties"
|
|||
<div>Request examples:</div>
|
||||
<ul class="uk-list uk-list-large uk-list-bullet uk-list-primary">
|
||||
<li>
|
||||
<span class="uk-text-bold">Access “{{openaireEntities.PUBLICATIONS}}”</span><br>
|
||||
<span>Access all </span><span class="uk-text-bolder">{{openaireEntities.RESULTS}}</span> ({{openaireEntities.PUBLICATIONS}}, {{openaireEntities.DATASETS}}, {{openaireEntities.SOFTWARE}}, {{openaireEntities.OTHER}})<br>
|
||||
<span class="uk-text-bold uk-margin-small-right">GET</span>
|
||||
<span class="">https://api.openaire.eu/search/researchProducts?community={{community.communityId}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<li>
|
||||
<span>Access </span><span class="uk-text-bolder">{{openaireEntities.PUBLICATIONS}}</span><br>
|
||||
<span class="uk-text-bold uk-margin-small-right">GET</span>
|
||||
<span class="">https://api.openaire.eu/search/publications?community={{community.communityId}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="uk-text-bold">Access “Open Access {{openaireEntities.PUBLICATIONS}}”</span><br>
|
||||
<span>Access </span> <span class="uk-text-bolder">Open Access {{openaireEntities.PUBLICATIONS}}</span><br>
|
||||
<span class="uk-text-bold uk-margin-small-right">GET</span>
|
||||
<span class="uk-text-break">http://api.openaire.eu/search/publications?community={{community.communityId}}&OA=true</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="uk-text-bold">Access “{{openaireEntities.DATASETS}}”</span><br>
|
||||
<span>Access </span><span class="uk-text-bolder">{{openaireEntities.DATASETS}}</span><br>
|
||||
<span class="uk-text-bold uk-margin-small-right">GET</span>
|
||||
<span class="uk-text-break">https://api.openaire.eu/search/datasets?community={{community.communityId}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="uk-text-bold">Access “{{openaireEntities.SOFTWARE}}”</span><br>
|
||||
<span>Access </span><span class="uk-text-bolder">{{openaireEntities.SOFTWARE}}</span><br>
|
||||
<span class="uk-text-bold uk-margin-small-right">GET</span>
|
||||
<span class="uk-text-break">https://api.openaire.eu/search/software?community={{community.communityId}}</span>
|
||||
</li>
|
||||
<li>
|
||||
<span class="uk-text-bold">Access “{{openaireEntities.OTHER}}”</span><br>
|
||||
<span>Access </span><span class="uk-text-bolder">{{openaireEntities.OTHER}}</span><br>
|
||||
<span class="uk-text-bold uk-margin-small-right">GET</span>
|
||||
<span class="uk-text-break">https://api.openaire.eu/search/other?community={{community.communityId}}</span>
|
||||
</li>
|
||||
|
@ -70,40 +76,6 @@ import {EnvProperties} from "../openaireLibrary/utils/properties/env-properties"
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="uk-section uk-container uk-container-large">-->
|
||||
<!-- <div class="uk-width-1-2@m uk-margin-auto@m">-->
|
||||
<!-- <div>-->
|
||||
<!-- <div>Request examples:</div>-->
|
||||
<!-- <ul class="uk-list uk-list-large uk-list-bullet uk-list-primary">-->
|
||||
<!-- <li>-->
|
||||
<!-- <span class="uk-text-bold">Access “{{openaireEntities.PUBLICATIONS}}”</span><br>-->
|
||||
<!-- <span class="uk-text-bold uk-margin-small-right">GET</span>-->
|
||||
<!-- <span class="">https://api.openaire.eu/search/publications?community={{community.communityId}}</span>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li>-->
|
||||
<!-- <span class="uk-text-bold">Access “Open Access {{openaireEntities.PUBLICATIONS}}”</span><br>-->
|
||||
<!-- <span class="uk-text-bold uk-margin-small-right">GET</span>-->
|
||||
<!-- <span class="uk-text-break">http://api.openaire.eu/search/publications?community={{community.communityId}}&OA=true</span>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li>-->
|
||||
<!-- <span class="uk-text-bold">Access “{{openaireEntities.DATASETS}}”</span><br>-->
|
||||
<!-- <span class="uk-text-bold uk-margin-small-right">GET</span>-->
|
||||
<!-- <span class="uk-text-break">https://api.openaire.eu/search/datasets?community={{community.communityId}}</span>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li>-->
|
||||
<!-- <span class="uk-text-bold">Access “{{openaireEntities.SOFTWARE}}”</span><br>-->
|
||||
<!-- <span class="uk-text-bold uk-margin-small-right">GET</span>-->
|
||||
<!-- <span class="uk-text-break">https://api.openaire.eu/search/software?community={{community.communityId}}</span>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li>-->
|
||||
<!-- <span class="uk-text-bold">Access “{{openaireEntities.OTHER}}”</span><br>-->
|
||||
<!-- <span class="uk-text-bold uk-margin-small-right">GET</span>-->
|
||||
<!-- <span class="uk-text-break">https://api.openaire.eu/search/other?community={{community.communityId}}</span>-->
|
||||
<!-- </li>-->
|
||||
<!-- </ul>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
`
|
||||
})
|
||||
|
|
|
@ -5,6 +5,7 @@ import {RouterModule} from "@angular/router";
|
|||
import {PreviousRouteRecorder} from "../openaireLibrary/utils/piwik/previousRouteRecorder.guard";
|
||||
import {PageContentModule} from "../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module";
|
||||
import {IconsModule} from "../openaireLibrary/utils/icons/icons.module";
|
||||
import {DevelopRoutingModule} from "./develop-routing.module";
|
||||
|
||||
@NgModule({
|
||||
declarations: [DevelopComponent],
|
||||
|
@ -14,7 +15,7 @@ import {IconsModule} from "../openaireLibrary/utils/icons/icons.module";
|
|||
component: DevelopComponent,
|
||||
canDeactivate: [PreviousRouteRecorder]
|
||||
},
|
||||
]), PageContentModule, IconsModule],
|
||||
]), PageContentModule, IconsModule, DevelopRoutingModule],
|
||||
exports: [DevelopComponent]
|
||||
})
|
||||
export class DevelopModule {
|
||||
|
|
Loading…
Reference in New Issue