diff --git a/src/makers/index.ts b/src/makers/index.ts old mode 100644 new mode 100755 index fd3c42a8..4115a7b8 --- a/src/makers/index.ts +++ b/src/makers/index.ts @@ -25,6 +25,7 @@ import midas from './midas' import deepernetwork from './deepernetwork' import { LangType, supportedLangs } from '../utils/i18n/i18nTypes' import { HotspotMakerLangField } from './hotspotMakerTypes' +import proton from './proton' export const Makers: Record = { PantherX, @@ -50,6 +51,7 @@ export const Makers: Record = { milesight, midas, deepernetwork, + proton } export const AntennaModels = { @@ -78,6 +80,7 @@ export const AntennaModels = { ...milesight.antennas, ...midas.antennas, ...deepernetwork.antennas, + ...proton.antennas } export const HotspotMakerModels = { @@ -104,6 +107,7 @@ export const HotspotMakerModels = { ...milesight.hotspots, ...midas.hotspots, ...deepernetwork.hotspots, + ...proton.hotspots } export type HotspotType = keyof typeof HotspotMakerModels diff --git a/src/makers/proton/antennas.ts b/src/makers/proton/antennas.ts new file mode 100755 index 00000000..95ff347d --- /dev/null +++ b/src/makers/proton/antennas.ts @@ -0,0 +1,9 @@ +import { MakerAntenna } from '../antennaMakerTypes' + +const ATOM_EU = { + name: 'Proton Hotspot Miner (EU 868)', + gain: 1, +} as MakerAntenna + + +export default { ATOM_EU } diff --git a/src/makers/proton/hotspot.svg b/src/makers/proton/hotspot.svg new file mode 100755 index 00000000..6fbf99bc --- /dev/null +++ b/src/makers/proton/hotspot.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/makers/proton/hotspots.ts b/src/makers/proton/hotspots.ts new file mode 100755 index 00000000..c5ae2860 --- /dev/null +++ b/src/makers/proton/hotspots.ts @@ -0,0 +1,68 @@ +import HotspotIcon from './hotspot.svg' +import { MakerHotspot } from '../hotspotMakerTypes' +import ANTENNAS from './antennas' + +const Proton = { + name: 'Proton', + icon: HotspotIcon, + onboardType: 'BLE', + translations: { + en: { + diagnostic: + 'Diagnostic support allows ATOM to identify issues with your Hotspot in a secure way.\n\nATOM will never have access to private keys and will only ever be able to access your Hotspot and not any other devices on your Network.\n\nIf you would like to opt-out of diagnostic support please email support@atomdesign.io from the email used to purchase the Hotspot.', + power: [ + 'Attach the antenna to the SMA antenna connector and plug the provided 5V-3A power adapter to the connector.', + 'The device will power on automatically.', + ], + bluetooth: [ + 'Press the button on the back of Proton for 1 second.', + 'Make sure your phone has turned on the bluetooth pairing mode and select the Proton from the device list.', + ], + }, + ja: { + // TODO: Translate strings for diagnostic, power, and bluetooth + }, + ko: { + // TODO: Translate strings for diagnostic, power, and bluetooth + }, + zh: { + // TODO: Translate strings for diagnostic, power, and bluetooth + }, + }, + antenna: { + // us: ANTENNAS.ATOM_EU, + default: ANTENNAS.ATOM_EU, + }, +} as MakerHotspot + +// const ExampleHotspotQR = { +// name: 'Example Hotspot', +// icon: HotspotIcon, +// onboardType: 'QR', +// translations: { +// en: { +// diagnostic: +// 'Diagnostic support allows Example Maker to identify issues with your Hotspot in a secure way.\n\nExample Maker will never have access to private keys and will only ever be able to access your Hotspot and not any other devices on your Network.\n\nIf you would like to opt-out of diagnostic support please email support@helium.com from the email used to purchase the Hotspot.', +// power: [ +// 'Attach the antenna and plug in the provided power adapter.', +// 'Your Hotspot will boot up, and its light will become Green when ready.', +// ], +// externalOnboard: 'Visit maker dashboard to generate a QR-code', +// }, +// ja: { +// // TODO: Translate strings for diagnostic, power, and bluetooth +// }, +// ko: { +// // TODO: Translate strings for diagnostic, power, and bluetooth +// }, +// zh: { +// // TODO: Translate strings for diagnostic, power, and bluetooth +// }, +// }, +// antenna: { +// us: ANTENNAS.EXAMPLE_US, +// default: ANTENNAS.EXAMPLE_EU, +// }, +// } as MakerHotspot + +export default { Proton } diff --git a/src/makers/proton/index.ts b/src/makers/proton/index.ts new file mode 100755 index 00000000..7aca2ec0 --- /dev/null +++ b/src/makers/proton/index.ts @@ -0,0 +1,9 @@ +import antennas from './antennas' +import hotspots from './hotspots' + +export default { + antennas, + hotspots, + id: 99999, // TODO: Get maker id from onboarding server + supportEmail: 'support@atomdesign.io', +}