[Aggregator | new-theme]: Updated uikit paths | Re-added <app-root> in index.html | Removed RootMenuItem.

1. app.component.ts: Removed deprecated RootMenuItem and used MenuItem instead.
2. index.html: [Bug fix] Re-added <app-root> which was accidentally deleted in previous commit.
3. package.json: Added in dependencies "uikit": "3.12.0".
4. angular.json: Updated uikit paths in scripts, to get them from node_modules.
This commit is contained in:
Konstantina Galouni 2022-09-21 01:05:21 +03:00
parent f5968ca7b5
commit 9b22660e8a
6 changed files with 21 additions and 24 deletions

View File

@ -50,8 +50,8 @@
"src/material.scss"
],
"scripts": [
"src/assets/openaire-theme/js/uikit.min.js",
"src/assets/openaire-theme/js/uikit-icons.min.js",
"node_modules/uikit/dist/js/uikit.min.js",
"node_modules/uikit/dist/js/uikit-icons.min.js",
"node_modules/jquery/dist/jquery.js"
]
},

View File

@ -43,6 +43,7 @@
"rxjs": "^6.5.1",
"ts-md5": "^1.2.0",
"tslib": "^2.0.0",
"uikit": "3.12.0",
"zone.js": "~0.10.2"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
import {Component, Inject, RendererFactory2, ViewEncapsulation} from '@angular/core';
import {EnvProperties} from './openaireLibrary/utils/properties/env-properties';
import {MenuItem, RootMenuItem} from './openaireLibrary/sharedComponents/menu';
import {MenuItem} from './openaireLibrary/sharedComponents/menu';
import {AggregatorInfo, PortalAggregators} from "./utils/aggregators";
import {UserManagementService} from "./openaireLibrary/services/user-management.service";
import {User} from "./openaireLibrary/login/utils/helper.class";
@ -45,7 +45,7 @@ import {OpenaireEntities} from "./openaireLibrary/utils/properties/searchFields"
})
export class AppComponent {
isClient: boolean = false;
menuItems: RootMenuItem [] = [];
menuItems: MenuItem [] = [];
userMenuItems: MenuItem[] = [];
community = null;
id: string = null;
@ -120,24 +120,17 @@ export class AppComponent {
private buildMenu() {
this.menuItems = [
{rootItem: new MenuItem("home", "Home", "", "/", false, [], null, {}), items: []},
{
rootItem: new MenuItem("search", "Search", "", "/search/find", false, [], ["/search/find"], {}),
items: []
},
{
rootItem: new MenuItem("deposit", "Deposit", "", "/participate/deposit/learn-how", false, [], ["/participate/deposit/learn-how"], {}),
items: []
},
{
rootItem: new MenuItem("link", "Link", "", "/participate/claim", false, [], ["/participate/claim"], {}),
items: [new MenuItem("", "Start linking", "", "/participate/claim", false, [], ["/participate/claim"], {}),
new MenuItem("", "Learn more", this.properties.claimsInformationLink, "", false, [], [], {})]
},
{
rootItem: new MenuItem("develop", "Develop", "", "/develop", false, [], ["/develop"], {}),
items: []
}
new MenuItem("home", "Home", "", "/", false, [], null, {}),
new MenuItem("search", "Search", "", "/search/find", false, [], ["/search/find"], {}),
new MenuItem("deposit", "Deposit", "", "/participate/deposit/learn-how", false, [], ["/participate/deposit/learn-how"], {}),
new MenuItem("link", "Link", "", "/participate/claim", false, [], ["/participate/claim"], {},
null, null, null, null, "_blank", "internal", false,
[
new MenuItem("", "Start linking", "", "/participate/claim", false, [], ["/participate/claim"], {}),
new MenuItem("", "Learn more", this.properties.claimsInformationLink, "", false, [], [], {})
]
),
new MenuItem("develop", "Develop", "", "/develop", false, [], ["/develop"], {}),
];
let params = {};
// params[this.agg.queryFieldName] = this.agg.valueId;

@ -1 +1 @@
Subproject commit 1e3c9d7cba92176af8a8d45f500bdaa97e1cdebc
Subproject commit 4cec2907da5e1bf55cf59930c23dd9a45c569b89

@ -1 +1 @@
Subproject commit eb5739ab8271aa71c8e58998ab88c61878f8788d
Subproject commit f085a90973b216b89065848dba864e2d581acc84

View File

@ -44,6 +44,9 @@
</head>
<body>
<div class="uk-badge" style="border: 0px; border-radius: 0px; background-color: #bc2300 !important; position: absolute; z-index: 1000;">Beta instance</div>
<div class="uk-offcanvas-content uk-height-viewport">
<app-root></app-root>
</div>
</body>
<script type="text/javascript">
function loadAltmetrics(e,t,n){