NG-UI Added support for the OSM Repository
* Added a list to show the repo added.
* Form to add the repo path with the type.
Change-Id: I77ddbf6ef4c7f02abd2e5bc455b3a21e04e5b20d
Signed-off-by: Barath Kumar R <barath.r@tataelxsi.co.in>
diff --git a/src/models/CommonModel.ts b/src/models/CommonModel.ts
index 508a96a..627074b 100644
--- a/src/models/CommonModel.ts
+++ b/src/models/CommonModel.ts
@@ -202,6 +202,10 @@
{ value: 'onos_vpls', title: 'ONOS vpls' },
{ value: 'tapi', title: 'TAPI' }
];
+/** Constants of the OSM Repo Types */
+export const OSMREPO_TYPES: TYPESECTION[] = [
+ { value: 'osm', title: 'OSM' }
+];
/** Interface for List, Add WIM & SDN Types */
export interface TYPESECTION {
value: string;
diff --git a/src/models/MenuModel.ts b/src/models/MenuModel.ts
index dd77e0d..0b49db8 100644
--- a/src/models/MenuModel.ts
+++ b/src/models/MenuModel.ts
@@ -197,6 +197,17 @@
liClass: 'round-edge-top-3 round-edge-bottom-3 mr-top-5',
anchorTagClass: 'link round-edge-top-3 round-edge-bottom-3 individual',
clickFunction: 'nosubmenu',
+ routerLink: '/repos/details',
+ routerLinkActive: ['parentactive'],
+ routerLinkActiveOptions: true,
+ icon: 'fas fa-fas fa-cloud-download-alt',
+ menuName: 'PAGE.OSMREPO.MENUOSMREPO',
+ isChildExists: false
+ },
+ {
+ liClass: 'round-edge-top-3 round-edge-bottom-3 mr-top-5',
+ anchorTagClass: 'link round-edge-top-3 round-edge-bottom-3 individual',
+ clickFunction: 'nosubmenu',
routerLink: '/wim/details',
routerLinkActive: ['parentactive'],
routerLinkActiveOptions: true,
diff --git a/src/models/OsmRepoModel.ts b/src/models/OsmRepoModel.ts
new file mode 100644
index 0000000..2f2114b
--- /dev/null
+++ b/src/models/OsmRepoModel.ts
@@ -0,0 +1,46 @@
+/*
+ Copyright 2020 TATA ELXSI
+
+ Licensed under the Apache License, Version 2.0 (the 'License');
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
+ */
+/**
+ * @file Model for OSM Repo related information.
+ */
+
+/** Interface for OSM Repo Details */
+export interface OSMRepoDetails {
+ _admin: Admin;
+ _id: string;
+ name: string;
+ url: string;
+ 'type': string;
+ project_id?: string;
+ description?: string;
+}
+/** Interface for Admin */
+interface Admin {
+ created: number;
+ modified: number;
+}
+/** Interface for OSM Repo data in smarttable */
+export interface OSMRepoData {
+ name: string;
+ identifier: string;
+ url: string;
+ 'type': string;
+ modified: string;
+ created: string;
+ description: string;
+}