summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/const
diff options
context:
space:
mode:
authorwangyuerg <wangyuerg@chinamobile.com>2021-01-08 12:23:31 +0800
committerwangyuerg <wangyuerg@chinamobile.com>2021-01-08 12:24:04 +0800
commit5bead046179e8e00c2cc4681992a6ffe24e4b97e (patch)
tree42ff8dbab525359dcb978faa5708542cf2b5e664 /usecaseui-portal/src/app/const
parent114398200f66e9139352d236beb5eb6417baa879 (diff)
feat: embedding vue framwork in angular
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com> Change-Id: Ib065f7d3e1b7533161f880b5093ee9b829d2e46d Issue-ID: USECASEUI-444
Diffstat (limited to 'usecaseui-portal/src/app/const')
-rw-r--r--usecaseui-portal/src/app/const/address.ts10
-rw-r--r--usecaseui-portal/src/app/const/index.ts7
-rw-r--r--usecaseui-portal/src/app/const/menu-item.ts90
3 files changed, 107 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/const/address.ts b/usecaseui-portal/src/app/const/address.ts
new file mode 100644
index 00000000..cedeb73a
--- /dev/null
+++ b/usecaseui-portal/src/app/const/address.ts
@@ -0,0 +1,10 @@
+enum ADDRESS {
+ vue = 'http://localhost:8089/',
+ Angular = 'http://localhost:4200/'
+}
+const SELF_SOURCE: string = 'Angular'
+
+export default {
+ ADDRESS,
+ SELF_SOURCE,
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/const/index.ts b/usecaseui-portal/src/app/const/index.ts
new file mode 100644
index 00000000..ad09de2c
--- /dev/null
+++ b/usecaseui-portal/src/app/const/index.ts
@@ -0,0 +1,7 @@
+import address from './address'
+import menu from './menu-item'
+
+export {
+ address,
+ menu
+} \ No newline at end of file
diff --git a/usecaseui-portal/src/app/const/menu-item.ts b/usecaseui-portal/src/app/const/menu-item.ts
new file mode 100644
index 00000000..70933a85
--- /dev/null
+++ b/usecaseui-portal/src/app/const/menu-item.ts
@@ -0,0 +1,90 @@
+// route table
+
+const MENU_ITEM = [
+ {
+ name: '0', // Angular
+ title: 'Home',
+ children: [],
+ path: '/home',
+ source: 'Angular'
+ },
+ {
+ name: '1', // Angular
+ title: 'Customer',
+ children: [],
+ path: '/management',
+ source: 'Angular'
+ },
+ {
+ name: '2', // Angular
+ title: 'Services',
+ children: [
+ {
+ name: '2-0',
+ title: 'Lifecycle Management',
+ path: '/services/services-list',
+ source: 'Angular'
+ },
+ {
+ name: '2-1',
+ title: 'SOTN Eline',
+ path: '/services/sotn-management',
+ source: 'Angular'
+ },
+ {
+ name: '2-2',
+ title: '5G Sclicing Management',
+ path: '/services/slicing-management',
+ source: 'Angular'
+ },
+ ]
+ },
+ {
+ name: '3', // Angular
+ title: 'Package Managemeny',
+ children: [],
+ path: '/onboard-vnf-vm',
+ source: 'Angular'
+ },
+ {
+ name: '4', // Angular
+ title: 'Network Topology',
+ children: [
+ {
+ name: '4-0',
+ title: 'CCVPN network',
+ path: '/network/ccvpn-network',
+ source: 'Angular'
+ },
+ {
+ name: '4-1',
+ title: 'MDONS Network',
+ path: '/network/mdons-network',
+ source: 'Angular'
+ }
+ ]
+ },
+ {
+ name: '5', // Angular
+ title: 'Monitor',
+ children: [
+ {
+ name: '5-0',
+ title: '5G Slicing',
+ path: '/fcaps/5gslicing',
+ source: 'Angular'
+ }
+ ]
+ },
+ {
+ name: '6', // vue
+ title: 'Test',
+ children: [],
+ path: '/test',
+ source: 'vue'
+ }
+]
+
+export default {
+ MENU_ITEM
+} \ No newline at end of file