diff options
Diffstat (limited to 'usecaseui-portal/src/constants/constants.ts')
-rw-r--r-- | usecaseui-portal/src/constants/constants.ts | 638 |
1 files changed, 123 insertions, 515 deletions
diff --git a/usecaseui-portal/src/constants/constants.ts b/usecaseui-portal/src/constants/constants.ts index 909afeb5..249d6f6d 100644 --- a/usecaseui-portal/src/constants/constants.ts +++ b/usecaseui-portal/src/constants/constants.ts @@ -1,535 +1,143 @@ +/*******
+ title /MUST/: MARK THE ITEM NAME,
+ key /MUST/: MARK THE ITEM KEY,
+ type /MUST/: MARKE THE ITEM TYPE, CAN BE ADDED IF NECESSARY: input/select/radio/city-select/select/table-radio/endpoint
+ required /MUST/: IF REQUIRED,
+ disable /MUST/: IF DISABLED,
+ scoped: IF SCOPED NUMBERS, CAN BE EMITTED IF NOT
+ scopedText: SCOPED NUMBERS' DESCRIPTION. IF SCOPED NUMBERS EXITS, IT'S A MUST
+ placeholder: IF PLACEHOLDER, CAN BE EMITTED IF NOT
+ options: IF ITEM NEEDS OPTIONS, CAN BE EMITTED IF NOT
+********/
+
export const TASK_PROCESSING_STATUS = [
{
- title: 'All',
- value: 'all'
+ title: "All",
+ value: "all",
},
{
- title: 'Planning',
- value: 'Planning'
+ title: "Planning",
+ value: "Planning",
},
{
- title: 'WaitingToConfirm',
- value: 'WaitingToConfirm'
+ title: "WaitingToConfirm",
+ value: "WaitingToConfirm",
},
{
- title: 'Creating',
- value: 'Creating'
+ title: "Creating",
+ value: "Creating",
},
{
- title: 'Completed',
- value: 'Completed'
- }
-]
+ title: "Completed",
+ value: "Completed",
+ },
+];
export const BUSINESS_REQUIREMENT = [
- {
- title: 'Slicing Business Name',
- key: 'service_name'
- },
- {
- title: 'S-NSSAI',
- key: 'service_snssai'
- },
- {
- title: 'Data Rate Downlink (Mbps) ',
- key: 'exp_data_rate_dl'
- },
- {
- title: 'Data Rate Uplink (Mbps) ',
- key: 'exp_data_rate_ul'
- },
- {
- title: 'Mobility',
- key: 'ue_mobility_level'
- },
- {
- title: 'Latency (ms)',
- key: 'latency'
- },
- {
- title: 'Use Interval (Month) ',
- key: 'use_interval'
- },
-
- {
- title: 'Activity Factor(%)',
- key: 'activity_factor'
- },
- {
- title: 'Resource Sharing Level',
- key: 'resource_sharing_level'
- },
- {
- title: 'Max Number of UEs',
- key: 'max_number_of_ues'
- },
- {
- title: 'Uplink Regional Traffic Density(Mbps/km )',
- key: 'area_traffic_cap_ul'
- },
- {
- title: 'Downlink Regional Traffic Density(Mbps/km )',
- key: 'area_traffic_cap_dl'
- },
- {
- title: 'Availability',
- key: 'serviceProfile_Availability'
- },
- {
- title: 'PLMNIdList',
- key: 'serviceProfile_PLMNIdList'
- },
- {
- title: 'Reliability',
- key: 'serviceProfile_Reliability'
- },
- {
- title: 'Uplink throughput per UE',
- key: 'serviceProfile_ULThptPerUE'
- },
- {
- title: 'Downlink throughput per UE',
- key: 'serviceProfile_DLThptPerUE'
- },
- {
- title: 'Uplink throughput per network slice',
- key: 'serviceProfile_ULThptPerSlice'
- },
- {
- title: 'Downlink throughput per network slice',
- key: 'serviceProfile_DLThptPerSlice'
- },
- {
- title: 'Maximum packet size',
- key: 'serviceProfile_MaxPktSize'
- },
- {
- title: 'Maximum Number of Connections',
- key: 'serviceProfile_MaxNumberofConns'
- },
- {
- title: 'Terminal density',
- key: 'serviceProfile_TermDensity'
- },
- {
- title: 'jitter',
- key: 'serviceProfile_Jitter'
- },
- {
- title: 'survivalTime',
- key: 'serviceProfile_SurvivalTime'
- },
-
- [
- {
- title: 'Area',
- key: 'area'
- }
- ]
-]
-
-
-export const TRANSFRER_FORM_ITEMS = [
- {
- title: 'S-NSSAI',
- key: 'sliceProfile_TN_BH_sNSSAI',
- required: true,
- type: 'input'
- },
{
- title: 'Latency (ms)',
- key: 'tn_bh_latency',
- required: true,
- type: 'input'
- },
- {
- title: 'Jitter',
- key: 'sliceProfile_TN_BH_jitte',
- required: false,
- type: 'input'
- },
+ title: "Slicing Business Name",
+ key: "service_name",
+ },
{
- title: 'MaxBandwidth',
- key: 'tn_bh_bandwidth',
- required: true,
- type: 'input'
- },
- {
- title: 'Resource Sharing Level', // select
- key: 'sliceProfile_TN_resourceSharingLevel', // :new
- required: true,
- type: 'radio',
- options: [
- {
- title: 'Shared',
- key: 'shared'
- },
- {
- title: 'Non-shared',
- key: 'non-shared'
- }
- ]
- },
- {
- title: 'Connection Links',// table
- key: 'tn_connection_links', // :new
- required: false, // combined
- type: 'table',
- disable: false
- },
- {
- title:'AN Endpoint', // input group
- key:"an_Endpoint",
- type: 'endpoint',
- required: false,
- disable: false,
- options: [
- {
- title: 'ip_address',
- key: 'sliceProfile_AN_ipAddress',
- holder: 'IpAddress'
- },
- {
- title: 'logical_link',
- key: 'sliceProfile_AN_logicInterfaceId',
- holder: 'LogicId'
- },
- {
- title: 'nexthop_info',
- key: 'sliceProfile_AN_nextHopInfo',
- holder: 'NextHop'
- }
- ]
- },
- {
- title:'CN Endpoint',
- key:"cn_Endpoint",
- type: 'endpoint',
- required: false,
- disable: false,
- options: [
- {
- title: 'ip_address',
- key: 'sliceProfile_CN_ipAddress',
- holder: 'IpAddress'
- },
- {
- title: 'logical_link',
- key: 'sliceProfile_CN_logicInterfaceId',
- holder: 'LogicId'
- },
- {
- title: 'nexthop_info',
- key: 'sliceProfile_CN_nextHopInfo',
- holder: 'NextHop'
- }
- ]
- },
-]
-
-export const CORE_FORM_ITEMS = {
- "An": [
- {
- title: 'S-NSSAI',
- key: 'sliceProfile_AN_sNSSAI',
- required: true,
- type: 'input'
- },
- {
- title: 'Resource Sharing Level',
- key: 'sliceProfile_AN_resourceSharingLevel',
- required: true,
- type: 'radio',
- options: [
- {
- title: 'Shared',
- key: 'shared'
- },
- {
- title: 'Non-shared',
- key: 'non-shared'
- }
- ]
- },
- {
- title: 'Mobility',
- key: 'sliceProfile_AN_uEMobilityLevel',
- required: true,
- type: 'select',
- options: [
- {
- title: 'Stationary',
- key: 'stationary'
- },
- {
- title: 'Nomadic',
- key: 'nomadic'
- },
- {
- title: 'Spatially Restricted Mobility',
- key: 'spatially restricted mobility'
- },
- {
- title: 'Fully Mobility',
- key: 'fully mobility'
- }
- ]
- },
- {
- title: 'Latency (ms)',
- key: 'an_latency',
- required: true,
- type: 'input'
- },
- {
- title: 'Max Number of PUD Session',
- key: 'sliceProfile_AN_maxNumberofPDUSession',
- required: true,
- type: 'input'
- },
- {
- title: 'Max Number of UEs',
- key: 'sliceProfile_AN_maxNumberofUEs',
- required: true,
- type: 'input'
- },
- {
- title: 'Activity Factor (%)',
- key: 'sliceProfile_AN_activityFactor',
- required: true,
- type: 'input'
- },
- {
- title: 'User Downlink Experience Rate(Mbps)',
- key: 'sliceProfile_AN_expDataRateDL',
- required: true,
- type: 'input'
- },
- {
- title: 'User Uplink Experience Rate(Mbps)',
- key: 'sliceProfile_AN_expDataRateUL',
- required: true,
- type: 'input'
- },
- {
- title: 'Downlink Regional Traffic Density(Mbps/km )',
- key: 'sliceProfile_AN_areaTrafficCapDL',
- required: false,
- type: 'input'
- },
- {
- title: 'Uplink Regional Traffic Density(Mbps/km )',
- key: 'sliceProfile_AN_areaTrafficCapUL',
- required: false,
- type: 'input'
- },
- {
- title: 'Script Name',
- key: 'an_script_name',
- required: false,
- type: 'input'
- },
- {
- title: 'Overall User Density',
- key: 'sliceProfile_AN_overallUserDensity',
- required: false,
- type: 'input'
- },
- {
- title: 'Coverage Area Ta List',
- key: 'an_coverage_area_ta_list',
- required: true,
- type: 'area'
- }
- ],
- "Cn": [
- {
- title: 'S-NSSAI',
- key: 'cn_service_snssai',
- required: true,
- type: 'input'
- },
- {
- title: 'Resource Sharing Level',
- key: 'cn_resource_sharing_level',
- required: true,
- type: 'radio',
- options: [
- {
- title: 'Shared',
- key: 'shared'
- },
- {
- title: 'Non-shared',
- key: 'non-shared'
- }
- ]
- },
- {
- title: 'Mobility',
- key: 'cn_ue_mobility_level',
- required: true,
- type: 'select',
- options: [
- {
- title: 'Stationary',
- key: 'stationary'
- },
- {
- title: 'Nomadic',
- key: 'nomadic'
- },
- {
- title: 'Spatially Restricted Mobility',
- key: 'spatially restricted mobility'
- },
- {
- title: 'Fully Mobility',
- key: 'fully mobility'
- }
- ]
- },
- {
- title: 'Latency (ms)',
- key: 'cn_latency',
- required: true,
- type: 'input'
- },
- {
- title: 'Max Number of UEs',
- key: 'cn_max_number_of_ues',
- required: true,
- type: 'input'
- },
- {
- title: 'Activity Factor (%)',
- key: 'cn_activity_factor',
- required: true,
- type: 'input'
- },
- {
- title: 'User Downlink Experience Rate(Mbps)',
- key: 'cn_exp_data_rate_dl',
- required: true,
- type: 'input'
- },
- {
- title: 'User Uplink Experience Rate(Mbps)',
- key: 'cn_exp_data_rate_ul',
- required: true,
- type: 'input'
- },
- {
- title: 'Downlink Regional Traffic Density(Mbps/km )',
- key: 'cn_area_traffic_cap_dl',
- required: false,
- type: 'input'
- },
- {
- title: 'Uplink Regional Traffic Density(Mbps/km )',
- key: 'cn_area_traffic_cap_ul',
- required: false,
- type: 'input'
- },
- {
- title: 'Script Name',
- key: 'cn_script_name',
- required: false,
- type: 'input'
- },
- {
- title: 'Max Number of PUD Session',
- key: 'sliceProfile_CN_maxNumberofPDUSession',
- required: true,
- type: 'input'
- },
- {
- title: 'OverAll User Density',
- key: 'sliceProfile_CN_overallUserDensity',
- required: false,
- type: 'input'
- },
- // {
- // title: 'ip-address',
- // key: 'sliceProfile_CN_ipAddress',
- // required: true,
- // holder: 'IpAddress'
- // },
- // {
- // title: 'logical_link',
- // key: 'sliceProfile_CN_logicInterfaceId',
- // required: true,
- // holder: 'LogicId'
- // },
- // {
- // title: 'cn_nexthop_info',
- // key: 'sliceProfile_CN_nextHopInfo',
- // required: true,
- // holder: 'NextHop'
- // },
- ]
-}
+ title: "S-NSSAI",
+ key: "service_snssai",
+ },
+ {
+ title: "Data Rate Downlink (Mbps) ",
+ key: "exp_data_rate_dl",
+ },
+ {
+ title: "Data Rate Uplink (Mbps) ",
+ key: "exp_data_rate_ul",
+ },
+ {
+ title: "Mobility",
+ key: "ue_mobility_level",
+ },
+ {
+ title: "Latency (ms)",
+ key: "latency",
+ },
+ {
+ title: "Use Interval (Month) ",
+ key: "use_interval",
+ },
-export const ADDRESS = [
{
- "id": "1",
- "name": "Beijing",
- "city": [
- {
- "id": "101",
- "name": "Beijing",
- "county": [
- {
- "id": "1001",
- "name": "Haiding District",
- },
- {
- "id": "1002",
- "name": "Xicheng District",
- },
- {
- "id": "1003",
- "name": "Changping District"
- }
- ]
- }
- ]
+ title: "Activity Factor(%)",
+ key: "activity_factor",
+ },
+ {
+ title: "Resource Sharing Level",
+ key: "resource_sharing_level",
+ },
+ {
+ title: "Max Number of UEs",
+ key: "max_number_of_ues",
+ },
+ {
+ title: "Uplink Regional Traffic Density(Mbps/km )",
+ key: "area_traffic_cap_ul",
},
{
- "id": "2",
- "name": "Shanghai",
- "city": [{
- "id": "201",
- "name": "Shanghai City",
- "county": [
- {
- "id": "2001",
- "name": "Pudongxin District",
- },
- {
- "id": "2002",
- "name": "Jingan District"
- }
- ]
- }]
- }
-]
+ title: "Downlink Regional Traffic Density(Mbps/km )",
+ key: "area_traffic_cap_dl",
+ },
+ {
+ title: "Availability",
+ key: "serviceProfile_Availability",
+ },
+ {
+ title: "PLMNIdList",
+ key: "serviceProfile_PLMNIdList",
+ },
+ {
+ title: "Reliability",
+ key: "serviceProfile_Reliability",
+ },
+ {
+ title: "Uplink throughput per UE",
+ key: "serviceProfile_ULThptPerUE",
+ },
+ {
+ title: "Downlink throughput per UE",
+ key: "serviceProfile_DLThptPerUE",
+ },
+ {
+ title: "Uplink throughput per network slice",
+ key: "serviceProfile_ULThptPerSlice",
+ },
+ {
+ title: "Downlink throughput per network slice",
+ key: "serviceProfile_DLThptPerSlice",
+ },
+ {
+ title: "Maximum packet size",
+ key: "serviceProfile_MaxPktSize",
+ },
+ {
+ title: "Maximum Number of Connections",
+ key: "serviceProfile_MaxNumberofConns",
+ },
+ {
+ title: "Terminal density",
+ key: "serviceProfile_TermDensity",
+ },
+ {
+ title: "jitter",
+ key: "serviceProfile_Jitter",
+ },
+ {
+ title: "survivalTime",
+ key: "serviceProfile_SurvivalTime",
+ },
-export const NexthopInfo_Options = [
- {
- title:"test_info_01",
- key:"test_info_01"
- },
- {
- title:"test_info_02",
- key:"test_info_02"
- },
- {
- title:"test_info_03",
- key:"test_info_03"
- }
-]
+ [
+ {
+ title: "Area",
+ key: "area",
+ },
+ ],
+];
-export const BUSINESS_STATUS = [
- "All", "Activated", "Deactivated"
-]
+export const BUSINESS_STATUS = ["All", "Activated", "Deactivated"];
|