This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.bracketPairColorization.independentColorPoolPerBracketType": true, | |
| "editor.guides.bracketPairs": true, | |
| "editor.renderWhitespace": "boundary", | |
| "editor.fontFamily": "Cascadia Code", | |
| "editor.fontSize": 14, | |
| "editor.fontWeight": "600", | |
| "editor.letterSpacing": -0.2, | |
| "editor.lightbulb.enabled": false, | |
| "editor.rulers": [80, 100, 120], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // uplink-payload.js | |
| const _ = require("lodash"); | |
| class UplinkPayload { | |
| constructor(payload) { | |
| const jsonPayload = JSON.parse(payload.toString()); | |
| this._payload = jsonPayload; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import TTN, { STACK_COMPONENTS_MAP, AUTHORIZATION_MODES } from '.' | |
| const stack = { | |
| [STACK_COMPONENTS_MAP.is]: | |
| process.env.TTN_LW_CONSOLE_UI_IS_BASE_URL || 'http://localhost:8080/api/v3', | |
| [STACK_COMPONENTS_MAP.gs]: | |
| process.env.TTN_LW_CONSOLE_UI_GS_BASE_URL || 'http://localhost:8080/api/v3', | |
| [STACK_COMPONENTS_MAP.ns]: | |
| process.env.TTN_LW_CONSOLE_UI_NS_BASE_URL || 'http://localhost:8080/api/v3', | |
| [STACK_COMPONENTS_MAP.as]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const IS = process.env.TTN_LW_CONSOLE_UI_IS_BASE_URL || 'http://localhost:1885' | |
| const AS = process.env.TTN_LW_CONSOLE_UI_AS_BASE_URL || 'http://localhost:1885' | |
| const token = process.env.access_token | |
| const ttnClient = new TTN(token, { | |
| stackConfig: { is: `${IS}/api/v3`, as: `${AS}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const IS = process.env.TTN_LW_CONSOLE_UI_IS_BASE_URL || 'http://localhost:1885' | |
| const AS = process.env.TTN_LW_CONSOLE_UI_AS_BASE_URL || 'http://localhost:1885' | |
| const token = process.env.access_token | |
| const ttnClient = new TTN(token, { | |
| stackConfig: { is: `${IS}/api/v3`, as: `${AS}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const is = process.env.TTN_LW_IDENTITY_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN(token, { | |
| stackConfig: { is: `${is}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright © 2019 The Things Network Foundation, The Things Industries B.V. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const TTN = require('ttn-lw').default | |
| const ns = process.env.TTN_LW_NETWORK_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN( | |
| token, | |
| { | |
| stackConfig: { ns: `${ns}/api/v3` }, | |
| connectionType: 'http', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const TTN = require('ttn-lw').default | |
| const js = process.env.TTN_LW_JOIN_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN( | |
| token, | |
| { | |
| stackConfig: { js: `${js}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import Spinner from '../../components/spinner' | |
| const withRequest = ( | |
| isFetchingTest = () => false, | |
| isUpdatedTest = () => false | |
| ) => Component => | |
| class WithRequest extends React.Component { |
NewerOlder