{"version":3,"sources":["stores/SessionStore.js","theme.js","history.js","components/JSONTree.js","components/EUI64Field.js","components/DevAddrField.js","classes/FormComponent.js","components/Form.js","views/multicast-groups/MulticastGroupForm.js","dispatcher.js","components/AutocompleteSelect.js","stores/ServiceProfileStore.js","stores/helpers.js","components/AESKeyField.js","stores/InternalStore.js","components/TopNav.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/MapTileLayer.js","stores/GatewayStore.js","views/dashboard/Dashboard.js","components/TableCellLink.js","components/TitleBarButton.js","components/Paper.js","components/DataTable.js","stores/NetworkServerStore.js","views/network-servers/ListNetworkServers.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","components/DurationField.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/OrganizationDashboard.js","views/organizations/OrganizationLayout.js","views/organizations/ListOrganizationUsers.js","views/organizations/OrganizationUserForm.js","views/organizations/UpdateOrganizationUser.js","views/organizations/OrganizationUserLayout.js","views/organizations/CreateOrganizationUser.js","views/organizations/OrganizationRedirect.js","views/users/Login.js","stores/UserStore.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","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","components/DeviceAdmin.js","stores/DeviceProfileStore.js","views/device-profiles/ListDeviceProfiles.js","components/KVForm.js","views/device-profiles/DeviceProfileForm.js","views/device-profiles/CreateDeviceProfile.js","views/device-profiles/UpdateDeviceProfile.js","views/device-profiles/DeviceProfileLayout.js","components/GatewayAdmin.js","views/gateways/ListGateways.js","views/gateways/GatewayDetails.js","stores/LocationStore.js","views/gateways/GatewayForm.js","views/gateways/UpdateGateway.js","views/gateways/GatewayDiscovery.js","components/LoRaWANFrameLog.js","views/gateways/GatewayFrames.js","views/gateways/GatewayCertificate.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/integrations/GCPPubSub.js","views/applications/integrations/HTTP.js","views/applications/integrations/AzureServiceBusCard.js","views/applications/integrations/AWSSNSCard.js","views/applications/integrations/InfluxDBCard.js","views/applications/integrations/ThingsboardCard.js","views/applications/integrations/LoRaCloudCard.js","views/applications/integrations/MyDevicesCard.js","views/applications/integrations/PilotThingsCard.js","views/applications/integrations/MQTTCard.js","views/applications/ListIntegrations.js","views/applications/integrations/AWSSNSIntegrationForm.js","views/applications/integrations/CreateAWSSNSIntegration.js","views/applications/integrations/GCPPubSubIntegrationForm.js","views/applications/integrations/CreateGCPPubSubIntegration.js","views/applications/integrations/HTTPIntegrationForm.js","views/applications/integrations/CreateHTTPIntegration.js","views/applications/integrations/AzureServiceBusIntegrationForm.js","views/applications/integrations/CreateAzureServiceBusIntegration.js","views/applications/integrations/InfluxDBIntegrationForm.js","views/applications/integrations/CreateInfluxDBIntegration.js","views/applications/integrations/ThingsBoardIntegrationForm.js","views/applications/integrations/CreateThingsBoardIntegration.js","views/applications/integrations/LoRaCloudIntegrationForm.js","views/applications/integrations/CreateLoRaCloudIntegration.js","views/applications/integrations/MyDevicesIntegrationForm.js","views/applications/integrations/CreateMyDevicesIntegration.js","views/applications/integrations/PilotThingsIntegrationForm.js","views/applications/integrations/CreatePilotThingsIntegration.js","views/applications/integrations/UpdateAWSSNSIntegration.js","views/applications/integrations/UpdateGCPPubSubIntegration.js","views/applications/integrations/UpdateHTTPIntegration.js","views/applications/integrations/UpdateAzureServiceBusIntegration.js","views/applications/integrations/UpdateInfluxDBIntegration.js","views/applications/integrations/UpdateThingsBoardIntegration.js","views/applications/integrations/UpdateLoRaCloudIntegration.js","views/applications/integrations/UpdateMyDevicesIntegration.js","views/applications/integrations/UpdatePilotThingsIntegration.js","views/applications/integrations/MQTTCertificate.js","views/applications/ApplicationLayout.js","stores/MulticastGroupStore.js","views/multicast-groups/ListMulticastGroups.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","views/devices/DeviceActivation.js","views/devices/DeviceData.js","views/devices/DeviceFrames.js","views/devices/DeviceQueueItemForm.js","stores/DeviceQueueStore.js","views/devices/DeviceDetails.js","views/devices/DeviceLayout.js","views/search/Search.js","views/api-keys/ListAdminAPIKeys.js","views/api-keys/APIKeyForm.js","views/api-keys/CreateAdminAPIKey.js","views/api-keys/ListOrganizationAPIKeys.js","views/api-keys/CreateOrganizationAPIKey.js","App.js","index.js"],"names":["sessionStore","client","user","organizations","settings","branding","swagger","Swagger","getClientOpts","then","getToken","fetchProfile","requestInterceptor","req","headers","token","localStorage","setItem","getItem","orgID","id","this","emit","rowsPerPage","JSON","parse","stringify","undefined","isAdmin","organizationID","i","length","isDeviceAdmin","isGatewayAdmin","login","callBackFunc","apis","InternalService","Login","body","checkStatus","resp","setToken","obj","jwt","catch","errorHandlerLogin","code","state","callbackFunc","OpenIDConnectLogin","jwtToken","errorHandler","clear","Profile","search","limit","offset","GlobalSearch","EventEmitter","theme","createMuiTheme","palette","primary","blue","createHashHistory","JSONTree","data","props","devEUI","base64ToHex","devAddr","gatewayID","rxInfo","uplinkID","Buffer","from","unparse","uplinkIDs","objectJSON","scheme","author","base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F","hideRoot","shouldExpandNode","Component","str","toString","EUI64HEXMask","inputRef","other","ref","inputElement","mask","EUI64Field","toggleByteOrder","setState","msb","bytes","value","match","reverse","join","randomKey","cryptoObj","window","crypto","msCrypto","b","Uint8Array","getRandomValues","key","onChange","target","type","e","InputProps","inputComponent","endAdornment","position","title","aria-label","onClick","random","disabled","DevAddrMask","DevAddrField","randomFunc","k","FormComponent","addKV","name","preventDefault","kvs","push","onChangeKV","index","object","forEach","ss","onDeleteKV","splice","bind","onSubmit","lookup","split","field","pop","checked","parseInt","prevProps","Form","children","container","justify","className","classes","formControl","extraButtons","submitLabel","color","withStyles","paddingTop","styles","formLabel","fontSize","link","main","MulticastGroupForm","getRandomMcAddr","cb","getRandomKey","getRandomSessionKey","getServiceProfileOption","getServiceProfileOptions","ServiceProfileStore","get","label","serviceProfile","list","params","options","result","map","sp","len","margin","helperText","fullWidth","required","update","serviceProfileID","getOption","getOptions","mcAddr","mcNwkSKey","mcAppSKey","fCnt","dr","frequency","groupType","getGroupTypeOptions","pingSlotPeriod","getPingSlotPeriodOptions","Dispatcher","AutocompleteSelect","setInitialOptions","totalCount","setSelectedOption","selectedOption","opt","v","r","onInputChange","triggerReload","unshift","getOptionLabel","option","onOpen","openOnFocus","getOptionDisabled","t","renderInput","placeholder","disableClearable","clearable","serviceProfileStore","ServiceProfileService","Create","notify","Get","Update","Delete","ojb","networkServerID","List","action","dispatcher","dispatch","notification","message","response","status","json","successNotify","error","history","errorHandlerIgnoreNotFound","location","pathname","errorHandlerIgnoreNotFoundWithCallback","CopyMenu","React","useState","anchorEl","setAnchorEl","open","Boolean","handleClose","aria-controls","aria-haspopup","event","currentTarget","keepMounted","onClose","TransitionComponent","Fade","navigator","clipboard","writeText","toUpperCase","replace","AESKeyHEXMask","AESKeyField","toggleShowPassword","showKey","internalStore","filters","ListAPIKeys","DeleteAPIKey","CreateAPIKey","apiKey","Settings","GetDevicesSummary","GetGatewaysSummary","msg","appBar","zIndex","drawer","menuButton","marginLeft","marginRight","hidden","display","flex","logo","height","spacing","common","white","background","width","padding","borderRadius","chip","iconButton","TopNav","onMenuOpen","menuAnchor","onMenuClose","onLogout","oidcEnabled","logoutURL","SessionStore","logout","assign","handleDrawerToggle","setDrawerOpen","drawerOpen","onSearchChange","onSearchSubmit","encodeURIComponent","InternalStore","openidConnect","enabled","drawerIcon","AppBar","Toolbar","IconButton","src","alt","Input","disableUnderline","startAdornment","InputAdornment","href","Chip","avatar","Avatar","email","root","Menu","anchorOrigin","vertical","horizontal","transformOrigin","MenuItem","component","Link","to","withRouter","organizationStore","organization","OrganizationService","AddUser","organizationUser","userID","GetUser","organization_id","user_id","DeleteUser","UpdateUser","ListUsers","Admin","admin","setIsAdmin","on","removeListener","isOrganizationAdmin","drawerPaper","select","paddingLeft","paddingRight","paddingBottom","SideNav","cacheCounter","getOrganizationOption","getOrganizationOptions","getOrganizationFromLocation","OrganizationStore","getOrganizationID","org","exec","setOrganizationID","o","Drawer","variant","anchor","paper","ListItem","button","ListItemIcon","ListItemText","Divider","canHaveGateways","footer","textDecoration","Footer","Typography","align","dangerouslySetInnerHTML","__html","notificationStore","notifications","Date","now","n","indexOf","createNotification","deleteNotification","register","handleActions","Item","reason","Snackbar","autoHideDuration","Notifications","NotificationStore","getAll","TitleBar","Grid","item","xs","left","right","buttons","float","marginTop","marginBottom","TitleBarTitle","combinedStyles","classNames","MapTileLayer","TileLayer","url","attribution","gatewayStore","wsStatus","gateway","GatewayService","GenerateGatewayClientCertificate","gateway_id","start","end","GetStats","interval","startTimestamp","endTimestamp","GetLastPing","onData","loc","wsURL","host","wsProtocol","protocol","conn","RobustWebSocket","addEventListener","console","log","ListGatewaysMap","loadData","GatewayStore","items","Card","CardHeader","CardContent","bounds","markers","greenMarker","L","AwesomeMarkers","icon","prefix","markerColor","grayMarker","redMarker","latitude","longitude","marker","lastSeen","lastSeenAt","ts","moment","isBefore","subtract","fromNow","Marker","Popup","Map","maxZoom","style","animate","scrollWheelZoom","DevicesActiveInactive","summary","activeCount","inactiveCount","labels","datasets","neverSeenCount","backgroundColor","warning","success","GatewaysActiveInactive","DevicesDataRates","getColor","Object","keys","drCount","Dashboard","devicesSummary","gatewaysSummary","getDevicesSummary","getGatewaysSummary","cursor","TableCellLink","TableCell","TitleBarButton","cloneElement","Button","PaperComponent","Paper","DataTable","count","getRowsPerPage","page","loaded","rows","onChangePage","onChangeRowsPerPage","getPage","row","getRow","setRowsPerPage","Table","table","TableHead","header","TableBody","TablePagination","rowsPerPageOptions","networkServerStore","networkServer","NetworkServerService","notifiy","GetADRAlgorithms","network_server_id","test","ListNetworkServers","NetworkServerStore","TableRow","hover","server","FormControlComponent","FormControl","FormLabel","NetworkServerForm","tab","onChangeTab","Tabs","indicatorColor","textColor","Tab","TextField","FormGroup","FormControlLabel","control","Checkbox","gatewayDiscoveryEnabled","FormHelperText","gatewayDiscoveryInterval","gatewayDiscoveryTXFrequency","gatewayDiscoveryDR","caCert","multiline","tlsCert","tlsKey","routingProfileCACert","routingProfileTLSCert","routingProfileTLSKey","CreateNetworkServer","create","UpdateNetworkServer","NetworkServerLayout","deleteNetworkServer","confirm","delete","region","version","gatewayProfileStore","gatewayProfile","GatewayProfileService","ListGatewayProfiles","toggleHelpDialog","dialogOpen","GatewayProfileStore","networkServerName","Dialog","aria-labelledby","aria-describedby","DialogTitle","DialogContent","DialogContentText","DialogActions","DurationField","a","ExtraChannel","onDelete","channel","sfStr","sf","spreadingFactorsStr","spreadingFactors","InputLabel","htmlFor","Select","modulation","inputProps","bandwidth","pattern","bitrate","GatewayProfileForm","addExtraChannel","getNetworkServerOption","getNetworkServerOptions","channels","channelsStr","c","extraChannels","ec","ns","deleteExtraChannel","updateExtraChannel","statsInterval","CreateGatewayProfile","nsDialog","closeDialog","paragraph","card","overflow","UpdateGatewayProfile","GatewayProfileLayout","deleteGatewayProfile","gatewayProfileID","ListOrganizations","displayName","OrganizationForm","maxGatewayCount","maxDeviceCount","CreateOrganization","UpdateOrganization","OrganzationStore","OrganizationDashboard","tabs","borderBottom","divider","OrganizationLayout","deleteOrganization","locationToTab","endsWith","exact","path","render","ListOrganizationUsers","listUsers","orgAdmin","gwAdmin","devAdmin","OrganizationUserForm","UpdateOrganizationUser","updateUser","OrganizationUserLayout","deleteOrganizationUser","getUser","deleteUser","CreateOrganizationUser","onAssignUser","addUser","OrganizationRedirect","textField","LoginForm","password","loginUrl","loginLabel","registration","oidcLoginlabel","oidcLoginUrl","loginURL","oidcLoginLabel","query","queryString","openidConnectLogin","lg","userStore","UserService","UpdatePassword","UserStore","active","isActive","UserForm","note","CreateUser","UserLayout","PasswordForm","ChangeUserPassword","updatePassword","ListServiceProfiles","ServiceProfileForm","addGWMetaData","nwkGeoLoc","devStatusReqFreq","reportDevStatusBattery","reportDevStatusMargin","drMin","drMax","gwsPrivate","CreateServiceProfile","UpdateServiceProfile","ServiceProfileLayout","deleteServiceProfile","DeviceAdmin","isOrganizationDeviceAdmin","deviceProfileStore","deviceProfile","DeviceProfileService","applicationID","ListDeviceProfiles","DeviceProfileStore","kvStyles","KVForm","DeviceProfileForm","getADRAlgorithmsOptions","getADRAlgorithms","adrAlgorithms","adr","setKVArray","tags","onTabChange","getMACVersionOptions","getRegParamsOptions","getPayloadCodecOptions","onCodeChange","editor","newCode","freqsStr","f","factoryPresetFreqsStr","factoryPresetFreqs","codeMirrorOptions","lineNumbers","mode","payloadEncoderScript","payloadDecoderScript","macVersion","regParamsRevision","adrAlgorithmID","maxEIRP","uplinkInterval","supportsJoin","rxDelay1","rxDROffset1","rxDataRate2","rxFreq2","supportsClassB","classBTimeout","pingSlotDR","pingSlotFreq","supportsClassC","classCTimeout","payloadCodec","onBeforeChange","codeMirror","CreateDeviceProfile","spDialog","UpdateDeviceProfile","DeviceProfileLayout","deleteDeviceProfile","deviceProfileID","GatewayAdmin","isOrganizationGatewayAdmin","GatewayRow","toISOString","getStats","stats","fillColor","timestamp","rxPacketsReceivedOK","txPacketsEmitted","lastseen","scales","xAxes","yAxes","tooltips","legend","responsive","animation","duration","chart","ListGateways","DetailsCard","altitude","GatewayDetails","loadStats","statsDown","borderColor","lineTension","pointBackgroundColor","statsUp","format","statsOptions","maintainAspectRatio","ticks","beginAtZero","center","zoom","redraw","locationStore","geolocation","getCurrentPosition","boardStyles","GatewayBoardForm","board","fpgaID","fineTimestampKey","mapLabel","GatewayForm","setKVArrays","metadata","mapZoom","getGatewayProfileOption","getGatewayProfileOptions","setCurrentPosition","updatePosition","updateZoom","addGatewayBoard","LocationStore","getLocation","coords","refs","leafletElement","getLatLng","lat","lng","getZoom","gp","boards","deleteGatewayBoard","updateGatewayBoard","description","discoveryEnabled","onZoomend","draggable","onDragend","UpdateGateway","GatewayDiscovery","getLastPing","ping","dbm","pingRX","dense","lines","rx","pingPos","rssi","LoRaSNR","Polyline","positions","opacity","weight","mapLegend","mapLegendList","mapLegendListItem","LegendControl","jsx","onAdd","div","DomUtil","ReactDOM","MapControl","withLeaflet","listStyle","fontWeight","headerColumn","headerColumnFixedSmall","headerColumnFixedWide","treeStyle","lineHeight","LoRaWANFrameLog","dir","devID","frame","uplinkMetaData","receivedAt","mType","phyPayload","mhdr","macPayload","fhdr","ExpansionPanel","ExpansionPanelSummary","expandIcon","ExpansionPanelDetails","downlinkMetaData","textAlign","progress","GatewayFrames","connected","paused","frames","onFrame","onDownload","togglePause","onClear","setConnected","getFrameLogsConnection","wsConn","close","dl","fileDownload","getWSStatus","uplinkFrame","getTime","txInfo","phyPayloadJSON","downlinkFrame","CircularProgress","GatewayCertificate","requestCertificate","buttonDisabled","generateClientCertificate","expiresAt","gutterBottom","GatewayLayout","deleteGateway","CreateGateway","applicationStore","application","ApplicationService","ListIntegrations","application_id","integration","CreateHTTPIntegration","integrationNotification","GetHTTPIntegration","UpdateHTTPIntegration","DeleteHTTPIntegration","CreateInfluxDBIntegration","GetInfluxDBIntegration","UpdateInfluxDBIntegration","DeleteInfluxDBIntegration","CreateThingsBoardIntegration","GetThingsBoardIntegration","UpdateThingsBoardIntegration","DeleteThingsBoardIntegration","CreateMyDevicesIntegration","GetMyDevicesIntegration","UpdateMyDevicesIntegration","DeleteMyDevicesIntegration","CreateLoRaCloudIntegration","GetLoRaCloudIntegration","UpdateLoRaCloudIntegration","DeleteLoRaCloudIntegration","CreateGCPPubSubIntegration","GetGCPPubSubIntegration","UpdateGCPPubSubIntegration","DeleteGCPPubSubIntegration","CreateAWSSNSIntegration","GetAWSSNSIntegration","UpdateAWSSNSIntegration","DeleteAWSSNSIntegration","CreateAzureServiceBusIntegration","GetAzureServiceBusIntegration","UpdateAzureServiceBusIntegration","DeleteAzureServiceBusIntegration","CreatePilotThingsIntegration","GetPilotThingsIntegration","UpdatePilotThingsIntegration","DeletePilotThingsIntegration","GenerateMQTTIntegrationClientCertificate","kind","ListApplications","ApplicationStore","serviceProfileName","ApplicationForm","CreateApplication","app","deviceStore","wsDataStatus","wsFramesStatus","device","DeviceService","dev_eui","GetKeys","deviceKeys","CreateKeys","notifyKeys","UpdateKeys","GetActivation","deviceActivation","Activate","GetRandomDevAddr","ListDevices","DeviceStore","battery","deviceStatusExternalPowerSource","deviceStatusBatteryLevelUnavailable","deviceStatusBatteryLevel","deviceStatusMargin","deviceProfileName","UpdateApplication","GCPPubSubCard","deleteGCPPubSubIntegration","CardMedia","media","image","CardActions","add","size","backgroundSize","HTTPCard","deleteHTTPIntegration","AzureServiceBusCard","deleteAzureServiceBusIntegration","AWSSNSCard","deleteAWSSNSIntegration","InfluxDBCard","deleteInfluxDBIntegration","ThingsboardCard","deleteThingsBoardIntegration","LoRaCloudCard","deleteLoRaCloudIntegration","MyDevicesCard","deleteMyDevicesIntegration","PilotThingsCard","deletePilotThingsIntegration","MQTTCard","loadIntegrations","listIntegrations","configured","available","includes","integrations","GCPPubSub","HTTP","removeAllListeners","md","xl","AWSSNSIntegrationForm","getMarshalerOptions","marshaler","accessKeyID","secretAccessKey","topicARN","integr","createAWSSNSIntegration","GCPPubSubIntegrationForm","projectID","topicName","credentialsFile","createGCPPubSubIntegration","HTTPIntegrationHeaderForm","HTTPIntegrationForm","addHeader","onDeleteHeader","onChangeHeader","h","eventEndpointURL","uplinkDataURL","joinNotificationURL","statusNotificationURL","locationNotificationURL","ackNotificationURL","txAckNotificationURL","integrationNotificationURL","errorNotificationURL","createHTTPIntegration","AzureServiceBusIntegrationForm","connectionString","publishName","createAzureServiceBusIntegration","InfluxDBIntegrationForm","endpoint","username","db","retentionPolicyName","precision","getPrecisionOptions","createInfluxDBIntegration","ThingsBoardIntegrationForm","createThingsBoardIntegration","LoRaCloudIntegrationForm","geolocationTDOA","geolocationRSSI","geolocationWifi","geolocationGNSS","geolocationToken","geolocationBufferTTL","geolocationMinBufferSize","geolocationWifiPayloadField","geolocationGNSSPayloadField","geolocationGNSSUseRxTime","das","dasToken","dasGNSSPort","dasModemPort","dasGNSSUseRxTime","dasStreamingGeolocWorkaround","createLoRaCloudIntegration","MyDevicesIntegrationForm","endpointChange","endpointSelect","getEndpointOptions","createMyDevicesIntegration","PilotThingsIntegrationForm","createPilotThingsIntegration","updateAWSSNSIntegration","getAWSSNSIntegration","updateGCPPubSubIntegration","getGCPPubSubIntegration","updateHTTPIntegration","getHTTPIntegration","updateAzureServiceBusIntegration","getAzureServiceBusIntegration","updateInfluxDBIntegration","getInfluxDBIntegration","updateThingsBoardIntegration","getThingsBoardIntegration","updateLoRaCloudIntegration","getLoRaCloudIntegration","updateMyDevicesIntegration","getMyDevicesIntegration","updatePilotThingsIntegration","getPilotThingsIntegration","MQTTCertificate","generateMQTTIntegrationClientCertificate","ApplicationLayout","deleteApplication","oldProps","multicastGroupStore","multicastGroup","MulticastGroupService","multicastGroupID","AddDevice","multicast_group_id","notifyDevice","RemoveDevice","idColumn","whiteSpace","ListMulticastGroups","MulticastGroupStore","CreateMulticastGroup","UpdateMulticastGroup","ListMulticastGroupDevices","removeDevice","forceUpdate","MulticastGroupLayout","deleteMulticastGroup","AddDeviceForm","getDeviceOption","getDeviceOptions","d","AddDeviceToMulticastGroup","addDevice","DeviceForm","variables","getDeviceProfileOption","getDeviceProfileOptions","dp","skipFCntCheck","isDisabled","CreateDevice","dpDialog","dev","UpdateDevice","LW11DeviceKeysForm","nwkKey","appKey","LW10DeviceKeysForm","DeviceKeys","getKeys","updateKeys","createKeys","startsWith","LW10DeviceActivationForm","getRandomDevAddr","nwkSEncKey","appSKey","fCntUp","nFCntDown","LW11DeviceActivationForm","sNwkSIntKey","fNwkSIntKey","aFCntDown","DeviceActivation","getActivation","act","activate","showForm","DeviceDataItem","payload","DeviceData","getDataLogsConnection","getWSDataStatus","payloadJSON","DeviceFrames","getWSFramesStatus","DeviceQueueItemForm","objectCode","jsonObject","fPort","confirmed","deviceQueueStore","DeviceQueueService","Flush","Enqueue","deviceQueueItem","StatusCard","EnqueueCard","queueItem","qi","DeviceQueueStore","enqueue","QueueCardRow","QueueCard","getQueue","deviceQueueItems","flushQueue","flush","DeviceDetails","setDeviceActivation","activated","DeviceLayout","deleteDevice","getDevice","scrollButtons","ApplicationResult","applicationName","organizationName","OrganizationResult","DeviceResult","deviceDevEUI","deviceName","GatewayResult","gatewayMAC","gatewayName","Search","URLSearchParams","globalSearch","APIKeyRow","deleteAPIKey","ListAdminAPIKeys","listAPIKeys","APIKeyForm","createAPIKey","CreateAdminAPIKey","ListOrganizationAPIKeys","CreateOrganizationAPIKey","flexGrow","minHeight","flexDirection","text","secondary","mainDrawerOpen","drawerWidth","footerDrawerOpen","App","topNav","sideNav","Fragment","CssBaseline","Leaflet","Icon","Default","imagePath","document","getElementById"],"mappings":"2NA6LMA,EAAe,I,kDAtLnB,aAAe,IAAD,8BACZ,gBACKC,OAAS,KACd,EAAKC,KAAO,KACZ,EAAKC,cAAgB,GACrB,EAAKC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AK,oDAAmD3T,UAAWyU,KAChF,kBAAC,IAAD,CAAOf,OAAK,EAACC,KAAK,2DAAyD3T,UAAWqU,KACtF,kBAAC,IAAD,CAAOV,KAAK,uCAAsC3T,UAAWsT,KAE7D,kBAAC,IAAD,CAAOI,OAAK,EAACC,KAAK,UAAU3T,UAAWm4B,QAI7C,yBAAKnkC,UAAWrJ,KAAK2B,MAAM6R,WAAaxT,KAAK+C,MAAMuG,QAAQqlC,iBAAmB,IAC5E,kBAAC,GAAD,QAGJ,kBAAC,GAAD,a,GAhHM5pC,aAwHH4E,eAAWE,GAAXF,CAAmBilC,I,iDC3NlCK,IAAQC,KAAKC,QAAQC,UAAY,yDAEjC5Y,IAASvN,OAAO,kBAAC,GAAD,MAASomB,SAASC,eAAe,W","file":"static/js/main.f7dd279d.chunk.js","sourcesContent":["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 getRowsPerPage() {\n const rowsPerPage = localStorage.getItem(\"rowsPerPage\");\n if (rowsPerPage === \"\" || rowsPerPage === null) {\n return 10;\n }\n\n return JSON.parse(rowsPerPage);\n }\n\n setRowsPerPage(rowsPerPage) {\n localStorage.setItem(\"rowsPerPage\", JSON.stringify(rowsPerPage));\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 isOrganizationDeviceAdmin(organizationID) {\n for (let i = 0; i < this.organizations.length; i++) {\n if (this.organizations[i].organizationID === organizationID) {\n return this.organizations[i].isAdmin || this.organizations[i].isDeviceAdmin;\n }\n }\n }\n\n isOrganizationGatewayAdmin(organizationID) {\n for (let i = 0; i < this.organizations.length; i++) {\n if (this.organizations[i].organizationID === organizationID) {\n return this.organizations[i].isAdmin || this.organizations[i].isGatewayAdmin;\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 openidConnectLogin(code, state, callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.OpenIDConnectLogin({\n code: code,\n state: state,\n })\n .then(checkStatus)\n .then(resp => {\n this.setToken(resp.obj.jwtToken);\n this.fetchProfile(callbackFunc);\n })\n .catch(errorHandler);\n });\n }\n\n logout(emit, callBackFunc) {\n localStorage.clear();\n this.user = null;\n this.organizations = [];\n this.settings = {};\n\n if (emit === true) {\n this.emit(\"change\");\n }\n\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\nconst sessionStore = new SessionStore();\nexport default sessionStore;\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 { createHashHistory } from 'history';\nexport default createHashHistory();\n","import React, { Component } from \"react\";\n\nimport { unparse } from \"uuid-parse\";\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 // :(\n let data = JSON.parse(JSON.stringify(this.props.data));\n\n if (\"devEUI\" in data && data.devEUI !== null) {\n data.devEUI = base64ToHex(data.devEUI);\n }\n\n if (\"devAddr\" in data && data.devAddr !== null) {\n data.devAddr = base64ToHex(data.devAddr);\n }\n\n if (\"gatewayID\" in data && data.gatewayID !== null) {\n data.gatewayID = base64ToHex(data.gatewayID);\n }\n\n if (\"rxInfo\" in data && data.rxInfo !== null) {\n for (let i = 0; i < data.rxInfo.length; i++) {\n if (\"gatewayID\" in data.rxInfo[i] && data.rxInfo[i].gatewayID !== null) {\n data.rxInfo[i].gatewayID = base64ToHex(data.rxInfo[i].gatewayID);\n }\n\n if (\"uplinkID\" in data.rxInfo[i] && data.rxInfo[i].uplinkID !== null) {\n const id = Buffer.from(data.rxInfo[i].uplinkID, 'base64');\n data.rxInfo[i].uplinkID = unparse(id);\n }\n }\n }\n\n if (\"uplinkIDs\" in data && data.uplinkIDs !== null) {\n for (let i = 0; i < data.uplinkIDs.length; i++) {\n const id = Buffer.from(data.uplinkIDs[i], 'base64');\n data.uplinkIDs[i] = unparse(id);\n }\n }\n\n if (\"objectJSON\" in data && data.objectJSON !== null && data.objectJSON !== \"\") {\n data.objectJSON = JSON.parse(data.objectJSON);\n }\n\n return(\n {return true}}\n />\n );\n }\n}\n\nfunction base64ToHex(str) {\n return Buffer.from(str, 'base64').toString('hex');\n}\n\nexport default JSONTree;\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 inputRef(ref ? ref.inputElement : null);\n }}\n mask={[\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ]}\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 cryptoObj = window.crypto || window.msCrypto;\n let b = new Uint8Array(8);\n cryptoObj.getRandomValues(b);\n\n let key = Buffer.from(b).toString('hex');\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 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 inputRef(ref ? ref.inputElement : null);\n }}\n mask={[\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ]}\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 { 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 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 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\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 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 AESKeyField from \"../../components/AESKeyField\";\nimport DevAddrField from \"../../components/DevAddrField\";\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, 0, 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(len) {\n let cryptoObj = window.crypto || window.msCrypto;\n let b = new Uint8Array(len);\n cryptoObj.getRandomValues(b);\n\n return Buffer.from(b).toString('hex');\n }\n\n getRandomMcAddr = (cb) => {\n cb(this.getRandomKey(4));\n }\n\n getRandomSessionKey = (cb) => {\n cb(this.getRandomKey(16));\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 multicast-group will be attached. Note that you can't change this value after the multicast-group has been created.\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 {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 { Dispatcher } from \"flux\";\n\nexport default new Dispatcher();\n","import React, { Component } from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\nimport Autocomplete from '@material-ui/lab/Autocomplete';\n\n\nclass AutocompleteSelect extends Component {\n constructor() {\n super();\n\n this.state = {\n options: [],\n setSelectedOption: null,\n };\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, totalCount) => {\n this.setState({\n options: options,\n totalCount: totalCount,\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 render() {\n let options = this.state.options;\n if (this.state.totalCount !== undefined) {\n options.unshift({label: `Showing ${options.length} of ${this.state.totalCount}`, value: \"__DISABLED__\"});\n }\n\n return(\n option.label || \"\"}\n onOpen={() => this.setInitialOptions(null)}\n openOnFocus={true}\n value={this.state.selectedOption || \"\"}\n onChange={this.onChange}\n onInputChange={this.onInputChange}\n className={this.props.className}\n getOptionDisabled={t => t.value === \"__DISABLED__\"}\n renderInput={(params) => }\n disableClearable={!this.props.clearable}\n />\n );\n }\n\n onChange = (e, v, r) => {\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 onInputChange = (e, v, r) => {\n this.props.getOptions(v, (options, totalCount) => {\n this.setState({\n options: options,\n totalCount: undefined,\n });\n });\n }\n}\n\nexport default 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 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, networkServerID, limit, offset, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ServiceProfileService.List({\n organizationID: organizationID,\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: \"service-profile has been \" + action,\n },\n });\n }\n}\n\nconst serviceProfileStore = new ServiceProfileStore();\nexport default serviceProfileStore;\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 successNotify(message) {\n dispatcher.dispatch({\n type: \"CREATE_NOTIFICATION\",\n notification: {\n type: \"success\",\n message: message,\n },\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 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';\nimport Menu from '@material-ui/core/Menu';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport Fade from '@material-ui/core/Fade';\n\nimport Eye from \"mdi-material-ui/Eye\";\nimport EyeOff from \"mdi-material-ui/EyeOff\";\nimport Refresh from \"mdi-material-ui/Refresh\";\nimport Copy from \"mdi-material-ui/ContentCopy\";\n\nimport MaskedInput from \"react-text-mask\";\nimport {successNotify, errorHandler } from \"../stores/helpers\";\n\nfunction CopyMenu(props) {\n const [anchorEl, setAnchorEl] = React.useState(null);\n const open = Boolean(anchorEl);\n\n function handleClick(event) {\n setAnchorEl(event.currentTarget);\n }\n\n function handleClose() {\n setAnchorEl(null);\n }\n\n function copyToClipboard() {\n const bytes = props.value.match(/[A-Fa-f0-9]{2}/g);\n\n if (bytes !== null && navigator.clipboard != undefined) {\n navigator.clipboard.writeText(bytes.join(\"\").toUpperCase()).then(successNotify(\"Copied to clipboard\")).catch(errorHandler);\n }\n handleClose()\n }\n function copyToClipboardHexArray() {\n const bytes = props.value.match(/[A-Fa-f0-9]{2}/g);\n\n if (bytes !== null && navigator.clipboard != undefined) {\n navigator.clipboard.writeText(bytes.join(\", \").toUpperCase().replace(/[A-Fa-f0-9]{2}/g, \"0x$&\")).then(successNotify(\"Copied to clipboard\")).catch(errorHandler);\n }\n handleClose()\n }\n\n return (\n
\n \n \n \n \n \n \n Hex String\n Hex Array\n \n
\n );\n}\n\nclass AESKeyHEXMask extends Component {\n render() {\n const { inputRef, ...other } = this.props;\n\n return(\n {\n inputRef(ref ? ref.inputElement : null);\n }}\n mask={[\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ' ',\n /[A-Fa-f0-9]/,\n /[A-Fa-f0-9]/,\n ]}\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 cryptoObj = window.crypto || window.msCrypto;\n let b = new Uint8Array(16);\n cryptoObj.getRandomValues(b);\n\n let key = Buffer.from(b).toString('hex');\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 {this.state.showKey &&\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 { 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 InternalStore extends EventEmitter {\n constructor() {\n super();\n this.client = null;\n this.swagger = Swagger(\"/swagger/internal.swagger.json\", sessionStore.getClientOpts());\n }\n\n listAPIKeys(filters, callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.ListAPIKeys(filters)\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteAPIKey(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.DeleteAPIKey({\n id: id,\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"api key has been deleted\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createAPIKey(obj, callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.CreateAPIKey({\n body: {\n apiKey: obj,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.notify(\"api key has been created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n settings(callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.Settings({})\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getDevicesSummary(organizationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.GetDevicesSummary({\n organizationID: organizationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getGatewaysSummary(organizationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.InternalService.GetGatewaysSummary({\n organizationID: organizationID,\n })\n .then(checkStatus)\n .then(resp => {\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 internalStore = new InternalStore();\nexport default internalStore;\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 InternalStore from \"../stores/InternalStore\";\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(1),\n color: theme.palette.common.white,\n background: blue[400],\n width: 450,\n padding: 5,\n borderRadius: 3,\n },\n chip: {\n background: blue[600],\n color: theme.palette.common.white,\n marginRight: theme.spacing(1),\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(1),\n },\n};\n\n\nclass TopNav extends Component {\n constructor() {\n super();\n\n this.state = {\n menuAnchor: null,\n search: \"\",\n oidcEnabled: false,\n };\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 if (this.state.oidcEnabled === true) {\n if (this.state.logoutURL !== \"\") {\n SessionStore.logout(false, () => {\n window.location.assign(this.state.logoutURL);\n });\n } else {\n SessionStore.logout(true, () => {\n this.props.history.push(\"/login\");\n });\n }\n } else {\n SessionStore.logout(true, () => {\n this.props.history.push(\"/login\");\n });\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 componentDidMount() {\n InternalStore.settings(resp => {\n this.setState({\n oidcEnabled: resp.openidConnect.enabled,\n logoutURL: resp.openidConnect.logoutURL,\n });\n })\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 \"ChirpStack.io\"\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.email}\n onClick={this.onMenuOpen}\n color=\"primary\"\n classes={{\n root: this.props.classes.chip,\n }}\n />\n \n {!this.state.oidcEnabled && Change password}\n Logout\n \n
\n
\n );\n }\n}\n\nexport default withStyles(styles)(withRouter(TopNav));\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 Home from \"mdi-material-ui/Home\";\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 Rss from \"mdi-material-ui/Rss\";\nimport AccountDetails from \"mdi-material-ui/AccountDetails\";\nimport KeyVariant from \"mdi-material-ui/KeyVariant\";\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(9),\n },\n select: {\n paddingTop: theme.spacing(1),\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n paddingBottom: theme.spacing(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 this.setState({\n cacheCounter: this.state.cacheCounter + 1,\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}`);\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, resp.totalCount);\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 \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 \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 InternalStore from \"../stores/InternalStore\";\nimport theme from \"../theme\";\n\nconst styles = {\n footer: {\n paddingBottom: theme.spacing(1),\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 InternalStore.settings(resp => {\n if (resp.branding.footer !== \"\") {\n this.setState({\n footer: resp.branding.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(1),\n marginBottom: theme.spacing(1),\n marginRight: theme.spacing(1),\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';\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 { 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 generateClientCertificate(id, callbackFunc) {\n this.swagger.then(client => {\n client.apis.GatewayService.GenerateGatewayClientCertificate({\n gateway_id: id,\n })\n .then(checkStatus)\n .then(resp => {\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\";\nimport { 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 CardHeader from '@material-ui/core/CardHeader';\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\n\nimport moment from \"moment\";\nimport { Map, Marker, Popup } from 'react-leaflet';\nimport MarkerClusterGroup from \"react-leaflet-markercluster\";\nimport L from \"leaflet\";\nimport { Doughnut } from 'react-chartjs-2';\nimport \"leaflet.awesome-markers\";\n\nimport MapTileLayer from \"../../components/MapTileLayer\";\nimport GatewayStore from \"../../stores/GatewayStore\";\nimport InternalStore from \"../../stores/InternalStore\";\nimport theme from \"../../theme\";\n\n\nclass ListGatewaysMap extends Component {\n constructor() {\n super();\n\n this.state = {\n items: null,\n };\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 GatewayStore.list(\"\", 0, 9999, 0, resp => {\n this.setState({\n items: resp.result,\n });\n });\n }\n\n render() {\n if (this.state.items === null || this.state.items.length === 0) {\n return(\n \n \n \n No data available.\n \n \n );\n }\n\n const style = {\n height: 600,\n };\n\n\n let bounds = [];\n let markers = [];\n\n const greenMarker = L.AwesomeMarkers.icon({\n icon: \"wifi\",\n prefix: \"fa\",\n markerColor: \"green\",\n });\n\n const grayMarker = L.AwesomeMarkers.icon({\n icon: \"wifi\",\n prefix: \"fa\",\n markerColor: \"gray\",\n });\n\n const redMarker = L.AwesomeMarkers.icon({\n icon: \"wifi\",\n prefix: \"fa\",\n markerColor: \"red\",\n });\n\n for (const item of this.state.items) {\n const position = [item.location.latitude, item.location.longitude];\n\n bounds.push(position);\n\n let marker = greenMarker;\n let lastSeen = \"\";\n\n if (item.lastSeenAt === undefined || item.lastSeenAt === null) {\n marker = grayMarker;\n lastSeen = \"Never seen online\";\n } else {\n const ts = moment(item.lastSeenAt);\n if (ts.isBefore(moment().subtract(5, 'minutes'))) {\n marker = redMarker;\n }\n\n lastSeen = ts.fromNow();\n }\n\n markers.push(\n \n \n {item.name}
\n {item.id}

\n {lastSeen}\n
\n
\n );\n }\n\n return(\n \n \n \n \n \n \n {markers}\n \n \n \n \n );\n }\n}\n\n\nclass DevicesActiveInactive extends Component {\n render() {\n let data = null;\n\n if (this.props.summary !== null && (this.props.summary.activeCount !== 0 || this.props.summary.inactiveCount !== 0)) {\n data = {\n labels: [\"Never seen\", \"Inactive\", \"Active\"],\n datasets: [\n {\n data: [this.props.summary.neverSeenCount, this.props.summary.inactiveCount, this.props.summary.activeCount],\n backgroundColor: [\n theme.palette.warning.main,\n theme.palette.error.main,\n theme.palette.success.main,\n ],\n },\n ],\n };\n }\n\n return(\n \n \n \n {data && }\n {!data &&
No data available.
}\n
\n
\n );\n }\n}\n\n\nclass GatewaysActiveInactive extends Component {\n render() {\n let data = null;\n\n if (this.props.summary !== null && (this.props.summary.activeCount !== 0 || this.props.summary.inactiveCount !== 0)) {\n data = {\n labels: [\"Never seen\", \"Inactive\", \"Active\"],\n datasets: [\n {\n data: [this.props.summary.neverSeenCount, this.props.summary.inactiveCount, this.props.summary.activeCount],\n backgroundColor: [\n theme.palette.warning.main,\n theme.palette.error.main,\n theme.palette.success.main,\n ],\n },\n ],\n };\n }\n\n\n return(\n \n \n \n {data && }\n {!data &&
No data available.
}\n
\n
\n );\n }\n}\n\n\nclass DevicesDataRates extends Component {\n getColor = (dr) => {\n return ['#ff5722', '#ff9800', '#ffc107', '#ffeb3b', '#cddc39', '#8bc34a', '#4caf50', '#009688', '#00bcd4', '#03a9f4', '#2196f3', '#3f51b5', '#673ab7', '#9c27b0', '#e91e63'][dr];\n }\n\n render() {\n let data = null;\n\n if (this.props.summary !== null && Object.keys(this.props.summary.drCount).length !== 0) {\n data = {\n labels: [],\n datasets: [\n {\n data: [],\n backgroundColor: [],\n },\n ],\n };\n\n for (let dr in this.props.summary.drCount) {\n data.labels.push(`DR${dr}`);\n data.datasets[0].data.push(this.props.summary.drCount[dr]);\n data.datasets[0].backgroundColor.push(this.getColor(dr));\n }\n }\n\n\n return(\n \n \n \n {data && }\n {!data &&
No data available.
}\n
\n
\n );\n }\n}\n\n\nclass Dashboard extends Component {\n constructor() {\n super();\n\n this.state = {\n devicesSummary: null,\n gatewaysSummary: null,\n };\n }\n\n componentDidMount() {\n InternalStore.getDevicesSummary(0, resp => {\n this.setState({\n devicesSummary: resp,\n });\n });\n\n InternalStore.getGatewaysSummary(0, resp => {\n this.setState({\n gatewaysSummary: resp,\n });\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 \n\n \n \n \n \n \n \n );\n }\n}\n\n\nexport default Dashboard;\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(1),\n },\n icon: {\n marginRight: theme.spacing(1),\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(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 SessionStore from \"../stores/SessionStore\";\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: SessionStore.getRowsPerPage(),\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 SessionStore.setRowsPerPage(event.target.value);\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 getADRAlgorithms(networkServerID, callbackFunc) {\n this.swagger.then((client) => {\n client.apis.NetworkServerService.GetADRAlgorithms({\n network_server_id: networkServerID,\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 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(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';\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 DialogContentText from '@material-ui/core/DialogContentText';\nimport DialogTitle from '@material-ui/core/DialogTitle';\n\nimport Plus from \"mdi-material-ui/Plus\";\nimport HelpCircleOutline from \"mdi-material-ui/HelpCircleOutline\";\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 constructor() {\n super();\n\n this.state = {\n dialogOpen: false,\n };\n }\n\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 toggleHelpDialog = () => {\n this.setState({\n dialogOpen: !this.state.dialogOpen,\n });\n }\n\n render() {\n return(\n \n \n Gateway Profile help\n \n \n The only purpose of a Gateway Profile is to (re)configure one or multiple gateways with the\n configuration properties that are set by the Gateway Profile.

\n\n When the ChirpStack Network Server detects that the configuration of a gateway is out-of-sync\n with its Gateway Profile, it will push a configuration command to the gateway in order to\n update its configuration.

\n\n Please note that this feature is optional and only works in combination with the\n ChirpStack Concentratord component.

\n\n Also note that the Gateway Profile does not change the way how devices are behaving.\n To configure the channel-plan that must be used by devices, update the\n ChirpStack Network Server configuration.\n
\n
\n \n \n \n \n\n }\n to={`/gateway-profiles/create`}\n />,\n }\n onClick={this.toggleHelpDialog}\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;\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, { 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 DurationField from \"../../components/DurationField\";\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 ChirpStack Application Server isn't connected to a ChirpStack Network Server network-server.\n Did you know that ChirpStack Application Server can connect to multiple ChirpStack Network 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/Delete\";\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 Admin from \"../../components/Admin\";\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 \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 {!!this.state.object.canHaveGateways && }\n \n \n \n \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/${this.props.match.params.organizationID}`);\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 { 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 CardHeader from '@material-ui/core/CardHeader';\n\nimport moment from \"moment\";\nimport { Map, Marker, Popup } from 'react-leaflet';\nimport MarkerClusterGroup from \"react-leaflet-markercluster\";\nimport L from \"leaflet\";\nimport { Doughnut } from 'react-chartjs-2';\nimport \"leaflet.awesome-markers\";\n\nimport MapTileLayer from \"../../components/MapTileLayer\";\nimport GatewayStore from \"../../stores/GatewayStore\";\nimport InternalStore from \"../../stores/InternalStore\";\nimport theme from \"../../theme\";\n\n\nclass ListGatewaysMap extends Component {\n constructor() {\n super();\n\n this.state = {\n items: null,\n };\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 GatewayStore.list(\"\", this.props.organizationID, 9999, 0, resp => {\n this.setState({\n items: resp.result,\n });\n });\n }\n\n render() {\n if (this.state.items === null || this.state.items.length === 0) {\n return(\n \n \n \n No data available.\n \n \n );\n }\n\n const style = {\n height: 600,\n };\n\n\n let bounds = [];\n let markers = [];\n\n const greenMarker = L.AwesomeMarkers.icon({\n icon: \"wifi\",\n prefix: \"fa\",\n markerColor: \"green\",\n });\n\n const grayMarker = L.AwesomeMarkers.icon({\n icon: \"wifi\",\n prefix: \"fa\",\n markerColor: \"gray\",\n });\n\n const redMarker = L.AwesomeMarkers.icon({\n icon: \"wifi\",\n prefix: \"fa\",\n markerColor: \"red\",\n });\n\n for (const item of this.state.items) {\n const position = [item.location.latitude, item.location.longitude];\n\n bounds.push(position);\n\n let marker = greenMarker;\n let lastSeen = \"\";\n\n if (item.lastSeenAt === undefined || item.lastSeenAt === null) {\n marker = grayMarker;\n lastSeen = \"Never seen online\";\n } else {\n const ts = moment(item.lastSeenAt);\n if (ts.isBefore(moment().subtract(5, 'minutes'))) {\n marker = redMarker;\n }\n\n lastSeen = ts.fromNow();\n }\n\n markers.push(\n \n \n {item.name}
\n {item.id}

\n {lastSeen}\n
\n
\n );\n }\n\n return(\n \n \n \n \n \n \n {markers}\n \n \n \n \n );\n }\n}\n\n\nclass DevicesActiveInactive extends Component {\n render() {\n let data = null;\n\n if (this.props.summary !== null && (this.props.summary.activeCount !== 0 || this.props.summary.inactiveCount !== 0)) {\n data = {\n labels: [\"Never seen\", \"Inactive\", \"Active\"],\n datasets: [\n {\n data: [this.props.summary.neverSeenCount, this.props.summary.inactiveCount, this.props.summary.activeCount],\n backgroundColor: [\n theme.palette.warning.main,\n theme.palette.error.main,\n theme.palette.success.main,\n ],\n },\n ],\n };\n }\n\n return(\n \n \n \n {data && }\n {!data &&
No data available.
}\n
\n
\n );\n }\n}\n\n\nclass GatewaysActiveInactive extends Component {\n render() {\n let data = null;\n\n if (this.props.summary !== null && (this.props.summary.activeCount !== 0 || this.props.summary.inactiveCount !== 0)) {\n data = {\n labels: [\"Never seen\", \"Inactive\", \"Active\"],\n datasets: [\n {\n data: [this.props.summary.neverSeenCount, this.props.summary.inactiveCount, this.props.summary.activeCount],\n backgroundColor: [\n theme.palette.warning.main,\n theme.palette.error.main,\n theme.palette.success.main,\n ],\n },\n ],\n };\n }\n\n\n return(\n \n \n \n {data && }\n {!data &&
No data available.
}\n
\n
\n );\n }\n}\n\n\n\nclass DevicesDataRates extends Component {\n getColor = (dr) => {\n return ['#ff5722', '#ff9800', '#ffc107', '#ffeb3b', '#cddc39', '#8bc34a', '#4caf50', '#009688', '#00bcd4', '#03a9f4', '#2196f3', '#3f51b5', '#673ab7', '#9c27b0', '#e91e63'][dr];\n }\n\n render() {\n let data = null;\n\n if (this.props.summary !== null && Object.keys(this.props.summary.drCount).length !== 0) {\n data = {\n labels: [],\n datasets: [\n {\n data: [],\n backgroundColor: [],\n },\n ],\n };\n\n for (let dr in this.props.summary.drCount) {\n data.labels.push(`DR${dr}`);\n data.datasets[0].data.push(this.props.summary.drCount[dr]);\n data.datasets[0].backgroundColor.push(this.getColor(dr));\n }\n }\n\n\n return(\n \n \n \n {data && }\n {!data &&
No data available.
}\n
\n
\n );\n }\n}\n\n\n\nclass OrganizationDashboard extends Component {\n constructor() {\n super();\n\n this.state = {\n devicesSummary: null,\n gatewaysSummary: null,\n };\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 InternalStore.getDevicesSummary(this.props.organization.id, resp => {\n this.setState({\n devicesSummary: resp,\n });\n });\n\n InternalStore.getGatewaysSummary(this.props.organization.id, resp => {\n this.setState({\n gatewaysSummary: resp,\n });\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 );\n }\n}\n\n\nexport default OrganizationDashboard;\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 OrganizationStore from \"../../stores/OrganizationStore\";\nimport UpdateOrganization from \"./UpdateOrganization\";\nimport OrganizationDashboard from \"./OrganizationDashboard\";\nimport SessionStore from \"../../stores/SessionStore\";\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\n\nclass OrganizationLayout extends Component {\n constructor() {\n super();\n this.state = {\n tab: 0,\n admin: false,\n };\n }\n\n componentDidMount() {\n this.loadData();\n this.locationToTab();\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.loadData();\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 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 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 render() {\n if (this.state.organization === undefined) {\n return null;\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 \n \n \n );\n }\n}\n\n\nexport default withStyles(styles)(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 orgAdmin = null;\n let gwAdmin = null;\n let devAdmin = null;\n\n if (obj.isAdmin) {\n orgAdmin = \n } else {\n orgAdmin = \n }\n\n if (obj.isAdmin || obj.isGatewayAdmin) {\n gwAdmin = \n } else {\n gwAdmin = \n }\n\n if (obj.isAdmin || obj.isDeviceAdmin) {\n devAdmin = \n } else {\n devAdmin = \n }\n\n return(\n \n {obj.email}\n {orgAdmin}\n {gwAdmin}\n {devAdmin}\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 Email\n Organization admin\n Gateway admin\n Device 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 Typography from '@material-ui/core/Typography';\nimport TextField from '@material-ui/core/TextField';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport FormControl from '@material-ui/core/FormControl';\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\";\n\n\nclass OrganizationUserForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return(
);\n }\n\n return(\n \n \n \n An user without additional permissions will be able to see all\n resources under this organization and will be able to send and\n receive device payloads.\n \n \n \n }\n />\n An organization admin user is able to add and modify resources part of the organization.\n \n {!!!this.state.object.isAdmin && \n \n }\n />\n A device admin user is able to add and modify resources part of the organization that are related to devices.\n }\n {!!!this.state.object.isAdmin && \n \n }\n />\n A gateway admin user is able to add and modify gateways part of the organization.\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);\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 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 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 TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport OrganizationStore from \"../../stores/OrganizationStore\";\nimport OrganizationUserForm from \"./OrganizationUserForm\";\n\n\nclass CreateOrganizationUser extends Component {\n constructor() {\n super();\n\n this.onAssignUser = this.onAssignUser.bind(this);\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 render() {\n return(\n \n \n \n \n \n \n\n \n \n \n \n \n \n\n \n \n );\n }\n}\n\nexport default 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}`);\n } else {\n OrganizationStore.list(\"\", 1, 0, resp => {\n if (resp.result.length > 0) {\n this.props.history.push(`/organizations/${resp.result[0].id}`);\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 Button from \"@material-ui/core/Button\";\nimport { withStyles } from \"@material-ui/core/styles\";\n\nimport queryString from \"query-string\";\n\nimport Form from \"../../components/Form\";\nimport FormComponent from \"../../classes/FormComponent\";\nimport SessionStore from \"../../stores/SessionStore\";\nimport InternalStore from \"../../stores/InternalStore\";\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\nclass OpenIDConnectLogin extends Component {\n render() {\n return(\n \n );\n }\n}\n\n\nclass Login extends Component {\n constructor() {\n super();\n\n this.state = {\n loaded: false,\n registration: \"\",\n oidcEnabled: false,\n oidcLoginlabel: \"\",\n oidcLoginUrl: \"\",\n };\n\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n SessionStore.logout(true, () => {});\n\n InternalStore.settings(resp => {\n this.setState({\n loaded: true,\n registration: resp.branding.registration,\n oidcEnabled: resp.openidConnect.enabled,\n oidcLoginUrl: resp.openidConnect.loginURL,\n oidcLoginLabel: resp.openidConnect.loginLabel,\n });\n });\n\n // callback from openid provider\n if (this.props.location.search !== \"\") {\n let query = queryString.parse(this.props.location.search);\n \n SessionStore.openidConnectLogin(query.code, query.state, () => {\n this.props.history.push(\"/\");\n });\n }\n }\n\n onSubmit(login) {\n SessionStore.login(login, () => {\n this.props.history.push(\"/\");\n });\n }\n\n render() {\n if (!this.state.loaded) {\n return null;\n }\n\n return(\n \n \n \n \n \n {!this.state.oidcEnabled && }\n\n {this.state.oidcEnabled && }\n \n {this.state.registration !== \"\" && \n \n }\n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(withRouter(Login));\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\";\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.email}\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 Email\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 {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 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, 0, limit, offset, callbackFunc);\n }\n\n getRow(obj) {\n return(\n \n {obj.name}\n {obj.id}\n {obj.networkServerName}\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 ID\n Network Server\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 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\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 \n Gateways under this service-profile are private. This means that these gateways can only be used by devices under the same service-profile.\n \n \n \n );\n }\n}\n\nexport default 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 ChirpStack Application Server isn't connected to a ChirpStack Network Server network-server.\n Did you know that ChirpStack Application Server can connect to multiple ChirpStack Network 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 { Component } from \"react\";\nimport SessionStore from \"../stores/SessionStore\";\n\n\nclass DeviceAdmin 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.isOrganizationDeviceAdmin(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 DeviceAdmin;\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 DeviceAdmin from \"../../components/DeviceAdmin\";\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 {obj.networkServerName}\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 Network Server\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 Grid from \"@material-ui/core/Grid\";\nimport IconButton from '@material-ui/core/IconButton';\nimport TextField from '@material-ui/core/TextField';\n\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport FormComponent from \"../classes/FormComponent\";\nimport theme from \"../theme\";\n\n\nconst kvStyles = {\n formLabel: {\n fontSize: 12,\n },\n delete: {\n marginTop: 3 * theme.spacing(1),\n },\n};\n\n\nclass KVForm extends FormComponent {\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 null;\n }\n\n return(\n \n \n \n \n \n \n \n \n {!!!this.props.disabled && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(kvStyles)(KVForm);\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';\nimport Typography from \"@material-ui/core/Typography\";\nimport Button from \"@material-ui/core/Button\";\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 KVForm from \"../../components/KVForm\";\nimport DurationField from \"../../components/DurationField\";\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 tags: [],\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 componentDidMount() {\n super.componentDidMount();\n this.setKVArray(this.props.object || {});\n }\n\n componentDidUpdate(prevProps) {\n super.componentDidUpdate(prevProps);\n\n if (prevProps.object !== this.props.object) {\n this.setKVArray(this.props.object || {});\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 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.0.4\", label: \"1.0.4\"},\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 {value: \"RP002-1.0.0\", label: \"RP002-1.0.0\"},\n {value: \"RP002-1.0.1\", label: \"RP002-1.0.1\"},\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 getADRAlgorithmsOptions = (search, callbackFunc) => {\n if (this.state.object.networkServerID === undefined) {\n callbackFunc([]);\n } else {\n NetworkServerStore.getADRAlgorithms(this.state.object.networkServerID, resp => {\n const options = resp.adrAlgorithms.map((adr, i) => {return {value: adr.id, label: adr.name}});\n callbackFunc(options);\n })\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 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 setKVArray = (props) => {\n let tags = [];\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 tags: tags,\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// - variables contains the device variables e.g. {\"calibration\": \"3.5\"} (both the key / value are of type string)\n// The function must return an array of bytes, e.g. [225, 230, 255, 0]\nfunction Encode(fPort, obj, variables) {\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// - variables contains the device variables e.g. {\"calibration\": \"3.5\"} (both the key / value are of type string)\n// The function must return an object, e.g. {\"temperature\": 22.5}\nfunction Decode(fPort, bytes, variables) {\n return {};\n}`;\n }\n\n const tags = this.state.tags.map((obj, i) => );\n\n\n return(\n \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 ADR algorithm\n \n \n The ADR algorithm that will be used for controlling the device data-rate.\n \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, ChirpStack Application 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 ChirpStack Application 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 {this.state.tab === 5 &&
\n \n \n Tags can be used to store additional key/value data.\n \n {tags}\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, 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 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.isOrganizationDeviceAdmin(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 let buttons = [];\n if (this.state.admin) {\n buttons = [\n }\n color=\"secondary\"\n onClick={this.deleteDeviceProfile}\n />,\n ];\n }\n\n return(\n \n \n \n \n \n \n\n \n \n \n \n );\n }\n}\n\nexport default withRouter(DeviceProfileLayout);\n","import { Component } from \"react\";\nimport SessionStore from \"../stores/SessionStore\";\n\n\nclass GatewayAdmin 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.isOrganizationGatewayAdmin(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 GatewayAdmin;\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 GatewayAdmin from \"../../components/GatewayAdmin\";\nimport GatewayStore from \"../../stores/GatewayStore\";\n\nimport theme from \"../../theme\";\n\n\nclass GatewayRow extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n componentDidMount() {\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 let lastseen = \"Never\";\n if (this.props.gateway.lastSeenAt !== null) {\n lastseen = moment(this.props.gateway.lastSeenAt).fromNow();\n }\n\n return(\n \n {lastseen}\n {this.props.gateway.name}\n {this.props.gateway.id}\n {this.props.gateway.networkServerName}\n \n {this.state.stats && }\n \n \n );\n }\n}\n\n\nconst styles = {\n chart: {\n width: 380,\n },\n tabs: {\n borderBottom: \"1px solid \" + theme.palette.divider,\n height: \"48px\",\n overflow: \"visible\",\n },\n};\n\n\n\nclass ListGateways extends Component {\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 \n Last seen\n Name\n Gateway ID\n Network server\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 { 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 Grid from '@material-ui/core/Grid';\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport TableCell from \"@material-ui/core/TableCell\";\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\nclass DetailsCard extends Component {\n render() {\n return(\n \n \n \n \n \n \n Gateway ID\n {this.props.gateway.id}\n \n \n Altitude\n {this.props.gateway.location.altitude} meters\n \n \n GPS coordinates\n {this.props.gateway.location.latitude}, {this.props.gateway.location.longitude}\n \n \n Last seen at\n {this.props.lastSeenAt}\n \n \n
\n
\n
\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 scales: {\n yAxes: [{\n ticks: {\n beginAtZero: true,\n },\n }],\n },\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 lastSeenAt = \"Never\";\n if (this.props.lastSeenAt !== null) {\n lastSeenAt = moment(this.props.lastSeenAt).format(\"lll\");\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\nexport default withStyles(styles)(GatewayDetails);\n","import { EventEmitter } from \"events\";\nimport \"whatwg-fetch\";\n\n\nclass LocationStore extends EventEmitter {\n getLocation(callbackFunc) {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition((position) => {\n callbackFunc(position);\n });\n }\n }\n}\n\nconst locationStore = new LocationStore();\n\nexport default locationStore;\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\";\nimport Tabs from '@material-ui/core/Tabs';\nimport Tab from '@material-ui/core/Tab';\nimport Typography from \"@material-ui/core/Typography\";\n\nimport { Map, Marker } from 'react-leaflet';\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport KVForm from \"../../components/KVForm\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport NetworkServerStore from \"../../stores/NetworkServerStore\";\nimport GatewayProfileStore from \"../../stores/GatewayProfileStore\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\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\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(1),\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 tab: 0,\n tags: [],\n metadata: [],\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 this.setKVArrays(this.props.object || {});\n\n if (!this.props.update) {\n this.setCurrentPosition();\n }\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 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 object.serviceProfileID = 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 altitude: this.state.object.location.altitude,\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 altitude: this.state.object.location.altitude,\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 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 if (this.state.object === undefined || this.state.object.networkServerID === undefined) {\n callbackFunc([]);\n return;\n }\n\n ServiceProfileStore.list(this.props.match.params.organizationID, this.state.object.networkServerID, 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 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 onTabChange = (e, v) => {\n this.setState({\n tab: v,\n });\n }\n\n setKVArrays = (props) => {\n let tags = [];\n let metadata = [];\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 if (props.metadata !== undefined) {\n for (let key in props.metadata) {\n metadata.push({key: key, value: props.metadata[key]});\n }\n }\n\n this.setState({\n tags: tags,\n metadata: metadata,\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\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 const tags = this.state.tags.map((obj, i) => );\n const metadata = this.state.metadata.map((obj, i) => );\n\n return(\n Add board configuration}\n >\n \n \n \n \n \n\n {this.state.tab === 0 &&
\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 Service-profile\n \n \n Select the service-profile under which the gateway must be added. The available service-profiles depend on the selected network-server, which must be selected first.\n \n \n \n Gateway-profile\n \n \n Optional. When assigning a gateway-profile to the gateway, ChirpStack Network Server will attempt to update the gateway according to the gateway-profile. Note that this does require a gateway with ChirpStack Concentratord.\n \n \n \n \n }\n />\n \n When enabled (and ChirpStack Network 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 {this.state.tab === 1 &&
\n \n \n Tags can be used to store additional key/value data.\n \n {tags}\n \n \n
}\n {this.state.tab === 2 &&
\n \n \n Metadata can be used by the ChirpStack Gateway Bridge to push information about the gateway (e.g. ip / hostname, serial number, temperatures, ...).\n This information is automatically updated when gateway statistics are received.\n \n {metadata}\n \n
}\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 ChirpStack Application 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 componentDidMount() {\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 { 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(1),\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(1),\n },\n icon: {\n marginRight: theme.spacing(1),\n },\n center: {\n textAlign: \"center\",\n },\n progress: {\n marginTop: 4 * theme.spacing(1),\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 delete frame.downlinkFrame.txInfo['gatewayID'];\n\n frames.unshift({\n id: now.getTime(),\n receivedAt: now,\n downlinkMetaData: {\n gatewayID: frame.downlinkFrame.gatewayID,\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\";\n\nimport Card from \"@material-ui/core/Card\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Typography from \"@material-ui/core/Typography\";\nimport Button from \"@material-ui/core/Button\";\nimport TextField from \"@material-ui/core/TextField\";\n\nimport moment from \"moment\";\n\nimport GatewayStore from \"../../stores/GatewayStore\";\n\n\nclass GatewayCertificate extends Component {\n constructor() {\n super();\n\n this.state = {\n caCert: null,\n tlsCert: null,\n tlsKey: null,\n buttonDisabled: false,\n };\n }\n\n requestCertificate = () => {\n this.setState({\n buttonDisabled: true,\n });\n\n GatewayStore.generateClientCertificate(this.props.match.params.gatewayID, (resp => {\n this.setState({\n tlsKey: resp.tlsKey,\n tlsCert: resp.tlsCert,\n caCert: resp.caCert,\n expiresAt: moment(resp.expiresAt).format(\"lll\"),\n });\n }));\n }\n\n render() {\n return(\n \n \n \n If required by the network, the gateway needs a client certificate in order to connect to the network.\n This certificate must be configured on the gateway. After generating the certificate, the certificate\n can only be retrieved once.\n \n {this.state.tlsCert == null && }\n {this.state.tlsCert != null &&
\n \n \n \n \n }\n
\n
\n );\n }\n}\n\nexport default GatewayCertificate;\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 GatewayAdmin from \"../../components/GatewayAdmin\";\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\";\nimport GatewayCertificate from \"./GatewayCertificate\";\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.isOrganizationGatewayAdmin(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(\"/certificate\")) {\n tab = 2;\n } else if (window.location.href.endsWith(\"/discovery\")) {\n tab = 3;\n } else if (window.location.href.endsWith(\"/frames\")) {\n tab = 4;\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 {this.state.admin && }\n \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, 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 GatewayForm from \"./GatewayForm\";\nimport GatewayStore from \"../../stores/GatewayStore\";\nimport ServiceProfileStore from \"../../stores/ServiceProfileStore\";\n\n\nconst styles = {\n card: {\n overflow: \"visible\",\n },\n};\n\n\nclass CreateGateway extends Component {\n constructor() {\n super();\n\n this.state = {\n spDialog: false,\n };\n\n this.onSubmit = this.onSubmit.bind(this);\n }\n\n componentDidMount() {\n ServiceProfileStore.list(this.props.match.params.organizationID, 0, 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(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 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\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 this.emit(\"integration.delete\");\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 this.emit(\"integration.delete\");\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 this.emit(\"integration.delete\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createMyDevicesIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateMyDevicesIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"myDevices\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getMyDevicesIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetMyDevicesIntegration({\n application_id: applicationID, \n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateMyDevicesIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateMyDevicesIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"myDevices\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteMyDevicesIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteMyDevicesIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"myDevices\", \"deleted\");\n this.emit(\"integration.delete\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createLoRaCloudIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateLoRaCloudIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"LoRa Cloud\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getLoRaCloudIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetLoRaCloudIntegration({\n application_id: applicationID, \n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateLoRaCloudIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateLoRaCloudIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"LoRa Cloud\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteLoRaCloudIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteLoRaCloudIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"LoRa Cloud\", \"deleted\");\n this.emit(\"integration.delete\");\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 createGCPPubSubIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateGCPPubSubIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"GCP Pub/Sub\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getGCPPubSubIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetGCPPubSubIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateGCPPubSubIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateGCPPubSubIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"GCP Pub/Sub\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteGCPPubSubIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteGCPPubSubIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"GCP Pub/Sbu\", \"deleted\");\n this.emit(\"integration.delete\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createAWSSNSIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateAWSSNSIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"AWS SNS\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getAWSSNSIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetAWSSNSIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateAWSSNSIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateAWSSNSIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"AWS SNS\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteAWSSNSIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteAWSSNSIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"AWS SNS\", \"deleted\");\n this.emit(\"integration.delete\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createAzureServiceBusIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreateAzureServiceBusIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"Azure Service-Bus\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getAzureServiceBusIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetAzureServiceBusIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updateAzureServiceBusIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdateAzureServiceBusIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"Azure Service-Bus\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deleteAzureServiceBusIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeleteAzureServiceBusIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"Azure Service-Bus\", \"deleted\");\n this.emit(\"integration.delete\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n createPilotThingsIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.CreatePilotThingsIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"Pilot Things\", \"created\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n getPilotThingsIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GetPilotThingsIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n updatePilotThingsIntegration(integration, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.UpdatePilotThingsIntegration({\n \"integration.application_id\": integration.applicationID,\n body: {\n integration: integration,\n },\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"Pilot Things\", \"updated\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n deletePilotThingsIntegration(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.DeletePilotThingsIntegration({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n this.integrationNotification(\"Pilot Things\", \"deleted\");\n this.emit(\"integration.delete\");\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\n });\n }\n\n generateMQTTIntegrationClientCertificate(applicationID, callbackFunc) {\n this.swagger.then(client => {\n client.apis.ApplicationService.GenerateMQTTIntegrationClientCertificate({\n application_id: applicationID,\n })\n .then(checkStatus)\n .then(resp => {\n callbackFunc(resp.obj);\n })\n .catch(errorHandler);\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, 0, 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 !== \"\" && this.state.object.payloadCodec !== undefined &&
\n \n Payload codec\n \n \n By defining a payload codec, ChirpStack Application Server can encode and decode the binary device payload for you. \n Important note: the 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 ChirpStack Application 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, 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 `ws://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 `ws://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 DeviceAdmin from \"../../components/DeviceAdmin\";\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(1),\n },\n icon: {\n marginRight: theme.spacing(1),\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 {obj.deviceProfileName}\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 Device profile\n Link margin\n Battery\n \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 Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nconst styles ={\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass GCPPubSubCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the GCP Pub/Sub integration?\")) {\n ApplicationStore.deleteGCPPubSubIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n GCP Pub/Sub\n \n \n The Google Cloud Pub/Sub integration forwards events to a GCP Pub/Sub topic.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(styles)(GCPPubSubCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass HTTPCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the HTTP integration?\")) {\n ApplicationStore.deleteHTTPIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n HTTP\n \n \n The HTTP integration forwards events to a user-configurable endpoint as POST requests.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\n\nexport default withStyles(styles)(HTTPCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass AzureServiceBusCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the Azure Service-Bus integration?\")) {\n ApplicationStore.deleteAzureServiceBusIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n Azure Service-Bus\n \n \n The Azure Service-Bus integration forwards events to an Azure Service-Bus topic or queue.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\n\nexport default withStyles(styles)(AzureServiceBusCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass AWSSNSCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the AWS SNS integration?\")) {\n ApplicationStore.deleteAWSSNSIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n AWS SNS\n \n \n The AWS SNS integration forwards events to an AWS SNS topic.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(styles)(AWSSNSCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass InfluxDBCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the InfluxDB integration?\")) {\n ApplicationStore.deleteInfluxDBIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n InfluxDB\n \n \n The InfluxDB integration writes events into an InfluxDB time-series database.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(styles)(InfluxDBCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass ThingsboardCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the ThingsBoard integration?\")) {\n ApplicationStore.deleteThingsBoardIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n ThingsBoard.io\n \n \n The ThingsBoard integration forwards events to a ThingsBoard.io instance.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(styles)(ThingsboardCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass LoRaCloudCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the Semtech LoRa Cloud integration?\")) {\n ApplicationStore.deleteLoRaCloudIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n Semtech LoRa Cloud\n \n \n The Semtech LoRa Cloud integration provides Geolocation and Device & Application Services.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(styles)(LoRaCloudCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass MyDevicesCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the MyDevices integration?\")) {\n ApplicationStore.deleteMyDevicesIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n myDevices\n \n \n The myDevices integration forwards events to the myDevices platform.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(styles)(MyDevicesCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass PilotThingsCard extends Component {\n delete = () => {\n if (window.confirm(\"Are you sure you want to remove the Pilot Things integration?\")) {\n ApplicationStore.deletePilotThingsIntegration(this.props.applicationID, () => {});\n }\n }\n\n render() {\n return (\n \n \n \n \n Pilot Things\n \n \n The Pilot Things integration forwards messages to a Pilot Things instance.\n \n \n \n {!this.props.add && \n \n }\n {!this.props.add && }\n {!!this.props.add && \n \n }\n \n \n );\n }\n}\n\nexport default withStyles(styles)(PilotThingsCard);\n","import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\n\nimport { withStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardActions from '@material-ui/core/CardActions';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Button from '@material-ui/core/Button';\nimport Typography from '@material-ui/core/Typography';\n\n\nconst styles = {\n media: {\n paddingTop: '35%',\n backgroundSize: 'contain',\n },\n};\n\n\nclass MQTTCard extends Component {\n render() {\n return (\n \n \n \n \n MQTT\n \n \n The MQTT integration forwards events to a MQTT broker.\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default withStyles(styles)(MQTTCard);\n","import React, { Component } from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\n\nimport ApplicationStore from \"../../stores/ApplicationStore\";\nimport theme from \"../../theme\";\n\nimport GCPPubSubCard from \"./integrations/GCPPubSub\";\nimport HTTPCard from \"./integrations/HTTP\";\nimport AzureServiceBusCard from \"./integrations/AzureServiceBusCard\";\nimport AWSSNSCard from \"./integrations/AWSSNSCard\";\nimport InfluxDBCard from \"./integrations/InfluxDBCard\";\nimport ThingsboardCard from \"./integrations/ThingsboardCard\";\nimport LoRaCloudCard from \"./integrations/LoRaCloudCard\";\nimport MyDevicesCard from \"./integrations/MyDevicesCard\";\nimport PilotThingsCard from \"./integrations/PilotThingsCard\";\nimport MQTTCard from \"./integrations/MQTTCard\";\n\n\nconst styles = {\n buttons: {\n textAlign: \"right\",\n },\n button: {\n marginLeft: 2 * theme.spacing(1),\n },\n icon: {\n marginRight: theme.spacing(1),\n },\n};\n\n\nclass ListIntegrations extends Component {\n constructor() {\n super();\n\n this.state = {\n configured: [],\n available: [],\n };\n }\n\n componentDidMount() {\n ApplicationStore.on(\"integration.delete\", () => {\n this.loadIntegrations(this.props.match.params.organizationID, this.props.match.params.applicationID);\n });\n\n this.loadIntegrations(this.props.match.params.organizationID, this.props.match.params.applicationID);\n }\n\n componentWillUnmount() {\n ApplicationStore.removeAllListeners(\"integration.delete\");\n }\n\n componentDidUpdate(prevProps) {\n if (this.props === prevProps) {\n return;\n }\n\n this.loadIntegrations(this.props.match.params.organizationID, this.props.match.params.applicationID);\n }\n\n loadIntegrations = (organizationID, applicationID) => {\n ApplicationStore.listIntegrations(applicationID, (resp) => {\n let configured = [];\n let available = [];\n const includes = (integrations, kind) => {\n for (let x of integrations) {\n if (x.kind === kind) {\n return true;\n } \n }\n\n return false;\n };\n\n // AWS\n if(includes(resp.result, \"AWS_SNS\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // Azure\n if(includes(resp.result, \"AZURE_SERVICE_BUS\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // GCP\n if(includes(resp.result, \"GCP_PUBSUB\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // HTTP\n if(includes(resp.result, \"HTTP\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // InfluxDB\n if(includes(resp.result, \"INFLUXDB\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // MyDevices\n if(includes(resp.result, \"MYDEVICES\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // Global MQTT\n if(includes(resp.result, \"MQTT_GLOBAL\")) {\n configured.push();\n }\n\n // Pilot Things\n if (includes(resp.result, \"PILOT_THINGS\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // Semtech LoRa Cloud\n if(includes(resp.result, \"LORACLOUD\")) {\n configured.push();\n } else {\n available.push();\n }\n\n // Thingsboard\n if(includes(resp.result, \"THINGSBOARD\")) {\n configured.push();\n } else {\n available.push();\n }\n\n this.setState({\n configured: configured,\n available: available,\n });\n });\n } \n\n render() {\n let configured = this.state.configured.map((row, i) => {row});\n let available = this.state.available.map((row, i) => {row});\n\n return(\n \n {configured}\n {available}\n \n );\n }\n}\n\nexport default withStyles(styles)(ListIntegrations);\n","import React from \"react\";\n\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport TextField from '@material-ui/core/TextField';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport FormComponent from \"../../../classes/FormComponent\";\nimport Form from \"../../../components/Form\";\nimport AutocompleteSelect from \"../../../components/AutocompleteSelect\";\n\n\nclass AWSSNSIntegrationForm extends FormComponent {\n getMarshalerOptions = (search, callbackFunc) => {\n const marshalerOptions = [\n {value: \"JSON\", label: \"JSON\"},\n {value: \"PROTOBUF\", label: \"Protocol Buffers\"},\n {value: \"JSON_V3\", label: \"JSON (legacy, will be deprecated)\"},\n ];\n\n callbackFunc(marshalerOptions);\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n
\n \n Payload marshaler\n \n This defines how the payload will be encoded.\n \n \n \n \n \n \n );\n }\n}\n\n\nexport default AWSSNSIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport AWSSNSIntegrationForm from \"./AWSSNSIntegrationForm\";\n\n\nclass CreateAWSSNSIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.createAWSSNSIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateAWSSNSIntegration;\n","import React from \"react\";\n\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport TextField from '@material-ui/core/TextField';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport FormComponent from \"../../../classes/FormComponent\";\nimport Form from \"../../../components/Form\";\nimport AutocompleteSelect from \"../../../components/AutocompleteSelect\";\n\n\nclass GCPPubSubIntegrationForm extends FormComponent {\n getMarshalerOptions = (search, callbackFunc) => {\n const marshalerOptions = [\n {value: \"JSON\", label: \"JSON\"},\n {value: \"PROTOBUF\", label: \"Protocol Buffers\"},\n {value: \"JSON_V3\", label: \"JSON (legacy, will be deprecated)\"},\n ];\n\n callbackFunc(marshalerOptions);\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n
\n \n Payload marshaler\n \n This defines how the payload will be encoded.\n \n \n \n \n \n );\n }\n}\n\n\nexport default GCPPubSubIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport GCPPubSubIntegrationForm from \"./GCPPubSubIntegrationForm\";\n\n\nclass CreateGCPPubSubIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.createGCPPubSubIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateGCPPubSubIntegration;\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport TextField from '@material-ui/core/TextField';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\nimport IconButton from '@material-ui/core/IconButton';\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(1),\n },\n formLabel: {\n fontSize: 12,\n },\n};\n\n\nclass HTTPIntegrationHeaderForm extends FormComponent {\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 null;\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 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.setState({\n object: object,\n });\n }\n\n onDeleteHeader = (index) => {\n let object = this.state.object;\n object.headers.splice(index, 1);\n\n this.setState({\n object: object,\n });\n }\n\n onChangeHeader = (index, header) => {\n let object = this.state.object;\n object.headers[index] = header;\n this.setState({\n object: object,\n });\n }\n\n getMarshalerOptions = (search, callbackFunc) => {\n const marshalerOptions = [\n {value: \"JSON\", label: \"JSON\"},\n {value: \"PROTOBUF\", label: \"Protocol Buffers\"},\n {value: \"JSON_V3\", label: \"JSON (legacy, will be deprecated)\"},\n ];\n\n callbackFunc(marshalerOptions);\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\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 Payload marshaler\n \n This defines how the payload will be encoded.\n \n \n Headers\n {headers}\n \n \n \n Endpoints\n \n {!!this.state.object.uplinkDataURL && }\n {!!this.state.object.joinNotificationURL && }\n {!!this.state.object.statusNotificationURL && }\n {!!this.state.object.locationNotificationURL && }\n {!!this.state.object.ackNotificationURL && }\n {!!this.state.object.txAckNotificationURL && }\n {!!this.state.object.integrationNotificationURL && }\n {!!this.state.object.errorNotificationURL && }\n \n
\n );\n }\n}\n\n\nexport default HTTPIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport HTTPIntegrationForm from \"./HTTPIntegrationForm\";\n\n\nclass CreateHTTPIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\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 } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateHTTPIntegration;\n","import React from \"react\";\n\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport TextField from '@material-ui/core/TextField';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport FormComponent from \"../../../classes/FormComponent\";\nimport Form from \"../../../components/Form\";\nimport AutocompleteSelect from \"../../../components/AutocompleteSelect\";\n\n\nclass AzureServiceBusIntegrationForm extends FormComponent {\n getMarshalerOptions = (search, callbackFunc) => {\n const marshalerOptions = [\n {value: \"JSON\", label: \"JSON\"},\n {value: \"PROTOBUF\", label: \"Protocol Buffers\"},\n {value: \"JSON_V3\", label: \"JSON (legacy, will be deprecated)\"},\n ];\n\n callbackFunc(marshalerOptions);\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n
\n \n Payload marshaler\n \n This defines how the payload will be encoded.\n \n \n \n \n );\n }\n}\n\nexport default AzureServiceBusIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport AzureServiceBusIntegrationForm from \"./AzureServiceBusIntegrationForm\";\n\n\nclass CreateAzureServiceBusIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.createAzureServiceBusIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateAzureServiceBusIntegration;\n","import React from \"react\";\n\nimport { withStyles } from \"@material-ui/core/styles\";\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport TextField from '@material-ui/core/TextField';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport FormComponent from \"../../../classes/FormComponent\";\nimport Form from \"../../../components/Form\";\nimport AutocompleteSelect from \"../../../components/AutocompleteSelect\";\n\n\nconst styles = {\n formLabel: {\n fontSize: 12,\n },\n};\n\n\nclass InfluxDBIntegrationForm extends FormComponent {\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 null;\n }\n\n return(\n
\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\nexport default withStyles(styles)(InfluxDBIntegrationForm);\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport InfluxDBIntegrationForm from \"./InfluxDBIntegrationForm\";\n\n\nclass CreateInfluxDBIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\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 } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateInfluxDBIntegration;\n","import React from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\nimport FormHelperText from \"@material-ui/core/FormHelperText\";\n\nimport FormComponent from \"../../../classes/FormComponent\";\nimport Form from \"../../../components/Form\";\n\n\nclass ThingsBoardIntegrationForm extends FormComponent {\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n
\n \n \n Each device must have a 'ThingsBoardAccessToken' variable assigned. This access-token is generated by ThingsBoard.\n \n \n );\n }\n}\n\n\nexport default ThingsBoardIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport ThingsBoardIntegrationForm from \"./ThingsBoardIntegrationForm\";\n\n\nclass CreateThingsBoardIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\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 } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateThingsBoardIntegration;\n","import React from \"react\";\n\nimport FormControl from \"@material-ui/core/FormControl\";\nimport TextField from '@material-ui/core/TextField';\nimport Tabs from \"@material-ui/core/Tabs\";\nimport Tab from \"@material-ui/core/Tab\";\nimport FormGroup from \"@material-ui/core/FormGroup\";\nimport FormControlLabel from \"@material-ui/core/FormControlLabel\";\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\";\n\n\nclass LoRaCloudIntegrationForm extends FormComponent {\n constructor() {\n super();\n\n this.state = {\n tab: 0,\n };\n }\n\n onChangeTab = (e, v) => {\n this.setState({\n tab: v,\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n return(\n
\n \n \n \n \n {this.state.tab === 0 &&
\n \n \n \n }\n />\n \n \n {!!this.state.object.geolocation && \n \n \n }\n />\n \n }\n {!!this.state.object.geolocation && \n \n \n }\n />\n \n }\n {!!this.state.object.geolocation && \n \n \n }\n />\n \n }\n {!!this.state.object.geolocation && \n \n \n }\n />\n \n }\n {!!this.state.object.geolocation && }\n {!!this.state.object.geolocation && (this.state.object.geolocationTDOA || this.state.object.geolocationRSSI) && }\n {!!this.state.object.geolocation && (this.state.object.geolocationTDOA || this.state.object.geolocationRSSI) && }\n {!!this.state.object.geolocation && this.state.object.geolocationWifi && }\n {!!this.state.object.geolocation && this.state.object.geolocationGNSS && }\n {!!this.state.object.geolocation && this.state.object.geolocationGNSS && \n \n \n }\n />\n \n }\n
}\n {this.state.tab === 1 &&
\n \n \n \n }\n />\n \n \n {!!this.state.object.das && }\n {!!this.state.object.das && }\n {!!this.state.object.das && }\n {!!this.state.object.das && \n \n \n }\n />\n \n }\n {!!this.state.object.das && \n \n \n }\n />\n \n When enabled, ChirpStack Application Server will try to resolve the location of the device when a geolocation payload is detected.\n The payload must be in TLV format. Type 0x06 and 0x07 are handled as GNSS payload.\n Note: this flag will be removed when natively supported by the API.\n \n \n }\n
}\n
\n );\n }\n}\n\n\nexport default LoRaCloudIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport LoRaCloudIntegrationForm from \"./LoRaCloudIntegrationForm\";\n\n\nclass CreateLoRaCloudIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.createLoRaCloudIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n render() {\n let obj = {\n dasGNSSPort: 198,\n dasModemPort: 199,\n }; \n\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateLoRaCloudIntegration;\n","import React from \"react\";\n\nimport FormControl from \"@material-ui/core/FormControl\";\nimport FormLabel from \"@material-ui/core/FormLabel\";\nimport TextField from '@material-ui/core/TextField';\n\nimport FormComponent from \"../../../classes/FormComponent\";\nimport Form from \"../../../components/Form\";\nimport AutocompleteSelect from \"../../../components/AutocompleteSelect\";\n\n\nclass MyDevicesIntegrationForm extends FormComponent {\n getEndpointOptions(search, callbackFunc) {\n const endpointOptions = [\n {value: \"https://lora.mydevices.com/v1/networks/chirpstackio/uplink\", label: \"Cayenne\"},\n {value: \"https://lora.iotinabox.com/v1/networks/iotinabox.chirpstackio/uplink\", label: \"IoT in a Box\"},\n {value: \"custom\", label: \"Custom endpoint URL\"},\n ];\n\n callbackFunc(endpointOptions);\n }\n\n endpointChange = (e) => {\n let object = this.state.object;\n\n if (e.target.value === \"custom\") {\n object.endpoint = \"\";\n } else {\n object.endpoint = e.target.value;\n }\n\n this.setState({\n object: object,\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n let endpointSelect = \"custom\";\n if (this.state.object.endpoint === undefined) {\n endpointSelect = \"\";\n }\n\n this.getEndpointOptions(\"\", (options) => {\n for (let opt of options) {\n if (this.state.object.endpoint === opt.value) {\n endpointSelect = this.state.object.endpoint;\n }\n }\n });\n\n return(\n
\n \n myDevices endpoint\n \n \n {endpointSelect === \"custom\" && \n myDevices integration configuration\n \n }\n
\n );\n }\n}\n\n\nexport default MyDevicesIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport MyDevicesIntegrationForm from \"./MyDevicesIntegrationForm\";\n\n\nclass CreateMyDevicesIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.createMyDevicesIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateMyDevicesIntegration;\n","import React from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\n\nimport FormComponent from \"../../../classes/FormComponent\";\nimport Form from \"../../../components/Form\";\n\n\nclass PilotThingsIntegrationForm 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\n\nexport default PilotThingsIntegrationForm;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport PilotThingsIntegrationForm from \"./PilotThingsIntegrationForm\";\n\n\nclass CreatePilotThingsIntegration extends Component {\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.createPilotThingsIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n render() {\n return(\n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreatePilotThingsIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport AWSSNSIntegrationForm from \"./AWSSNSIntegrationForm\";\n\n\nclass UpdateAWSSNSIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateAWSSNSIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getAWSSNSIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateAWSSNSIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport GCPPubSubIntegrationForm from \"./GCPPubSubIntegrationForm\";\n\n\nclass UpdateGCPPubSubIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateGCPPubSubIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getGCPPubSubIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateGCPPubSubIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport HTTPIntegrationForm from \"./HTTPIntegrationForm\";\n\n\nclass UpdateHTTPIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateHTTPIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getHTTPIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateHTTPIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport AzureServiceBusIntegrationForm from \"./AzureServiceBusIntegrationForm\";\n\n\nclass UpdateAzureServiceBusIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateAzureServiceBusIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getAzureServiceBusIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateAzureServiceBusIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport InfluxDBIntegrationForm from \"./InfluxDBIntegrationForm\";\n\n\nclass UpdateInfluxDBIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateInfluxDBIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getInfluxDBIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateInfluxDBIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport ThingsBoardIntegrationForm from \"./ThingsBoardIntegrationForm\";\n\n\nclass UpdateThingsBoardIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateThingsBoardIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getThingsBoardIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateThingsBoardIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport LoRaCloudIntegrationForm from \"./LoRaCloudIntegrationForm\";\n\n\nclass UpdateLoRaCloudIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateLoRaCloudIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getLoRaCloudIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateLoRaCloudIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport MyDevicesIntegrationForm from \"./MyDevicesIntegrationForm\";\n\n\nclass UpdateMyDevicesIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updateMyDevicesIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getMyDevicesIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdateMyDevicesIntegration;\n","import React, { Component } from \"react\";\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\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\nimport PilotThingsIntegrationForm from \"./PilotThingsIntegrationForm\";\n\n\nclass UpdatePilotThingsIntegration extends Component {\n constructor() {\n super();\n\n this.state = {};\n }\n\n onSubmit = (integration) => {\n let integr = integration;\n integr.applicationID = this.props.match.params.applicationID;\n\n ApplicationStore.updatePilotThingsIntegration(integr, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/applications/${this.props.match.params.applicationID}/integrations`);\n });\n } \n\n componentDidMount() {\n ApplicationStore.getPilotThingsIntegration(this.props.match.params.applicationID, (resp) => {\n this.setState({\n object: resp.integration,\n });\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 \n \n \n \n );\n }\n}\n\nexport default UpdatePilotThingsIntegration;\n","import React, { Component } from \"react\";\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 Typography from \"@material-ui/core/Typography\";\nimport Button from \"@material-ui/core/Button\";\nimport TextField from \"@material-ui/core/TextField\";\n\nimport moment from \"moment\";\n\nimport ApplicationStore from \"../../../stores/ApplicationStore\";\n\n\nclass MQTTCertificate extends Component {\n constructor() {\n super();\n\n this.state = {\n caCert: null,\n tlsCert: null,\n tlsKey: null,\n buttonDisabled: false,\n };\n }\n\n requestCertificate = () => {\n this.setState({\n buttonDisabled: true,\n });\n\n ApplicationStore.generateMQTTIntegrationClientCertificate(this.props.match.params.applicationID, (resp => {\n this.setState({\n caCert: resp.caCert,\n tlsCert: resp.tlsCert,\n tlsKey: resp.tlsKey,\n expiresAt: moment(resp.expiresAt).format(\"lll\"),\n });\n }));\n }\n\n render() {\n return(\n \n \n \n \n \n \n If required by the network, the MQTT client needs to be configured with a client certificate\n in order to connect to the MQTT broker to device data. The generated certificate is\n application specific. After generating the certificate, the certificate\n can only be retrieved once.\n \n {this.state.tlsCert == null && }\n {this.state.tlsCert != null &&
\n \n \n \n \n }\n
\n
\n
\n
\n );\n }\n}\n\nexport default MQTTCertificate;\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\";\n\nimport CreateAWSSNSIntegration from \"./integrations/CreateAWSSNSIntegration\";\nimport CreateGCPPubSubIntegration from \"./integrations/CreateGCPPubSubIntegration\";\nimport CreateHTTPIntegration from \"./integrations/CreateHTTPIntegration\";\nimport CreateAzureServiceBusIntegration from \"./integrations/CreateAzureServiceBusIntegration\";\nimport CreateInfluxDBIntegration from \"./integrations/CreateInfluxDBIntegration\";\nimport CreateThingsBoardIntegration from \"./integrations/CreateThingsBoardIntegration\";\nimport CreateLoRaCloudIntegration from \"./integrations/CreateLoRaCloudIntegration\";\nimport CreateMyDevicesIntegration from \"./integrations/CreateMyDevicesIntegration\";\nimport CreatePilotThingsIntegration from \"./integrations/CreatePilotThingsIntegration\";\nimport UpdateAWSSNSIntegration from \"./integrations/UpdateAWSSNSIntegration\";\nimport UpdateGCPPubSubIntegration from \"./integrations/UpdateGCPPubSubIntegration\";\nimport UpdateHTTPIntegration from \"./integrations/UpdateHTTPIntegration\";\nimport UpdateAzureServiceBusIntegration from \"./integrations/UpdateAzureServiceBusIntegration\";\nimport UpdateInfluxDBIntegration from \"./integrations/UpdateInfluxDBIntegration\";\nimport UpdateThingsBoardIntegration from \"./integrations/UpdateThingsBoardIntegration\";\nimport UpdateLoRaCloudIntegration from \"./integrations/UpdateLoRaCloudIntegration\";\nimport UpdateMyDevicesIntegration from \"./integrations/UpdateMyDevicesIntegration\";\nimport UpdatePilotThingsIntegration from \"./integrations/UpdatePilotThingsIntegration\";\nimport MQTTCertificate from \"./integrations/MQTTCertificate\";\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.match(/.*\\/integrations.*/g)) {\n tab = 2;\n } else 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 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 \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)(withRouter(ApplicationLayout));\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 DeviceAdmin from \"../../components/DeviceAdmin\";\nimport MulticastGroupStore from \"../../stores/MulticastGroupStore\";\nimport theme from \"../../theme\";\n\n\nconst styles = {\n idColumn: {\n width: theme.spacing(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, { 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, 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 DeviceAdmin from \"../../components/DeviceAdmin\";\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(1),\n },\n icon: {\n marginRight: theme.spacing(1),\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 }\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 DeviceAdmin from \"../../components/DeviceAdmin\";\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.isOrganizationDeviceAdmin(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 Typography from \"@material-ui/core/Typography\";\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport KVForm from \"../../components/KVForm\";\nimport EUI64Field from \"../../components/EUI64Field\";\nimport AutocompleteSelect from \"../../components/AutocompleteSelect\";\nimport DeviceProfileStore from \"../../stores/DeviceProfileStore\";\n\n\nconst styles = {\n formLabel: {\n fontSize: 12,\n },\n};\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 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 \n }\n />\n \n \n ChirpStack Network Server will ignore received uplink frames and join-requests from disabled devices.\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\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}/devices/${this.props.match.params.devEUI}`);\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}/devices/${this.props.match.params.devEUI}`);\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';\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(1),\n },\n icon: {\n marginRight: theme.spacing(1),\n },\n center: {\n textAlign: \"center\",\n },\n progress: {\n marginTop: 4 * theme.spacing(1),\n },\n headerColumn: {\n marginRight: 6 * theme.spacing(1),\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 console.log('data: ', d);\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 (using the JSON marshaler). Please refer to data integrations (documentation) for more information on integrating this with your application.

\n ID values are converted from base64 to HEX for your convenience.\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(1),\n },\n icon: {\n marginRight: theme.spacing(1),\n },\n center: {\n textAlign: \"center\",\n },\n progress: {\n marginTop: 4 * theme.spacing(1),\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 delete frame.downlinkFrame.txInfo['gatewayID'];\n\n frames.unshift({\n id: now.getTime(),\n receivedAt: now,\n downlinkMetaData: {\n gatewayID: frame.downlinkFrame.gatewayID,\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 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 been 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 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\";\nimport DeviceStore from \"../../stores/DeviceStore\";\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 let state = \"enabled\";\n\n if (this.props.device.lastSeenAt !== null) {\n lastSeenAt = moment(this.props.device.lastSeenAt).format(\"lll\");\n }\n\n if (this.props.device.device.isDisabled === true) {\n state = \"disabled\";\n }\n\n return(\n \n \n \n \n \n \n Last seen at\n {lastSeenAt}\n \n \n State\n {state}\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 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 constructor() {\n super();\n this.state = {\n activated: false,\n };\n }\n\n componentDidMount() {\n this.setDeviceActivation();\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.device !== this.props.device) {\n this.setDeviceActivation();\n }\n }\n\n setDeviceActivation = () => {\n if (this.props.device === undefined) {\n return;\n }\n\n DeviceStore.getActivation(this.props.device.device.devEUI, resp => {\n if (resp === null) {\n this.setState({\n activated: false,\n });\n } else {\n this.setState({\n activated: true,\n });\n }\n });\n };\n\n render() {\n return(\n \n \n \n \n \n \n \n {this.state.activated && \n \n }\n {this.state.activated &&\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 DeviceAdmin from \"../../components/DeviceAdmin\";\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 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.isOrganizationDeviceAdmin(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 }\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\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\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport IconButton from '@material-ui/core/IconButton';\n\nimport Plus from \"mdi-material-ui/Plus\";\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\nimport InternalStore from \"../../stores/InternalStore\";\n\n\nclass APIKeyRow extends Component {\n onDelete = () => {\n if (window.confirm(\"Are you sure you want to delete this api key?\")) {\n InternalStore.deleteAPIKey(this.props.obj.id, resp => {\n this.props.history.push(`/api-keys`);\n });\n }\n }\n\n render() {\n return(\n \n {this.props.obj.id}\n {this.props.obj.name}\n \n \n \n \n );\n }\n}\n\nAPIKeyRow = withRouter(APIKeyRow);\n\n\nclass ListAdminAPIKeys extends Component {\n getPage = (limit, offset, callbackFunc) => {\n InternalStore.listAPIKeys({\n isAdmin: true,\n limit: limit,\n offset: offset,\n }, callbackFunc);\n }\n\n getRow = (obj) => {\n return();\n }\n\n render() {\n return(\n \n }\n to={`/api-keys/create`}\n />\n }\n >\n \n \n \n \n ID\n Name\n \n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListAdminAPIKeys;\n","import React from \"react\";\n\nimport TextField from '@material-ui/core/TextField';\n\nimport FormComponent from \"../../classes/FormComponent\";\nimport Form from \"../../components/Form\";\nimport InternalStore from \"../../stores/InternalStore\";\n\n\nclass APIKeyForm extends FormComponent {\n constructor() {\n super();\n this.state = {\n token: null,\n id: null,\n };\n }\n\n onSubmit = (e) => {\n e.preventDefault();\n\n let apiKey = this.state.object;\n apiKey.isAdmin = this.props.isAdmin || false;\n apiKey.organizationID = this.props.organizationID || 0;\n apiKey.applicationID = this.props.applicationID || 0;\n\n InternalStore.createAPIKey(apiKey, resp => {\n this.setState({\n token: resp.jwtToken,\n id: resp.id,\n });\n });\n }\n\n render() {\n if (this.state.object === undefined) {\n return null;\n }\n\n if (this.state.token !== null) {\n return(\n
\n \n \n \n
\n );\n }\n\n return(\n \n \n \n );\n }\n}\n\nexport default APIKeyForm;\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 APIKeyForm from \"./APIKeyForm\";\n\n\nclass CreateAdminAPIKey extends Component {\n render() {\n return(\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateAdminAPIKey;\n","import React, { Component } from \"react\";\nimport { withRouter } from \"react-router-dom\";\n\nimport Grid from \"@material-ui/core/Grid\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport IconButton from '@material-ui/core/IconButton';\n\nimport Plus from \"mdi-material-ui/Plus\";\nimport Delete from \"mdi-material-ui/Delete\";\n\nimport TitleBar from \"../../components/TitleBar\";\nimport TitleBarTitle from \"../../components/TitleBarTitle\";\nimport TitleBarButton from \"../../components/TitleBarButton\";\nimport DataTable from \"../../components/DataTable\";\nimport InternalStore from \"../../stores/InternalStore\";\n\n\nclass APIKeyRow extends Component {\n onDelete = () => {\n if (window.confirm(\"Are you sure you want to delete this api key?\")) {\n InternalStore.deleteAPIKey(this.props.obj.id, resp => {\n this.props.history.push(`/organizations/${this.props.match.params.organizationID}/api-keys`);\n });\n }\n }\n\n render() {\n return(\n \n {this.props.obj.id}\n {this.props.obj.name}\n \n \n \n \n );\n }\n}\n\nAPIKeyRow = withRouter(APIKeyRow);\n\n\nclass ListOrganizationAPIKeys extends Component {\n getPage = (limit, offset, callbackFunc) => {\n InternalStore.listAPIKeys({\n organizationID: this.props.match.params.organizationID,\n limit: limit,\n offset: offset,\n }, callbackFunc);\n }\n\n getRow = (obj) => {\n return();\n }\n\n render() {\n return(\n \n }\n to={`/organizations/${this.props.match.params.organizationID}/api-keys/create`}\n />\n }\n >\n \n \n \n \n ID\n Name\n \n \n }\n getPage={this.getPage}\n getRow={this.getRow}\n />\n \n \n );\n }\n}\n\nexport default ListOrganizationAPIKeys;\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 APIKeyForm from \"./APIKeyForm\";\n\n\nclass CreateOrganizationAPIKey extends Component {\n render() {\n return(\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default CreateOrganizationAPIKey;\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\";\nimport Dashboard from \"./views/dashboard/Dashboard\";\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\";\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// API Keys\nimport ListAdminAPIKeys from \"./views/api-keys/ListAdminAPIKeys\";\nimport CreateAdminAPIKey from \"./views/api-keys/CreateAdminAPIKey\";\nimport ListOrganizationAPIKeys from \"./views/api-keys/ListOrganizationAPIKeys\";\nimport CreateOrganizationAPIKey from \"./views/api-keys/CreateOrganizationAPIKey\";\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(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 );\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 \"leaflet.awesome-markers/dist/leaflet.awesome-markers.css\";\nimport \"codemirror/lib/codemirror.css\";\nimport \"codemirror/theme/base16-light.css\";\nimport \"react-leaflet-markercluster/dist/styles.min.css\";\nimport \"@fortawesome/fontawesome-free/css/all.min.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":""}