From 5bead046179e8e00c2cc4681992a6ffe24e4b97e Mon Sep 17 00:00:00 2001 From: wangyuerg Date: Fri, 8 Jan 2021 12:23:31 +0800 Subject: feat: embedding vue framwork in angular Signed-off-by: wangyuerg Change-Id: Ib065f7d3e1b7533161f880b5093ee9b829d2e46d Issue-ID: USECASEUI-444 --- usecaseui-portal/src/app/const/address.ts | 10 ++++ usecaseui-portal/src/app/const/index.ts | 7 +++ usecaseui-portal/src/app/const/menu-item.ts | 90 +++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 usecaseui-portal/src/app/const/address.ts create mode 100644 usecaseui-portal/src/app/const/index.ts create mode 100644 usecaseui-portal/src/app/const/menu-item.ts (limited to 'usecaseui-portal/src/app/const') 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 -- cgit 1.2.3-korg