{"version":3,"sources":["history.js","theme.js","dispatcher.js","stores/helpers.js","stores/SessionStore.js","components/TopNav.js","components/AutocompleteSelect.js","stores/OrganizationStore.js","components/Admin.js","components/SideNav.js","components/Footer.js","stores/NotificationStore.js","components/Notifications.js","components/TitleBar.js","components/TitleBarTitle.js","components/TableCellLink.js","components/TitleBarButton.js","components/Paper.js","components/DataTable.js","stores/NetworkServerStore.js","views/network-servers/ListNetworkServers.js","classes/FormComponent.js","components/Form.js","components/FormControl.js","views/network-servers/NetworkServerForm.js","views/network-servers/CreateNetworkServer.js","views/network-servers/UpdateNetworkServer.js","views/network-servers/NetworkServerLayout.js","stores/GatewayProfileStore.js","views/gateway-profiles/ListGatewayProfiles.js","views/gateway-profiles/GatewayProfileForm.js","views/gateway-profiles/CreateGatewayProfile.js","views/gateway-profiles/UpdateGatewayProfile.js","views/gateway-profiles/GatewayProfileLayout.js","views/organizations/ListOrganizations.js","views/organizations/OrganizationForm.js","views/organizations/CreateOrganization.js","views/organizations/UpdateOrganization.js","views/organizations/OrganizationLayout.js","views/organizations/ListOrganizationUsers.js","views/organizations/OrganizationUserForm.js","views/organizations/UpdateOrganizationUser.js","views/organizations/OrganizationUserLayout.js","stores/UserStore.js","views/organizations/CreateOrganizationUser.js","views/organizations/OrganizationRedirect.js","views/users/Login.js","views/users/ListUsers.js","views/users/UserForm.js","views/users/CreateUser.js","views/users/UpdateUser.js","views/users/UserLayout.js","views/users/ChangeUserPassword.js","stores/ServiceProfileStore.js","views/service-profiles/ListServiceProfiles.js","views/service-profiles/ServiceProfileForm.js","views/service-profiles/CreateServiceProfile.js","views/service-profiles/UpdateServiceProfile.js","views/service-profiles/ServiceProfileLayout.js","stores/DeviceProfileStore.js","views/device-profiles/ListDeviceProfiles.js","views/device-profiles/DeviceProfileForm.js","views/device-profiles/CreateDeviceProfile.js","views/device-profiles/UpdateDeviceProfile.js","views/device-profiles/DeviceProfileLayout.js","stores/GatewayStore.js","views/gateways/ListGateways.js","components/MapTileLayer.js","views/gateways/GatewayDetails.js","stores/LocationStore.js","components/EUI64Field.js","components/AESKeyField.js","views/gateways/GatewayForm.js","views/gateways/UpdateGateway.js","views/gateways/GatewayDiscovery.js","components/JSONTree.js","components/LoRaWANFrameLog.js","views/gateways/GatewayFrames.js","views/gateways/GatewayLayout.js","views/gateways/CreateGateway.js","stores/ApplicationStore.js","views/applications/ListApplications.js","views/applications/ApplicationForm.js","views/applications/CreateApplication.js","stores/DeviceStore.js","views/devices/ListDevices.js","views/applications/UpdateApplication.js","views/applications/ListIntegrations.js","stores/FUOTADeploymentStore.js","views/fuota/ListFUOTADeploymentsForApplication.js","views/applications/ApplicationLayout.js","views/applications/IntegrationForm.js","views/applications/CreateIntegration.js","views/applications/UpdateIntegration.js","stores/MulticastGroupStore.js","views/multicast-groups/ListMulticastGroups.js","views/multicast-groups/MulticastGroupForm.js","views/multicast-groups/CreateMulticastGroup.js","views/multicast-groups/UpdateMulticastGroup.js","views/multicast-groups/ListMulticastGroupDevices.js","views/multicast-groups/MulticastGroupLayout.js","views/multicast-groups/AddDeviceToMulticastGroup.js","views/devices/DeviceForm.js","views/devices/CreateDevice.js","views/devices/UpdateDevice.js","views/devices/DeviceKeys.js","components/DevAddrField.js","views/devices/DeviceActivation.js","views/devices/DeviceData.js","views/devices/DeviceFrames.js","views/fuota/ListFUOTADeploymentsForDevice.js","views/devices/DeviceQueueItemForm.js","stores/DeviceQueueStore.js","views/devices/DeviceDetails.js","views/devices/DeviceLayout.js","views/search/Search.js","components/DurationField.js","views/fuota/FUOTADeploymentForm.js","views/fuota/CreateFUOTADeploymentForDevice.js","views/fuota/FUOTADeploymentDetails.js","views/fuota/ListFUOTADeploymentDevices.js","views/fuota/FUOTADeploymentLayout.js","App.js","index.js"],"names":["createHashHistory","theme","createMuiTheme","palette","primary","blue","dispatcher","Dispatcher","checkStatus","response","status","json","errorHandler","error","undefined","dispatch","type","notification","message","obj","code","history","push","errorHandlerLogin","errorHandlerIgnoreNotFound","location","pathname","errorHandlerIgnoreNotFoundWithCallback","callbackFunc","sessionStore","SessionStore","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","client","user","organizations","settings","branding","swagger","Swagger","getClientOpts","then","getToken","fetchProfile","_this2","requestInterceptor","req","headers","token","localStorage","setItem","getItem","orgID","id","emit","isAdmin","organizationID","i","length","login","callBackFunc","_this3","apis","InternalService","Login","body","resp","setToken","jwt","catch","clear","_this4","Profile","search","limit","offset","GlobalSearch","Branding","EventEmitter","styles","appBar","zIndex","drawer","menuButton","marginLeft","marginRight","hidden","display","flex","logo","height","spacing","unit","color","common","white","background","width","padding","borderRadius","avatar","chip","&:hover","&:active","iconButton","TopNav","state","menuAnchor","handleDrawerToggle","bind","assertThisInitialized","onMenuOpen","onMenuClose","onLogout","onSearchChange","onSearchSubmit","e","setState","currentTarget","logout","props","setDrawerOpen","drawerOpen","target","value","preventDefault","concat","encodeURIComponent","drawerIcon","react_default","a","createElement","Backburger_default","mdi_material_ui_Menu_default","open","Boolean","AppBar_default","className","classes","Toolbar_default","index_es","aria-label","onClick","src","alt","onSubmit","Input_default","placeholder","disableUnderline","onChange","startAdornment","InputAdornment_default","position","Magnify_default","href","HelpCircle_default","Chip_default","Avatar_default","AccountCircle_default","label","username","root","Menu_default","anchorEl","anchorOrigin","vertical","horizontal","transformOrigin","onClose","MenuItem_default","component","Link","to","Component","withStyles","withRouter","Option","handleClick","event","onSelect","option","_this$props","children","isFocused","isSelected","onFocus","selected","style","fontWeight","SelectWrapped","other","objectWithoutProperties","react_select_es","Async","assign","optionComponent","noResultsText","Typography_default","arrowRenderer","arrowProps","isOpen","MenuUp_default","MenuDown_default","clearRenderer","Close_default","valueComponent","valueProps","onRemove","onDelete","stopPropagation","tabIndex","deleteIcon","Cancel_default","onTouchEnd","AutocompleteSelect","options","setInitialOptions","setSelectedOption","onAutocomplete","prevProps","triggerReload","getOptions","getOption","selectedOption","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","Symbol","iterator","next","done","opt","err","return","input","_this5","complete","v","inputProps","FormControl_default","margin","fullWidth","inputComponent","objectSpread","instanceId","clearable","loadOptions","@global",".Select-control","alignItems","border","boxShadow",".Select-multi-value-wrapper","flexGrow","flexWrap",".Select--multi .Select-input",".Select.has-value.is-clearable.Select--single > .Select-control .Select-value",".Select-noresults",".Select-input",".Select-input input","cursor","fontFamily","fontSize","outline",".Select-placeholder, .Select--single .Select-value","top","left","right","bottom","typography","pxToRem",".Select-value","paddingLeft",".Select-placeholder","opacity","black",".Select-menu-outer","backgroundColor","paper","shadows","maxHeight","ITEM_HEIGHT",".Select.is-focused:not(.is-open) > .Select-control",".Select-menu","overflowY",".Select-menu div","boxSizing",".Select-arrow-zone, .Select-clear-zone","action","active",".Select-aria-only","overflow","clip","organizationStore","OrganizationStore","organization","OrganizationService","Create","notify","Get","Update","organization.id","Delete","List","AddUser","organization_user.organization_id","organizationUser","userID","GetUser","organization_id","user_id","DeleteUser","UpdateUser","organization_user.user_id","ListUsers","Admin","admin","setIsAdmin","on","removeListener","isOrganizationAdmin","drawerPaper","paddingTop","select","paddingRight","paddingBottom","SideNav","cacheCounter","getOrganizationOption","getOrganizationOptions","getOrganizationFromLocation","get","getOrganizationID","org","match","exec","setOrganizationID","name","list","result","map","o","Drawer_default","variant","anchor","components_Admin","List_default","ListItem_default","button","ListItemIcon_default","Server_default","ListItemText_default","RadioTower_default","Domain_default","Account_default","Divider_default","components_AutocompleteSelect","Settings_default","AccountDetails_default","Tune_default","canHaveGateways","Apps_default","Rss_default","footer","& a","main","textDecoration","Footer","getBranding","align","dangerouslySetInnerHTML","__html","notificationStore","NotificationStore","notifications","Date","now","n","splice","indexOf","createNotification","deleteNotification","register","handleActions","Item","reason","Snackbar_default","autoHideDuration","IconButton_default","key","Notifications","getAll","Notifications_Item","TitleBar","Grid_default","item","xs","buttons","float","title","marginTop","marginBottom","link","TitleBarTitle","combinedStyles","classNames","TableCellLink","TableCell_default","icon","TitleBarButton","React","cloneElement","Button_default","PaperComponent","Paper_default","DataTable","count","rowsPerPage","page","loaded","rows","onChangePage","onChangeRowsPerPage","getPage","parseInt","totalCount","row","getRow","components_Paper","Table_default","table","TableHead_default","header","TableBody_default","TablePagination_default","networkServerStore","NetworkServerStore","networkServer","NetworkServerService","notifiy","network_server.id","window","test","ListNetworkServers","TableRow_default","components_TableCellLink","server","container","components_TitleBar","components_TitleBarButton","Plus_default","components_TitleBarTitle","components_DataTable","FormComponent","lookup","split","field","pop","object","checked","Form","justify","formControl","extraButtons","submitLabel","disabled","formLabel","FormControlComponent","FormLabel_default","NetworkServerForm","tab","onChangeTab","components_Form","Tabs_default","indicatorColor","textColor","Tab_default","TextField_default","helperText","required","components_FormControl","FormGroup_default","FormControlLabel_default","control","Checkbox_default","gatewayDiscoveryEnabled","FormHelperText_default","gatewayDiscoveryInterval","gatewayDiscoveryTXFrequency","gatewayDiscoveryDR","caCert","multiline","tlsCert","tlsKey","routingProfileCACert","routingProfileTLSCert","routingProfileTLSKey","CreateNetworkServer","create","Card_default","network_servers_NetworkServerForm","UpdateNetworkServer","update","NetworkServerLayout","deleteNetworkServer","params","networkServerID","confirm","delete","Delete_default","region","version","network_servers_UpdateNetworkServer","gatewayProfileStore","GatewayProfileStore","gatewayProfile","GatewayProfileService","gateway_profile.id","ListGatewayProfiles","networkServerName","ExtraChannel","channel","sfStr","sf","spreadingFactorsStr","spreadingFactors","join","InputLabel_default","htmlFor","Select_default","modulation","bandwidth","frequency","pattern","bitrate","GatewayProfileForm","addExtraChannel","getNetworkServerOption","getNetworkServerOptions","esm_get","prototype","channels","channelsStr","c","extraChannels","ec","ns","GatewayProfileForm_ExtraChannel","deleteExtraChannel","updateExtraChannel","CreateGatewayProfile","nsDialog","closeDialog","Dialog_default","DialogTitle_default","DialogContent_default","DialogContentText_default","paragraph","DialogActions_default","card","gateway_profiles_GatewayProfileForm","UpdateGatewayProfile","GatewayProfileLayout","deleteGatewayProfile","gatewayProfileID","gateway_profiles_UpdateGatewayProfile","ListOrganizations","Check_default","displayName","OrganizationForm","CreateOrganization","organizations_OrganizationForm","UpdateOrganization","OrganzationStore","CardContent_default","OrganizationLayout","loadData","deleteOrganization","Switch","Route","exact","path","render","Redirect","url","organizations_UpdateOrganization","ListOrganizationUsers","listUsers","OrganizationUserForm","UpdateOrganizationUser","updateUser","organizations_OrganizationUserForm","OrganizationUserLayout","deleteOrganizationUser","getUser","deleteUser","organizations_UpdateOrganizationUser","userStore","UserStore","password","UserService","user.id","UpdatePassword","tabs","borderBottom","divider","AssignUserForm","getUserOptions","u","CreateUserForm","email","note","CreateOrganizationUser","assignUser","onAssignUser","onCreateUser","setAssignUser","getSettings","disableAssignExistingUsers","addUser","orgs","isActive","CreateOrganizationUser_AssignUserForm","CreateOrganizationUser_CreateUserForm","OrganizationRedirect","textField","LoginForm","registration","lg","CardHeader_default","Login_LoginForm","UserForm","CreateUser","users_UserForm","UserLayout","KeyVariant_default","users_UpdateUser","PasswordForm","ChangeUserPassword","updatePassword","ChangeUserPassword_PasswordForm","serviceProfileStore","ServiceProfileStore","serviceProfile","ServiceProfileService","service_profile.id","ojb","ListServiceProfiles","ServiceProfileForm","FormLabel","addGWMetaData","nwkGeoLoc","devStatusReqFreq","reportDevStatusBattery","reportDevStatusMargin","drMin","drMax","CreateServiceProfile","sp","service_profiles_ServiceProfileForm","UpdateServiceProfile","ServiceProfileLayout","deleteServiceProfile","serviceProfileID","service_profiles_UpdateServiceProfile","deviceProfileStore","DeviceProfileStore","deviceProfile","DeviceProfileService","device_profile.id","applicationID","ListDeviceProfiles","DeviceProfileForm","onTabChange","getMACVersionOptions","getRegParamsOptions","getPingSlotPeriodOptions","getPayloadCodecOptions","onCodeChange","editor","data","newCode","freqsStr","f","factoryPresetFreqsStr","factoryPresetFreqs","codeMirrorOptions","lineNumbers","mode","payloadEncoderScript","payloadDecoderScript","macVersion","regParamsRevision","maxEIRP","supportsJoin","rxDelay1","rxDROffset1","rxDataRate2","rxFreq2","supportsClassB","classBTimeout","pingSlotPeriod","pingSlotDR","pingSlotFreq","supportsClassC","classCTimeout","payloadCodec","react_codemirror2","onBeforeChange","codeMirror","CreateDeviceProfile","spDialog","device_profiles_DeviceProfileForm","UpdateDeviceProfile","DeviceProfileLayout","deleteDeviceProfile","deviceProfileID","device_profiles_UpdateDeviceProfile","gatewayStore","GatewayStore","wsStatus","gateway","GatewayService","gateway.id","gatewayID","start","end","GetStats","gateway_id","interval","startTimestamp","endTimestamp","GetLastPing","onOpen","onData","loc","wsURL","host","wsProtocol","protocol","conn","RobustWebSocket","addEventListener","console","log","msg","JSON","parse","GatewayRow","moment","subtract","toISOString","getStats","stats","labels","datasets","fillColor","timestamp","rxPacketsReceivedOK","txPacketsEmitted","react_chartjs_2_es","scales","xAxes","yAxes","tooltips","enabled","legend","responsive","animation","duration","ListGateways","ListGateways_GatewayRow","chart","MapTileLayer","TileLayer","attribution","GatewayDetails","loadStats","statsDown","borderColor","lineTension","pointBackgroundColor","statsUp","format","statsOptions","maintainAspectRatio","latitude","longitude","lastseen","lastSeenAt","fromNow","gutterBottom","altitude","Map","center","zoom","animate","scrollWheelZoom","components_MapTileLayer","Marker","redraw","locationStore","navigator","geolocation","getCurrentPosition","getGeoIPLocation","fetch","responseData","coords","EUI64HEXMask","inputRef","reactTextMask_default","ref","mask","EUI64Field","toggleByteOrder","msb","bytes","reverse","randomKey","charAt","Math","floor","random","str","InputProps","endAdornment","Tooltip_default","Refresh_default","AESKeyHEXMask","AESKeyField","toggleShowPassword","showKey","EyeOff_default","Eye_default","boardStyles","GatewayBoardForm","board","components_EUI64Field","fpgaID","components_AESKeyField","fineTimestampKey","mapLabel","GatewayForm","mapZoom","getGatewayProfileOption","getGatewayProfileOptions","setCurrentPosition","updatePosition","updateZoom","addGatewayBoard","LocationStore","getLocation","refs","marker","leafletElement","getLatLng","lat","lng","getZoom","gp","boards","b","GatewayForm_GatewayBoardForm","deleteGatewayBoard","updateGatewayBoard","description","cache","discoveryEnabled","onZoomend","draggable","onDragend","UpdateGateway","gateways_GatewayForm","GatewayDiscovery","getLastPing","ping","dbm","pingRX","dense","bounds","markers","lines","Popup","dr","rx","pingPos","rssi","LoRaSNR","Polyline","positions","getColor","weight","maxZoom","GatewayDiscovery_LegendControl","mapLegend","mapLegendList","mapLegendListItem","LegendControl","L","jsx","onAdd","div","DomUtil","ReactDOM","MapControl","withLeaflet","listStyle","JSONTree","lib_default","scheme","author","base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F","hideRoot","shouldExpandNode","headerColumn","headerColumnFixedSmall","headerColumnFixedWide","treeStyle","lineHeight","LoRaWANFrameLog","dir","devID","frame","uplinkMetaData","receivedAt","mType","phyPayload","mhdr","macPayload","devEUI","fhdr","devAddr","ExpansionPanel_default","ExpansionPanelSummary_default","expandIcon","ChevronDown_default","ExpansionPanelDetails_default","components_JSONTree","downlinkMetaData","textAlign","progress","GatewayFrames","connected","paused","frames","dialogOpen","onFrame","onDownload","togglePause","onClear","toggleHelpDialog","setConnected","getFrameLogsConnection","wsConn","close","dl","fileDownload","stringify","getWSStatus","uplinkFrame","unshift","getTime","rxInfo","txInfo","phyPayloadJSON","downlinkFrame","components_LoRaWANFrameLog","aria-labelledby","aria-describedby","HelpCircleOutline_default","Pause_default","Play_default","Download_default","AlertCircleOutline_default","CircularProgress_default","GatewayLayout","deleteGateway","locationToTab","endsWith","gateways_GatewayDetails","gateways_UpdateGateway","gateways_GatewayDiscovery","gateways_GatewayFrames","CreateGateway","applicationStore","ApplicationStore","application","ApplicationService","application.id","ListIntegrations","application_id","integration","CreateHTTPIntegration","integration.application_id","integrationNotification","GetHTTPIntegration","_this6","UpdateHTTPIntegration","_this7","DeleteHTTPIntegration","_this8","CreateInfluxDBIntegration","GetInfluxDBIntegration","_this9","UpdateInfluxDBIntegration","_this10","DeleteInfluxDBIntegration","_this11","CreateThingsBoardIntegration","GetThingsBoardIntegration","_this12","UpdateThingsBoardIntegration","_this13","DeleteThingsBoardIntegration","kind","ListApplications","serviceProfileName","ApplicationForm","getServiceProfileOption","getServiceProfileOptions","CreateApplication","app","applications_ApplicationForm","deviceStore","DeviceStore","wsDataStatus","wsFramesStatus","device","DeviceService","dev_eui","device.dev_eui","filters","GetKeys","deviceKeys","CreateKeys","device_keys.dev_eui","notifyKeys","UpdateKeys","GetActivation","deviceActivation","Activate","device_activation.dev_eui","GetRandomDevAddr","ListDevices","battery","deviceStatusExternalPowerSource","deviceStatusBatteryLevelUnavailable","deviceStatusBatteryLevel","PowerPlug_default","deviceStatusMargin","UpdateApplication","listIntegrations","toLowerCase","fuotaDeploymentStore","FUOTADeploymentStore","fuotaDeployment","FUOTADeploymentService","CreateForDevice","ListDeploymentDevices","fuotaDeploymentID","GetDeploymentDevice","fuota_deployment_id","ListFUOTADeploymentsForApplication","createdAt","updatedAt","ApplicationLayout","deleteApplication","oldProps","applications_UpdateApplication","applications_ListIntegrations","devices_ListDevices","fuota_ListFUOTADeploymentsForApplication","HTTPIntegrationHeaderForm","index","HTTPIntegrationForm","addHeader","onDeleteHeader","onChangeHeader","h","IntegrationForm_HTTPIntegrationHeaderForm","uplinkDataURL","joinNotificationURL","statusNotificationURL","locationNotificationURL","ackNotificationURL","errorNotificationURL","InfluxDBIntegrationForm","endpoint","db","retentionPolicyName","precision","getPrecisionOptions","ThingsBoardIntegrationForm","IntegrationForm","getKindOptions","onFormChange","IntegrationForm_HTTPIntegrationForm","IntegrationForm_InfluxDBIntegrationForm","IntegrationForm_ThingsBoardIntegrationForm","CreateIntegration","integr","createHTTPIntegration","createInfluxDBIntegration","createThingsBoardIntegration","applications_IntegrationForm","UpdateIntegration","deleteIntegration","getHTTPIntegration","getInfluxDBIntegration","getThingsBoardIntegration","updateHTTPIntegration","updateInfluxDBIntegration","updateThingsBoardIntegration","deleteHTTPIntegration","deleteInfluxDBIntegration","deleteThingsBoardIntegration","multicastGroupStore","MulticastGroupStore","multicastGroup","MulticastGroupService","multicast_group.id","multicastGroupID","AddDevice","multicast_group_id","notifyDevice","RemoveDevice","idColumn","whiteSpace","ListMulticastGroups","MulticastGroupForm","len","getRandomKey","mcAddr","mcNwkSKey","mcAppSKey","fCnt","groupType","getGroupTypeOptions","CreateMulticastGroup","multicast_groups_MulticastGroupForm","UpdateMulticastGroup","ListMulticastGroupDevices","removeDevice","forceUpdate","MulticastGroupLayout","deleteMulticastGroup","multicast_groups_UpdateMulticastGroup","multicast_groups_ListMulticastGroupDevices","AddDeviceForm","getDeviceOption","getDeviceOptions","d","AddDeviceToMulticastGroup","addDevice","AddDeviceToMulticastGroup_AddDeviceForm","DeviceKVForm","DeviceForm","setKVArrays","variables","tags","addKV","kvs","onChangeKV","forEach","ss","onDeleteKV","getDeviceProfileOption","getDeviceProfileOptions","dp","DeviceForm_DeviceKVForm","skipFCntCheck","CreateDevice","dpDialog","dev","devices_DeviceForm","UpdateDevice","LW11DeviceKeysForm","nwkKey","appKey","LW10DeviceKeysForm","genAppKey","DeviceKeys","getKeys","updateKeys","keys","createKeys","startsWith","DeviceKeys_LW10DeviceKeysForm","DeviceKeys_LW11DeviceKeysForm","DevAddrMask","DevAddrField","randomFunc","k","LW10DeviceActivationForm","getRandomDevAddr","cb","components_DevAddrField","nwkSEncKey","appSKey","fCntUp","nFCntDown","LW11DeviceActivationForm","sNwkSIntKey","fNwkSIntKey","aFCntDown","DeviceActivation","getActivation","act","activate","showForm","DeviceActivation_LW10DeviceActivationForm","DeviceActivation_LW11DeviceActivationForm","DeviceDataItem","payload","DeviceData","getDataLogsConnection","getWSDataStatus","payloadJSON","DeviceData_DeviceDataItem","DeviceFrames","getWSFramesStatus","ListFUOTADeploymentsForDevice","detailDialog","onCloseDialog","showDetails","size","getDeploymentDevice","deploymentDevice","fddUpdatedAt","errorMessage","CloudUpload_default","DeviceQueueItemForm","objectCode","jsonObject","fPort","confirmed","deviceQueueStore","DeviceQueueStore","DeviceQueueService","Flush","Enqueue","device_queue_item.dev_eui","deviceQueueItem","DetailsCard","StatusCard","EnqueueCard","queueItem","qi","enqueue","devices_DeviceQueueItemForm","QueueCardRow","QueueCard","getQueue","deviceQueueItems","flushQueue","flush","DeviceDetails_QueueCardRow","DeviceDetails","DeviceDetails_DetailsCard","DeviceDetails_StatusCard","DeviceDetails_EnqueueCard","DeviceDetails_QueueCard","DeviceLayout","deleteDevice","getDevice","scrollButtons","devices_DeviceDetails","devices_UpdateDevice","devices_DeviceKeys","devices_DeviceActivation","devices_DeviceData","devices_DeviceFrames","fuota_ListFUOTADeploymentsForDevice","ApplicationResult","applicationName","organizationName","OrganizationResult","DeviceResult","deviceDevEUI","deviceName","GatewayResult","gatewayMAC","gatewayName","Search","query","URLSearchParams","globalSearch","r","Search_ApplicationResult","Search_OrganizationResult","Search_DeviceResult","Search_GatewayResult","DurationField","replace","FUOTADeploymentForm","file","onFileChange","files","reader","FileReader","onload","encoded","readAsDataURL","fileLabel","redundancy","components_DurationField","unicastTimeout","multicastTimeout","getMulticastTimeoutOptions","CreateFUOTADeploymentForDevice","createForDevice","fuota_FUOTADeploymentForm","FUOTADeploymentDetails","unix","nextStepAfter","progressScaled","lastReload","emitReload","stepProgress","timer","setInterval","clearInterval","LinearProgress_default","FUOTADeploymentDevices","listDeploymentDevices","FUOTADeploymentLayout","getFuotaDeployment","fuota_FUOTADeploymentDetails","ListFUOTADeploymentDevices","minHeight","flexDirection","text","secondary","mainDrawerOpen","drawerWidth","footerDrawerOpen","App","topNav","sideNav","components_TopNav","components_SideNav","Router","Fragment","CssBaseline_default","components_Footer","components_Notifications","Leaflet","Icon","Default","imagePath","src_App","document","getElementById"],"mappings":"qWACeA,kCCSAC,EANDC,yBAAe,CACzBC,QAAS,CACPC,QAASC,0SCJAC,GAAA,WAAIC,YCEZ,SAASC,GAAYC,GAC1B,GAAIA,EAASC,QAAU,KAAOD,EAASC,OAAS,IAC9C,OAAOD,EAEP,MAAMA,EAASE,OAIZ,SAASC,GAAaC,QACLC,IAAnBD,EAAMJ,SACPH,GAAWS,SAAS,CAClBC,KAAM,sBACNC,aAAc,CACZD,KAAM,Q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KAChFre,EAAAC,EAAAC,cAACkc,EAAA,EAAD,CAAOC,OAAK,EAACC,KAAK,2DAAyD7Z,UAAWwa,KACtFjd,EAAAC,EAAAC,cAACkc,EAAA,EAAD,CAAOE,KAAK,uCAAsC7Z,UAAWuZ,KAE7Dhc,EAAAC,EAAAC,cAACkc,EAAA,EAAD,CAAOC,OAAK,EAACC,KAAK,UAAU7Z,UAAW2mC,QAI7CppC,EAAAC,EAAAC,cAAA,OAAKM,UAAW5G,KAAK6E,MAAMgB,WAAa7F,KAAK2F,MAAMkB,QAAQ+rC,iBAAmB,IAC5ExsC,EAAAC,EAAAC,cAAC+sC,GAAD,QAGJjtC,EAAAC,EAAAC,cAACgtC,GAAD,gBA7GMtqC,aAqHHC,wBAAW/F,GAAX+F,CAAmB4pC,gCC1NlCU,IAAQC,KAAKC,QAAQC,UAAY,yDAEjC7c,IAASlU,OAAOvc,EAAAC,EAAAC,cAACqtC,GAAD,MAASC,SAASC,eAAe","file":"static/js/main.b9005afa.chunk.js","sourcesContent":["import { createHashHistory } from 'history';\nexport default createHashHistory();\n","import { createMuiTheme } from \"@material-ui/core/styles\";\nimport blue from \"@material-ui/core/colors/blue\";\n\n\nconst theme = createMuiTheme({\n palette: {\n primary: blue,\n },\n});\n \nexport default theme;\n","import { Dispatcher } from \"flux\";\n\nexport default new Dispatcher();\n","import dispatcher from \"../dispatcher\";\nimport history from '../history';\n\n\nexport function checkStatus(response) {\n if (response.status >= 200 && response.status < 300) {\n return response\n } else {\n throw response.json();\n }\n};\n\nexport function errorHandler(error) {\n if(error.response === undefined) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: error.message,\n },\n });\n } else {\n if (error.response.obj.code === 16) {\n history.push(\"/login\");\n } else {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: error.response.obj.error + \" (code: \" + error.response.obj.code + \")\",\n },\n });\n }\n }\n};\n\nexport function errorHandlerLogin(error) {\n if(error.response === undefined) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: error.message,\n },\n });\n } else {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: error.response.obj.error + \" (code: \" + error.response.obj.code + \")\",\n },\n });\n }\n};\n\nexport function errorHandlerIgnoreNotFound(error) {\n if (error.response === undefined) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: error.message,\n },\n });\n } else {\n if (error.response.obj.code === 16 && history.location.pathname !== \"/login\") {\n history.push(\"/login\");\n } else if (error.response.obj.code !== 5) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: error.response.obj.error + \" (code: \" + error.response.obj.code + \")\",\n },\n });\n }\n }\n};\n\nexport function errorHandlerIgnoreNotFoundWithCallback(callbackFunc) {\n return function(error) {\n if (error.response.obj.code === 5) {\n callbackFunc(null);\n } else {\n errorHandlerIgnoreNotFound(error);\n }\n }\n}\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\nimport { checkStatus, errorHandler, errorHandlerLogin } from \"./helpers\";\n\n\nclass SessionStore extends EventEmitter {\n constructor() {\n super();\n this.client = null;\n this.user = null;\n this.organizations = [];\n this.settings = {};\n this.branding = {};\n\n this.swagger = Swagger(\"/swagger/internal.swagger.json\", this.getClientOpts())\n \n this.swagger.then(client => {\n this.client = client;\n\n if (this.getToken() !== null) {\n this.fetchProfile(() => {});\n }\n });\n }\n\n getClientOpts() {\n return {\n requestInterceptor: (req) => {\n if (this.getToken() !== null) {\n req.headers[\"Grpc-Metadata-Authorization\"] = \"Bearer \" + this.getToken();\n }\n return req;\n },\n }\n }\n\n setToken(token) {\n localStorage.setItem(\"jwt\", token);\n }\n\n getToken() {\n return localStorage.getItem(\"jwt\");\n }\n\n getOrganizationID() {\n const orgID = localStorage.getItem(\"organizationID\");\n if (orgID === \"\") {\n return null;\n }\n\n return orgID;\n }\n\n setOrganizationID(id) {\n localStorage.setItem(\"organizationID\", id);\n this.emit(\"organization.change\");\n }\n\n getUser() {\n return this.user;\n }\n\n getSettings() {\n return this.settings;\n }\n\n isAdmin() {\n if (this.user === undefined || this.user === null) {\n return false;\n }\n return this.user.isAdmin;\n }\n\n isOrganizationAdmin(organizationID) {\n for (let i = 0; i < this.organizations.length; i++) {\n if (this.organizations[i].organizationID === organizationID) {\n return this.organizations[i].isAdmin;\n }\n }\n }\n\n login(login, callBackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.Login({body: login})\n .then(checkStatus)\n .then(resp => {\n this.setToken(resp.obj.jwt);\n this.fetchProfile(callBackFunc);\n })\n .catch(errorHandlerLogin);\n });\n }\n\n logout(callBackFunc) {\n localStorage.clear();\n this.user = null;\n this.organizations = [];\n this.settings = {};\n this.emit(\"change\");\n callBackFunc();\n }\n\n fetchProfile(callBackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.Profile({})\n .then(checkStatus)\n .then(resp => {\n this.user = resp.obj.user;\n\n if(resp.obj.organizations !== undefined) {\n this.organizations = resp.obj.organizations;\n }\n\n if(resp.obj.settings !== undefined) {\n this.settings = resp.obj.settings;\n }\n\n this.emit(\"change\");\n callBackFunc();\n })\n .catch(errorHandler);\n });\n }\n\n globalSearch(search, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.GlobalSearch({\n search: search,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getBranding(callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.Branding({})\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n}\n\nconst sessionStore = new SessionStore();\nexport default sessionStore;\n","import React, { Component } from \"react\";\nimport { withRouter, Link } from 'react-router-dom';\n\nimport AppBar from \"@material-ui/core/AppBar\";\nimport Toolbar from \"@material-ui/core/Toolbar\";\nimport { withStyles } from \"@material-ui/core/styles\";\nimport { IconButton } from \"@material-ui/core\";\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Menu from '@material-ui/core/Menu';\nimport Input from \"@material-ui/core/Input\";\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\nimport blue from \"@material-ui/core/colors/blue\";\nimport Avatar from '@material-ui/core/Avatar';\nimport Chip from '@material-ui/core/Chip';\n\nimport MenuIcon from \"mdi-material-ui/Menu\";\nimport Backburger from \"mdi-material-ui/Backburger\";\nimport AccountCircle from \"mdi-material-ui/AccountCircle\";\nimport Magnify from \"mdi-material-ui/Magnify\";\nimport HelpCicle from \"mdi-material-ui/HelpCircle\";\n\nimport SessionStore from \"../stores/SessionStore\";\nimport theme from \"../theme\";\n\n\nconst styles = {\n appBar: {\n zIndex: theme.zIndex.drawer + 1,\n },\n menuButton: {\n marginLeft: -12,\n marginRight: 10,\n },\n hidden: {\n display: \"none\",\n },\n flex: {\n flex: 1,\n },\n logo: {\n height: 32,\n },\n search: {\n marginRight: 3 * theme.spacing.unit,\n color: theme.palette.common.white,\n background: blue[400],\n width: 450,\n padding: 5,\n borderRadius: 3,\n },\n avatar: {\n background: blue[600],\n color: theme.palette.common.white,\n },\n chip: {\n background: blue[600],\n color: theme.palette.common.white,\n marginRight: theme.spacing.unit,\n \"&:hover\": {\n background: blue[400],\n },\n \"&:active\": {\n background: blue[400],\n },\n },\n iconButton: {\n color: theme.palette.common.white,\n marginRight: theme.spacing.unit,\n },\n};\n\n\nclass TopNav extends Component {\n constructor() {\n super();\n\n this.state = {\n menuAnchor: null,\n search: \"\",\n };\n\n this.handleDrawerToggle = this.handleDrawerToggle.bind(this);\n this.onMenuOpen = this.onMenuOpen.bind(this);\n this.onMenuClose = this.onMenuClose.bind(this);\n this.onLogout = this.onLogout.bind(this);\n this.onSearchChange = this.onSearchChange.bind(this);\n this.onSearchSubmit = this.onSearchSubmit.bind(this);\n }\n\n onMenuOpen(e) {\n this.setState({\n menuAnchor: e.currentTarget,\n });\n }\n\n onMenuClose() {\n this.setState({\n menuAnchor: null,\n });\n }\n\n onLogout() {\n SessionStore.logout(() => {\n this.props.history.push(\"/login\");\n });\n }\n\n handleDrawerToggle() {\n this.props.setDrawerOpen(!this.props.drawerOpen);\n }\n\n onSearchChange(e) {\n this.setState({\n search: e.target.value,\n });\n }\n\n onSearchSubmit(e) {\n e.preventDefault();\n this.props.history.push(`/search?search=${encodeURIComponent(this.state.search)}`);\n }\n\n render() {\n let drawerIcon;\n if (!this.props.drawerOpen) {\n drawerIcon = ;\n } else {\n drawerIcon = ;\n }\n\n const open = Boolean(this.state.menuAnchor);\n\n return(\n \n \n \n {drawerIcon}\n \n\n
\n \"LoRa\n
\n\n
\n \n \n \n }\n />\n \n\n \n \n \n \n \n\n \n \n \n }\n label={this.props.user.username}\n onClick={this.onMenuOpen}\n classes={{\n avatar: this.props.classes.avatar,\n root: this.props.classes.chip,\n }}\n />\n \n Change password\n Logout\n \n
\n
\n );\n }\n}\n\nexport default withStyles(styles)(withRouter(TopNav));\n","import React, { Component } from \"react\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport Input from '@material-ui/core/Input';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Chip from '@material-ui/core/Chip';\nimport FormControl from \"@material-ui/core/FormControl\";\n\nimport MenuDown from \"mdi-material-ui/MenuDown\";\nimport Cancel from \"mdi-material-ui/Cancel\";\nimport MenuUp from \"mdi-material-ui/MenuUp\";\nimport Close from \"mdi-material-ui/Close\";\nimport Select from 'react-select';\nimport 'react-select/dist/react-select.css';\n\n\n// taken from react-select example\n// https://material-ui.com/demos/autocomplete/\n\n\nconst ITEM_HEIGHT = 48;\n\nconst styles = theme => ({\n chip: {\n margin: theme.spacing.unit / 4,\n },\n '@global': {\n '.Select-control': {\n display: 'flex',\n alignItems: 'center',\n border: 0,\n height: 'auto',\n background: 'transparent',\n '&:hover': {\n boxShadow: 'none',\n },\n },\n '.Select-multi-value-wrapper': {\n flexGrow: 1,\n display: 'flex',\n flexWrap: 'wrap',\n },\n '.Select--multi .Select-input': {\n margin: 0,\n },\n '.Select.has-value.is-clearable.Select--single > .Select-control .Select-value': {\n padding: 0,\n },\n '.Select-noresults': {\n padding: theme.spacing.unit * 2,\n },\n '.Select-input': {\n display: 'inline-flex !important',\n padding: 0,\n height: 'auto',\n },\n '.Select-input input': {\n background: 'transparent',\n border: 0,\n padding: 0,\n cursor: 'default',\n display: 'inline-block',\n fontFamily: 'inherit',\n fontSize: 'inherit',\n margin: 0,\n outline: 0,\n },\n '.Select-placeholder, .Select--single .Select-value': {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n display: 'flex',\n alignItems: 'center',\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(16),\n padding: 0,\n },\n '.Select-value': {\n color: \"black !important\",\n paddingLeft: \"0 !important\",\n },\n '.Select-placeholder': {\n opacity: 0.42,\n color: theme.palette.common.black,\n },\n '.Select-menu-outer': {\n backgroundColor: theme.palette.background.paper,\n boxShadow: theme.shadows[2],\n position: 'absolute',\n left: 0,\n top: `calc(100% + ${theme.spacing.unit}px)`,\n width: '100%',\n zIndex: 2,\n maxHeight: ITEM_HEIGHT * 4.5,\n },\n '.Select.is-focused:not(.is-open) > .Select-control': {\n boxShadow: 'none',\n },\n '.Select-menu': {\n maxHeight: ITEM_HEIGHT * 4.5,\n overflowY: 'auto',\n zIndex: 99999,\n },\n '.Select-menu div': {\n boxSizing: 'content-box',\n },\n '.Select-arrow-zone, .Select-clear-zone': {\n color: theme.palette.action.active,\n cursor: 'pointer',\n height: 21,\n width: 21,\n zIndex: 1,\n },\n // Only for screen readers. We can't use display none.\n '.Select-aria-only': {\n position: 'absolute',\n overflow: 'hidden',\n clip: 'rect(0 0 0 0)',\n height: 1,\n width: 1,\n margin: -1,\n },\n },\n});\n\n\nclass Option extends Component {\n handleClick = event => {\n this.props.onSelect(this.props.option, event);\n };\n\n render() {\n const { children, isFocused, isSelected, onFocus } = this.props;\n\n return (\n \n {children}\n \n );\n }\n}\n\nfunction SelectWrapped(props) {\n const { classes, ...other } = props;\n\n return (\n {'No results found'}}\n arrowRenderer={arrowProps => {\n return arrowProps.isOpen ? : ;\n }}\n clearRenderer={() => }\n valueComponent={valueProps => {\n const { value, children, onRemove } = valueProps;\n\n const onDelete = event => {\n event.preventDefault();\n event.stopPropagation();\n onRemove(value);\n };\n\n if (onRemove) {\n return (\n }\n onDelete={onDelete}\n />\n );\n }\n\n return
{children}
;\n }}\n {...other}\n />\n );\n}\n\n\nclass AutocompleteSelect extends Component {\n constructor() {\n super();\n\n this.state = {\n options: [],\n };\n\n this.setInitialOptions = this.setInitialOptions.bind(this);\n this.setSelectedOption = this.setSelectedOption.bind(this);\n this.onAutocomplete = this.onAutocomplete.bind(this);\n this.onChange = this.onChange.bind(this);\n }\n\n componentDidMount() {\n this.setInitialOptions(this.setSelectedOption);\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.value === this.props.value && prevProps.triggerReload === this.props.triggerReload) {\n return;\n }\n\n this.setInitialOptions(this.setSelectedOption);\n }\n\n setInitialOptions(callbackFunc) {\n this.props.getOptions(\"\", options => {\n this.setState({\n options: options,\n }, callbackFunc);\n });\n }\n\n setSelectedOption() {\n if (this.props.getOption !== undefined) {\n if (this.props.value !== undefined && this.props.value !== \"\" && this.props.value !== null) {\n this.props.getOption(this.props.value, resp => {\n this.setState({\n selectedOption: resp,\n });\n });\n } else {\n this.setState({\n selectedOption: \"\",\n });\n }\n } else {\n if (this.props.value !== undefined && this.props.value !== \"\" && this.props.value !== null) {\n for (const opt of this.state.options) {\n if (this.props.value === opt.value) {\n this.setState({\n selectedOption: opt,\n });\n }\n }\n } else {\n this.setState({\n selectedOption: \"\",\n });\n }\n }\n }\n\n onAutocomplete(input, callbackFunc) {\n this.props.getOptions(input, options => {\n this.setState({\n options: options,\n });\n\n callbackFunc(null, {\n options: options,\n complete: true,\n });\n });\n }\n\n onChange(v) {\n let value = null;\n if (v !== null) {\n value = v.value;\n }\n\n this.setState({\n selectedOption: v,\n });\n\n this.props.onChange({\n target: {\n id: this.props.id,\n value: value,\n },\n });\n }\n\n render() {\n const inputProps = this.props.inputProps || {};\n return(\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(AutocompleteSelect);\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass OrganizationStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/organization.swagger.json\", sessionStore.getClientOpts());\n }\n\n create(organization, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.Create({\n body: {\n organization: organization,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.emit(\"create\", organization);\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(organization, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.Update({\n \"organization.id\": organization.id,\n body: {\n organization: organization,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.emit(\"change\", organization);\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.emit(\"delete\", id);\n this.notify(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(search, limit, offset, callbackFunc) {\n this.swagger.then((client) => {\n client.apis.OrganizationService.List({\n search: search,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n addUser(organizationID, user, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.AddUser({\n \"organization_user.organization_id\": organizationID,\n body: {\n organizationUser: user,\n },\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getUser(organizationID, userID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.GetUser({\n organization_id: organizationID,\n user_id: userID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteUser(organizationID, userID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.DeleteUser({\n organization_id: organizationID,\n user_id: userID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateUser(organizationUser, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.UpdateUser({\n \"organization_user.organization_id\": organizationUser.organizationID,\n \"organization_user.user_id\": organizationUser.userID,\n body: {\n organizationUser: organizationUser,\n },\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n listUsers(organizationID, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.OrganizationService.ListUsers({\n organization_id: organizationID,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"organization has been \" + action,\n },\n });\n }\n}\n\nconst organizationStore = new OrganizationStore();\nexport default organizationStore;\n","import { Component } from \"react\";\n\nimport SessionStore from \"../stores/SessionStore\";\n\n\nclass Admin extends Component {\n constructor() {\n super();\n this.state = {\n admin: false,\n };\n\n this.setIsAdmin = this.setIsAdmin.bind(this);\n }\n\n componentDidMount() {\n SessionStore.on(\"change\", this.setIsAdmin);\n this.setIsAdmin();\n }\n\n componentWillUnmount() {\n SessionStore.removeListener(\"change\", this.setIsAdmin);\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps === this.props) {\n return;\n }\n\n this.setIsAdmin();\n }\n\n setIsAdmin() {\n if (this.props.organizationID !== undefined) {\n this.setState({\n admin: SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.organizationID),\n });\n } else {\n this.setState({\n admin: SessionStore.isAdmin(),\n });\n }\n }\n\n render() {\n if (this.state.admin) {\n return(this.props.children);\n }\n\n return(null);\n }\n}\n\nexport default Admin;\n","import React, { Component } from \"react\";\nimport { Link, withRouter } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Drawer from '@material-ui/core/Drawer';\nimport List from '@material-ui/core/List';\nimport ListItem from '@material-ui/core/ListItem';\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\nimport ListItemText from '@material-ui/core/ListItemText';\n\nimport Divider from '@material-ui/core/Divider';\nimport Domain from \"mdi-material-ui/Domain\";\nimport Account from \"mdi-material-ui/Account\";\nimport Server from \"mdi-material-ui/Server\";\nimport Apps from \"mdi-material-ui/Apps\";\nimport RadioTower from \"mdi-material-ui/RadioTower\";\nimport Tune from \"mdi-material-ui/Tune\";\nimport Settings from \"mdi-material-ui/Settings\";\nimport Rss from \"mdi-material-ui/Rss\";\nimport AccountDetails from \"mdi-material-ui/AccountDetails\";\n\nimport AutocompleteSelect from \"./AutocompleteSelect\";\nimport SessionStore from \"../stores/SessionStore\";\nimport OrganizationStore from \"../stores/OrganizationStore\";\nimport Admin from \"./Admin\";\n\nimport theme from \"../theme\";\n\n\nconst styles = {\n drawerPaper: {\n position: \"fixed\",\n width: 270,\n paddingTop: theme.spacing.unit * 9,\n },\n select: {\n paddingTop: theme.spacing.unit,\n paddingLeft: theme.spacing.unit * 3,\n paddingRight: theme.spacing.unit * 3,\n paddingBottom: theme.spacing.unit * 1,\n },\n};\n\nclass SideNav extends Component {\n constructor() {\n super();\n\n this.state = {\n open: true,\n organization: null,\n cacheCounter: 0,\n };\n\n\n this.onChange = this.onChange.bind(this);\n this.getOrganizationOption = this.getOrganizationOption.bind(this);\n this.getOrganizationOptions = this.getOrganizationOptions.bind(this);\n this.getOrganizationFromLocation = this.getOrganizationFromLocation.bind(this);\n }\n\n componentDidMount() {\n SessionStore.on(\"organization.change\", () => {\n OrganizationStore.get(SessionStore.getOrganizationID(), resp => {\n this.setState({\n organization: resp.organization,\n });\n });\n });\n\n OrganizationStore.on(\"create\", () => {\n this.setState({\n cacheCounter: this.state.cacheCounter + 1,\n });\n });\n\n OrganizationStore.on(\"change\", (org) => {\n if (this.state.organization !== null && this.state.organization.id === org.id) {\n this.setState({\n organization: org,\n });\n }\n });\n\n OrganizationStore.on(\"delete\", id => {\n if (this.state.organization !== null && this.state.organization.id === id) {\n this.setState({\n organization: null,\n });\n }\n\n this.setState({\n cacheCounter: this.state.cacheCounter + 1,\n });\n });\n\n if (SessionStore.getOrganizationID() !== null) {\n OrganizationStore.get(SessionStore.getOrganizationID(), resp => {\n this.setState({\n organization: resp.organization,\n });\n });\n }\n\n this.getOrganizationFromLocation();\n }\n\n componentDidUpdate(prevProps) {\n if (this.props === prevProps) {\n return;\n }\n\n this.getOrganizationFromLocation();\n }\n\n onChange(e) {\n this.props.history.push(`/organizations/${e.target.value}/applications`);\n }\n\n getOrganizationFromLocation() {\n const organizationRe = /\\/organizations\\/(\\d+)/g;\n const match = organizationRe.exec(this.props.history.location.pathname);\n\n if (match !== null && (this.state.organization === null || this.state.organization.id !== match[1])) {\n SessionStore.setOrganizationID(match[1]);\n }\n }\n\n getOrganizationOption(id, callbackFunc) {\n OrganizationStore.get(id, resp => {\n callbackFunc({label: resp.organization.name, value: resp.organization.id});\n });\n }\n\n getOrganizationOptions(search, callbackFunc) {\n OrganizationStore.list(search, 10, 0, resp => {\n const options = resp.result.map((o, i) => {return {label: o.name, value: o.id}});\n callbackFunc(options);\n });\n }\n\n render() {\n let organizationID = \"\";\n if (this.state.organization !== null) {\n organizationID = this.state.organization.id;\n }\n\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n
\n \n
\n\n {this.state.organization && \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {this.state.organization.canHaveGateways && \n \n \n \n \n }\n \n \n \n \n \n \n \n \n \n \n \n \n }\n \n );\n }\n}\n\nexport default withRouter(withStyles(styles)(SideNav));\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Typography from \"@material-ui/core/Typography\";\n\nimport SessionStore from \"../stores/SessionStore\";\nimport theme from \"../theme\";\n\nconst styles = {\n footer: {\n paddingBottom: theme.spacing.unit,\n \"& a\": {\n color: theme.palette.primary.main,\n textDecoration: \"none\",\n },\n },\n};\n\nclass Footer extends Component {\n constructor() {\n super();\n this.state = {\n footer: null,\n };\n }\n\n componentDidMount() {\n SessionStore.getBranding(resp => {\n if (resp.footer !== \"\") {\n this.setState({\n footer: resp.footer,\n });\n }\n });\n }\n\n render() {\n if (this.state.footer === null) {\n return(null);\n }\n\n return(\n
\n \n
\n );\n }\n}\n\nexport default withStyles(styles)(Footer);\n","import { EventEmitter } from \"events\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass NotificationStore extends EventEmitter {\n constructor() {\n super();\n this.notifications = [];\n }\n\n getAll() {\n return this.notifications;\n }\n\n createNotification(type, message) {\n const id = Date.now();\n\n this.notifications.push({\n id: id,\n type: type,\n message: message,\n });\n\n this.emit(\"change\");\n }\n\n deleteNotification(id) {\n let notification = null;\n\n for(var n of this.notifications) {\n if(n.id === id) {\n notification = n;\n }\n }\n\n this.notifications.splice(this.notifications.indexOf(notification), 1);\n this.emit(\"change\");\n }\n\n handleActions(action) {\n switch(action.type) {\n case \"CREATE_NOTIFICATION\": {\n this.createNotification(action.notification.type, action.notification.message);\n break;\n }\n case \"DELETE_NOTIFICATION\": {\n this.deleteNotification(action.id);\n break;\n }\n default:\n break;\n }\n }\n}\n\n\nconst notificationStore = new NotificationStore();\ndispatcher.register(notificationStore.handleActions.bind(notificationStore));\n\nexport default notificationStore;\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Snackbar from '@material-ui/core/Snackbar';\nimport IconButton from '@material-ui/core/IconButton';\nimport Close from \"mdi-material-ui/Close\";\n\nimport NotificationStore from \"../stores/NotificationStore\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass Item extends Component {\n constructor() {\n super();\n this.onClose = this.onClose.bind(this);\n }\n\n onClose(event, reason) {\n dispatcher.dispatch({\n type: \"DELETE_NOTIFICATION\",\n id: this.props.id,\n });\n }\n\n render() {\n return(\n {this.props.notification.message}}\n autoHideDuration={3000}\n onClose={this.onClose}\n action={[\n \n \n \n ]}\n />\n );\n }\n}\n\n\nclass Notifications extends Component {\n constructor() {\n super();\n\n this.state = {\n notifications: NotificationStore.getAll(),\n };\n }\n\n componentDidMount() {\n NotificationStore.on(\"change\", () => {\n this.setState({\n notifications: NotificationStore.getAll(),\n });\n });\n }\n\n render() {\n const items = this.state.notifications.map((n, i) => );\n\n return (items);\n }\n}\n\nexport default withRouter(Notifications);\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport { withStyles } from '@material-ui/core/styles';\n\n\nconst styles = {\n clear: {\n clear: \"both\",\n },\n\n left: {\n float: \"left\",\n },\n\n right: {\n float: \"right\",\n },\n};\n\n\nclass TitleBar extends Component {\n render() {\n return(\n \n
\n {this.props.children}\n
\n
\n {this.props.buttons}\n
\n
\n );\n }\n}\n\nexport default withStyles(styles)(TitleBar);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport classNames from \"classnames\";\n\nimport Typography from '@material-ui/core/Typography';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport theme from \"../theme\";\n\nconst styles = {\n title: {\n marginTop: theme.spacing.unit,\n marginBottom: theme.spacing.unit,\n marginRight: theme.spacing.unit,\n float: \"left\",\n },\n\n link: {\n textDecoration: \"none\",\n color: theme.palette.primary.main,\n },\n};\n\n\nclass TitleBarTitle extends Component {\n render() {\n let component = null;\n let combinedStyles = null;\n\n if (this.props.to !== undefined) {\n component = Link;\n combinedStyles = classNames(this.props.classes.title, this.props.classes.link);\n } else {\n combinedStyles = this.props.classes.title;\n }\n\n\n return(\n \n {this.props.title}\n \n );\n }\n}\n\nexport default withStyles(styles)(TitleBarTitle);\n","import React, { Component } from \"react\";\nimport { Link } from 'react-router-dom';\n\nimport TableCell from '@material-ui/core/TableCell';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport theme from \"../theme\";\n\n\nconst styles = {\n link: {\n textDecoration: \"none\",\n color: theme.palette.primary.main,\n cursor: \"pointer\",\n },\n};\n\n\nclass TableCellLink extends Component {\n render() {\n return(\n \n {this.props.to && {this.props.children}}\n {this.props.onClick && {this.props.children}}\n \n );\n }\n}\n\nexport default withStyles(styles)(TableCellLink);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Button from '@material-ui/core/Button';\n\nimport theme from \"../theme\";\n\n\nconst styles = {\n button: {\n marginLeft: theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n};\n\n\nclass TitleBarButton extends Component {\n render() {\n let component = \"button\";\n let icon = null;\n\n if (this.props.to !== undefined) {\n component = Link\n }\n\n if (this.props.icon !== undefined) {\n icon = React.cloneElement(this.props.icon, {\n className: this.props.classes.icon,\n })\n }\n\n return(\n \n {icon}\n {this.props.label}\n \n );\n }\n}\n\nexport default withStyles(styles)(TitleBarButton);\n","import React, { Component } from \"react\";\n\nimport Paper from '@material-ui/core/Paper';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport theme from \"../theme\";\n\n\nconst styles = {\n root: {\n padding: theme.spacing.unit * 2,\n },\n};\n\n\nclass PaperComponent extends Component {\n render() {\n return(\n \n {this.props.children}\n \n );\n }\n}\n\nexport default withStyles(styles)(PaperComponent);","import React, { Component } from \"react\";\n\nimport Table from '@material-ui/core/Table';\nimport TablePagination from '@material-ui/core/TablePagination';\nimport TableBody from '@material-ui/core/TableBody';\nimport TableHead from '@material-ui/core/TableHead';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport Paper from \"./Paper\";\n\n\nconst styles = {\n\n};\n\n\nclass DataTable extends Component {\n constructor() {\n super();\n\n this.state = {\n count: 0,\n rowsPerPage: 10,\n page: 0,\n loaded: {\n rows: false,\n },\n };\n\n this.onChangePage = this.onChangePage.bind(this);\n this.onChangeRowsPerPage = this.onChangeRowsPerPage.bind(this);\n }\n\n componentDidMount() {\n this.onChangePage(null, 0);\n }\n\n componentDidUpdate(prevProps) {\n if (this.props === prevProps) {\n return;\n }\n\n this.onChangePage(null, 0);\n }\n\n onChangePage(event, page) {\n this.props.getPage(this.state.rowsPerPage, (page) * this.state.rowsPerPage, (result) => {\n this.setState({\n page: page,\n count: parseInt(result.totalCount, 10),\n rows: result.result.map((row, i) => this.props.getRow(row)),\n });\n });\n }\n\n onChangeRowsPerPage(event) {\n this.setState({\n rowsPerPage: event.target.value,\n });\n\n this.props.getPage(event.target.value, 0, (result) => {\n this.setState({\n page: 0,\n count: result.totalCount,\n rows: result.result.map((row, i) => this.props.getRow(row)),\n });\n });\n }\n\n render() {\n if (this.state.rows === undefined) {\n return(
);\n }\n\n return(\n \n \n \n {this.props.header}\n \n \n {this.state.rows}\n \n
\n \n
\n );\n }\n}\n\nexport default withStyles(styles)(DataTable);\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass NetworkServerStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/networkServer.swagger.json\", sessionStore.getClientOpts());\n }\n\n create(networkServer, callbackFunc) {\n this.swagger.then(client => {\n client.apis.NetworkServerService.Create({\n body: {\n networkServer: networkServer,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notifiy(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then((client) => {\n client.apis.NetworkServerService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(networkServer, callbackFunc) {\n this.swagger.then(client => {\n client.apis.NetworkServerService.Update({\n \"network_server.id\": networkServer.id,\n body: {\n networkServer: networkServer,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notifiy(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notifiy(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"network-server has been \" + action,\n },\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.NetworkServerService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notifiy(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n \n list(organizationID, limit, offset, callbackFunc) {\n this.swagger.then((client) => {\n client.apis.NetworkServerService.List({\n organizationID: organizationID,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n}\n\nconst networkServerStore = new NetworkServerStore();\nexport default networkServerStore;\nwindow.test = networkServerStore;\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\n\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\n\n\nclass ListNetworkServers extends Component {\n getPage(limit, offset, callbackFunc) {\n NetworkServerStore.list(0, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n {obj.name}\n {obj.server}\n \n );\n }\n\n render() {\n return(\n \n }\n label=\"Add\"\n to={`/network-servers/create`}\n />,\n ]}\n >\n \n \n \n \n Name\n Server\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListNetworkServers;\n","import { Component } from \"react\";\n\n\nclass FormComponent extends Component {\n constructor() {\n super();\n\n this.state = {};\n\n this.onChange = this.onChange.bind(this);\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onChange(e) {\n let lookup = e.target.id.split(\".\");\n const field = lookup[lookup.length-1];\n lookup.pop(); // remove last item\n\n let object = this.state.object;\n let obj = object;\n for (const f of lookup) {\n obj = obj[f];\n }\n\n if (e.target.type === \"checkbox\") {\n obj[field] = e.target.checked;\n } else if (e.target.type === \"number\") {\n obj[field] = parseInt(e.target.value, 10);\n } else {\n obj[field] = e.target.value;\n }\n\n this.setState({\n object: object,\n })\n }\n\n onSubmit(e) {\n e.preventDefault();\n this.props.onSubmit(this.state.object);\n }\n\n componentDidMount() {\n this.setState({\n object: this.props.object || {},\n });\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.object !== this.props.object) {\n this.setState({\n object: this.props.object || {},\n });\n }\n }\n}\n\nexport default FormComponent;\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport Button from \"@material-ui/core/Button\";\nimport { withStyles } from \"@material-ui/core/styles\";\n\n\nconst styles = {\n formControl: {\n paddingTop: 24,\n },\n}\n\n\nclass Form extends Component {\n render() {\n return(\n
\n {this.props.children}\n\n \n {this.props.extraButtons}\n {this.props.submitLabel && }\n \n
\n );\n }\n}\n\nexport default withStyles(styles)(Form);\n","import React, { Component } from \"react\";\n\nimport FormControl from '@material-ui/core/FormControl';\nimport FormLabel from '@material-ui/core/FormLabel';\nimport { withStyles } from \"@material-ui/core/styles\";\n\nimport theme from \"../theme\";\n\n\nconst styles = {\n formControl: {\n marginTop: theme.spacing.unit * 4,\n },\n formLabel: {\n color: theme.palette.primary.main,\n },\n};\n\n\nclass FormControlComponent extends Component {\n render() {\n return(\n \n \n {this.props.label}\n \n {this.props.children}\n \n );\n }\n}\n\nexport default withStyles(styles)(FormControlComponent);\n","import React from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport FormHelperText from '@material-ui/core/FormHelperText';\nimport Checkbox from '@material-ui/core/Checkbox';\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport FormControl from \"../../components/FormControl\";\n\n\nclass NetworkServerForm extends FormComponent {\n constructor() {\n super();\n this.state = {\n tab: 0,\n };\n\n this.onChangeTab = this.onChangeTab.bind(this);\n }\n\n onChangeTab(event, value) {\n this.setState({\n tab: value,\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(null);\n }\n\n return(\n \n \n \n \n \n \n {this.state.tab === 0 &&
\n \n \n
}\n {this.state.tab === 1 &&
\n \n \n \n }\n label=\"Enable gateway discovery\"\n />\n \n Enable the gateway discovery feature for this network-server.\n \n {this.state.object.gatewayDiscoveryEnabled && }\n {this.state.object.gatewayDiscoveryEnabled && }\n {this.state.object.gatewayDiscoveryEnabled && }\n
}\n {this.state.tab === 2 &&
\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n
}\n \n );\n }\n}\n\nexport default NetworkServerForm;\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\n\nimport { CardContent } from \"@material-ui/core\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport NetworkServerForm from \"./NetworkServerForm\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\n\n\nclass CreateNetworkServer extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(networkServer) {\n NetworkServerStore.create(networkServer, resp => {\n this.props.history.push(\"/network-servers\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(CreateNetworkServer);\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport { CardContent } from \"@material-ui/core\";\n\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\nimport NetworkServerForm from \"./NetworkServerForm\";\n\n\nclass UpdateNetworkServer extends Component {\n constructor() {\n super();\n\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(networkServer) {\n NetworkServerStore.update(networkServer, resp => {\n this.props.history.push(\"/network-servers\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(UpdateNetworkServer);\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\n\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\nimport UpdateNetworkServer from \"./UpdateNetworkServer\";\n\n\nclass NetworkServerLayout extends Component {\n constructor() {\n super();\n\n this.state = {};\n\n this.deleteNetworkServer = this.deleteNetworkServer.bind(this);\n }\n\n componentDidMount() {\n NetworkServerStore.get(this.props.match.params.networkServerID, (resp) => {\n this.setState({\n networkServer: resp,\n });\n });\n }\n\n deleteNetworkServer() {\n if (window.confirm(\"Are you sure you want to delete this network-server?\")) {\n NetworkServerStore.delete(this.props.match.params.networkServerID, () => {\n this.props.history.push(\"/network-servers\");\n });\n }\n }\n\n render() {\n if (this.state.networkServer === undefined) {\n return(
);\n }\n\n return(\n \n }\n label=\"Delete\"\n color=\"secondary\"\n onClick={this.deleteNetworkServer}\n />,\n ]}\n >\n \n \n \n \n\n \n \n \n \n );\n }\n}\n\nexport default withRouter(NetworkServerLayout);\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass GatewayProfileStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/gatewayProfile.swagger.json\", sessionStore.getClientOpts());\n }\n\n create(gatewayProfile, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayProfileService.Create({\n body: {\n gatewayProfile: gatewayProfile,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayProfileService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(gatewayProfile, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayProfileService.Update({\n \"gateway_profile.id\": gatewayProfile.id,\n body: {\n gatewayProfile: gatewayProfile,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayProfileService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(networkServerID, limit, offset, callbackFunc) {\n this.swagger.then((client) => {\n client.apis.GatewayProfileService.List({\n networkServerID: networkServerID,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"gateway-profile has been \" + action,\n },\n });\n }\n}\n\nconst gatewayProfileStore = new GatewayProfileStore();\nexport default gatewayProfileStore;\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\n\nimport GatewayProfileStore from \"../../stores/GatewayProfileStore\";\n\n\nclass ListGatewayProfiles extends Component {\n getPage(limit, offset, callbackFunc) {\n GatewayProfileStore.list(0, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n {obj.name}\n {obj.networkServerName}\n \n );\n }\n\n render() {\n return(\n \n }\n to={`/gateway-profiles/create`}\n />,\n ]}\n >\n \n \n \n \n Name\n Network-server\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListGatewayProfiles;","import React, { Component } from \"react\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport FormControlOrig from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport TextField from '@material-ui/core/TextField';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport Select from '@material-ui/core/Select';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Button from '@material-ui/core/Button';\nimport Grid from '@material-ui/core/Grid';\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport FormControl from \"../../components/FormControl\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\n\nimport theme from \"../../theme\";\n\n\nconst styles = {\n a: {\n color: theme.palette.primary.main,\n },\n formLabel: {\n fontSize: 12,\n },\n};\n\n\nclass ExtraChannel extends Component {\n constructor() {\n super();\n\n this.onChange = this.onChange.bind(this);\n this.onDelete = this.onDelete.bind(this);\n }\n\n onChange(e) {\n let channel = this.props.channel;\n let field = \"\";\n\n if (e.target.id === undefined) {\n field = e.target.name;\n } else {\n field = e.target.id;\n }\n\n if(field === \"spreadingFactorsStr\") {\n let sfStr = e.target.value.split(\",\");\n channel[\"spreadingFactors\"] = sfStr.map((sf, i) => parseInt(sf, 10));\n } \n\n if (e.target.type === \"number\") {\n channel[field] = parseInt(e.target.value, 10);\n } else {\n channel[field] = e.target.value;\n }\n\n this.props.onChange(channel);\n }\n\n onDelete(e) {\n e.preventDefault();\n this.props.onDelete();\n }\n\n render() {\n let spreadingFactorsStr = \"\";\n if (this.props.channel.spreadingFactorsStr !== undefined) {\n spreadingFactorsStr = this.props.channel.spreadingFactorsStr;\n } else if (this.props.channel.spreadingFactors !== undefined) {\n spreadingFactorsStr = this.props.channel.spreadingFactors.join(\", \");\n }\n\n return(\n \n Extra channel {this.props.i + 1} (delete)\n \n }\n >\n \n \n \n Modulation\n \n LoRa\n FSK\n \n \n \n \n \n bandwidth (kHz)\n \n 125 kHz\n 250 kHz\n 500 kHz\n \n \n \n \n \n \n {this.props.channel.modulation === \"LORA\" && \n \n }\n {this.props.channel.modulation === \"FSK\" && \n \n }\n \n \n );\n }\n}\n\nExtraChannel = withStyles(styles)(ExtraChannel);\n\n\nclass GatewayProfileForm extends FormComponent {\n constructor() {\n super();\n\n this.addExtraChannel = this.addExtraChannel.bind(this);\n this.getNetworkServerOption = this.getNetworkServerOption.bind(this);\n this.getNetworkServerOptions = this.getNetworkServerOptions.bind(this);\n }\n\n componentDidMount() {\n super.componentDidMount();\n\n if (this.props.object !== undefined && this.props.object.channels !== undefined && this.props.object.channelsStr === undefined) {\n let object = this.props.object;\n object.channelsStr = object.channels.join(\", \");\n this.setState({\n object: object,\n });\n }\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.object !== this.props.object) {\n let object = this.props.object;\n\n if (object !== undefined && object.channels !== undefined && object.channelsStr === undefined) {\n object.channelsStr = object.channels.join(\", \");\n }\n\n this.setState({\n object: object || {},\n });\n }\n }\n\n onChange(e) {\n super.onChange(e);\n\n let object = this.state.object;\n\n if(e.target.id === \"channelsStr\") {\n let channelsStr = e.target.value.split(\",\");\n object[\"channels\"] = channelsStr.map((c, i) => parseInt(c, 10));\n }\n\n this.setState({\n object: object,\n });\n }\n\n addExtraChannel() {\n let object = this.state.object;\n if (object.extraChannels === undefined) {\n object.extraChannels = [{modulation: \"LORA\"}];\n } else {\n object.extraChannels.push({modulation: \"LORA\"});\n }\n\n this.setState({\n object: object,\n });\n }\n\n deleteExtraChannel(i) {\n let object = this.state.object;\n object.extraChannels.splice(i, 1);\n this.setState({\n object: object,\n });\n }\n\n updateExtraChannel(i, ec) {\n let object = this.state.object;\n object.extraChannels[i] = ec;\n\n this.setState({\n object: object,\n });\n }\n\n getNetworkServerOption(id, callbackFunc) {\n NetworkServerStore.get(id, resp => {\n callbackFunc({label: resp.name, value: resp.id});\n });\n }\n\n getNetworkServerOptions(search, callbackFunc) {\n NetworkServerStore.list(0, 999, 0, resp => {\n const options = resp.result.map((ns, i) => {return {label: ns.name, value: ns.id}});\n callbackFunc(options);\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n let extraChannels = [];\n\n if (this.state.object.extraChannels !== undefined) {\n extraChannels = this.state.object.extraChannels.map((ec, i) => this.deleteExtraChannel(i)} onChange={ec => this.updateExtraChannel(i, ec)} />);\n }\n\n return(\n Add extra channel}\n >\n \n\n \n {!this.props.update && \n Network-server\n \n }\n {extraChannels}\n \n );\n }\n}\n\nexport default withStyles(styles)(GatewayProfileForm);\n","import React, { Component } from \"react\";\nimport { withRouter, Link } from 'react-router-dom';\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport { CardContent } from \"@material-ui/core\";\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Button from \"@material-ui/core/Button\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport GatewayProfileForm from \"./GatewayProfileForm\";\nimport GatewayProfileStore from \"../../stores/GatewayProfileStore\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateGatewayProfile extends Component {\n constructor() {\n super();\n this.state = {\n nsDialog: false,\n };\n this.onSubmit = this.onSubmit.bind(this);\n this.closeDialog = this.closeDialog.bind(this);\n }\n\n componentDidMount() {\n NetworkServerStore.list(0, 0, 0, resp => {\n if (resp.totalCount === \"0\") {\n this.setState({\n nsDialog: true,\n });\n }\n });\n }\n\n closeDialog() {\n this.setState({\n nsDialog: false,\n });\n }\n\n onSubmit(gatewayProfile) {\n GatewayProfileStore.create(gatewayProfile, resp => {\n this.props.history.push(\"/gateway-profiles\");\n });\n }\n\n render() {\n return(\n \n \n Add a network-server?\n \n \n LoRa App Server isn't connected to a LoRa Server network-server.\n Did you know that LoRa App Server can connect to multiple LoRa Server instances, e.g. to support multiple regions?\n \n \n Would you like to connect to a network-server now?\n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateGatewayProfile));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport { CardContent } from \"@material-ui/core\";\n\nimport GatewayProfileStore from \"../../stores/GatewayProfileStore\";\nimport GatewayProfileForm from \"./GatewayProfileForm\";\n\n\nclass UpdateGatewayProfile extends Component {\n constructor() {\n super();\n\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(gatewayProfile) {\n GatewayProfileStore.update(gatewayProfile, resp => {\n this.props.history.push(\"/gateway-profiles\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(UpdateGatewayProfile);\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\n\nimport Delete from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport GatewayProfileStore from \"../../stores/GatewayProfileStore\";\nimport UpdateGatewayProfile from \"./UpdateGatewayProfile\";\n\n\nclass GatewayProfileLayout extends Component {\n constructor() {\n super();\n\n this.state = {};\n\n this.deleteGatewayProfile = this.deleteGatewayProfile.bind(this);\n }\n\n componentDidMount() {\n GatewayProfileStore.get(this.props.match.params.gatewayProfileID, resp => {\n this.setState({\n gatewayProfile: resp,\n });\n });\n }\n\n deleteGatewayProfile() {\n if (window.confirm(\"Are you sure you want to delete this gateway-profile?\")) {\n GatewayProfileStore.delete(this.props.match.params.gatewayProfileID, () => {\n this.props.history.push(\"/gateway-profiles\");\n });\n }\n }\n\n render() {\n if (this.state.gatewayProfile === undefined) {\n return(
);\n }\n\n return(\n \n }\n color=\"secondary\"\n onClick={this.deleteGatewayProfile}\n />,\n ]}\n >\n \n \n \n \n\n \n \n \n \n );\n }\n}\n\nexport default withRouter(GatewayProfileLayout);\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\n\nimport Check from \"mdi-material-ui/Check\";\nimport Close from \"mdi-material-ui/Close\";\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\n\nimport OrganizationStore from \"../../stores/OrganizationStore\";\n\n\nclass ListOrganizations extends Component {\n getPage(limit, offset, callbackFunc) {\n OrganizationStore.list(\"\", limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n let icon = null;\n\n if (obj.canHaveGateways) {\n icon = ;\n } else {\n icon = ;\n }\n\n return(\n \n {obj.name}\n {obj.displayName}\n {icon}\n \n );\n }\n\n render() {\n return(\n \n }\n to={`/organizations/create`}\n />,\n ]}\n >\n \n \n \n \n Name\n Display name\n Can have gateways\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListOrganizations;\n","import React from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport FormHelperText from '@material-ui/core/FormHelperText';\nimport Checkbox from '@material-ui/core/Checkbox';\n\nimport FormControl from \"../../components/FormControl\";\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\n\n\n\nclass OrganizationForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n \n \n }\n />\n \n When checked, it means that organization administrators are able to add their own gateways to the network. Note that the usage of the gateways is not limited to this organization.\n \n \n );\n }\n}\n\nexport default OrganizationForm;\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\n\nimport { CardContent } from \"@material-ui/core\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport OrganizationForm from \"./OrganizationForm\";\nimport OrganizationStore from \"../../stores/OrganizationStore\";\n\n\nclass CreateOrganization extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(organization) {\n OrganizationStore.create(organization, resp => {\n this.props.history.push(\"/organizations\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(CreateOrganization);","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport OrganzationStore from \"../../stores/OrganizationStore\";\nimport OrganizationForm from \"./OrganizationForm\";\n\n\nclass UpdateOrganization extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(organization) {\n OrganzationStore.update(organization, resp => {\n this.props.history.push(\"/organizations\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(UpdateOrganization);\n","import React, { Component } from \"react\";\nimport { Route, Redirect, Switch, withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport OrganizationStore from \"../../stores/OrganizationStore\";\nimport UpdateOrganization from \"./UpdateOrganization\";\n\n\nclass OrganizationLayout extends Component {\n constructor() {\n super();\n this.state = {};\n this.loadData = this.loadData.bind(this);\n this.deleteOrganization = this.deleteOrganization.bind(this);\n }\n\n componentDidMount() {\n this.loadData();\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps === this.props) {\n return;\n }\n\n this.loadData();\n }\n\n loadData() {\n OrganizationStore.get(this.props.match.params.organizationID, resp => {\n this.setState({\n organization: resp,\n });\n });\n }\n\n deleteOrganization() {\n if (window.confirm(\"Are you sure you want to delete this organization?\")) {\n OrganizationStore.delete(this.props.match.params.organizationID, () => {\n this.props.history.push(\"/organizations\");\n });\n }\n }\n\n render() {\n if (this.state.organization === undefined) {\n return(
);\n }\n\n\n return(\n \n }\n color=\"secondary\"\n onClick={this.deleteOrganization}\n />,\n ]}\n >\n \n \n \n \n\n \n \n } />\n } />\n \n \n \n );\n }\n}\n\n\nexport default withRouter(OrganizationLayout);\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\n\nimport Check from \"mdi-material-ui/Check\";\nimport Close from \"mdi-material-ui/Close\";\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\n\nimport OrganizationStore from \"../../stores/OrganizationStore\";\n\n\nclass ListOrganizationUsers extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n \n getPage(limit, offset, callbackFunc) {\n OrganizationStore.listUsers(this.props.match.params.organizationID, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n let icon = null;\n\n if (obj.isAdmin) {\n icon = \n } else {\n icon = \n }\n\n return(\n \n {obj.userID}\n {obj.username}\n {icon}\n \n );\n }\n\n render() {\n return(\n \n }\n to={`/organizations/${this.props.match.params.organizationID}/users/create`}\n />,\n ]}\n >\n \n \n \n \n ID\n Username\n Admin\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListOrganizationUsers;\n","import React from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport Checkbox from '@material-ui/core/Checkbox';\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\n\n\nclass OrganizationUserForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n }\n />\n \n \n );\n }\n}\n\nexport default OrganizationUserForm;\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport OrganizationStore from \"../../stores/OrganizationStore\";\nimport OrganizationUserForm from \"./OrganizationUserForm\";\n\n\nclass UpdateOrganizationUser extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(organizationUser) {\n OrganizationStore.updateUser(organizationUser, resp => {\n this.props.history.push(`/organizations/${organizationUser.organizationID}/users`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(UpdateOrganizationUser);","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\n\nimport Delete from \"mdi-material-ui/Delete\";\nimport Account from \"mdi-material-ui/Account\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport OrganizationStore from \"../../stores/OrganizationStore\";\nimport UpdateOrganizationUser from \"./UpdateOrganizationUser\";\n\n\nclass OrganizationUserLayout extends Component {\n constructor() {\n super();\n this.state = {\n admin: false,\n };\n this.deleteOrganizationUser = this.deleteOrganizationUser.bind(this);\n this.setIsAdmin = this.setIsAdmin.bind(this);\n }\n\n componentDidMount() {\n OrganizationStore.getUser(this.props.match.params.organizationID, this.props.match.params.userID, resp => {\n this.setState({\n organizationUser: resp,\n });\n });\n\n SessionStore.on(\"change\", this.setIsAdmin);\n this.setIsAdmin();\n }\n\n componendWillUnmount() {\n SessionStore.removeListener(\"on\", this.setIsAdmin);\n }\n\n setIsAdmin() {\n this.setState({\n admin: SessionStore.isAdmin(),\n });\n }\n\n deleteOrganizationUser() {\n if (window.confirm(\"Are you sure you want to remove this organization user (this does not remove the user itself)?\")) {\n OrganizationStore.deleteUser(this.props.match.params.organizationID, this.props.match.params.userID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/users`);\n });\n }\n }\n\n render() {\n if (this.state.organizationUser === undefined) {\n return(
);\n }\n\n return(\n \n \n {this.state.admin && }\n to={`/users/${this.state.organizationUser.organizationUser.userID}`}\n />}\n }\n color=\"secondary\"\n onClick={this.deleteOrganizationUser}\n />\n \n }\n >\n \n \n \n \n\n \n \n \n \n );\n }\n}\n\nexport default withRouter(OrganizationUserLayout);\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass UserStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/user.swagger.json\", sessionStore.getClientOpts());\n }\n\n create(user, password, organizations, callbackFunc) {\n this.swagger.then(client => {\n client.apis.UserService.Create({\n body: {\n organizations: organizations,\n password: password,\n user: user,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.UserService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(user, callbackFunc) {\n this.swagger.then(client => {\n client.apis.UserService.Update({\n \"user.id\": user.id,\n body: {\n \"user\": user,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.UserService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updatePassword(id, password, callbackFunc) {\n this.swagger.then(client => {\n client.apis.UserService.UpdatePassword({\n \"user_id\": id,\n body: {\n password: password,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(search, limit, offset, callbackFunc) {\n this.swagger.then((client) => {\n client.apis.UserService.List({\n search: search,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"user has been \" + action,\n },\n });\n }\n}\n\nconst userStore = new UserStore();\nexport default userStore;\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport Checkbox from '@material-ui/core/Checkbox';\nimport TextField from \"@material-ui/core/TextField\";\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport UserStore from \"../../stores/UserStore\";\nimport OrganizationStore from \"../../stores/OrganizationStore\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n tabs: {\n borderBottom: \"1px solid \" + theme.palette.divider,\n height: \"48px\",\n overflow: \"visible\",\n },\n formLabel: {\n fontSize: 12,\n },\n};\n\n\n\nclass AssignUserForm extends FormComponent {\n constructor() {\n super();\n\n this.getUserOptions = this.getUserOptions.bind(this);\n }\n\n getUserOptions(search, callbackFunc) {\n UserStore.list(search, 10, 0, resp => {\n const options = resp.result.map((u, i) => {return {label: u.username, value: u.id}});\n callbackFunc(options);\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n Username\n \n \n \n \n }\n />\n \n \n );\n };\n}\n\nAssignUserForm = withStyles(styles)(AssignUserForm);\n\n\nclass CreateUserForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n \n \n \n }\n />\n \n \n );\n }\n}\n\n\nclass CreateOrganizationUser extends Component {\n constructor() {\n super();\n\n this.state = {\n tab: 0,\n assignUser: false,\n };\n\n this.onChangeTab = this.onChangeTab.bind(this);\n this.onAssignUser = this.onAssignUser.bind(this);\n this.onCreateUser = this.onCreateUser.bind(this);\n this.setAssignUser = this.setAssignUser.bind(this);\n }\n\n componentDidMount() {\n this.setAssignUser();\n\n SessionStore.on(\"change\", this.setAssignUser);\n }\n\n comomentWillUnmount() {\n SessionStore.removeListener(\"change\", this.setAssignUser);\n }\n\n setAssignUser() {\n const settings = SessionStore.getSettings();\n this.setState({\n assignUser: !settings.disableAssignExistingUsers || SessionStore.isAdmin(),\n });\n }\n\n onChangeTab(e, v) {\n this.setState({\n tab: v,\n });\n }\n\n onAssignUser(user) {\n OrganizationStore.addUser(this.props.match.params.organizationID, user, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/users`);\n });\n };\n\n onCreateUser(user) {\n const orgs = [\n {isAdmin: user.isAdmin, organizationID: this.props.match.params.organizationID},\n ];\n\n let u = user;\n u.isAdmin = false;\n u.isActive = true;\n\n UserStore.create(u, user.password, orgs, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/users`);\n });\n };\n\n render() {\n return(\n \n \n \n \n \n \n\n \n \n {this.state.assignUser && }\n \n \n \n\n \n \n \n {(this.state.tab === 0 && this.state.assignUser) && }\n {(this.state.tab === 1 || !this.state.assignUser) && }\n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateOrganizationUser));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport OrganizationStore from \"../../stores/OrganizationStore\";\nimport SessionStore from \"../../stores/SessionStore\";\n\n\nclass OrganizationRedirect extends Component {\n componentDidMount() {\n const organizationID = SessionStore.getOrganizationID();\n if (organizationID !== undefined && organizationID !== null && organizationID !== \"\") {\n this.props.history.push(`/organizations/${organizationID}/applications`);\n } else {\n OrganizationStore.list(\"\", 1, 0, resp => {\n if (resp.result.length > 0) {\n this.props.history.push(`/organizations/${resp.result[0].id}/applications`);\n }\n });\n }\n }\n\n render() {\n return(
);\n }\n}\n\nexport default withRouter(OrganizationRedirect);\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TextField from '@material-ui/core/TextField';\nimport Card from '@material-ui/core/Card';\nimport CardHeader from '@material-ui/core/CardHeader';\nimport CardContent from '@material-ui/core/CardContent';\nimport Typography from \"@material-ui/core/Typography\";\nimport { withStyles } from \"@material-ui/core/styles\";\n\nimport Form from \"../../components/Form\";\nimport FormComponent from \"../../classes/FormComponent\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n textField: {\n width: \"100%\",\n },\n link: {\n \"& a\": {\n color: theme.palette.primary.main,\n textDecoration: \"none\",\n },\n },\n};\n\n\nclass LoginForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n \n \n \n \n );\n }\n}\n\n\nclass Login extends Component {\n constructor() {\n super();\n\n this.state = {\n registration: null,\n };\n\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n SessionStore.logout(() => {});\n\n SessionStore.getBranding(resp => {\n if (resp.registration !== \"\") {\n this.setState({\n registration: resp.registration,\n });\n }\n });\n }\n\n onSubmit(login) {\n SessionStore.login(login, () => {\n this.props.history.push(\"/\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n {this.state.registration && \n \n }\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(Login));\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\n\nimport Check from \"mdi-material-ui/Check\";\nimport Close from \"mdi-material-ui/Close\";\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\n\nimport UserStore from \"../../stores/UserStore\";\n\n\nclass ListUsers extends Component {\n getPage(limit, offset, callbackFunc) {\n UserStore.list(\"\", limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n let active = null;\n let admin = null;\n\n if (obj.isAdmin) {\n admin = ;\n } else {\n admin = ;\n }\n\n if (obj.isActive) {\n active = ;\n } else {\n active = ;\n }\n\n return(\n \n {obj.username}\n {active}\n {admin}\n \n );\n }\n\n render() {\n return(\n \n }\n to={`/users/create`}\n />,\n ]}\n >\n \n \n \n \n Username\n Active\n Admin\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListUsers;\n","import React from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport Checkbox from '@material-ui/core/Checkbox';\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport FormControl from \"../../components/FormControl\";\nimport Form from \"../../components/Form\";\n\n\nclass UserForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n {this.state.object.id === undefined && }\n \n \n \n }\n />\n \n }\n />\n \n \n \n );\n }\n}\n\nexport default UserForm;\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\n\nimport { CardContent } from \"@material-ui/core\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport UserForm from \"./UserForm\";\nimport UserStore from \"../../stores/UserStore\";\n\n\nclass CreateUser extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(user) {\n UserStore.create(user, user.password, [], resp => {\n this.props.history.push(\"/users\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(CreateUser);\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport { CardContent } from \"@material-ui/core\";\n\nimport UserStore from \"../../stores/UserStore\";\nimport UserForm from \"./UserForm\";\n\nclass UpdateUser extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(user) {\n UserStore.update(user, resp => {\n this.props.history.push(\"/users\");\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(UpdateUser);\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\n\nimport Delete from \"mdi-material-ui/Delete\";\nimport KeyVariant from \"mdi-material-ui/KeyVariant\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport UserStore from \"../../stores/UserStore\";\nimport UpdateUser from \"./UpdateUser\";\n\n\nclass UserLayout extends Component {\n constructor() {\n super();\n this.state = {\n };\n\n this.deleteUser = this.deleteUser.bind(this);\n }\n\n componentDidMount() {\n UserStore.get(this.props.match.params.userID, resp => {\n this.setState({\n user: resp,\n });\n });\n }\n\n deleteUser() {\n if (window.confirm(\"Are you sure you want to delete this user?\")) {\n UserStore.delete(this.props.match.params.userID, () => {\n this.props.history.push(\"/users\");\n });\n }\n }\n\n render() {\n if (this.state.user === undefined) {\n return(
);\n }\n\n return(\n \n }\n to={`/users/${this.props.match.params.userID}/password`}\n />,\n }\n color=\"secondary\"\n onClick={this.deleteUser}\n />,\n ]}\n >\n \n \n \n \n\n \n \n \n \n );\n }\n}\n\nexport default withRouter(UserLayout);\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport TextField from '@material-ui/core/TextField';\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport UserStore from \"../../stores/UserStore\";\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\n\n\nclass PasswordForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n );\n }\n}\n\n\nclass ChangeUserPassword extends Component {\n constructor() {\n super();\n this.state = {};\n\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n UserStore.get(this.props.match.params.userID, resp => {\n this.setState({\n user: resp,\n });\n });\n }\n\n onSubmit(password) {\n UserStore.updatePassword(this.props.match.params.userID, password.password, resp => {\n this.props.history.push(\"/\");\n });\n }\n\n render() {\n if (this.state.user === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(ChangeUserPassword);\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass ServiceProfileStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/serviceProfile.swagger.json\", sessionStore.getClientOpts());\n }\n\n create(serviceProfile, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ServiceProfileService.Create({\n body: {\n serviceProfile: serviceProfile,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ServiceProfileService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(serviceProfile, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ServiceProfileService.Update({\n \"service_profile.id\": serviceProfile.id,\n body: {\n serviceProfile: serviceProfile,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ServiceProfileService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.ojb);\n })\n .catch(errorHandler);\n });\n }\n\n list(organizationID, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ServiceProfileService.List({\n organizationID: organizationID,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"service-profile has been \" + action,\n },\n });\n }\n}\n\nconst serviceProfileStore = new ServiceProfileStore();\nexport default serviceProfileStore;\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport Admin from \"../../components/Admin\";\nimport DataTable from \"../../components/DataTable\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\n\n\nclass ListServiceProfiles extends Component {\n constructor() {\n super();\n\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n ServiceProfileStore.list(this.props.match.params.organizationID, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n {obj.name}\n \n );\n }\n\n render() {\n return(\n \n \n }\n to={`/organizations/${this.props.match.params.organizationID}/service-profiles/create`}\n />\n \n }\n >\n \n \n \n \n Name\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListServiceProfiles;\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport TextField from '@material-ui/core/TextField';\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport Checkbox from '@material-ui/core/Checkbox';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\n\n\nconst styles = {\n fontSize: 12,\n};\n\n\nclass ServiceProfileForm extends FormComponent {\n constructor() {\n super();\n this.getNetworkServerOption = this.getNetworkServerOption.bind(this);\n this.getNetworkServerOptions = this.getNetworkServerOptions.bind(this);\n }\n\n getNetworkServerOption(id, callbackFunc) {\n NetworkServerStore.get(id, resp => {\n callbackFunc({label: resp.networkServer.name, value: resp.networkServer.id});\n });\n }\n\n getNetworkServerOptions(search, callbackFunc) {\n NetworkServerStore.list(0, 999, 0, resp => {\n const options = resp.result.map((ns, i) => {return {label: ns.name, value: ns.id}});\n callbackFunc(options);\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n {!this.props.update && \n Network-server\n \n \n The network-server on which this service-profile will be provisioned. After creating the service-profile, this value can't be changed.\n \n }\n \n \n }\n />\n \n GW metadata (RSSI, SNR, GW geoloc., etc.) are added to the packet sent to the application-server.\n \n \n \n \n }\n />\n \n When enabled, the network-server will try to resolve the location of the devices under this service-profile.\n Please note that you need to have gateways supporting the fine-timestamp feature and that the network-server\n needs to be configured in order to provide geolocation support.\n \n \n \n {this.state.object.devStatusReqFreq > 0 && \n \n \n }\n />\n \n }\n />\n \n }\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(ServiceProfileForm);\n","import React, { Component } from \"react\";\nimport { withRouter, Link } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Button from \"@material-ui/core/Button\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport ServiceProfileForm from \"./ServiceProfileForm\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\n\n\nclass CreateServiceProfile extends Component {\n constructor() {\n super();\n this.state = {\n nsDialog: false,\n };\n this.onSubmit = this.onSubmit.bind(this);\n this.closeDialog = this.closeDialog.bind(this);\n }\n\n componentDidMount() {\n NetworkServerStore.list(0, 0, 0, resp => {\n if (resp.totalCount === \"0\") {\n this.setState({\n nsDialog: true,\n });\n }\n });\n }\n\n closeDialog() {\n this.setState({\n nsDialog: false,\n });\n }\n\n onSubmit(serviceProfile) {\n let sp = serviceProfile;\n sp.organizationID = this.props.match.params.organizationID;\n\n ServiceProfileStore.create(sp, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/service-profiles`);\n });\n }\n\n render() {\n return(\n \n \n Add a network-server?\n \n \n LoRa App Server isn't connected to a LoRa Server network-server.\n Did you know that LoRa App Server can connect to multiple LoRa Server instances, e.g. to support multiple regions?\n \n \n Would you like to connect to a network-server now?\n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(CreateServiceProfile);\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\nimport ServiceProfileForm from \"./ServiceProfileForm\";\n\n\nclass UpdateServiceProfile extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(serviceProfile) {\n ServiceProfileStore.update(serviceProfile, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/service-profiles`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(UpdateServiceProfile);\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport Admin from \"../../components/Admin\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport UpdateServiceProfile from \"./UpdateServiceProfile\";\n\n\nclass ServiceProfileLayout extends Component {\n constructor() {\n super();\n this.state = {\n admin: false,\n };\n this.deleteServiceProfile = this.deleteServiceProfile.bind(this);\n this.setIsAdmin = this.setIsAdmin.bind(this);\n }\n\n componentDidMount() {\n ServiceProfileStore.get(this.props.match.params.serviceProfileID, resp => {\n this.setState({\n serviceProfile: resp,\n });\n });\n\n SessionStore.on(\"change\", this.setIsAdmin);\n this.setIsAdmin();\n }\n\n componentWillUnmount() {\n SessionStore.removeListener(\"change\", this.setIsAdmin);\n }\n\n setIsAdmin() {\n this.setState({\n admin: SessionStore.isAdmin(),\n });\n }\n\n deleteServiceProfile() {\n if (window.confirm(\"Are you sure you want to delete this service-profile?\")) {\n ServiceProfileStore.delete(this.props.match.params.serviceProfileID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/service-profiles`);\n });\n }\n }\n\n render() {\n if (this.state.serviceProfile === undefined) {\n return(
);\n }\n\n return(\n \n \n }\n color=\"secondary\"\n onClick={this.deleteServiceProfile}\n />\n \n }\n >\n \n \n \n \n\n \n \n \n \n );\n }\n}\n\nexport default withRouter(ServiceProfileLayout);\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass DeviceProfileStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/deviceProfile.swagger.json\", sessionStore.getClientOpts())\n }\n\n create(deviceProfile, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceProfileService.Create({\n body: {\n deviceProfile: deviceProfile,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceProfileService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(deviceProfile, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceProfileService.Update({\n \"device_profile.id\": deviceProfile.id,\n body: {\n deviceProfile: deviceProfile,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceProfileService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.ojb);\n })\n .catch(errorHandler);\n });\n }\n\n list(organizationID, applicationID, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceProfileService.List({\n organizationID: organizationID,\n applicationID: applicationID,\n limit: limit,\n offset: offset,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"device-profile has been \" + action,\n },\n });\n }\n}\n\nconst deviceProfileStore = new DeviceProfileStore();\nexport default deviceProfileStore;\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport TableCell from '@material-ui/core/TableCell';\nimport TableRow from '@material-ui/core/TableRow';\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\nimport Admin from \"../../components/Admin\";\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\n\n\nclass ListDeviceProfiles extends Component {\n constructor() {\n super();\n\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n DeviceProfileStore.list(this.props.match.params.organizationID, 0, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n {obj.name}\n \n );\n }\n\n render() {\n return(\n \n \n }\n to={`/organizations/${this.props.match.params.organizationID}/device-profiles/create`}\n />\n \n }\n >\n \n \n \n \n Name\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListDeviceProfiles;\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport TextField from '@material-ui/core/TextField';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport {Controlled as CodeMirror} from \"react-codemirror2\";\nimport \"codemirror/mode/javascript/javascript\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\nimport { FormLabel } from \"../../../node_modules/@material-ui/core\";\n\n\nconst styles = {\n formLabel: {\n fontSize: 12,\n },\n codeMirror: {\n zIndex: 1,\n },\n};\n\n\nclass DeviceProfileForm extends FormComponent {\n constructor() {\n super();\n this.state = {\n tab: 0,\n };\n\n this.onTabChange = this.onTabChange.bind(this);\n this.getNetworkServerOptions = this.getNetworkServerOptions.bind(this);\n this.getMACVersionOptions = this.getMACVersionOptions.bind(this);\n this.getRegParamsOptions = this.getRegParamsOptions.bind(this);\n this.getPingSlotPeriodOptions = this.getPingSlotPeriodOptions.bind(this);\n this.getPayloadCodecOptions = this.getPayloadCodecOptions.bind(this);\n this.onCodeChange = this.onCodeChange.bind(this);\n }\n\n getNetworkServerOptions(search, callbackFunc) {\n NetworkServerStore.list(this.props.match.params.organizationID, 999, 0, resp => {\n const options = resp.result.map((ns, i) => {return {label: ns.name, value: ns.id}});\n callbackFunc(options);\n });\n }\n\n getMACVersionOptions(search, callbackFunc) {\n const macVersionOptions = [\n {value: \"1.0.0\", label: \"1.0.0\"},\n {value: \"1.0.1\", label: \"1.0.1\"},\n {value: \"1.0.2\", label: \"1.0.2\"},\n {value: \"1.0.3\", label: \"1.0.3\"},\n {value: \"1.1.0\", label: \"1.1.0\"},\n ];\n\n callbackFunc(macVersionOptions);\n }\n\n getRegParamsOptions(search, callbackFunc) {\n const regParamsOptions = [\n {value: \"A\", label: \"A\"},\n {value: \"B\", label: \"B\"},\n ];\n\n callbackFunc(regParamsOptions);\n }\n\n getPingSlotPeriodOptions(search, callbackFunc) {\n const pingSlotPeriodOptions = [\n {value: 32 * 1, label: \"every second\"},\n {value: 32 * 2, label: \"every 2 seconds\"},\n {value: 32 * 4, label: \"every 4 seconds\"},\n {value: 32 * 8, label: \"every 8 seconds\"},\n {value: 32 * 16, label: \"every 16 seconds\"},\n {value: 32 * 32, label: \"every 32 seconds\"},\n {value: 32 * 64, label: \"every 64 seconds\"},\n {value: 32 * 128, label: \"every 128 seconds\"},\n ];\n\n callbackFunc(pingSlotPeriodOptions);\n }\n\n getPayloadCodecOptions(search, callbackFunc) {\n const payloadCodecOptions = [\n {value: \"\", label: \"None\"},\n {value: \"CAYENNE_LPP\", label: \"Cayenne LPP\"},\n {value: \"CUSTOM_JS\", label: \"Custom JavaScript codec functions\"},\n ];\n\n callbackFunc(payloadCodecOptions);\n }\n\n onCodeChange(field, editor, data, newCode) {\n let object = this.state.object;\n object[field] = newCode;\n this.setState({\n object: object,\n });\n }\n\n onTabChange(e, v) {\n this.setState({\n tab: v,\n });\n }\n\n onChange(e) {\n super.onChange(e);\n if (e.target.id === \"factoryPresetFreqsStr\") {\n let object = this.state.object;\n let freqsStr = e.target.value.split(\",\");\n object[\"factoryPresetFreqs\"] = freqsStr.map((f, i) => parseInt(f, 10));\n this.setState({\n object: object,\n });\n }\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n let factoryPresetFreqsStr = \"\";\n if (this.state.object.factoryPresetFreqsStr !== undefined) {\n factoryPresetFreqsStr = this.state.object.factoryPresetFreqsStr;\n } else if (this.state.object.factoryPresetFreqs !== undefined) {\n factoryPresetFreqsStr = this.state.object.factoryPresetFreqs.join(\", \");\n }\n\n const codeMirrorOptions = {\n lineNumbers: true,\n mode: \"javascript\",\n theme: \"default\",\n };\n \n let payloadEncoderScript = this.state.object.payloadEncoderScript;\n let payloadDecoderScript = this.state.object.payloadDecoderScript;\n\n if (payloadEncoderScript === \"\" || payloadEncoderScript === undefined) {\n payloadEncoderScript = `// Encode encodes the given object into an array of bytes.\n// - fPort contains the LoRaWAN fPort number\n// - obj is an object, e.g. {\"temperature\": 22.5}\n// The function must return an array of bytes, e.g. [225, 230, 255, 0]\nfunction Encode(fPort, obj) {\n return [];\n}`;\n }\n\n if (payloadDecoderScript === \"\" || payloadDecoderScript === undefined) {\n payloadDecoderScript = `// Decode decodes an array of bytes into an object.\n// - fPort contains the LoRaWAN fPort number\n// - bytes is an array of bytes, e.g. [225, 230, 255, 0]\n// The function must return an object, e.g. {\"temperature\": 22.5}\nfunction Decode(fPort, bytes) {\n return {};\n}`;\n }\n\n\n return(\n \n \n \n \n \n \n \n \n\n {this.state.tab === 0 &&
\n \n {!this.props.update && \n Network-server\n \n \n The network-server on which this device-profile will be provisioned. After creating the device-profile, this value can't be changed.\n \n }\n \n LoRaWAN MAC version\n \n \n The LoRaWAN MAC version supported by the device.\n \n \n \n LoRaWAN Regional Parameters revision\n \n \n Revision of the Regional Parameters specification supported by the device.\n \n \n \n
}\n\n {this.state.tab === 1 &&
\n \n \n }\n />\n \n {!this.state.object.supportsJoin && }\n {!this.state.object.supportsJoin && }\n {!this.state.object.supportsJoin && }\n {!this.state.object.supportsJoin && }\n {!this.state.object.supportsJoin && }\n
}\n\n {this.state.tab === 2 &&
\n \n \n }\n />\n \n\n {this.state.object.supportsClassB && }\n {this.state.object.supportsClassB && \n Class-B ping-slot periodicity\n \n Class-B ping-slot periodicity.\n }\n {this.state.object.supportsClassB && }\n {this.state.object.supportsClassB && }\n
}\n\n {this.state.tab === 3 &&
\n \n \n }\n />\n Select this option when the device will operate as Class-C device immediately after activation. In case it sends a DeviceModeInd mac-command when it changes to Class-C, do not select this option.\n \n\n \n
}\n\n {this.state.tab === 4 &&
\n \n Payload codec\n \n \n By defining a payload codec, LoRa App Server can encode and decode the binary device payload for you.\n \n \n\n {this.state.object.payloadCodec === \"CUSTOM_JS\" && \n \n \n The function must have the signature function Decode(fPort, bytes) and must return an object.\n LoRa App Server will convert this object to JSON.\n \n }\n {this.state.object.payloadCodec === \"CUSTOM_JS\" && \n \n \n The function must have the signature function Encode(fPort, obj) and must return an array\n of bytes.\n \n }\n
}\n \n );\n }\n}\n\nexport default withStyles(styles)(DeviceProfileForm);\n","import React, { Component } from \"react\";\nimport { withRouter, Link } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Button from \"@material-ui/core/Button\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport DeviceProfileForm from \"./DeviceProfileForm\";\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateDeviceProfile extends Component {\n constructor() {\n super();\n this.state = {\n spDialog: false,\n };\n this.onSubmit = this.onSubmit.bind(this);\n this.closeDialog = this.closeDialog.bind(this);\n }\n\n componentDidMount() {\n ServiceProfileStore.list(this.props.match.params.organizationID, 0, 0, resp => {\n if (resp.totalCount === \"0\") {\n this.setState({\n spDialog: true,\n });\n }\n });\n }\n\n closeDialog() {\n this.setState({\n spDialog: false,\n });\n }\n\n onSubmit(deviceProfile) {\n let sp = deviceProfile;\n sp.organizationID = this.props.match.params.organizationID;\n\n DeviceProfileStore.create(sp, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/device-profiles`);\n });\n }\n\n render() {\n return(\n \n \n Add a service-profile?\n \n \n The selected organization does not have a service-profile yet.\n A service-profile connects an organization to a network-server and defines the features that an organization can use on this network-server.\n \n \n Would you like to create a service-profile?\n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateDeviceProfile));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\nimport DeviceProfileForm from \"./DeviceProfileForm\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass UpdateDeviceProfile extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(deviceProfile) {\n DeviceProfileStore.update(deviceProfile, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/device-profiles`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(UpdateDeviceProfile));\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from '@material-ui/core/Grid';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport Admin from \"../../components/Admin\";\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport UpdateDeviceProfile from \"./UpdateDeviceProfile\";\n\n\nclass DeviceProfileLayout extends Component {\n constructor() {\n super();\n this.state = {\n admin: false,\n };\n this.deleteDeviceProfile = this.deleteDeviceProfile.bind(this);\n this.setIsAdmin = this.setIsAdmin.bind(this);\n }\n\n componentDidMount() {\n DeviceProfileStore.get(this.props.match.params.deviceProfileID, resp => {\n this.setState({\n deviceProfile: resp,\n });\n });\n\n SessionStore.on(\"change\", this.setIsAdmin);\n this.setIsAdmin();\n }\n\n componentWillUpdate() {\n SessionStore.removeListener(\"change\", this.setIsAdmin);\n }\n\n setIsAdmin() {\n this.setState({\n admin: SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.match.params.organizationID),\n });\n }\n\n deleteDeviceProfile() {\n if (window.confirm(\"Are you sure you want to delete this device-profile?\")) {\n DeviceProfileStore.delete(this.props.match.params.deviceProfileID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/device-profiles`);\n });\n }\n }\n\n render() {\n if (this.state.deviceProfile === undefined) {\n return(
);\n }\n\n return(\n \n \n }\n color=\"secondary\"\n onClick={this.deleteDeviceProfile}\n />\n \n }\n >\n \n \n \n \n\n \n \n \n \n );\n }\n}\n\nexport default withRouter(DeviceProfileLayout);\n","import { EventEmitter } from \"events\";\nimport RobustWebSocket from \"robust-websocket\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler, errorHandlerIgnoreNotFound } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass GatewayStore extends EventEmitter {\n constructor() {\n super();\n this.wsStatus = null;\n this.swagger = new Swagger(\"/swagger/gateway.swagger.json\", sessionStore.getClientOpts());\n }\n\n getWSStatus() {\n return this.wsStatus;\n }\n\n create(gateway, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.Create({\n body: {\n gateway: gateway,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(gateway, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.Update({\n \"gateway.id\": gateway.id,\n body: {\n gateway: gateway,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(search, organizationID, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.List({\n limit: limit,\n offset: offset,\n organizationID: organizationID,\n search: search,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getStats(gatewayID, start, end, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.GetStats({\n gateway_id: gatewayID,\n interval: \"DAY\",\n startTimestamp: start,\n endTimestamp: end,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getLastPing(gatewayID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.GetLastPing({\n gateway_id: gatewayID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandlerIgnoreNotFound);\n });\n }\n\n getFrameLogsConnection(gatewayID, onOpen, onClose, onData) {\n const loc = window.location;\n const wsURL = (() => {\n if (loc.host === \"localhost:3000\" || loc.host === \"localhost:3001\") {\n return `wss://localhost:8080/api/gateways/${gatewayID}/frames`;\n }\n\n const wsProtocol = loc.protocol === \"https:\" ? \"wss:\" : \"ws:\";\n return `${wsProtocol}//${loc.host}/api/gateways/${gatewayID}/frames`;\n })();\n\n const conn = new RobustWebSocket(wsURL, [\"Bearer\", sessionStore.getToken()], {});\n\n conn.addEventListener(\"open\", () => {\n console.log('connected to', wsURL);\n this.wsStatus = \"CONNECTED\";\n this.emit(\"ws.status.change\");\n onOpen();\n });\n\n conn.addEventListener(\"message\", (e) => {\n const msg = JSON.parse(e.data);\n if (msg.error !== undefined) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: msg.error.message,\n },\n });\n } else if (msg.result !== undefined) {\n onData(msg.result);\n }\n });\n\n conn.addEventListener(\"close\", () => {\n console.log('closing', wsURL);\n this.wsStatus = null;\n this.emit(\"ws.status.change\");\n onClose();\n });\n\n conn.addEventListener(\"error\", () => {\n console.log(\"error\");\n this.wsStatus = \"ERROR\";\n this.emit(\"ws.status.change\");\n });\n\n return conn;\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"gateway has been \" + action,\n },\n });\n }\n}\n\nconst gatewayStore = new GatewayStore();\nexport default gatewayStore;\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport moment from \"moment\";\nimport { Bar } from \"react-chartjs-2\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\nimport Admin from \"../../components/Admin\";\nimport GatewayStore from \"../../stores/GatewayStore\";\n\n\nclass GatewayRow extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n componentWillMount() {\n const start = moment().subtract(29, \"days\").toISOString();\n const end = moment().toISOString();\n\n GatewayStore.getStats(this.props.gateway.id, start, end, resp => {\n let stats = {\n labels: [],\n datasets: [\n {\n data: [],\n fillColor: \"rgba(33, 150, 243, 1)\",\n },\n ],\n };\n\n for (const row of resp.result) {\n stats.labels.push(row.timestamp);\n stats.datasets[0].data.push(row.rxPacketsReceivedOK + row.txPacketsEmitted);\n }\n\n this.setState({\n stats: stats,\n });\n });\n }\n\n render() {\n const options = {\n scales: {\n xAxes: [{display: false}],\n yAxes: [{display: false}],\n },\n tooltips: {\n enabled: false,\n },\n legend: {\n display: false,\n },\n responsive: false,\n animation: {\n duration: 0,\n },\n };\n\n return(\n \n {this.props.gateway.name}\n {this.props.gateway.id}\n \n {this.state.stats && }\n \n \n );\n }\n}\n\n\nconst styles = {\n chart: {\n width: 380,\n },\n};\n\n\n\nclass ListGateways extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n GatewayStore.list(\"\", this.props.match.params.organizationID, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n );\n }\n\n render() {\n return(\n \n \n }\n to={`/organizations/${this.props.match.params.organizationID}/gateways/create`}\n />\n \n }\n >\n \n \n \n \n Name\n Gateway ID\n Gateway activity (30d)\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default withStyles(styles)(ListGateways);\n","import React, { Component } from 'react';\n\nimport { TileLayer } from 'react-leaflet';\n\n\nclass MapTileLayer extends Component {\n render() {\n return(\n \n )\n }\n}\n\nexport default MapTileLayer;\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Paper from '@material-ui/core/Paper';\nimport Card from \"@material-ui/core/Card\";\nimport CardHeader from \"@material-ui/core/CardHeader\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Typography from \"@material-ui/core/Typography\";\nimport Grid from '@material-ui/core/Grid';\n\nimport moment from \"moment\";\nimport { Map, Marker } from 'react-leaflet';\nimport { Line } from \"react-chartjs-2\";\n\nimport MapTileLayer from \"../../components/MapTileLayer\";\nimport GatewayStore from \"../../stores/GatewayStore\";\n\n\nconst styles = {\n chart: {\n height: 300,\n },\n};\n\n\nclass GatewayDetails extends Component {\n constructor() {\n super();\n this.state = {};\n this.loadStats = this.loadStats.bind(this);\n }\n\n componentDidMount() {\n this.loadStats();\n }\n\n loadStats() {\n const end = moment().toISOString()\n const start = moment().subtract(30, \"days\").toISOString()\n\n GatewayStore.getStats(this.props.match.params.gatewayID, start, end, resp => {\n let statsDown = {\n labels: [],\n datasets: [\n {\n label: \"rx received\",\n borderColor: \"rgba(33, 150, 243, 1)\",\n backgroundColor: \"rgba(0, 0, 0, 0)\",\n lineTension: 0,\n pointBackgroundColor: \"rgba(33, 150, 243, 1)\",\n data: [],\n },\n ],\n }\n\n let statsUp = {\n labels: [],\n datasets: [\n {\n label: \"tx emitted\",\n borderColor: \"rgba(33, 150, 243, 1)\",\n backgroundColor: \"rgba(0, 0, 0, 0)\",\n lineTension: 0,\n pointBackgroundColor: \"rgba(33, 150, 243, 1)\",\n data: [],\n },\n ],\n }\n\n for (const row of resp.result) {\n statsUp.labels.push(moment(row.timestamp).format(\"Do\"));\n statsDown.labels.push(moment(row.timestamp).format(\"Do\"));\n statsUp.datasets[0].data.push(row.txPacketsEmitted);\n statsDown.datasets[0].data.push(row.rxPacketsReceivedOK);\n }\n\n this.setState({\n statsUp: statsUp,\n statsDown: statsDown,\n });\n });\n }\n\n render() {\n if (this.props.gateway === undefined || this.state.statsDown === undefined || this.state.statsUp === undefined) {\n return(
);\n }\n\n const style = {\n height: 400,\n };\n\n const statsOptions = {\n legend: {\n display: false,\n },\n maintainAspectRatio: false,\n }\n\n let position = [];\n if (typeof(this.props.gateway.location.latitude) !== \"undefined\" && typeof(this.props.gateway.location.longitude !== \"undefined\")) {\n position = [this.props.gateway.location.latitude, this.props.gateway.location.longitude]; \n } else {\n position = [0,0];\n }\n\n let lastseen = \"\";\n if (this.props.lastSeenAt !== undefined) {\n lastseen = moment(this.props.lastSeenAt).fromNow();\n }\n\n return(\n \n \n \n \n \n \n Gateway ID\n \n \n {this.props.gateway.id}\n \n \n Altitude\n \n \n {this.props.gateway.location.altitude} meters\n \n \n GPS coordinates\n \n \n {this.props.gateway.location.latitude}, {this.props.gateway.location.longitude}\n \n \n Last seen\n \n \n {lastseen}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(GatewayDetails);\n","import { EventEmitter } from \"events\";\nimport \"whatwg-fetch\";\nimport dispatcher from \"../dispatcher\";\nimport history from \"../history\";\n\n\nfunction checkStatus(response) {\n if (response.status >= 200 && response.status < 300) {\n return response\n } else {\n throw response.json();\n }\n};\n\nfunction errorHandler(error) {\n error.then((data) => {\n if (data.code === 16) {\n history.push(\"/login\");\n } else {\n dispatcher.dispatch({\n type: \"CREATE_ERROR\",\n error: data,\n });\n }\n });\n};\n\n\nclass LocationStore extends EventEmitter {\n getLocation(callbackFunc) {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition((position) => {\n callbackFunc(position);\n }, (error) => {\n this.getGeoIPLocation(callbackFunc);\n });\n } else {\n this.getGeoIPLocation(callbackFunc);\n }\n }\n\n getGeoIPLocation(callbackFunc) {\n fetch(\"https://freegeoip.net/json/\")\n .then(checkStatus)\n .then((response) => response.json())\n .then((responseData) => {\n if(typeof(responseData.latitude) === \"undefined\") {\n callbackFunc({coords: {latitude: 0, longitude: 0}});\n } else {\n callbackFunc({ coords: { latitude: responseData.latitude, longitude: responseData.longitude } });\n }\n })\n .catch(errorHandler); \n }\n}\n\nconst locationStore = new LocationStore();\n\nexport default locationStore;\n","import React, { Component } from \"react\";\n\nimport TextField from \"@material-ui/core/TextField\";\nimport InputAdornment from '@material-ui/core/InputAdornment';\nimport IconButton from '@material-ui/core/IconButton';\nimport Button from \"@material-ui/core/Button\";\nimport Tooltip from '@material-ui/core/Tooltip';\n\nimport Refresh from \"mdi-material-ui/Refresh\";\n\nimport MaskedInput from \"react-text-mask\";\n\n\nclass EUI64HEXMask extends Component {\n render() {\n const { inputRef, ...other } = this.props;\n\n return(\n \n );\n }\n}\n\n\nclass EUI64Field extends Component {\n constructor() {\n super();\n\n this.state = {\n msb: true,\n value: \"\",\n };\n }\n\n toggleByteOrder = () => {\n this.setState({\n msb: !this.state.msb,\n });\n\n const bytes = this.state.value.match(/[A-Fa-f0-9]{2}/g);\n if (bytes !== null) {\n this.setState({\n value: bytes.reverse().join(\" \"),\n });\n }\n }\n\n randomKey = () => {\n let key = \"\";\n const possible = 'abcdef0123456789';\n\n for(let i = 0; i < 16; i++){\n key += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n this.setState({\n value: key,\n });\n\n let str = \"\";\n const bytes = key.match(/[A-Fa-f0-9]{2}/g);\n if (!this.state.msb && bytes !== null) {\n str = bytes.reverse().join(\"\");\n } else if (bytes !== null) {\n str = bytes.join(\"\");\n } else {\n str = \"\";\n }\n\n this.props.onChange({\n target: {\n value: str,\n type: \"text\",\n id: this.props.id,\n },\n });\n }\n\n onChange = (e) => {\n this.setState({\n value: e.target.value,\n });\n\n let str = \"\";\n\n const bytes = e.target.value.match(/[A-Fa-f0-9]{2}/g);\n if (!this.state.msb && bytes !== null) {\n str = bytes.reverse().join(\"\");\n } else if (bytes !== null) {\n str = bytes.join(\"\");\n } else {\n str = \"\";\n }\n\n this.props.onChange({\n target: {\n value: str,\n type: \"text\",\n id: this.props.id,\n },\n });\n }\n\n componentDidMount() {\n this.setState({\n value: this.props.value || \"\",\n });\n }\n\n render() {\n return(\n \n \n \n {this.state.msb ? \"MSB\": \"LSB\"}\n \n \n {this.props.random && !this.props.disabled && \n \n \n \n }\n \n }}\n {...this.props}\n onChange={this.onChange}\n value={this.state.value}\n disabled={this.props.disabled}\n />\n );\n }\n}\n\nexport default EUI64Field;\n","import React, { Component } from \"react\";\n\nimport TextField from \"@material-ui/core/TextField\";\nimport InputAdornment from '@material-ui/core/InputAdornment';\nimport IconButton from '@material-ui/core/IconButton';\nimport Button from \"@material-ui/core/Button\";\nimport Tooltip from '@material-ui/core/Tooltip';\n\nimport Eye from \"mdi-material-ui/Eye\";\nimport EyeOff from \"mdi-material-ui/EyeOff\";\nimport Refresh from \"mdi-material-ui/Refresh\";\n\nimport MaskedInput from \"react-text-mask\";\n\n\nclass AESKeyHEXMask extends Component {\n render() {\n const { inputRef, ...other } = this.props;\n\n return(\n \n );\n }\n}\n\n\nclass AESKeyField extends Component {\n constructor() {\n super();\n\n this.state = {\n showKey: false,\n msb: true,\n value: \"\",\n };\n }\n\n toggleShowPassword = () => {\n this.setState({\n showKey: !this.state.showKey,\n });\n }\n\n toggleByteOrder = () => {\n this.setState({\n msb: !this.state.msb,\n });\n\n const bytes = this.state.value.match(/[A-Fa-f0-9]{2}/g);\n if (bytes !== null) {\n this.setState({\n value: bytes.reverse().join(\" \"),\n });\n }\n }\n\n randomKey = () => {\n let key = \"\";\n const possible = 'abcdef0123456789';\n\n for(let i = 0; i < 32; i++){\n key += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n this.setState({\n value: key,\n });\n\n let str = \"\";\n const bytes = key.match(/[A-Fa-f0-9]{2}/g);\n if (!this.state.msb && bytes !== null) {\n str = bytes.reverse().join(\"\");\n } else if (bytes !== null) {\n str = bytes.join(\"\");\n } else {\n str = \"\";\n }\n\n this.props.onChange({\n target: {\n value: str,\n type: \"text\",\n id: this.props.id,\n },\n });\n }\n\n onChange = (e) => {\n this.setState({\n value: e.target.value,\n });\n\n let str = \"\";\n\n const bytes = e.target.value.match(/[A-Fa-f0-9]{2}/g);\n if (!this.state.msb && bytes !== null) {\n str = bytes.reverse().join(\"\");\n } else if (bytes !== null) {\n str = bytes.join(\"\");\n } else {\n str = \"\";\n }\n\n this.props.onChange({\n target: {\n value: str,\n type: \"text\",\n id: this.props.id,\n },\n });\n }\n\n componentDidMount() {\n this.setState({\n value: this.props.value || \"\",\n showKey: this.props.value === \"\" ? true : false,\n });\n }\n\n render() {\n return(\n \n {this.state.showKey && \n \n {this.state.msb ? \"MSB\": \"LSB\"}\n \n }\n {this.props.random && this.state.showKey && !this.props.disabled && \n \n \n \n }\n \n {this.state.showKey ? : }\n \n \n }}\n {...this.props}\n onChange={this.onChange}\n value={this.state.value}\n disabled={this.props.disabled || !this.state.showKey}\n />\n );\n }\n}\n\nexport default AESKeyField;\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport TextField from '@material-ui/core/TextField';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport Checkbox from '@material-ui/core/Checkbox';\nimport Button from \"@material-ui/core/Button\";\n\nimport { Map, Marker } from 'react-leaflet';\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\nimport GatewayProfileStore from \"../../stores/GatewayProfileStore\";\nimport LocationStore from \"../../stores/LocationStore\";\nimport MapTileLayer from \"../../components/MapTileLayer\";\nimport EUI64Field from \"../../components/EUI64Field\";\nimport AESKeyField from \"../../components/AESKeyField\";\nimport theme from \"../../theme\";\n\n\nconst boardStyles = {\n formLabel: {\n color: theme.palette.primary.main,\n },\n a: {\n color: theme.palette.primary.main,\n },\n};\n\nclass GatewayBoardForm extends Component {\n constructor() {\n super();\n\n this.onChange = this.onChange.bind(this);\n this.onDelete = this.onDelete.bind(this);\n }\n\n onChange(e) {\n let board = this.props.board;\n const field = e.target.id;\n\n board[field] = e.target.value;\n this.props.onChange(board);\n }\n\n onDelete(e) {\n e.preventDefault();\n this.props.onDelete();\n }\n\n render() {\n return(\n \n Board #{this.props.i} configuration (delete)\n \n \n \n );\n }\n}\n\nGatewayBoardForm = withStyles(boardStyles)(GatewayBoardForm);\n\n\nconst styles = {\n mapLabel: {\n marginBottom: theme.spacing.unit,\n },\n link: {\n color: theme.palette.primary.main,\n },\n formLabel: {\n fontSize: 12,\n },\n};\n\nclass GatewayForm extends FormComponent {\n constructor() {\n super();\n \n this.state = {\n mapZoom: 15,\n };\n\n this.getNetworkServerOption = this.getNetworkServerOption.bind(this);\n this.getNetworkServerOptions = this.getNetworkServerOptions.bind(this);\n this.getGatewayProfileOption = this.getGatewayProfileOption.bind(this);\n this.getGatewayProfileOptions = this.getGatewayProfileOptions.bind(this);\n this.setCurrentPosition = this.setCurrentPosition.bind(this);\n this.updatePosition = this.updatePosition.bind(this);\n this.updateZoom = this.updateZoom.bind(this);\n this.addGatewayBoard = this.addGatewayBoard.bind(this);\n }\n\n componentDidMount() {\n super.componentDidMount();\n\n if (!this.props.update) {\n this.setCurrentPosition();\n }\n }\n\n onChange(e) {\n if (e.target.id === \"networkServerID\" && e.target.value !== this.state.object.networkServerID) {\n let object = this.state.object;\n object.gatewayProfileID = null;\n this.setState({\n object: object,\n });\n }\n\n super.onChange(e);\n }\n\n setCurrentPosition(e) {\n if (e !== undefined) {\n e.preventDefault();\n }\n\n LocationStore.getLocation(position => {\n let object = this.state.object;\n object.location = {\n latitude: position.coords.latitude,\n longitude: position.coords.longitude,\n }\n this.setState({\n object: object,\n });\n });\n }\n\n updatePosition() {\n const position = this.refs.marker.leafletElement.getLatLng();\n let object = this.state.object;\n object.location = {\n latitude: position.lat,\n longitude: position.lng,\n }\n this.setState({\n object: object,\n });\n }\n\n updateZoom(e) {\n this.setState({\n mapZoom: e.target.getZoom(),\n });\n }\n\n getNetworkServerOption(id, callbackFunc) {\n NetworkServerStore.get(id, resp => {\n callbackFunc({label: resp.networkServer.name, value: resp.networkServer.id});\n });\n }\n\n getNetworkServerOptions(search, callbackFunc) {\n NetworkServerStore.list(this.props.match.params.organizationID, 999, 0, resp => {\n const options = resp.result.map((ns, i) => {return {label: ns.name, value: ns.id}});\n callbackFunc(options);\n });\n }\n\n getGatewayProfileOption(id, callbackFunc) {\n GatewayProfileStore.get(id, resp => {\n callbackFunc({label: resp.gatewayProfile.name, value: resp.gatewayProfile.id});\n });\n }\n\n getGatewayProfileOptions(search, callbackFunc) {\n if (this.state.object === undefined || this.state.object.networkServerID === undefined) {\n callbackFunc([]);\n return;\n }\n\n GatewayProfileStore.list(this.state.object.networkServerID, 999, 0, resp => {\n const options = resp.result.map((gp, i) => {return {label: gp.name, value: gp.id}});\n callbackFunc(options);\n });\n }\n\n addGatewayBoard() {\n let object = this.state.object;\n if (object.boards === undefined) {\n object.boards = [{}];\n } else {\n object.boards.push({});\n }\n\n this.setState({\n object: object,\n });\n }\n\n deleteGatewayBoard(i) {\n let object = this.state.object;\n object.boards.splice(i, 1);\n this.setState({\n object: object,\n });\n }\n\n updateGatewayBoard(i, board) {\n let object = this.state.object;\n object.boards[i] = board;\n this.setState({\n object: object,\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n const style = {\n height: 400,\n };\n\n let position = [];\n if (this.state.object.location.latitude !== undefined && this.state.object.location.longitude !== undefined) {\n position = [this.state.object.location.latitude, this.state.object.location.longitude];\n } else {\n position = [0, 0];\n }\n\n let boards = [];\n if (this.state.object.boards !== undefined) {\n boards = this.state.object.boards.map((b, i) => this.deleteGatewayBoard(i)} onChange={board => this.updateGatewayBoard(i, board)} />);\n }\n\n return(\n Add board configuration}\n >\n \n \n {!this.props.update && }\n {!this.props.update && \n Network-server\n \n \n Select the network-server to which the gateway will connect. When no network-servers are available in the dropdown, make sure a service-profile exists for this organization. \n \n }\n \n Gateway-profile\n \n \n An optional gateway-profile which can be assigned to a gateway. This configuration can be used to automatically re-configure the gateway when LoRa Gateway Bridge is configured so that it manages the packet-forwarder configuration.\n \n \n \n \n }\n />\n \n When enabled (and LoRa Server is configured with the gateway discover feature enabled), the gateway will send out periodical pings to test its coverage by other gateways in the same network.\n \n \n \n \n Gateway location (set to current location)\n \n \n \n \n \n Drag the marker to the location of the gateway. When the gateway has an on-board GPS, this value will be set automatically when the network receives statistics from the gateway.\n \n \n {boards}\n \n );\n }\n}\n\nexport default withStyles(styles)(GatewayForm);\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport GatewayStore from \"../../stores/GatewayStore\";\nimport GatewayForm from \"./GatewayForm\";\n\n\nclass UpdateGateway extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(gateway) {\n GatewayStore.update(gateway, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/gateways`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(UpdateGateway);\n","import React, { Component } from \"react\";\nimport ReactDOM from 'react-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Paper from '@material-ui/core/Paper';\nimport Card from \"@material-ui/core/Card\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Typography from \"@material-ui/core/Typography\";\nimport List from \"@material-ui/core/List\";\nimport ListItem from \"@material-ui/core/ListItem\";\n\nimport L from 'leaflet';\nimport { Map, Marker, Polyline, Popup, MapControl, withLeaflet } from 'react-leaflet';\n\nimport MapTileLayer from \"../../components/MapTileLayer\";\nimport GatewayStore from \"../../stores/GatewayStore\";\n\n\nconst styles = {\n mapLegend: {\n background: \"rgba(255,255,255,0.7)\",\n padding: 10,\n borderRadius: 5,\n },\n\n mapLegendList: {\n listStyle: \"none\",\n padding: 0,\n margin: 0,\n opacity: 1,\n },\n\n mapLegendListItem: {\n fontWeight: \"bold\",\n padding: 3,\n },\n\n label: {\n display: \"block\",\n float: \"left\",\n marginRight: 10,\n width: 24,\n },\n};\n\n\nclass GatewayDiscovery extends Component {\n constructor() {\n super();\n this.state = {};\n }\n\n componentDidMount() {\n GatewayStore.getLastPing(this.props.gateway.id, ping => {\n this.setState({\n ping: ping,\n });\n });\n }\n\n getColor(dbm) {\n if (dbm >= -100) {\n return \"#FF0000\";\n } else if (dbm >= -105) {\n return \"#FF7F00\";\n } else if (dbm >= -110) {\n return \"#FFFF00\";\n } else if (dbm >= -115) {\n return \"#00FF00\";\n } else if (dbm >= -120) {\n return \"#00FFFF\";\n } \n return \"#0000FF\";\n }\n\n render() {\n if (this.state.ping === undefined || this.state.ping.pingRX.length === 0) {\n return(\n \n \n \n No gateway discovery data is available (yet). This could mean:\n \n \n \n \n no discovery 'ping' was emitted yet\n \n \n \n \n the gateway ping feature has been disabled in LoRa App Server\n \n \n \n \n the discovery 'ping' was not received by any other gateways\n \n \n \n \n \n );\n }\n\n let position = [0, 0];\n if (this.props.gateway.location !== undefined && this.props.gateway.location.latitude !== undefined && this.props.gateway.location.longitude !== undefined) {\n position = [this.props.gateway.location.latitude, this.props.gateway.location.longitude];\n }\n\n const style = {\n height: 800,\n };\n\n let bounds = [];\n let markers = [];\n let lines = [];\n\n markers.push(\n \n \n \n {this.props.gateway.id}
\n Freq: {this.state.ping.frequency/1000000} MHz
\n DR: {this.state.ping.dr}
\n Altitude: {this.props.gateway.location.altitude} meter(s)\n
\n
\n
\n );\n\n bounds.push(position);\n\n for (const rx of this.state.ping.pingRX) {\n const pingPos = [rx.latitude, rx.longitude];\n\n markers.push(\n \n \n \n {rx.gatewayID}
\n RSSI: {rx.rssi} dBm
\n SNR: {rx.LoRaSNR} dB
\n Altitude: {rx.altitude} meter(s)\n
\n
\n
\n );\n\n bounds.push(pingPos);\n\n lines.push(\n \n );\n }\n\n return(\n \n \n \n {markers}\n {lines}\n \n
    \n
  •   >= -100 dBm
  • \n
  •   >= -105 dBm
  • \n
  •   >= -110 dBm
  • \n
  •   >= -115 dBm
  • \n
  •   >= -120 dBm
  • \n
  •   < -120 dBm
  • \n
\n
\n
\n
\n );\n };\n}\n\nclass LegendControl extends MapControl {\n componentWillMount() {\n const legend = L.control({position: \"bottomleft\"});\n const jsx = (\n
\n {this.props.children}\n
\n );\n\n legend.onAdd = function(map) {\n let div = L.DomUtil.create(\"div\", '');\n ReactDOM.render(jsx, div);\n return div;\n };\n\n this.leafletElement = legend;\n }\n\n createLeafletElement () {}\n}\n\nLegendControl = withLeaflet(LegendControl);\n\nexport default withStyles(styles)(GatewayDiscovery);\n\n","import React, { Component } from \"react\";\n\nimport JSONTreeOriginal from \"react-json-tree\";\n\n\nclass JSONTree extends Component {\n render() {\n const theme = {\n scheme: 'google',\n author: 'seth wright (http://sethawright.com)',\n base00: '#000000',\n base01: '#282a2e',\n base02: '#373b41',\n base03: '#969896',\n base04: '#b4b7b4',\n base05: '#c5c8c6',\n base06: '#e0e0e0',\n base07: '#ffffff',\n base08: '#CC342B',\n base09: '#F96A38',\n base0A: '#FBA922',\n base0B: '#198844',\n base0C: '#3971ED',\n base0D: '#3971ED',\n base0E: '#A36AC7',\n base0F: '#3971ED',\n }\n\n return(\n {return true}}\n />\n );\n }\n}\n\nexport default JSONTree;\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport ExpansionPanel from '@material-ui/core/ExpansionPanel';\nimport ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';\nimport ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';\nimport Typography from '@material-ui/core/Typography';\n\nimport ChevronDown from \"mdi-material-ui/ChevronDown\";\n\nimport moment from \"moment\";\n\nimport JSONTree from \"./JSONTree\";\nimport theme from \"../theme\";\n\n\nconst styles = {\n headerColumn: {\n marginRight: 6 * theme.spacing.unit,\n },\n headerColumnFixedSmall: {\n width: 145,\n },\n headerColumnFixedWide: {\n width: 175,\n },\n treeStyle: {\n paddingTop: 0,\n paddingBottom: 0,\n fontSize: 12,\n lineHeight: 1.5,\n },\n};\n\n\nclass LoRaWANFrameLog extends Component {\n render() {\n let dir = \"\";\n let devID = \"\";\n\n if (this.props.frame.uplinkMetaData !== undefined) {\n dir = \"UPLINK\";\n } else {\n dir = \"DOWNLINK\";\n }\n\n const receivedAt = moment(this.props.frame.receivedAt).format(\"LTS\");\n const mType = this.props.frame.phyPayload.mhdr.mType;\n\n if (this.props.frame.phyPayload.macPayload !== undefined) {\n if (this.props.frame.phyPayload.macPayload.devEUI !== undefined) {\n devID = this.props.frame.phyPayload.macPayload.devEUI;\n }\n\n if (this.props.frame.phyPayload.macPayload.fhdr !== undefined) {\n devID = this.props.frame.phyPayload.macPayload.fhdr.devAddr;\n }\n }\n\n return(\n \n }>\n
{dir}
\n
{receivedAt}
\n
{mType}
\n
{devID}
\n
\n \n \n \n {this.props.frame.uplinkMetaData && }\n {this.props.frame.downlinkMetaData && }\n \n \n \n \n \n \n
\n );\n }\n}\n\nexport default withStyles(styles)(LoRaWANFrameLog);\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Avatar from \"@material-ui/core/Avatar\";\nimport Chip from \"@material-ui/core/Chip\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Button from '@material-ui/core/Button';\nimport CircularProgress from '@material-ui/core/CircularProgress';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\n\nimport Play from \"mdi-material-ui/Play\";\nimport Pause from \"mdi-material-ui/Pause\";\nimport Download from \"mdi-material-ui/Download\";\nimport Delete from \"mdi-material-ui/Delete\";\nimport HelpCircleOutline from \"mdi-material-ui/HelpCircleOutline\";\nimport AlertCircleOutline from \"mdi-material-ui/AlertCircleOutline\";\n\nimport fileDownload from \"js-file-download\";\n\nimport LoRaWANFrameLog from \"../../components/LoRaWANFrameLog\";\nimport GatewayStore from \"../../stores/GatewayStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n center: {\n textAlign: \"center\",\n },\n progress: {\n marginTop: 4 * theme.spacing.unit,\n },\n};\n\n\nclass GatewayFrames extends Component {\n constructor() {\n super();\n\n this.state = {\n connected: false,\n paused: false,\n frames: [],\n dialogOpen: false,\n };\n\n this.onFrame = this.onFrame.bind(this);\n this.onDownload = this.onDownload.bind(this);\n this.togglePause = this.togglePause.bind(this);\n this.onClear = this.onClear.bind(this);\n this.toggleHelpDialog = this.toggleHelpDialog.bind(this);\n this.setConnected = this.setConnected.bind(this);\n }\n\n componentDidMount() {\n const conn = GatewayStore.getFrameLogsConnection(this.props.gateway.id, () => {}, () => {}, this.onFrame);\n this.setState({\n wsConn: conn,\n });\n\n GatewayStore.on(\"ws.status.change\", this.setConnected);\n this.setConnected();\n }\n\n componentWillUnmount() {\n this.state.wsConn.close();\n GatewayStore.removeListener(\"ws.status.change\", this.setConnected);\n }\n\n onDownload() {\n const dl = this.state.frames.map((frame, i) => {\n return {\n uplinkMetaData: frame.uplinkMetaData,\n downlinkMetaData: frame.downlinkMetaData,\n phyPayload: frame.phyPayload,\n };\n });\n\n fileDownload(JSON.stringify(dl, null, 4), `gateway-${this.props.match.params.gatewayID}.json`);\n }\n\n togglePause() {\n this.setState({\n paused: !this.state.paused,\n });\n }\n\n toggleHelpDialog() {\n this.setState({\n dialogOpen: !this.state.dialogOpen,\n });\n }\n\n onClear() {\n this.setState({\n frames: [],\n });\n }\n\n setConnected() {\n this.setState({\n connected: GatewayStore.getWSStatus(),\n });\n }\n\n onFrame(frame) {\n if (this.state.paused) {\n return;\n }\n\n let frames = this.state.frames;\n const now = new Date();\n\n if (frame.uplinkFrame !== undefined) {\n frames.unshift({\n id: now.getTime(),\n receivedAt: now,\n uplinkMetaData: {\n rxInfo: frame.uplinkFrame.rxInfo,\n txInfo: frame.uplinkFrame.txInfo,\n },\n phyPayload: JSON.parse(frame.uplinkFrame.phyPayloadJSON),\n });\n }\n\n if (frame.downlinkFrame !== undefined) {\n frames.unshift({\n id: now.getTime(),\n receivedAt: now,\n downlinkMetaData: {\n txInfo: frame.downlinkFrame.txInfo,\n },\n phyPayload: JSON.parse(frame.downlinkFrame.phyPayloadJSON),\n });\n }\n\n console.log(frame);\n\n this.setState({\n frames: frames,\n });\n }\n\n render() {\n const frames = this.state.frames.map((frame, i) => );\n\n return(\n \n \n \n Help\n \n \n The frames below are the raw (and encrypted) LoRaWAN PHYPayload frames as seen by the gateway(s). This data is intended for debugging only.\n \n \n \n \n \n \n\n \n {!this.state.paused && }\n {this.state.paused && }\n \n \n \n \n {!this.state.connected &&
\n }\n />\n
}\n {(this.state.connected && frames.length === 0 && !this.state.paused) &&
}\n {frames.length > 0 && frames}\n
\n
\n );\n }\n}\n\nexport default withStyles(styles)(GatewayFrames);\n","import React, { Component } from \"react\";\nimport { Route, Switch, Link, withRouter } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport Admin from \"../../components/Admin\";\nimport GatewayStore from \"../../stores/GatewayStore\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport GatewayDetails from \"./GatewayDetails\";\nimport UpdateGateway from \"./UpdateGateway\";\nimport GatewayDiscovery from \"./GatewayDiscovery\";\nimport GatewayFrames from \"./GatewayFrames\";\n\nimport theme from \"../../theme\";\n\n\nconst styles = {\n tabs: {\n borderBottom: \"1px solid \" + theme.palette.divider,\n height: \"48px\",\n overflow: \"visible\",\n },\n};\n\n\nclass GatewayLayout extends Component {\n constructor() {\n super();\n this.state = {\n tab: 0,\n admin: false,\n };\n this.deleteGateway = this.deleteGateway.bind(this);\n this.onChangeTab = this.onChangeTab.bind(this);\n this.locationToTab = this.locationToTab.bind(this);\n this.setIsAdmin = this.setIsAdmin.bind(this);\n }\n\n componentDidMount() {\n GatewayStore.get(this.props.match.params.gatewayID, resp => {\n this.setState({\n gateway: resp,\n });\n });\n\n\n SessionStore.on(\"change\", this.setIsAdmin);\n this.setIsAdmin();\n this.locationToTab();\n }\n\n componentDidUpdate(prevProps) {\n if (this.props === prevProps) {\n return;\n }\n\n this.locationToTab();\n }\n\n componentWillUnmount() {\n SessionStore.removeListener(\"change\", this.setIsAdmin);\n }\n\n setIsAdmin() {\n this.setState({\n admin: SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.match.params.organizationID),\n });\n }\n\n deleteGateway() {\n if (window.confirm(\"Are you sure you want to delete this gateway?\")) {\n GatewayStore.delete(this.props.match.params.gatewayID, () => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/gateways`);\n });\n }\n }\n\n locationToTab() {\n let tab = 0;\n\n if (window.location.href.endsWith(\"/edit\")) {\n tab = 1;\n } else if (window.location.href.endsWith(\"/discovery\")) {\n tab = 2;\n } else if (window.location.href.endsWith(\"/frames\")) {\n tab = 3;\n }\n\n if (tab > 0 && !this.state.admin) {\n tab = tab - 1;\n }\n\n this.setState({\n tab: tab,\n });\n }\n\n onChangeTab(e, v) {\n this.setState({\n tab: v,\n });\n }\n\n render() {\n if (this.state.gateway === undefined) {\n return(
);\n }\n\n return(\n \n \n }\n color=\"secondary\"\n onClick={this.deleteGateway}\n />\n \n }\n >\n \n \n \n \n\n \n \n \n {this.state.admin && }\n \n \n \n \n \n \n \n } />\n } />\n } />\n } />\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(GatewayLayout));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport GatewayForm from \"./GatewayForm\";\nimport GatewayStore from \"../../stores/GatewayStore\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateGateway extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(gateway) {\n let gw = gateway;\n gw.organizationID = this.props.match.params.organizationID;\n\n GatewayStore.create(gateway, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/gateways`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withRouter(withStyles(styles)(CreateGateway));\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass ApplicationStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/application.swagger.json\", sessionStore.getClientOpts());\n }\n\n create(application, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.Create({\n body: {\n application: application,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(application, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.Update({\n \"application.id\": application.id,\n body: {\n application: application,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(search, organizationID, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.List({\n limit: limit,\n offset: offset,\n organizationID: organizationID,\n search: search,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n listIntegrations(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.ListIntegrations({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createHTTPIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateHTTPIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"http\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getHTTPIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetHTTPIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateHTTPIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateHTTPIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"http\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteHTTPIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteHTTPIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"http\", \"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n ;\n });\n }\n\n createInfluxDBIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateInfluxDBIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"InfluxDB\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getInfluxDBIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetInfluxDBIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateInfluxDBIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateInfluxDBIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"InfluxDB\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteInfluxDBIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteInfluxDBIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"InfluxDB\", \"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createThingsBoardIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateThingsBoardIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"ThingsBoard.io\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getThingsBoardIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetThingsBoardIntegration({\n application_id: applicationID, \n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateThingsBoardIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateThingsBoardIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"ThingsBoard.io\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteThingsBoardIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteThingsBoardIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"ThingsBoard.io\", \"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"application has been \" + action,\n },\n });\n }\n\n integrationNotification(kind, action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: kind + \" integration has been \" + action,\n },\n });\n }\n}\n\nconst applicationStore = new ApplicationStore();\nexport default applicationStore;\n","import React, { Component } from \"react\";\n\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\nimport Admin from \"../../components/Admin\";\nimport ApplicationStore from \"../../stores/ApplicationStore\";\n\n\nclass ListApplications extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n ApplicationStore.list(\"\", this.props.match.params.organizationID, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n {obj.id}\n {obj.name}\n {obj.serviceProfileName}\n {obj.description}\n \n );\n }\n\n render() {\n return(\n \n \n }\n to={`/organizations/${this.props.match.params.organizationID}/applications/create`}\n />\n \n }\n >\n \n \n \n \n ID\n Name\n Service-profile\n Description\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListApplications;\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport TextField from '@material-ui/core/TextField';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\nimport Typography from '@material-ui/core/Typography';\n\nimport {Controlled as CodeMirror} from \"react-codemirror2\";\nimport \"codemirror/mode/javascript/javascript\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\n\n\nconst styles = {\n codeMirror: {\n zIndex: 1,\n },\n formLabel: {\n fontSize: 12,\n },\n};\n\n\nclass ApplicationForm extends FormComponent {\n constructor() {\n super();\n this.getServiceProfileOption = this.getServiceProfileOption.bind(this);\n this.getServiceProfileOptions = this.getServiceProfileOptions.bind(this);\n this.getPayloadCodecOptions = this.getPayloadCodecOptions.bind(this);\n this.onCodeChange = this.onCodeChange.bind(this);\n }\n\n getServiceProfileOption(id, callbackFunc) {\n ServiceProfileStore.get(id, resp => {\n callbackFunc({label: resp.serviceProfile.name, value: resp.serviceProfile.id});\n });\n }\n\n getServiceProfileOptions(search, callbackFunc) {\n ServiceProfileStore.list(this.props.match.params.organizationID, 999, 0, resp => {\n const options = resp.result.map((sp, i) => {return {label: sp.name, value: sp.id}});\n callbackFunc(options);\n });\n }\n\n getPayloadCodecOptions(search, callbackFunc) {\n const payloadCodecOptions = [\n {value: \"\", label: \"None\"},\n {value: \"CAYENNE_LPP\", label: \"Cayenne LPP\"},\n {value: \"CUSTOM_JS\", label: \"Custom JavaScript codec functions\"},\n ];\n\n callbackFunc(payloadCodecOptions);\n }\n\n onCodeChange(field, editor, data, newCode) {\n let object = this.state.object;\n object[field] = newCode;\n this.setState({\n object: object,\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n const codeMirrorOptions = {\n lineNumbers: true,\n mode: \"javascript\",\n theme: \"default\",\n };\n \n let payloadEncoderScript = this.state.object.payloadEncoderScript;\n let payloadDecoderScript = this.state.object.payloadDecoderScript;\n\n if (payloadEncoderScript === \"\" || payloadEncoderScript === undefined) {\n payloadEncoderScript = `// Encode encodes the given object into an array of bytes.\n// - fPort contains the LoRaWAN fPort number\n// - obj is an object, e.g. {\"temperature\": 22.5}\n// The function must return an array of bytes, e.g. [225, 230, 255, 0]\nfunction Encode(fPort, obj) {\n return [];\n}`;\n }\n\n if (payloadDecoderScript === \"\" || payloadDecoderScript === undefined) {\n payloadDecoderScript = `// Decode decodes an array of bytes into an object.\n// - fPort contains the LoRaWAN fPort number\n// - bytes is an array of bytes, e.g. [225, 230, 255, 0]\n// The function must return an object, e.g. {\"temperature\": 22.5}\nfunction Decode(fPort, bytes) {\n return {};\n}`;\n }\n\n return(\n \n \n \n {!this.props.update && \n Service-profile\n \n \n The service-profile to which this application will be attached. Note that you can't change this value after the application has been created.\n \n }\n {this.state.object.payloadCodec !== \"\" &&
\n \n Payload codec\n \n \n By defining a payload codec, LoRa App Server can encode and decode the binary device payload for you. \n Important note: they payload fields have moved to the device-profile. For backward-compatibility and migration, existing codec settings are still visible.\n Codec settings on the device-profile have priority over the application codec settings.\n \n \n {this.state.object.payloadCodec === \"CUSTOM_JS\" && \n \n \n The function must have the signature function Decode(fPort, bytes) and must return an object.\n LoRa App Server will convert this object to JSON.\n \n }\n {this.state.object.payloadCodec === \"CUSTOM_JS\" && \n \n \n The function must have the signature function Encode(fPort, obj) and must return an array\n of bytes.\n \n }\n
}\n {this.state.object.payloadCodec === \"\" && \n \n Note: The payload codec fields have moved to the device-profile.\n \n }\n \n );\n }\n}\n\nexport default withStyles(styles)(ApplicationForm);\n","import React, { Component } from \"react\";\nimport { withRouter, Link } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Button from \"@material-ui/core/Button\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport ApplicationForm from \"./ApplicationForm\";\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateApplication extends Component {\n constructor() {\n super();\n this.state = {\n spDialog: false,\n };\n this.onSubmit = this.onSubmit.bind(this);\n this.closeDialog = this.closeDialog.bind(this);\n }\n\n componentDidMount() {\n ServiceProfileStore.list(this.props.match.params.organizationID, 0, 0, resp => {\n if (resp.totalCount === \"0\") {\n this.setState({\n spDialog: true,\n });\n }\n });\n }\n\n closeDialog() {\n this.setState({\n spDialog: false,\n });\n }\n\n onSubmit(application) {\n let app = application;\n app.organizationID = this.props.match.params.organizationID;\n\n ApplicationStore.create(app, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications`);\n });\n }\n\n render() {\n return(\n \n \n Add a service-profile?\n \n \n The selected organization does not have a service-profile yet.\n A service-profile connects an organization to a network-server and defines the features that an organization can use on this network-server.\n \n \n Would you like to create a service-profile?\n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateApplication));\n","import { EventEmitter } from \"events\";\nimport RobustWebSocket from \"robust-websocket\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler, errorHandlerIgnoreNotFoundWithCallback } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass DeviceStore extends EventEmitter {\n constructor() {\n super();\n this.wsDataStatus = null;\n this.wsFramesStatus = null;\n this.swagger = new Swagger(\"/swagger/device.swagger.json\", sessionStore.getClientOpts());\n }\n\n getWSDataStatus() {\n return this.wsDataStatus;\n }\n\n getWSFramesStatus() {\n return this.wsFramesStatus;\n }\n\n create(device, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.Create({\n body: {\n device: device,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.Get({\n dev_eui: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(device, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.Update({\n \"device.dev_eui\": device.devEUI,\n body: {\n device: device,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.emit(\"update\");\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.Delete({\n dev_eui: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(filters, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.List(filters)\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getKeys(devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.GetKeys({\n dev_eui: devEUI,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandlerIgnoreNotFoundWithCallback(callbackFunc));\n });\n }\n\n createKeys(deviceKeys, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.CreateKeys({\n \"device_keys.dev_eui\": deviceKeys.devEUI,\n body: {\n deviceKeys: deviceKeys,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notifyKeys(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateKeys(deviceKeys, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.UpdateKeys({\n \"device_keys.dev_eui\": deviceKeys.devEUI,\n body: {\n deviceKeys: deviceKeys,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notifyKeys(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getActivation(devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.GetActivation({\n \"dev_eui\": devEUI,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandlerIgnoreNotFoundWithCallback(callbackFunc));\n });\n }\n\n activate(deviceActivation, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.Activate({\n \"device_activation.dev_eui\": deviceActivation.devEUI,\n body: {\n deviceActivation: deviceActivation,\n },\n })\n .then(checkStatus)\n .then(resp => {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"device has been (re)activated\",\n },\n });\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getRandomDevAddr(devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceService.GetRandomDevAddr({\n dev_eui: devEUI,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getDataLogsConnection(devEUI, onData) {\n const loc = window.location;\n const wsURL = (() => {\n if (loc.host === \"localhost:3000\" || loc.host === \"localhost:3001\") {\n return `wss://localhost:8080/api/devices/${devEUI}/events`;\n }\n\n const wsProtocol = loc.protocol === \"https:\" ? \"wss:\" : \"ws:\";\n return `${wsProtocol}//${loc.host}/api/devices/${devEUI}/events`;\n })();\n\n const conn = new RobustWebSocket(wsURL, [\"Bearer\", sessionStore.getToken()], {});\n\n conn.addEventListener(\"open\", () => {\n console.log('connected to', wsURL);\n this.wsDataStatus = \"CONNECTED\";\n this.emit(\"ws.status.change\");\n });\n\n conn.addEventListener(\"message\", (e) => {\n const msg = JSON.parse(e.data);\n if (msg.error !== undefined) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: msg.error.message,\n },\n });\n } else if (msg.result !== undefined) {\n onData(msg.result);\n }\n });\n\n conn.addEventListener(\"close\", () => {\n console.log('closing', wsURL);\n this.wsDataStatus = null;\n this.emit(\"ws.status.change\");\n });\n\n conn.addEventListener(\"error\", () => {\n console.log(\"error\");\n this.wsDataStatus = \"ERROR\";\n this.emit(\"ws.status.change\");\n });\n\n return conn;\n }\n\n getFrameLogsConnection(devEUI, onData) {\n const loc = window.location;\n const wsURL = (() => {\n if (loc.host === \"localhost:3000\" || loc.host === \"localhost:3001\") {\n return `wss://localhost:8080/api/devices/${devEUI}/frames`;\n }\n\n const wsProtocol = loc.protocol === \"https:\" ? \"wss:\" : \"ws:\";\n return `${wsProtocol}//${loc.host}/api/devices/${devEUI}/frames`;\n })();\n\n const conn = new RobustWebSocket(wsURL, [\"Bearer\", sessionStore.getToken()], {});\n\n conn.addEventListener(\"open\", () => {\n console.log('connected to', wsURL);\n this.wsFramesStatus = \"CONNECTED\";\n this.emit(\"ws.status.change\");\n });\n\n conn.addEventListener(\"message\", (e) => {\n const msg = JSON.parse(e.data);\n if (msg.error !== undefined) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"error\",\n message: msg.error.message,\n },\n });\n } else if (msg.result !== undefined) {\n onData(msg.result);\n }\n });\n\n conn.addEventListener(\"close\", () => {\n console.log('closing', wsURL);\n this.wsFramesStatus = null;\n this.emit(\"ws.status.change\");\n });\n\n conn.addEventListener(\"error\", (e) => {\n console.log(\"error\", e);\n this.wsFramesStatus = \"ERROR\";\n this.emit(\"ws.status.change\");\n });\n\n return conn;\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"device has been \" + action,\n },\n });\n }\n\n notifyKeys(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"device-keys have been \" + action,\n },\n });\n }\n}\n\nconst deviceStore = new DeviceStore();\nexport default deviceStore;\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Button from '@material-ui/core/Button';\n\nimport moment from \"moment\";\nimport Plus from \"mdi-material-ui/Plus\";\nimport PowerPlug from \"mdi-material-ui/PowerPlug\";\n\nimport TableCellLink from \"../../components/TableCellLink\";\nimport DataTable from \"../../components/DataTable\";\nimport Admin from \"../../components/Admin\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n};\n\n\nclass ListDevices extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n DeviceStore.list({\n applicationID: this.props.match.params.applicationID,\n limit: limit,\n offset: offset,\n }, callbackFunc);\n }\n\n getRow(obj) {\n let lastseen = \"n/a\";\n let margin = \"n/a\";\n let battery = \"n/a\";\n\n if (obj.lastSeenAt !== undefined && obj.lastSeenAt !== null) {\n lastseen = moment(obj.lastSeenAt).fromNow();\n }\n\n if (!obj.deviceStatusExternalPowerSource && !obj.deviceStatusBatteryLevelUnavailable) {\n battery = `${obj.deviceStatusBatteryLevel}%`\n }\n\n if (obj.deviceStatusExternalPowerSource) {\n battery = ;\n }\n\n if (obj.deviceStatusMargin !== undefined && obj.deviceStatusMargin !== 256) {\n margin = `${obj.deviceStatusMargin} dB`;\n }\n\n return(\n \n {lastseen}\n {obj.name}\n {obj.devEUI}\n {margin}\n {battery}\n \n );\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n Last seen\n Device name\n Device EUI\n Link margin\n Battery\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default withStyles(styles)(ListDevices);\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport ApplicationForm from \"./ApplicationForm\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass UpdateApplication extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(application) {\n ApplicationStore.update(application, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${application.id}`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(UpdateApplication));\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Button from '@material-ui/core/Button';\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TableCellLink from \"../../components/TableCellLink\";\nimport DataTable from \"../../components/DataTable\";\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n};\n\n\nclass ListIntegrations extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n ApplicationStore.listIntegrations(this.props.match.params.applicationID, callbackFunc);\n }\n\n getRow(obj) {\n const kind = obj.kind.toLowerCase();\n\n return(\n \n {obj.kind}\n \n );\n }\n\n render() {\n return(\n \n \n \n \n \n \n Kind\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default withStyles(styles)(ListIntegrations);\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass FUOTADeploymentStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/fuotaDeployment.swagger.json\", sessionStore.getClientOpts());\n }\n\n createForDevice(devEUI, fuotaDeployment, callbackFunc) {\n this.swagger.then(client => {\n client.apis.FUOTADeploymentService.CreateForDevice({\n dev_eui: devEUI,\n body: {\n fuotaDeployment: fuotaDeployment,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.FUOTADeploymentService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(filters, callbackFunc) {\n this.swagger.then(client => {\n client.apis.FUOTADeploymentService.List(filters)\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n listDeploymentDevices(filters, callbackFunc) {\n this.swagger.then(client => {\n client.apis.FUOTADeploymentService.ListDeploymentDevices(filters)\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getDeploymentDevice(fuotaDeploymentID, devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.FUOTADeploymentService.GetDeploymentDevice({\n fuota_deployment_id: fuotaDeploymentID,\n dev_eui: devEUI,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"fuota deployment has been \" + action,\n },\n });\n }\n\n emitReload() {\n this.emit(\"reload\");\n }\n}\n\nconst fuotaDeploymentStore = new FUOTADeploymentStore();\nexport default fuotaDeploymentStore;\n\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\n\nimport moment from \"moment\";\n\nimport TableCellLink from \"../../components/TableCellLink\";\nimport DataTable from \"../../components/DataTable\";\nimport FUOTADeploymentStore from \"../../stores/FUOTADeploymentStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n};\n\n\nclass ListFUOTADeploymentsForApplication extends Component {\n constructor() {\n super();\n\n this.state = {};\n\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n FUOTADeploymentStore.list({\n applicationID: this.props.match.params.applicationID,\n limit: limit,\n offset: offset,\n }, callbackFunc);\n }\n\n getRow(obj) {\n const createdAt = moment(obj.createdAt).format('lll');\n const updatedAt = moment(obj.updatedAt).format('lll');\n\n return(\n \n {obj.name}\n {createdAt}\n {updatedAt}\n {obj.state}\n \n );\n }\n\n render() {\n return(\n \n \n \n Name\n Created at\n Updated at\n State\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default withStyles(styles)(ListFUOTADeploymentsForApplication);\n\n","import React, { Component } from \"react\";\nimport { Route, Switch, Link, withRouter } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport Admin from \"../../components/Admin\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport ListDevices from \"../devices/ListDevices\";\nimport UpdateApplication from \"./UpdateApplication\";\nimport ListIntegrations from \"./ListIntegrations\";\nimport ListFUOTADeploymentsForApplication from \"../fuota/ListFUOTADeploymentsForApplication\";\n\n\nimport theme from \"../../theme\";\n\n\nconst styles = {\n tabs: {\n borderBottom: \"1px solid \" + theme.palette.divider,\n height: \"48px\",\n overflow: \"visible\",\n },\n};\n\n\nclass ApplicationLayout extends Component {\n constructor() {\n super();\n this.state = {\n tab: 0,\n admin: false,\n };\n\n this.deleteApplication = this.deleteApplication.bind(this);\n this.locationToTab = this.locationToTab.bind(this);\n this.onChangeTab = this.onChangeTab.bind(this);\n this.setIsAdmin = this.setIsAdmin.bind(this);\n }\n\n componentDidMount() {\n ApplicationStore.get(this.props.match.params.applicationID, resp => {\n this.setState({\n application: resp,\n });\n });\n\n SessionStore.on(\"change\", this.setIsAdmin);\n\n this.setIsAdmin();\n this.locationToTab();\n }\n\n componentWillUnmount() {\n SessionStore.removeListener(\"change\", this.setIsAdmin);\n }\n\n componentDidUpdate(oldProps) {\n if (this.props === oldProps) {\n return;\n }\n\n this.locationToTab();\n }\n\n setIsAdmin() {\n this.setState({\n admin: SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.match.params.organizationID),\n });\n }\n\n deleteApplication() {\n if (window.confirm(\"Are you sure you want to delete this application? This will also delete all devices part of this application.\")) {\n ApplicationStore.delete(this.props.match.params.applicationID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications`);\n });\n }\n }\n\n locationToTab() {\n let tab = 0;\n\n if (window.location.href.endsWith(\"/edit\")) {\n tab = 1;\n } else if (window.location.href.endsWith(\"/integrations\")) {\n tab = 2;\n } else if (window.location.href.endsWith(\"/fuota-deployments\")) {\n tab = 3;\n }\n\n this.setState({\n tab: tab,\n });\n }\n\n onChangeTab(e, v) {\n this.setState({\n tab: v,\n });\n }\n\n render() {\n if (this.state.application === undefined) {\n return(
);\n }\n\n return(\n \n \n }\n color=\"secondary\"\n onClick={this.deleteApplication}\n />\n \n }\n >\n \n \n \n \n\n \n \n \n {this.state.admin && }\n {this.state.admin && }\n {this.state.admin && }\n \n \n\n \n \n } />\n } />\n } />\n } />\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(ApplicationLayout));\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TextField from '@material-ui/core/TextField';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport IconButton from '@material-ui/core/IconButton';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\nimport Button from \"@material-ui/core/Button\";\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n delete: {\n marginTop: 3 * theme.spacing.unit,\n },\n formLabel: {\n fontSize: 12,\n },\n};\n\n\nclass HTTPIntegrationHeaderForm extends FormComponent {\n constructor() {\n super();\n\n this.onDelete = this.onDelete.bind(this);\n }\n\n onChange(e) {\n super.onChange(e);\n this.props.onChange(this.props.index, this.state.object);\n }\n\n onDelete(e) {\n e.preventDefault();\n this.props.onDelete(this.props.index);\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n ); \n }\n}\n\n\nHTTPIntegrationHeaderForm = withStyles(styles)(HTTPIntegrationHeaderForm);\n\n\nclass HTTPIntegrationForm extends FormComponent {\n constructor() {\n super();\n this.addHeader = this.addHeader.bind(this);\n this.onDeleteHeader = this.onDeleteHeader.bind(this);\n this.onChangeHeader = this.onChangeHeader.bind(this);\n }\n\n onChange(e) {\n super.onChange(e);\n this.props.onChange(this.state.object);\n }\n\n addHeader(e) {\n e.preventDefault();\n\n let object = this.state.object;\n if(object.headers === undefined) {\n object.headers = [{}];\n } else {\n object.headers.push({});\n }\n\n this.props.onChange(object);\n }\n\n onDeleteHeader(index) {\n let object = this.state.object;\n object.headers.splice(index, 1);\n this.props.onChange(object);\n }\n\n onChangeHeader(index, header) {\n let object = this.state.object;\n object.headers[index] = header;\n this.props.onChange(object);\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n let headers = [];\n if (this.state.object.headers !== undefined) {\n headers = this.state.object.headers.map((h, i) => );\n }\n\n return(\n
\n \n Headers\n {headers}\n \n \n \n Endpoints\n \n \n \n \n \n \n \n
\n );\n }\n}\n\n\nclass InfluxDBIntegrationForm extends FormComponent {\n onChange(e) {\n super.onChange(e);\n this.props.onChange(this.state.object);\n }\n\n getPrecisionOptions(search, callbackFunc) {\n const precisionOptions = [\n {value: \"NS\", label: \"Nanosecond\"},\n {value: \"U\", label: \"Microsecond\"},\n {value: \"MS\", label: \"Millisecond\"},\n {value: \"S\", label: \"Second\"},\n {value: \"M\", label: \"Minute\"},\n {value: \"H\", label: \"Hour\"},\n ];\n\n callbackFunc(precisionOptions);\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n InfluxDB integration configuration\n \n \n \n \n \n \n Timestamp precision\n \n \n It is recommented to use the least precise precision possible as this can result in significant improvements in compression.\n \n \n \n );\n }\n}\n\nInfluxDBIntegrationForm = withStyles(styles)(InfluxDBIntegrationForm);\n\n\nclass ThingsBoardIntegrationForm extends FormComponent {\n onChange(e) {\n super.onChange(e);\n this.props.onChange(this.state.object);\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n \n ThingsBoard.io integration configuration\n \n \n Each device must have a 'ThingsBoardAccessToken' variable assigned. This access-token is generated by ThingsBoard.\n \n \n );\n }\n}\n\nThingsBoardIntegrationForm = withStyles(styles)(ThingsBoardIntegrationForm);\n\n\nclass IntegrationForm extends FormComponent {\n constructor() {\n super();\n this.getKindOptions = this.getKindOptions.bind(this);\n this.onFormChange = this.onFormChange.bind(this);\n }\n\n onFormChange(object) {\n this.setState({\n object: object,\n });\n }\n\n getKindOptions(search, callbackFunc) {\n const kindOptions = [\n {value: \"http\", label: \"HTTP integration\"},\n {value: \"influxdb\", label: \"InfluxDB integration\"},\n {value: \"thingsboard\", label: \"ThingsBoard.io\"},\n ];\n\n callbackFunc(kindOptions);\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n {!this.props.update && \n Integration kind\n \n }\n {this.state.object.kind === \"http\" && }\n {this.state.object.kind === \"influxdb\" && }\n {this.state.object.kind === \"thingsboard\" && }\n \n );\n }\n}\n\nexport default withStyles(styles)(IntegrationForm);\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport IntegrationForm from \"./IntegrationForm\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateIntegration extends Component {\n constructor() {\n super();\n this.state = {};\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n ApplicationStore.get(this.props.match.params.applicationID, resp => {\n this.setState({\n application: resp,\n });\n });\n }\n\n onSubmit(integration) {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n switch (integr.kind) {\n case \"http\":\n ApplicationStore.createHTTPIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n case \"influxdb\":\n ApplicationStore.createInfluxDBIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n case \"thingsboard\":\n ApplicationStore.createThingsBoardIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n default:\n break;\n }\n }\n\n render() {\n if (this.state.application === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateIntegration));\n","import React, { Component } from 'react';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport IntegrationForm from \"./IntegrationForm\";\n\n\nclass UpdateIntegration extends Component {\n constructor() {\n super();\n this.state = {};\n this.onSubmit = this.onSubmit.bind(this);\n this.deleteIntegration = this.deleteIntegration.bind(this);\n }\n\n componentDidMount() {\n ApplicationStore.get(this.props.match.params.applicationID, resp => {\n this.setState({\n application: resp,\n });\n });\n\n switch (this.props.match.params.kind) {\n case \"http\":\n ApplicationStore.getHTTPIntegration(this.props.match.params.applicationID, resp => {\n let integration = resp.integration;\n integration.kind = \"http\";\n\n this.setState({\n integration: integration,\n });\n });\n break;\n case \"influxdb\":\n ApplicationStore.getInfluxDBIntegration(this.props.match.params.applicationID, resp => {\n let integration = resp.integration;\n integration.kind = \"influxdb\";\n\n this.setState({\n integration: integration,\n });\n });\n break;\n case \"thingsboard\":\n ApplicationStore.getThingsBoardIntegration(this.props.match.params.applicationID, resp => {\n let integration = resp.integration;\n integration.kind = \"thingsboard\";\n\n this.setState({\n integration: integration,\n });\n });\n break;\n default:\n break;\n }\n }\n\n onSubmit(integration) {\n switch (integration.kind) {\n case \"http\":\n ApplicationStore.updateHTTPIntegration(integration, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n case \"influxdb\":\n ApplicationStore.updateInfluxDBIntegration(integration, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n case \"thingsboard\":\n ApplicationStore.updateThingsBoardIntegration(integration, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n default:\n break;\n }\n }\n\n deleteIntegration() {\n if (window.confirm(\"Are you sure you want to delete this integration?\")) {\n switch(this.props.match.params.kind) {\n case \"http\":\n ApplicationStore.deleteHTTPIntegration(this.props.match.params.applicationID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n case \"influxdb\":\n ApplicationStore.deleteInfluxDBIntegration(this.props.match.params.applicationID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n case \"thingsboard\":\n ApplicationStore.deleteThingsBoardIntegration(this.props.match.params.applicationID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n break;\n default:\n break;\n }\n }\n }\n\n render() {\n if (this.state.application === undefined || this.state.integration === undefined) {\n return(
);\n }\n\n return(\n \n ,\n ]}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default UpdateIntegration;\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass MulticastGroupStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/multicastGroup.swagger.json\", sessionStore.getClientOpts());\n }\n\n create(multicastGroup, callbackFunc) {\n this.swagger.then(client => {\n client.apis.MulticastGroupService.Create({\n body: {\n multicastGroup: multicastGroup,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n get(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.MulticastGroupService.Get({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n update(multicastGroup, callbackFunc) {\n this.swagger.then(client => {\n client.apis.MulticastGroupService.Update({\n \"multicast_group.id\": multicastGroup.id,\n body: {\n multicastGroup: multicastGroup,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n delete(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.MulticastGroupService.Delete({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(search, organizationID, serviceProfileID, devEUI, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.MulticastGroupService.List({\n limit: limit,\n offset: offset,\n organizationID: organizationID,\n serviceProfileID: serviceProfileID,\n devEUI: devEUI,\n search: search,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n addDevice(multicastGroupID, devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.MulticastGroupService.AddDevice({\n multicast_group_id: multicastGroupID,\n body: {\n devEUI: devEUI,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notifyDevice(\"added to\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n removeDevice(multicastGroupID, devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.MulticastGroupService.RemoveDevice({\n multicast_group_id: multicastGroupID,\n dev_eui: devEUI,\n })\n .then(checkStatus)\n .then(resp => {\n this.notifyDevice(\"removed from\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"multicast-group has been \" + action,\n },\n });\n }\n\n notifyDevice(action) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: \"device has been \" + action + \" multicast-group\",\n },\n });\n }\n}\n\n\nconst multicastGroupStore = new MulticastGroupStore();\nexport default multicastGroupStore;\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\n\nimport Plus from \"mdi-material-ui/Plus\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\nimport Admin from \"../../components/Admin\";\nimport MulticastGroupStore from \"../../stores/MulticastGroupStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n idColumn: {\n width: theme.spacing.unit * 45,\n whiteSpace: \"nowrap\",\n },\n};\n\n\nclass ListMulticastGroups extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n MulticastGroupStore.list(\"\", this.props.match.params.organizationID, \"\", \"\", limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n {obj.id}\n {obj.name}\n {obj.serviceProfileName}\n \n );\n }\n\n render() {\n return(\n \n \n }\n to={`/organizations/${this.props.match.params.organizationID}/multicast-groups/create`}\n />\n \n }\n >\n \n \n \n \n ID\n Name\n Service-profile\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default withStyles(styles)(ListMulticastGroups);\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport TextField from '@material-ui/core/TextField';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n formLabel: {\n fontSize: 12,\n },\n link: {\n color: theme.palette.primary.main,\n },\n};\n\n\nclass MulticastGroupForm extends FormComponent {\n constructor() {\n super();\n this.getServiceProfileOption = this.getServiceProfileOption.bind(this);\n this.getServiceProfileOptions = this.getServiceProfileOptions.bind(this);\n }\n\n getServiceProfileOption(id, callbackFunc) {\n ServiceProfileStore.get(id, resp => {\n callbackFunc({label: resp.serviceProfile.name, value: resp.serviceProfile.id});\n });\n }\n\n getServiceProfileOptions(search, callbackFunc) {\n ServiceProfileStore.list(this.props.match.params.organizationID, 999, 0, resp => {\n const options = resp.result.map((sp, i) => {return {label: sp.name, value: sp.id}});\n callbackFunc(options);\n });\n }\n\n getRandomKey(field, len, e) {\n e.preventDefault();\n\n let object = this.state.object;\n let key = \"\";\n const possible = 'abcdef0123456789';\n\n for(let i = 0; i < len; i++){\n key += possible.charAt(Math.floor(Math.random() * possible.length));\n }\n\n object[field] = key;\n\n this.setState({\n object: object,\n });\n }\n\n getGroupTypeOptions(search, callbackFunc) {\n const options = [\n {value: \"CLASS_B\", label: \"Class-B\"},\n {value: \"CLASS_C\", label: \"Class-C\"},\n ];\n\n callbackFunc(options);\n }\n\n getPingSlotPeriodOptions(search, callbackFunc) {\n const pingSlotPeriodOptions = [\n {value: 32 * 1, label: \"every second\"},\n {value: 32 * 2, label: \"every 2 seconds\"},\n {value: 32 * 4, label: \"every 4 seconds\"},\n {value: 32 * 8, label: \"every 8 seconds\"},\n {value: 32 * 16, label: \"every 16 seconds\"},\n {value: 32 * 32, label: \"every 32 seconds\"},\n {value: 32 * 64, label: \"every 64 seconds\"},\n {value: 32 * 128, label: \"every 128 seconds\"},\n ];\n\n callbackFunc(pingSlotPeriodOptions);\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n \n \n {!this.props.update && \n Service-profile \n \n \n The service-profile to which this application will be attached. Note that you can't change this value after the application has been created.\n \n }\n Generate random address.}\n margin=\"normal\"\n value={this.state.object.mcAddr || \"\"}\n placeholder=\"00000000\"\n onChange={this.onChange}\n inputProps={{\n pattern: \"[A-Fa-f0-9]{8}\",\n }}\n fullWidth\n required\n />\n Generate random key.}\n margin=\"normal\"\n value={this.state.object.mcNwkSKey || \"\"}\n placeholder=\"00000000000000000000000000000000\"\n onChange={this.onChange}\n inputProps={{\n pattern: \"[A-Fa-f0-9]{32}\",\n }}\n fullWidth\n required\n />\n Generate random key.}\n margin=\"normal\"\n value={this.state.object.mcAppSKey || \"\"}\n placeholder=\"00000000000000000000000000000000\"\n onChange={this.onChange}\n inputProps={{\n pattern: \"[A-Fa-f0-9]{32}\",\n }}\n fullWidth\n required\n />\n \n \n \n \n Multicast-group type\n \n \n The multicast-group type defines the way how multicast frames are scheduled by the network-server.\n \n \n {this.state.object.groupType === \"CLASS_B\" && \n Class-B ping-slot periodicity\n \n Class-B ping-slot periodicity.\n }\n \n );\n }\n}\n\nexport default withStyles(styles)(MulticastGroupForm);\n","import React, { Component } from \"react\";\nimport { withRouter, Link } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Button from \"@material-ui/core/Button\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport MulticastGroupForm from \"./MulticastGroupForm\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\nimport MulticastGroupStore from \"../../stores/MulticastGroupStore\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateMulticastGroup extends Component {\n constructor() {\n super();\n this.state = {\n spDialog: false,\n };\n this.onSubmit = this.onSubmit.bind(this);\n this.closeDialog = this.closeDialog.bind(this);\n }\n\n componentDidMount() {\n ServiceProfileStore.list(this.props.match.params.organizationID, 0, 0, resp => {\n if (resp.totalCount === \"0\") {\n this.setState({\n spDialog: true,\n });\n }\n });\n }\n\n closeDialog() {\n this.setState({\n spDialog: false,\n });\n }\n\n onSubmit(multicastGroup) {\n MulticastGroupStore.create(multicastGroup, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/multicast-groups`);\n });\n }\n\n render() {\n return(\n \n \n Add a service-profile?\n \n \n The selected organization does not have a service-profile yet.\n A service-profile connects an organization to a network-server and defines the features that an organization can use on this network-server.\n \n \n Would you like to create a service-profile?\n \n \n \n \n \n \n \n\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateMulticastGroup));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport MulticastGroupStore from \"../../stores/MulticastGroupStore\";\nimport MulticastGroupForm from \"./MulticastGroupForm\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass UpdateMulticastGroup extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(multicastGroup) {\n MulticastGroupStore.update(multicastGroup, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/multicast-groups/${this.props.match.params.multicastGroupID}`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(UpdateMulticastGroup));\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Button from '@material-ui/core/Button';\nimport IconButton from \"@material-ui/core/IconButton\";\n\nimport Plus from \"mdi-material-ui/Plus\";\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport Admin from \"../../components/Admin\";\nimport TableCellLink from \"../../components/TableCellLink\";\nimport DataTable from \"../../components/DataTable\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport theme from \"../../theme\";\nimport multicastGroupStore from \"../../stores/MulticastGroupStore\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n};\n\n\n\nclass ListMulticastGroupDevices extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n DeviceStore.list({\n multicastGroupID: this.props.match.params.multicastGroupID,\n limit: limit,\n offset: offset,\n }, callbackFunc);\n }\n\n onDelete(devEUI) {\n if(window.confirm(\"Are you sure you want to remove this device from the multicast-group? This does not remove the device itself.\")) {\n multicastGroupStore.removeDevice(this.props.match.params.multicastGroupID, devEUI, resp => {\n this.forceUpdate();\n });\n }\n }\n\n getRow(obj) {\n return(\n \n {obj.name}\n {obj.devEUI}\n \n \n \n \n );\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n Device name\n Device EUI\n \n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default withStyles(styles)(ListMulticastGroupDevices);\n","import React, { Component } from \"react\";\nimport { Route, Switch, Link, withRouter } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport Admin from \"../../components/Admin\";\n\nimport MulticastGroupStore from \"../../stores/MulticastGroupStore\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport UpdateMulticastGroup from \"./UpdateMulticastGroup\";\nimport theme from \"../../theme\";\nimport ListMulticastGroupDevices from \"./ListMulticastGroupDevices\";\n\n\nconst styles = {\n tabs: {\n borderBottom: \"1px solid \" + theme.palette.divider,\n height: \"48px\",\n overflow: \"visible\",\n },\n};\n\n\nclass MulticastGroupLayout extends Component {\n constructor() {\n super();\n this.state = {\n tab: 0,\n admin: false,\n };\n\n this.locationToTab = this.locationToTab.bind(this);\n this.onChangeTab = this.onChangeTab.bind(this);\n this.deleteMulticastGroup = this.deleteMulticastGroup.bind(this);\n this.setIsAdmin = this.setIsAdmin.bind(this);\n }\n\n componentDidMount() {\n MulticastGroupStore.get(this.props.match.params.multicastGroupID, resp => {\n this.setState({\n multicastGroup: resp,\n });\n });\n\n SessionStore.on(\"change\", this.setIsAdmin);\n this.setIsAdmin();\n }\n\n componentWillUnmount() {\n SessionStore.removeListener(\"change\", this.setIsAdmin);\n }\n\n componentDidUpdate(oldProps) {\n if (this.props === oldProps) {\n return;\n }\n this.locationToTab();\n }\n\n setIsAdmin() {\n this.setState({\n admin: SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.match.params.organizationID),\n });\n }\n\n locationToTab() {\n let tab = 0;\n\n if (window.location.href.endsWith(\"/edit\")) {\n tab = 1;\n }\n\n this.setState({\n tab: tab,\n });\n }\n\n onChangeTab(e, v) {\n this.setState({\n tab: v,\n });\n }\n\n deleteMulticastGroup() {\n if (window.confirm(\"Are you sure you want to delete this multicast-group?\")) {\n MulticastGroupStore.delete(this.props.match.params.multicastGroupID, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/multicast-groups`);\n });\n }\n }\n\n render() {\n if (this.state.multicastGroup === undefined) {\n return null;\n }\n\n return(\n \n \n }\n color=\"secondary\"\n onClick={this.deleteMulticastGroup}\n />\n \n }\n >\n \n \n \n \n\n \n \n \n {this.state.admin && }\n \n \n\n \n \n } />\n } />\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(MulticastGroupLayout));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport Form from \"../../components/Form\";\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport FormComponent from \"../../classes/FormComponent\";\nimport MulticastGroupStore from \"../../stores/MulticastGroupStore\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n formLabel: {\n fontSize: 12,\n },\n};\n\n\nclass AddDeviceForm extends FormComponent {\n constructor() {\n super();\n\n this.getDeviceOption = this.getDeviceOption.bind(this);\n this.getDeviceOptions = this.getDeviceOptions.bind(this);\n }\n\n getDeviceOption(devEUI, callbackFunc) {\n DeviceStore.get(devEUI, resp => {\n callbackFunc({label: `${resp.device.name} (${resp.device.devEUI})`, value: resp.device.devEUI});\n });\n }\n\n getDeviceOptions(search, callbackFunc) {\n DeviceStore.list({serviceProfileID: this.props.serviceProfileID, search: search, limit: 10}, resp => {\n const options = resp.result.map((d, i) => {return {label: `${d.name} (${d.devEUI})`, value: d.devEUI}});\n callbackFunc(options);\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n \n \n Device\n \n Search on device by it's name or device EUI. Only devices part of the same service-profile as the multicast-group can be added (and are visible).\n \n \n );\n }\n}\n\nAddDeviceForm = withStyles(styles)(AddDeviceForm);\n\n\nclass AddDeviceToMulticastGroup extends Component {\n constructor() {\n super();\n this.state = {};\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n MulticastGroupStore.get(this.props.match.params.multicastGroupID, resp => {\n this.setState({\n multicastGroup: resp.multicastGroup,\n });\n });\n }\n\n onSubmit(device) {\n MulticastGroupStore.addDevice(this.props.match.params.multicastGroupID, device.devEUI, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/multicast-groups/${this.props.match.params.multicastGroupID}`);\n });\n }\n\n render() {\n if (this.state.multicastGroup === undefined) {\n return null;\n }\n\n return(\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(AddDeviceToMulticastGroup))\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport TextField from '@material-ui/core/TextField';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\nimport Checkbox from \"@material-ui/core/Checkbox\";\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\nimport Button from \"@material-ui/core/Button\";\nimport Grid from \"@material-ui/core/Grid\";\nimport IconButton from '@material-ui/core/IconButton';\nimport Typography from \"@material-ui/core/Typography\";\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport EUI64Field from \"../../components/EUI64Field\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\n\nimport theme from \"../../theme\";\n\n\nconst styles = {\n formLabel: {\n fontSize: 12,\n },\n delete: {\n marginTop: 3 * theme.spacing.unit,\n },\n};\n\nclass DeviceKVForm extends FormComponent {\n onChange(e) {\n super.onChange(e);\n\n this.props.onChange(this.props.index, this.state.object);\n }\n\n onDelete = (e) => {\n e.preventDefault();\n this.props.onDelete(this.props.index);\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nDeviceKVForm = withStyles(styles)(DeviceKVForm);\n\n\nclass DeviceForm extends FormComponent {\n constructor() {\n super();\n this.getDeviceProfileOption = this.getDeviceProfileOption.bind(this);\n this.getDeviceProfileOptions = this.getDeviceProfileOptions.bind(this);\n\n this.state = {\n tab: 0,\n variables: [],\n tags: [],\n };\n }\n\n componentDidMount() {\n super.componentDidMount();\n\n this.setKVArrays(this.props.object || {});\n }\n\n componentDidUpdate(prevProps) {\n super.componentDidUpdate(prevProps);\n\n if (prevProps.object !== this.props.object) {\n this.setKVArrays(this.props.object || {});\n }\n }\n\n setKVArrays = (props) => {\n let variables = [];\n let tags = [];\n\n if (props.variables !== undefined) {\n for (let key in props.variables) {\n variables.push({key: key, value: props.variables[key]});\n }\n }\n\n if (props.tags !== undefined) {\n for (let key in props.tags) {\n tags.push({key: key, value: props.tags[key]});\n }\n }\n\n this.setState({\n variables: variables,\n tags: tags,\n });\n }\n\n getDeviceProfileOption(id, callbackFunc) {\n DeviceProfileStore.get(id, resp => {\n callbackFunc({label: resp.deviceProfile.name, value: resp.deviceProfile.id});\n });\n }\n\n getDeviceProfileOptions(search, callbackFunc) {\n DeviceProfileStore.list(0, this.props.match.params.applicationID, 999, 0, resp => {\n const options = resp.result.map((dp, i) => {return {label: dp.name, value: dp.id}});\n callbackFunc(options);\n });\n }\n\n onTabChange = (e, v) => {\n this.setState({\n tab: v,\n });\n }\n\n addKV = (name) => {\n return (e) => {\n e.preventDefault();\n\n let kvs = this.state[name];\n kvs.push({});\n\n let obj = {};\n obj[name] = kvs;\n\n this.setState(obj);\n };\n }\n\n onChangeKV = (name) => {\n return (index, obj) => {\n let kvs = this.state[name];\n let object = this.state.object;\n\n kvs[index] = obj;\n\n object[name] = {};\n kvs.forEach((obj, i) => {\n object[name][obj.key] = obj.value;\n });\n\n let ss = {\n object: object,\n };\n ss[name] = kvs;\n\n console.log(ss);\n\n this.setState(ss);\n };\n }\n\n onDeleteKV = (name) => {\n return (index) => {\n let kvs = this.state[name];\n let object = this.state.object;\n\n kvs.splice(index, 1);\n\n object[name] = {};\n kvs.forEach((obj, i) => {\n object[name][obj.key] = obj.value;\n });\n\n let ss = {\n object: object,\n };\n ss[name] = kvs;\n\n this.setState(ss);\n };\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n const variables = this.state.variables.map((obj, i) => );\n const tags = this.state.tags.map((obj, i) => );\n\n return(\n \n \n \n \n \n \n\n {this.state.tab === 0 &&
\n \n \n {!this.props.update && }\n \n Device-profile\n \n \n \n \n \n }\n />\n \n \n Note that disabling the frame-counter validation will compromise security as it enables people to perform replay-attacks.\n \n \n
}\n\n {this.state.tab === 1 &&
\n \n \n Variables can be used to substitute placeholders in for example integrations, e.g. in case an integration requires the configuration of a device specific token.\n \n {variables}\n \n \n
}\n\n {this.state.tab === 2 &&
\n \n \n Tags can be used as device filters and are exposed on events as additional meta-data for aggregation.\n \n {tags}\n \n \n
}\n \n );\n }\n}\n\nexport default withStyles(styles)(DeviceForm);\n","import React, { Component } from \"react\";\nimport { withRouter, Link } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Button from \"@material-ui/core/Button\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport DeviceForm from \"./DeviceForm\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateDevice extends Component {\n constructor() {\n super();\n this.state = {\n dpDialog: false,\n };\n this.state = {};\n this.onSubmit = this.onSubmit.bind(this);\n this.closeDialog = this.closeDialog.bind(this);\n }\n\n componentDidMount() {\n ApplicationStore.get(this.props.match.params.applicationID, resp => {\n this.setState({\n application: resp,\n });\n });\n\n DeviceProfileStore.list(0, this.props.match.params.applicationID, 0, 0, resp => {\n if (resp.totalCount === \"0\") {\n this.setState({\n dpDialog: true,\n });\n }\n });\n }\n\n closeDialog() {\n this.setState({\n dpDialog: false,\n });\n }\n\n onSubmit(device) {\n let dev = device;\n dev.applicationID = this.props.match.params.applicationID;\n\n DeviceStore.create(dev, resp => {\n DeviceProfileStore.get(dev.deviceProfileID, resp => {\n if (resp.deviceProfile.supportsJoin) {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/devices/${dev.devEUI}/keys`);\n } else {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/devices/${dev.devEUI}/activation`);\n }\n });\n\n });\n }\n\n render() {\n if (this.state.application === undefined) {\n return(
);\n }\n\n return(\n \n \n Add a device-profile?\n \n \n The selected application does not have access to any device-profiles.\n A device-profile defines the capabilities and boot parameters of a device. You can create multiple device-profiles for different kind of devices.\n \n \n Would you like to create a device-profile?\n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateDevice));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport DeviceForm from \"./DeviceForm\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass UpdateDevice extends Component {\n constructor() {\n super();\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n onSubmit(device) {\n DeviceStore.update(device, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/devices/${this.props.match.params.devEUI}`);\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(UpdateDevice));\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport AESKeyField from \"../../components/AESKeyField\";\nimport DeviceStore from \"../../stores/DeviceStore\";\n\n\nclass LW11DeviceKeysForm extends FormComponent {\n render() {\n let object = {};\n if (this.props.object !== undefined) {\n object = this.props.object;\n }\n\n return(\n \n \n \n \n );\n }\n}\n\nclass LW10DeviceKeysForm extends FormComponent {\n render() {\n let object = {};\n if (this.props.object !== undefined) {\n object = this.props.object;\n }\n\n return(\n \n \n \n \n );\n }\n}\n\n\nclass DeviceKeys extends Component {\n constructor() {\n super();\n this.state = {\n update: false,\n };\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n DeviceStore.getKeys(this.props.match.params.devEUI, resp => {\n if (resp === null) {\n this.setState({\n deviceKeys: {\n deviceKeys: {},\n },\n });\n } else {\n this.setState({\n update: true,\n deviceKeys: resp,\n });\n }\n });\n }\n\n onSubmit(deviceKeys) {\n if (this.state.update) {\n DeviceStore.updateKeys(deviceKeys, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}`);\n });\n } else {\n let keys = deviceKeys;\n keys.devEUI = this.props.match.params.devEUI;\n DeviceStore.createKeys(keys, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}`);\n });\n }\n }\n\n render() {\n if (this.state.deviceKeys === undefined) {\n return null;\n }\n\n return(\n \n \n \n \n {this.props.deviceProfile.macVersion.startsWith(\"1.0\") && }\n {this.props.deviceProfile.macVersion.startsWith(\"1.1\") && }\n \n \n \n \n );\n }\n}\n\nexport default withRouter(DeviceKeys);\n","import React, { Component } from \"react\";\n\nimport TextField from \"@material-ui/core/TextField\";\nimport InputAdornment from '@material-ui/core/InputAdornment';\nimport IconButton from '@material-ui/core/IconButton';\nimport Button from \"@material-ui/core/Button\";\nimport Tooltip from '@material-ui/core/Tooltip';\n\nimport Refresh from \"mdi-material-ui/Refresh\";\n\nimport MaskedInput from \"react-text-mask\";\n\n\nclass DevAddrMask extends Component {\n render() {\n const { inputRef, ...other } = this.props;\n\n return(\n \n );\n }\n}\n\n\nclass DevAddrField extends Component {\n constructor() {\n super();\n\n this.state = {\n msb: true,\n value: \"\",\n };\n }\n\n toggleByteOrder = () => {\n this.setState({\n msb: !this.state.msb,\n });\n\n const bytes = this.state.value.match(/[A-Fa-f0-9]{2}/g);\n if (bytes !== null) {\n this.setState({\n value: bytes.reverse().join(\" \"),\n });\n }\n }\n\n randomKey = () => {\n this.props.randomFunc((k) => {\n let key = k;\n const bytes = key.match(/[\\w]{2}/g);\n if(!this.state.msb && bytes !== null) {\n key = bytes.reverse().join(\"\");\n }\n\n this.setState({\n value: key,\n });\n\n this.props.onChange({\n target: {\n value: k,\n type: \"text\",\n id: this.props.id,\n },\n });\n });\n }\n\n onChange = (e) => {\n this.setState({\n value: e.target.value,\n });\n\n let str = \"\";\n\n const bytes = e.target.value.match(/[\\w]{2}/g);\n if (!this.state.msb && bytes !== null) {\n str = bytes.reverse().join(\"\");\n } else if (bytes !== null) {\n str = bytes.join(\"\");\n } else {\n str = \"\";\n }\n\n this.props.onChange({\n target: {\n value: str,\n type: \"text\",\n id: this.props.id,\n },\n });\n }\n\n componentDidMount() {\n this.setState({\n value: this.props.value || \"\",\n });\n }\n\n render() {\n return(\n \n \n \n {this.state.msb ? \"MSB\": \"LSB\"}\n \n \n {this.props.random && !this.props.disabled && \n \n \n \n }\n \n }}\n {...this.props}\n onChange={this.onChange}\n value={this.state.value}\n disabled={this.props.disabled}\n />\n );\n }\n}\n\nexport default DevAddrField;\n","import React, { Component } from 'react';\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Typograhy from \"@material-ui/core/Typography\";\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\nimport TextField from \"@material-ui/core/TextField\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport AESKeyField from \"../../components/AESKeyField\";\nimport DevAddrField from \"../../components/DevAddrField\";\nimport Form from \"../../components/Form\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n link: {\n color: theme.palette.primary.main,\n },\n};\n\n\nclass LW10DeviceActivationForm extends FormComponent {\n constructor() {\n super();\n this.getRandomDevAddr = this.getRandomDevAddr.bind(this);\n }\n\n getRandomDevAddr(cb) {\n DeviceStore.getRandomDevAddr(this.props.match.params.devEUI, resp => {\n cb(resp.devAddr);\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n \n \n \n );\n }\n}\n\n\nclass LW11DeviceActivationForm extends FormComponent {\n constructor() {\n super();\n this.getRandomDevAddr = this.getRandomDevAddr.bind(this);\n }\n\n getRandomDevAddr(cb) {\n DeviceStore.getRandomDevAddr(this.props.match.params.devEUI, resp => {\n cb(resp.devAddr);\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\n\nLW10DeviceActivationForm = withStyles(styles)(LW10DeviceActivationForm);\nLW11DeviceActivationForm = withStyles(styles)(LW11DeviceActivationForm);\n\n\nclass DeviceActivation extends Component {\n constructor() {\n super();\n this.state = {};\n this.onSubmit = this.onSubmit.bind(this);\n }\n \n componentDidMount() {\n DeviceStore.getActivation(this.props.match.params.devEUI, resp => {\n if (resp === null) {\n this.setState({\n deviceActivation: {\n deviceActivation: {},\n },\n });\n } else {\n this.setState({\n deviceActivation: resp,\n });\n }\n });\n }\n\n onSubmit(deviceActivation) {\n let act = deviceActivation;\n act.devEUI = this.props.match.params.devEUI;\n\n if (this.props.deviceProfile.macVersion.startsWith(\"1.0\")) {\n act.fNwkSIntKey = act.nwkSEncKey;\n act.sNwkSIntKey = act.nwkSEncKey;\n }\n\n DeviceStore.activate(act, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}`);\n });\n }\n\n render() {\n if (this.state.deviceActivation === undefined) {\n return null;\n }\n\n let submitLabel = null;\n if (!this.props.deviceProfile.supportsJoin) {\n submitLabel = \"(Re)activate device\";\n }\n\n let showForm = false;\n if (!this.props.deviceProfile.supportsJoin || (this.props.deviceProfile.supportsJoin && this.state.deviceActivation.deviceActivation.devAddr !== undefined)) {\n showForm = true;\n }\n\n return(\n \n \n {showForm && this.props.deviceProfile.macVersion.startsWith(\"1.0\") && }\n {showForm && this.props.deviceProfile.macVersion.startsWith(\"1.1\") && }\n {!showForm && \n This device has not (yet) been activated.\n }\n \n \n );\n }\n}\n\nexport default withRouter(DeviceActivation);\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Avatar from \"@material-ui/core/Avatar\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Chip from \"@material-ui/core/Chip\";\nimport Button from '@material-ui/core/Button';\nimport CircularProgress from '@material-ui/core/CircularProgress';\nimport ExpansionPanel from '@material-ui/core/ExpansionPanel';\nimport ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';\nimport ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';\nimport Typography from '@material-ui/core/Typography';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\n\nimport Play from \"mdi-material-ui/Play\";\nimport Pause from \"mdi-material-ui/Pause\";\nimport Download from \"mdi-material-ui/Download\";\nimport Delete from \"mdi-material-ui/Delete\";\nimport ChevronDown from \"mdi-material-ui/ChevronDown\";\nimport HelpCircleOutline from \"mdi-material-ui/HelpCircleOutline\";\nimport AlertCircleOutline from \"mdi-material-ui/AlertCircleOutline\";\n\nimport moment from \"moment\";\nimport fileDownload from \"js-file-download\";\n\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport theme from \"../../theme\";\nimport JSONTree from \"../../components/JSONTree\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n center: {\n textAlign: \"center\",\n },\n progress: {\n marginTop: 4 * theme.spacing.unit,\n },\n headerColumn: {\n marginRight: 6 * theme.spacing.unit,\n },\n headerColumnFixedSmall: {\n width: 145,\n },\n headerColumnFixedWide: {\n width: 175,\n },\n treeStyle: {\n paddingTop: 0,\n paddingBottom: 0,\n fontSize: 12,\n lineHeight: 1.5,\n },\n};\n\n\nclass DeviceDataItem extends Component {\n render() {\n const receivedAt = moment(this.props.data.receivedAt).format(\"LTS\");\n \n return(\n \n }>\n
{receivedAt}
\n
{this.props.data.type}
\n
\n \n \n \n \n \n \n \n
\n );\n }\n}\n\nDeviceDataItem = withStyles(styles)(DeviceDataItem);\n\n\nclass DeviceData extends Component {\n constructor() {\n super();\n\n this.state = {\n paused: false,\n connected: false,\n data: [],\n dialogOpen: false,\n };\n\n this.setConnected = this.setConnected.bind(this);\n this.onData = this.onData.bind(this);\n this.onDownload = this.onDownload.bind(this);\n this.togglePause = this.togglePause.bind(this);\n this.onClear = this.onClear.bind(this);\n this.toggleHelpDialog = this.toggleHelpDialog.bind(this);\n }\n\n componentDidMount() {\n const conn = DeviceStore.getDataLogsConnection(this.props.match.params.devEUI, this.onData);\n this.setState({\n wsConn: conn,\n });\n\n DeviceStore.on(\"ws.status.change\", this.setConnected);\n this.setConnected();\n }\n\n componentWillUnmount() {\n this.state.wsConn.close();\n DeviceStore.removeListener(\"ws.status.change\", this.setConnected);\n }\n\n onDownload() {\n const dl = this.state.data.map((data, i) => {\n return {\n type: data.type,\n payload: data.payload,\n };\n });\n\n fileDownload(JSON.stringify(dl, null, 4), `device-${this.props.match.params.devEUI}.json`);\n }\n\n togglePause() {\n this.setState({\n paused: !this.state.paused,\n });\n }\n\n toggleHelpDialog() {\n this.setState({\n dialogOpen: !this.state.dialogOpen,\n });\n }\n\n onClear() {\n this.setState({\n data: [],\n });\n }\n\n setConnected() {\n this.setState({\n connected: DeviceStore.getWSDataStatus(),\n });\n }\n\n onData(d) {\n if (this.state.paused) {\n return;\n }\n\n let data = this.state.data;\n const now = new Date();\n\n data.unshift({\n id: now.getTime(),\n receivedAt: now,\n type: d.type,\n payload: JSON.parse(d.payloadJSON),\n });\n\n this.setState({\n data: data,\n });\n }\n\n render() {\n const data = this.state.data.map((d, i) => );\n\n return(\n \n \n Help\n \n \n These are the events as published to the application. Please refer to data integrations (documentation) for more information on integrating this with your application.\n \n \n \n \n \n \n\n \n \n {!this.state.paused && }\n {this.state.paused && }\n \n \n \n \n {!this.state.connected &&
\n }\n />\n
}\n {(this.state.connected && data.length === 0 && !this.state.paused) &&
}\n {data.length > 0 && data}\n
\n
\n );\n }\n}\n\nexport default withStyles(styles)(DeviceData);\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Avatar from \"@material-ui/core/Avatar\";\nimport Chip from \"@material-ui/core/Chip\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Button from '@material-ui/core/Button';\nimport CircularProgress from '@material-ui/core/CircularProgress';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\n\nimport Play from \"mdi-material-ui/Play\";\nimport Pause from \"mdi-material-ui/Pause\";\nimport Download from \"mdi-material-ui/Download\";\nimport Delete from \"mdi-material-ui/Delete\";\nimport HelpCircleOutline from \"mdi-material-ui/HelpCircleOutline\";\nimport AlertCircleOutline from \"mdi-material-ui/AlertCircleOutline\";\n\nimport fileDownload from \"js-file-download\";\n\nimport LoRaWANFrameLog from \"../../components/LoRaWANFrameLog\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n center: {\n textAlign: \"center\",\n },\n progress: {\n marginTop: 4 * theme.spacing.unit,\n },\n};\n\n\nclass DeviceFrames extends Component {\n constructor() {\n super();\n\n this.state = {\n paused: false,\n connected: false,\n frames: [],\n dialogOpen: false,\n };\n\n this.setConnected = this.setConnected.bind(this);\n this.onFrame = this.onFrame.bind(this);\n this.onDownload = this.onDownload.bind(this);\n this.togglePause = this.togglePause.bind(this);\n this.onClear = this.onClear.bind(this);\n this.toggleHelpDialog = this.toggleHelpDialog.bind(this);\n }\n\n componentDidMount() {\n const conn = DeviceStore.getFrameLogsConnection(this.props.match.params.devEUI, this.onFrame);\n this.setState({\n wsConn: conn,\n });\n\n DeviceStore.on(\"ws.status.change\", this.setConnected);\n this.setConnected();\n }\n\n componentWillUnmount() {\n this.state.wsConn.close();\n\n DeviceStore.removeListener(\"ws.status.change\", this.setConnected);\n }\n\n onDownload() {\n const dl = this.state.frames.map((frame, i) => {\n return {\n uplinkMetaData: frame.uplinkMetaData,\n downlinkMetaData: frame.downlinkMetaData,\n phyPayload: frame.phyPayload,\n };\n });\n\n fileDownload(JSON.stringify(dl, null, 4), `gateway-${this.props.match.params.gatewayID}.json`);\n }\n\n togglePause() {\n this.setState({\n paused: !this.state.paused,\n });\n }\n\n toggleHelpDialog() {\n this.setState({\n dialogOpen: !this.state.dialogOpen,\n });\n }\n\n onClear() {\n this.setState({\n frames: [],\n });\n }\n\n setConnected() {\n this.setState({\n connected: DeviceStore.getWSFramesStatus(),\n });\n }\n\n onFrame(frame) {\n if (this.state.paused) {\n return;\n }\n\n let frames = this.state.frames;\n const now = new Date();\n\n if (frame.uplinkFrame !== undefined) {\n frames.unshift({\n id: now.getTime(),\n receivedAt: now,\n uplinkMetaData: {\n rxInfo: frame.uplinkFrame.rxInfo,\n txInfo: frame.uplinkFrame.txInfo,\n },\n phyPayload: JSON.parse(frame.uplinkFrame.phyPayloadJSON),\n });\n }\n\n if (frame.downlinkFrame !== undefined) {\n frames.unshift({\n id: now.getTime(),\n receivedAt: now,\n downlinkMetaData: {\n txInfo: frame.downlinkFrame.txInfo,\n },\n phyPayload: JSON.parse(frame.downlinkFrame.phyPayloadJSON),\n });\n }\n\n console.log(frame);\n\n this.setState({\n frames: frames,\n });\n }\n\n render() {\n const frames = this.state.frames.map((frame, i) => );\n\n return(\n \n \n Help\n \n \n The frames below are the raw (and encrypted) LoRaWAN PHYPayload frames as seen by the gateway(s). This data is intedend for debugging only.\n \n \n \n \n \n \n\n \n \n {!this.state.paused && }\n {this.state.paused && }\n \n \n \n \n {!this.state.connected &&
\n }\n />\n
}\n {(this.state.connected && frames.length === 0 && !this.state.paused) &&
}\n {frames.length > 0 && frames}\n
\n
\n );\n }\n}\n\nexport default withStyles(styles)(DeviceFrames);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Button from '@material-ui/core/Button';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\nimport Table from '@material-ui/core/Table';\nimport TableBody from '@material-ui/core/TableBody';\n\nimport moment from \"moment\";\nimport CloudUpload from \"mdi-material-ui/CloudUpload\";\n\nimport TableCellLink from \"../../components/TableCellLink\";\nimport DataTable from \"../../components/DataTable\";\nimport Admin from \"../../components/Admin\";\nimport FUOTADeploymentStore from \"../../stores/FUOTADeploymentStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing.unit,\n },\n icon: {\n marginRight: theme.spacing.unit,\n },\n};\n\n\nclass ListFUOTADeploymentsForDevice extends Component {\n constructor() {\n super();\n\n this.state = {\n detailDialog: false,\n };\n\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n this.onCloseDialog = this.onCloseDialog.bind(this);\n this.showDetails = this.showDetails.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n FUOTADeploymentStore.list({\n devEUI: this.props.match.params.devEUI,\n limit: limit,\n offset: offset,\n }, callbackFunc);\n }\n\n getRow(obj) {\n const createdAt = moment(obj.createdAt).format('lll');\n const updatedAt = moment(obj.updatedAt).format('lll');\n\n return(\n \n {obj.name}\n {createdAt}\n {updatedAt}\n {obj.state}\n \n \n );\n }\n\n showDetails(fuotaDeploymentID) {\n FUOTADeploymentStore.getDeploymentDevice(fuotaDeploymentID, this.props.match.params.devEUI, resp => {\n this.setState({\n deploymentDevice: resp.deploymentDevice,\n fuotaDeploymentID: fuotaDeploymentID,\n detailDialog: true,\n });\n });\n }\n\n onCloseDialog() {\n this.setState({\n detailDialog: false,\n });\n }\n\n render() {\n let fddUpdatedAt = \"\";\n if (this.state.deploymentDevice !== undefined) {\n fddUpdatedAt = moment(this.state.deploymentDevice.updatedAt).format('lll');\n }\n\n return(\n \n {this.state.deploymentDevice && \n Job status for device\n \n \n \n \n Last updated\n {fddUpdatedAt}\n \n \n Device state\n {this.state.deploymentDevice.state}\n \n {this.state.deploymentDevice.state === \"ERROR\" && \n Error message\n {this.state.deploymentDevice.errorMessage}\n }\n \n
\n
\n \n \n \n }\n\n \n \n \n \n \n\n \n \n Job name\n Created at\n Updated at\n Job state\n Device state\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n
\n );\n }\n}\n\nexport default withStyles(styles)(ListFUOTADeploymentsForDevice);\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\nimport TextField from '@material-ui/core/TextField';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport {Controlled as CodeMirror} from \"react-codemirror2\";\nimport \"codemirror/mode/javascript/javascript\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\n\n\nconst styles = {\n codeMirror: {\n zIndex: 1,\n },\n};\n\n\n\nclass DeviceQueueItemForm extends FormComponent {\n constructor() {\n super();\n\n this.state = {\n tab: 0,\n };\n }\n\n onTabChange = (e, v) => {\n this.setState({\n tab: v,\n });\n }\n\n onCodeChange = (field, editor, data, newCode) => {\n let object = this.state.object;\n object[field] = newCode;\n this.setState({\n object: object,\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n const codeMirrorOptions = {\n lineNumbers: true,\n mode: \"javascript\",\n theme: \"default\",\n };\n\n let objectCode = this.state.object.jsonObject;\n if (objectCode === \"\" || objectCode === undefined) {\n objectCode = `{}`\n }\n\n return(\n \n 0.\"\n required\n fullWidth\n type=\"number\"\n />\n \n \n }\n />\n \n \n \n \n \n {this.state.tab === 0 && }\n {this.state.tab === 1 && \n \n \n The device must be configured with a Device Profile supporting a Codec which is able to encode the given (JSON) payload.\n \n }\n \n );\n }\n}\n\nexport default withStyles(styles)(DeviceQueueItemForm);\n\n","import { EventEmitter } from \"events\";\n\nimport Swagger from \"swagger-client\";\n\nimport sessionStore from \"./SessionStore\";\nimport {checkStatus, errorHandler } from \"./helpers\";\nimport dispatcher from \"../dispatcher\";\n\n\nclass DeviceQueueStore extends EventEmitter {\n constructor() {\n super();\n this.swagger = new Swagger(\"/swagger/deviceQueue.swagger.json\", sessionStore.getClientOpts());\n }\n\n flush(devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceQueueService.Flush({\n dev_eui: devEUI,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"device-queue has been flushed\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n list(devEUI, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceQueueService.List({\n dev_eui: devEUI,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n enqueue(item, callbackFunc) {\n this.swagger.then(client => {\n client.apis.DeviceQueueService.Enqueue({\n \"device_queue_item.dev_eui\": item.devEUI,\n body: {\n deviceQueueItem: item,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"device-queue item has bee created\");\n this.emit(\"enqueue\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n notify(msg) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: msg,\n },\n });\n }\n}\n\nconst deviceQueueStore = new DeviceQueueStore();\nexport default deviceQueueStore;\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from \"@material-ui/core/Grid\";\nimport Card from \"@material-ui/core/Card\";\nimport CardHeader from \"@material-ui/core/CardHeader\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport CardActions from \"@material-ui/core/CardActions\";\nimport Table from \"@material-ui/core/Table\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport Button from '@material-ui/core/Button';\n\nimport Refresh from \"mdi-material-ui/Refresh\";\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport moment from \"moment\";\n\nimport TableCellLink from \"../../components/TableCellLink\";\nimport DeviceQueueItemForm from \"./DeviceQueueItemForm\";\nimport DeviceQueueStore from \"../../stores/DeviceQueueStore\";\n\n\nclass DetailsCard extends Component {\n render() {\n return(\n \n \n \n \n \n \n Name\n {this.props.device.device.name}\n \n \n Description\n {this.props.device.device.description}\n \n \n Device-profile\n {this.props.deviceProfile.deviceProfile.name}\n \n \n
\n
\n
\n );\n }\n}\n\n\nclass StatusCard extends Component {\n render() {\n let lastSeenAt = \"never\";\n\n if (this.props.device.lastSeenAt !== null) {\n lastSeenAt = moment(this.props.device.lastSeenAt).format(\"lll\");\n }\n\n return(\n \n \n \n \n \n \n Last seen at\n {lastSeenAt}\n \n \n
\n
\n
\n );\n }\n}\n\nclass EnqueueCard extends Component {\n constructor() {\n super();\n\n this.state = {\n object: {},\n };\n }\n\n onSubmit = (queueItem) => {\n console.log(\"foo\");\n let qi = queueItem;\n qi.devEUI = this.props.match.params.devEUI;\n\n DeviceQueueStore.enqueue(qi, resp => {\n this.setState({\n object: {},\n });\n });\n }\n\n render() {\n return(\n \n \n \n \n \n \n );\n }\n}\n\nEnqueueCard = withRouter(EnqueueCard);\n\n\nclass QueueCardRow extends Component {\n render() {\n let confirmed = \"no\";\n if (this.props.item.confirmed) {\n confirmed = \"yes\";\n }\n\n return(\n \n {this.props.item.fCnt}\n {this.props.item.fPort}\n {confirmed}\n {this.props.item.data}\n \n );\n }\n}\n\n\nclass QueueCard extends Component {\n constructor() {\n super();\n\n this.state = {\n deviceQueueItems: [],\n };\n }\n\n componentDidMount() {\n this.getQueue();\n\n DeviceQueueStore.on(\"enqueue\", this.getQueue);\n }\n\n componentWillUnmount() {\n DeviceQueueStore.removeListener(\"enqueue\", this.getQueue);\n }\n\n getQueue = () => {\n DeviceQueueStore.list(this.props.match.params.devEUI, resp => {\n this.setState({\n deviceQueueItems: resp.deviceQueueItems,\n });\n });\n }\n\n flushQueue = () => {\n if (window.confirm(\"Are you sure you want to flush the device queue?\")) {\n DeviceQueueStore.flush(this.props.match.params.devEUI, resp => {\n this.getQueue();\n });\n }\n }\n\n render() {\n const rows = this.state.deviceQueueItems.map((item, i) => );\n\n return(\n \n \n \n \n \n } />\n \n \n \n \n FCnt\n FPort\n Confirmed\n Base64 encoded payload\n \n \n \n {rows}\n \n
\n
\n
\n );\n }\n}\n\nQueueCard = withRouter(QueueCard);\n\n\nclass DeviceDetails extends Component {\n render() {\n\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default DeviceDetails;\n","import React, { Component } from \"react\";\nimport { Route, Switch, Link, withRouter } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport Admin from \"../../components/Admin\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport UpdateDevice from \"./UpdateDevice\";\nimport DeviceKeys from \"./DeviceKeys\";\nimport DeviceActivation from \"./DeviceActivation\"\nimport DeviceData from \"./DeviceData\";\nimport DeviceFrames from \"./DeviceFrames\";\nimport ListFUOTADeploymentsForDevice from \"../../views/fuota/ListFUOTADeploymentsForDevice\";\nimport DeviceDetails from \"./DeviceDetails\";\n\nimport theme from \"../../theme\";\n\n\nconst styles = {\n tabs: {\n borderBottom: \"1px solid \" + theme.palette.divider,\n height: \"49px\",\n },\n};\n\n\nclass DeviceLayout extends Component {\n constructor() {\n super();\n this.state = {\n tab: 0,\n admin: false,\n };\n\n this.onChangeTab = this.onChangeTab.bind(this);\n this.deleteDevice = this.deleteDevice.bind(this);\n this.locationToTab = this.locationToTab.bind(this);\n this.setIsAdmin = this.setIsAdmin.bind(this);\n this.getDevice = this.getDevice.bind(this);\n }\n\n componentDidMount() {\n ApplicationStore.get(this.props.match.params.applicationID, resp => {\n this.setState({\n application: resp,\n });\n });\n\n\n DeviceStore.on(\"update\", this.getDevice);\n SessionStore.on(\"change\", this.setIsAdmin);\n\n this.locationToTab();\n this.setIsAdmin();\n this.getDevice();\n }\n\n componentWillUnmount() {\n SessionStore.removeListener(\"change\", this.setIsAdmin);\n DeviceStore.removeListener(\"update\", this.getDevice);\n }\n\n componentDidUpdate(oldProps) {\n if (this.props === oldProps) {\n return;\n }\n\n this.locationToTab();\n }\n\n getDevice() {\n DeviceStore.get(this.props.match.params.devEUI, resp => {\n this.setState({\n device: resp,\n });\n\n DeviceProfileStore.get(resp.device.deviceProfileID, resp => {\n this.setState({\n deviceProfile: resp,\n });\n });\n });\n }\n\n setIsAdmin() {\n this.setState({\n admin: SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.match.params.organizationID),\n }, () => {\n // we need to update the tab index, as for non-admins, some tabs are hidden\n this.locationToTab();\n });\n }\n\n onChangeTab(e, v) {\n this.setState({\n tab: v,\n });\n }\n\n locationToTab() {\n let tab = 0;\n\n if (window.location.href.endsWith(\"/edit\")) {\n tab = 1;\n } else if (window.location.href.endsWith(\"/keys\")) {\n tab = 2;\n } else if (window.location.href.endsWith(\"/activation\")) {\n tab = 3;\n } else if (window.location.href.endsWith(\"/data\")) {\n tab = 4;\n } else if (window.location.href.endsWith(\"/frames\")) {\n tab = 5;\n } else if (window.location.href.endsWith(\"/fuota-deployments\")) {\n tab = 6;\n }\n\n if (tab > 1 && !this.state.admin) {\n tab = tab - 1;\n }\n\n this.setState({\n tab: tab,\n });\n }\n\n deleteDevice() {\n if (window.confirm(\"Are you sure you want to delete this device?\")) {\n DeviceStore.delete(this.props.match.params.devEUI, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}`);\n });\n }\n }\n\n render() {\n if (this.state.application === undefined || this.state.device === undefined|| this.state.deviceProfile === undefined) {\n return(
);\n }\n\n return(\n \n \n }\n color=\"secondary\"\n onClick={this.deleteDevice}\n />\n \n }\n >\n \n \n \n \n \n \n \n \n\n \n \n \n \n {this.state.admin && }\n \n \n \n \n \n \n\n \n \n } />\n } />\n } />\n } />\n } />\n } />\n } />\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(DeviceLayout));\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport DataTable from \"../../components/DataTable\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n link: {\n color: theme.palette.primary.main,\n textDecoration: \"none\",\n },\n\n type: {\n fontWeight: \"bold\",\n },\n};\n\n\nclass ApplicationResult extends Component {\n render() {\n return(\n \n application\n {this.props.result.applicationName}\n organization: {this.props.result.organizationName}\n {this.props.result.applicationID}\n \n );\n }\n}\n\nApplicationResult = withStyles(styles)(ApplicationResult);\n\n\nclass OrganizationResult extends Component {\n render() {\n return(\n \n organization\n {this.props.result.organizationName}\n \n {this.props.result.organizationID}\n \n );\n }\n}\n\nOrganizationResult = withStyles(styles)(OrganizationResult);\n\nclass DeviceResult extends Component {\n render() {\n return(\n \n device\n {this.props.result.deviceName}\n organization: {this.props.result.organizationName}, application: {this.props.result.applicationName}\n {this.props.result.deviceDevEUI}\n \n );\n }\n}\n\nDeviceResult = withStyles(styles)(DeviceResult);\n\nclass GatewayResult extends Component {\n render() {\n return(\n \n gateway\n {this.props.result.gatewayName}\n organization: {this.props.result.organizationName}\n {this.props.result.gatewayMAC}\n \n );\n }\n}\n\nGatewayResult = withStyles(styles)(GatewayResult);\n\n\nclass Search extends Component {\n constructor() {\n super();\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n const query = new URLSearchParams(this.props.location.search);\n const search = (query.get(\"search\") === null) ? \"\" : query.get(\"search\");\n\n if (search === \"\") {\n callbackFunc({result: [], totalCount: 0});\n return;\n }\n\n SessionStore.globalSearch(search, limit, offset, resp => {\n let r = resp;\n r.totalCount = r.result.length;\n callbackFunc(r);\n });\n }\n\n getRow(obj) {\n switch (obj.kind) {\n case \"application\":\n return \n case \"organization\":\n return \n case \"device\":\n return \n case \"gateway\":\n return \n default:\n break;\n }\n }\n\n render() {\n return(\n \n \n \n \n \n \n Kind\n Name\n \n ID\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default Search;\n","import React, { Component } from \"react\";\n\nimport TextField from \"@material-ui/core/TextField\";\n\nclass DurationField extends Component {\n constructor() {\n super();\n\n this.state = {\n value: 0,\n };\n }\n\n\n onChange = (e) => {\n this.setState({\n value: e.target.value,\n });\n\n this.props.onChange({\n target: {\n value: `${e.target.value}s`,\n type: \"text\",\n id: this.props.id,\n },\n });\n }\n\n componentDidMount() {\n const str = this.props.value || \"\";\n this.setState({\n value: str.replace(/s/, ''),\n });\n }\n\n render() {\n return(\n \n );\n }\n}\n\nexport default DurationField;\n\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport TextField from '@material-ui/core/TextField';\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\nimport Button from \"@material-ui/core/Button\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport DurationField from \"../../components/DurationField\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\n\nconst styles = {\n formLabel: {\n fontSize: 12,\n },\n};\n\nclass FUOTADeploymentForm extends FormComponent {\n constructor() {\n super();\n\n this.state.file = null;\n\n this.onFileChange = this.onFileChange.bind(this);\n }\n\n getGroupTypeOptions(search, callbackFunc) {\n const options = [\n {value: \"CLASS_C\", label: \"Class-C\"},\n ];\n\n callbackFunc(options);\n }\n\n getMulticastTimeoutOptions(search, callbackFunc) {\n let options = [];\n\n for (let i = 0; i < (1 << 4); i++) {\n options.push({\n label: `${1 << i} seconds`,\n value: i,\n });\n }\n\n callbackFunc(options);\n }\n\n onFileChange(e) {\n let object = this.state.object;\n\n if (e.target.files.length !== 1) {\n object.payload = \"\";\n\n this.setState({\n file: null,\n object: object,\n });\n } else {\n this.setState({\n file: e.target.files[0],\n });\n\n const reader = new FileReader();\n reader.onload = () => {\n const encoded = reader.result.replace(/^data:(.*;base64,)?/, '');\n object.payload = encoded;\n\n this.setState({\n object: object,\n });\n };\n reader.readAsDataURL(e.target.files[0]);\n }\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n let fileLabel = \"\";\n if (this.state.file !== null) {\n fileLabel = `${this.state.file.name} (${this.state.file.size} bytes)`\n } else {\n fileLabel = \"Select file...\"\n }\n\n return(\n \n \n\n \n Select firmware file\n \n \n This file will fragmented and sent to the device(s). Please note that the format of this file is vendor dependent.\n \n \n\n \n\n \n\n \n\n \n\n \n Multicast-group type\n \n \n The multicast-group type defines the way how multicast frames are scheduled by the network-server.\n \n \n\n \n Multicast timeout\n \n \n\n \n );\n }\n}\n\nexport default withStyles(styles)(FUOTADeploymentForm);\n\n","import React, { Component } from \"react\";\nimport { withRouter } from 'react-router-dom';\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Card from '@material-ui/core/Card';\nimport CardContent from \"@material-ui/core/CardContent\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport DeviceStore from \"../../stores/DeviceStore\";\nimport FUOTADeploymentStore from \"../../stores/FUOTADeploymentStore\";\nimport FUOTADeploymentForm from \"./FUOTADeploymentForm\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateFUOTADeploymentForDevice extends Component {\n constructor() {\n super();\n this.state = {};\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n ApplicationStore.get(this.props.match.params.applicationID, resp => {\n this.setState({\n application: resp,\n });\n });\n\n DeviceStore.get(this.props.match.params.devEUI, resp => {\n this.setState({\n device: resp,\n });\n });\n }\n\n onSubmit(fuotaDeployment) {\n FUOTADeploymentStore.createForDevice(this.props.match.params.devEUI, fuotaDeployment, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/devices/${this.props.match.params.devEUI}/fuota-deployments`);\n });\n }\n\n render() {\n if (this.state.application === undefined || this.state.device === undefined) {\n return null;\n }\n\n return(\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(CreateFUOTADeploymentForDevice));\n\n","import React, { Component } from \"react\";\n\nimport Grid from '@material-ui/core/Grid';\nimport Card from \"@material-ui/core/Card\";\nimport CardHeader from \"@material-ui/core/CardHeader\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport LinearProgress from '@material-ui/core/LinearProgress';\nimport Typography from \"@material-ui/core/Typography\";\n\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Table from '@material-ui/core/Table';\nimport TableBody from '@material-ui/core/TableBody';\n\nimport moment from \"moment\";\n\nimport FUOTADeploymentStore from \"../../stores/FUOTADeploymentStore\";\n\n\nclass FUOTADeploymentDetails extends Component {\n constructor() {\n super();\n\n this.state = {\n progress: 0,\n stepProgress: 0,\n lastReload: 0,\n };\n }\n\n componentDidMount() {\n this.timer = setInterval(this.progress, 1000);\n }\n\n componentWillUnmount() {\n clearInterval(this.timer);\n }\n\n componentDidUpdate(prevProps) {\n if (this.props === prevProps) {\n return;\n }\n\n this.progress();\n }\n\n progress = () => {\n const start = moment(this.props.fuotaDeployment.updatedAt).unix();\n const nextStepAfter = moment(this.props.fuotaDeployment.fuotaDeployment.nextStepAfter).unix();\n const now = moment().unix();\n\n const span = nextStepAfter - start;\n const stepProgress = now - start;\n const progressScaled = stepProgress / span * 100;\n\n if (progressScaled > 100) {\n if (moment().unix() - this.state.lastReload > 5) {\n this.setState({\n lastReload: moment().unix(),\n }, FUOTADeploymentStore.emitReload());\n }\n }\n\n const states = 8;\n let state = 0;\n\n switch(this.props.fuotaDeployment.fuotaDeployment.state) {\n case \"MC_CREATE\":\n state = 0;\n break;\n case \"MC_SETUP\":\n state = 1;\n break;\n case \"FRAG_SESS_SETUP\":\n state = 2;\n break;\n case \"MC_SESS_C_SETUP\":\n state = 3;\n break;\n case \"ENQUEUE\":\n state = 4;\n break;\n case \"STATUS_REQUEST\":\n state = 5;\n break;\n case \"SET_DEVICE_STATUS\":\n state = 6;\n break;\n case \"CLEANUP\":\n state = 7;\n break;\n case \"DONE\":\n state = 8;\n break;\n default:\n state = 0;\n break;\n }\n\n this.setState({\n stepProgress: progressScaled,\n progress: state / states * 100,\n });\n }\n\n render() {\n let multicastTimeout = 0;\n if (this.props.fuotaDeployment.fuotaDeployment.groupType === \"CLASS_C\") {\n multicastTimeout = (1 << this.props.fuotaDeployment.fuotaDeployment.multicastTimeout);\n }\n\n const createdAt = moment(this.props.fuotaDeployment.createdAt).format('lll');\n const updatedAt = moment(this.props.fuotaDeployment.updatedAt).format('lll');\n const nextStepAfter = moment(this.props.fuotaDeployment.fuotaDeployment.nextStepAfter).format('lll');\n\n return(\n \n \n \n \n \n \n \n \n Job name\n {this.props.fuotaDeployment.fuotaDeployment.name}\n \n \n Redundant frames\n {this.props.fuotaDeployment.fuotaDeployment.redundancy}\n \n \n Unicast timeout\n {this.props.fuotaDeployment.fuotaDeployment.unicastTimeout}\n \n \n Data-rate\n {this.props.fuotaDeployment.fuotaDeployment.dr}\n \n \n Frequency\n {this.props.fuotaDeployment.fuotaDeployment.frequency}Hz\n \n \n Multicast-group type\n {this.props.fuotaDeployment.fuotaDeployment.groupType}\n \n \n Multicast timeout\n {multicastTimeout} seconds\n \n \n
\n
\n
\n
\n\n \n \n \n \n \n \n \n Created at\n {createdAt}\n \n \n Updated at\n {updatedAt}\n \n \n State\n {this.props.fuotaDeployment.fuotaDeployment.state}\n \n {this.props.fuotaDeployment.fuotaDeployment.state !== \"DONE\" && \n Next step at\n {nextStepAfter}\n }\n \n
\n
\n {this.props.fuotaDeployment.fuotaDeployment.state !== \"DONE\" && \n \n Job progress:\n \n \n }\n {this.props.fuotaDeployment.fuotaDeployment.state !== \"DONE\" && \n \n State progress:\n \n \n }\n
\n
\n
\n );\n }\n}\n\nexport default FUOTADeploymentDetails;\n\n","import React, { Component } from \"react\";\n\nimport Grid from \"@material-ui/core/Grid\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Button from '@material-ui/core/Button';\nimport Dialog from '@material-ui/core/Dialog';\nimport DialogActions from '@material-ui/core/DialogActions';\nimport DialogContent from '@material-ui/core/DialogContent';\nimport DialogTitle from '@material-ui/core/DialogTitle';\n\nimport moment from \"moment\";\n\nimport TableCellLink from \"../../components/TableCellLink\";\nimport DataTable from \"../../components/DataTable\";\n\nimport FUOTADeploymentStore from \"../../stores/FUOTADeploymentStore\";\n\n\nclass FUOTADeploymentDevices extends Component {\n constructor() {\n super();\n\n this.state = {\n detailDialog: false,\n };\n\n this.getPage = this.getPage.bind(this);\n this.getRow = this.getRow.bind(this);\n this.onCloseDialog = this.onCloseDialog.bind(this);\n this.showDetails = this.showDetails.bind(this);\n }\n\n getPage(limit, offset, callbackFunc) {\n FUOTADeploymentStore.listDeploymentDevices({\n fuota_deployment_id: this.props.match.params.fuotaDeploymentID,\n limit: limit,\n offset: offset,\n }, callbackFunc);\n }\n\n getRow(obj) {\n const createdAt = moment(obj.createdAt).format('lll');\n const updatedAt = moment(obj.updatedAt).format('lll');\n\n return(\n \n {obj.deviceName}\n {obj.devEUI}\n {createdAt}\n {updatedAt}\n \n \n ); \n }\n\n showDetails(devEUI) {\n FUOTADeploymentStore.getDeploymentDevice(this.props.match.params.fuotaDeploymentID, devEUI, resp => {\n this.setState({\n deploymentDevice: resp.deploymentDevice,\n detailDialog: true,\n });\n });\n }\n\n onCloseDialog() {\n this.setState({\n detailDialog: false,\n });\n }\n\n render() {\n let fddUpdatedAt = \"\";\n if (this.state.deploymentDevice !== undefined) {\n fddUpdatedAt = moment(this.state.deploymentDevice.updatedAt).format('lll');\n }\n\n return(\n \n {this.state.deploymentDevice && \n Job status for device\n \n \n \n \n Last updated\n {fddUpdatedAt}\n \n \n Device state\n {this.state.deploymentDevice.state}\n \n {this.state.deploymentDevice.state === \"ERROR\" && \n Error message\n {this.state.deploymentDevice.errorMessage}\n }\n \n
\n
\n \n \n \n }\n\n\n \n \n Device name\n Device EUI\n Created at\n Updated at\n State\n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n
\n );\n }\n}\n\nexport default FUOTADeploymentDevices;\n","import React, { Component } from \"react\";\nimport { Route, Switch, Link } from \"react-router-dom\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport FUOTADeploymentStore from \"../../stores/FUOTADeploymentStore\";\nimport FUOTADeploymentDetails from \"./FUOTADeploymentDetails\";\nimport ListFUOTADeploymentDevices from \"./ListFUOTADeploymentDevices\";\n\nimport theme from \"../../theme\";\n\n\nconst styles = {\n tabs: {\n borderBottom: \"1px solid \" + theme.palette.divider,\n height: \"48px\",\n overflow: \"visible\",\n },\n};\n\n\nclass FUOTADeploymentLayout extends Component {\n constructor() {\n super();\n\n this.state = {\n tab: 0,\n };\n\n this.onChangeTab = this.onChangeTab.bind(this);\n this.locationToTab = this.locationToTab.bind(this);\n }\n\n componentDidMount() {\n ApplicationStore.get(this.props.match.params.applicationID, resp => {\n this.setState({\n application: resp,\n });\n });\n\n FUOTADeploymentStore.on(\"reload\", this.getFuotaDeployment);\n\n\n this.getFuotaDeployment();\n this.locationToTab();\n }\n\n componentWillUnmount() {\n FUOTADeploymentStore.removeListener(\"reload\", this.getFuotaDeployment);\n }\n\n getFuotaDeployment = () => {\n FUOTADeploymentStore.get(this.props.match.params.fuotaDeploymentID, resp => {\n this.setState({\n fuotaDeployment: resp,\n });\n });\n }\n\n onChangeTab(e, v) {\n this.setState({\n tab: v,\n });\n }\n\n locationToTab() {\n let tab = 0;\n\n if (window.location.href.endsWith(\"/devices\")) {\n tab = 1;\n }\n\n this.setState({\n tab: tab,\n });\n }\n\n\n render() {\n if (this.state.application === undefined || this.state.fuotaDeployment === undefined) {\n return null;\n }\n\n return(\n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n } />\n } />\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(FUOTADeploymentLayout);\n\n","import React, { Component } from \"react\";\nimport {Router} from \"react-router-dom\";\nimport { Route, Switch } from 'react-router-dom';\nimport classNames from \"classnames\";\n\nimport CssBaseline from \"@material-ui/core/CssBaseline\";\nimport { MuiThemeProvider, withStyles } from \"@material-ui/core/styles\";\nimport Grid from '@material-ui/core/Grid';\n\nimport history from \"./history\";\nimport theme from \"./theme\";\n\nimport TopNav from \"./components/TopNav\";\nimport SideNav from \"./components/SideNav\";\nimport Footer from \"./components/Footer\";\nimport Notifications from \"./components/Notifications\";\nimport SessionStore from \"./stores/SessionStore\";\n\n// network-server\nimport ListNetworkServers from \"./views/network-servers/ListNetworkServers\";\nimport CreateNetworkServer from \"./views/network-servers/CreateNetworkServer\";\nimport NetworkServerLayout from \"./views/network-servers/NetworkServerLayout\";\n\n// gateway profiles\nimport ListGatewayProfiles from \"./views/gateway-profiles/ListGatewayProfiles\";\nimport CreateGatewayProfile from \"./views/gateway-profiles/CreateGatewayProfile\";\nimport GatewayProfileLayout from \"./views/gateway-profiles/GatewayProfileLayout\";\n\n// organization\nimport ListOrganizations from \"./views/organizations/ListOrganizations\";\nimport CreateOrganization from \"./views/organizations/CreateOrganization\";\nimport OrganizationLayout from \"./views/organizations/OrganizationLayout\";\nimport ListOrganizationUsers from \"./views/organizations/ListOrganizationUsers\";\nimport OrganizationUserLayout from \"./views/organizations/OrganizationUserLayout\";\nimport CreateOrganizationUser from \"./views/organizations/CreateOrganizationUser\";\nimport OrganizationRedirect from \"./views/organizations/OrganizationRedirect\";\n\n// user\nimport Login from \"./views/users/Login\";\nimport ListUsers from \"./views/users/ListUsers\";\nimport CreateUser from \"./views/users/CreateUser\";\nimport UserLayout from \"./views/users/UserLayout\";\nimport ChangeUserPassword from \"./views/users/ChangeUserPassword\";\n\n// service-profile\nimport ListServiceProfiles from \"./views/service-profiles/ListServiceProfiles\";\nimport CreateServiceProfile from \"./views/service-profiles/CreateServiceProfile\";\nimport ServiceProfileLayout from \"./views/service-profiles/ServiceProfileLayout\";\n\n// device-profile\nimport ListDeviceProfiles from \"./views/device-profiles/ListDeviceProfiles\";\nimport CreateDeviceProfile from \"./views/device-profiles/CreateDeviceProfile\";\nimport DeviceProfileLayout from \"./views/device-profiles/DeviceProfileLayout\";\n\n// gateways\nimport ListGateways from \"./views/gateways/ListGateways\";\nimport GatewayLayout from \"./views/gateways/GatewayLayout\";\nimport CreateGateway from \"./views/gateways/CreateGateway\";\n\n// applications\nimport ListApplications from \"./views/applications/ListApplications\";\nimport CreateApplication from \"./views/applications/CreateApplication\";\nimport ApplicationLayout from \"./views/applications/ApplicationLayout\";\nimport CreateIntegration from \"./views/applications/CreateIntegration\";\nimport UpdateIntegration from \"./views/applications/UpdateIntegration\";\n\n// multicast-groups\nimport ListMulticastGroups from \"./views/multicast-groups/ListMulticastGroups\";\nimport CreateMulticastGroup from \"./views/multicast-groups/CreateMulticastGroup\";\nimport MulticastGroupLayout from \"./views/multicast-groups/MulticastGroupLayout\";\nimport AddDeviceToMulticastGroup from \"./views/multicast-groups/AddDeviceToMulticastGroup\";\n\n// device\nimport CreateDevice from \"./views/devices/CreateDevice\";\nimport DeviceLayout from \"./views/devices/DeviceLayout\";\n\n// search\nimport Search from \"./views/search/Search\";\n\n// FUOTA\nimport CreateFUOTADeploymentForDevice from \"./views/fuota/CreateFUOTADeploymentForDevice\";\nimport FUOTADeploymentLayout from \"./views/fuota/FUOTADeploymentLayout\";\n\n\nconst drawerWidth = 270;\n\nconst styles = {\n root: {\n flexGrow: 1,\n display: \"flex\",\n minHeight: \"100vh\",\n flexDirection: \"column\",\n },\n paper: {\n padding: theme.spacing.unit * 2,\n textAlign: 'center',\n color: theme.palette.text.secondary,\n },\n main: {\n width: \"100%\",\n padding: 2 * 24,\n paddingTop: 115,\n flex: 1,\n },\n\n mainDrawerOpen: {\n paddingLeft: drawerWidth + (2 * 24),\n },\n footerDrawerOpen: {\n paddingLeft: drawerWidth,\n },\n};\n\n\nclass App extends Component {\n constructor() {\n super();\n\n this.state = {\n user: null,\n drawerOpen: false,\n };\n\n this.setDrawerOpen = this.setDrawerOpen.bind(this);\n }\n\n componentDidMount() {\n SessionStore.on(\"change\", () => {\n this.setState({\n user: SessionStore.getUser(),\n drawerOpen: SessionStore.getUser() != null,\n });\n });\n\n this.setState({\n user: SessionStore.getUser(),\n drawerOpen: SessionStore.getUser() != null,\n });\n }\n\n setDrawerOpen(state) {\n this.setState({\n drawerOpen: state,\n });\n }\n\n render() {\n let topNav = null;\n let sideNav = null;\n\n if (this.state.user !== null) {\n topNav = ;\n sideNav = \n }\n\n return (\n \n \n \n \n
\n {topNav}\n {sideNav}\n
\n \n \n \n \n \n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n\n \n \n \n
\n
\n
\n
\n
\n \n
\n
\n
\n );\n }\n}\n\nexport default withStyles(styles)(App);\n","import React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport \"typeface-roboto\";\nimport Leaflet from \"leaflet\";\n\nimport App from \"./App\";\n\nimport \"leaflet/dist/leaflet.css\";\nimport \"codemirror/lib/codemirror.css\";\nimport \"codemirror/theme/base16-light.css\";\nimport \"./index.css\";\n\nLeaflet.Icon.Default.imagePath = \"//cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.0/images/\"\n\nReactDOM.render(, document.getElementById(\"root\"));\n"],"sourceRoot":""}