Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] Add Proton maker (atom) #1222

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/makers/index.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, { id: number; supportEmail: string }> = {
PantherX,
Expand All @@ -50,6 +51,7 @@ export const Makers: Record<string, { id: number; supportEmail: string }> = {
milesight,
midas,
deepernetwork,
proton
}

export const AntennaModels = {
Expand Down Expand Up @@ -78,6 +80,7 @@ export const AntennaModels = {
...milesight.antennas,
...midas.antennas,
...deepernetwork.antennas,
...proton.antennas
}

export const HotspotMakerModels = {
Expand All @@ -104,6 +107,7 @@ export const HotspotMakerModels = {
...milesight.hotspots,
...midas.hotspots,
...deepernetwork.hotspots,
...proton.hotspots
}

export type HotspotType = keyof typeof HotspotMakerModels
Expand Down
9 changes: 9 additions & 0 deletions src/makers/proton/antennas.ts
Original file line number Diff line number Diff line change
@@ -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 }
62 changes: 62 additions & 0 deletions src/makers/proton/hotspot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions src/makers/proton/hotspots.ts
Original file line number Diff line number Diff line change
@@ -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:
'<b><white>Diagnostic support allows ATOM to identify issues with your Hotspot in a secure way.</white></b>\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 <purple><b>[email protected]</b></purple> 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:
// '<b><white>Diagnostic support allows Example Maker to identify issues with your Hotspot in a secure way.</white></b>\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 <purple><b>[email protected]</b></purple> 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 }
9 changes: 9 additions & 0 deletions src/makers/proton/index.ts
Original file line number Diff line number Diff line change
@@ -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: '[email protected]',
}