Skip to content

[DNM] Added OPTION as a maker #1175

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

Open
wants to merge 7 commits 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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import hummingbird from './hummingbird'
import merryIoT from './merryIoT'
import milesight from './milesight'
import deepernetwork from './deepernetwork'
import option from './option'
import { LangType, supportedLangs } from '../utils/i18n/i18nTypes'
import { HotspotMakerLangField } from './hotspotMakerTypes'

Expand All @@ -48,6 +49,7 @@ export const Makers: Record<string, { id: number; supportEmail: string }> = {
merryIoT,
milesight,
deepernetwork,
option,
}

export const AntennaModels = {
Expand Down Expand Up @@ -75,6 +77,7 @@ export const AntennaModels = {
...merryIoT.antennas,
...milesight.antennas,
...deepernetwork.antennas,
...option.antennas,
}

export const HotspotMakerModels = {
Expand All @@ -100,6 +103,7 @@ export const HotspotMakerModels = {
...merryIoT.hotspots,
...milesight.hotspots,
...deepernetwork.hotspots,
...option.hotspots,
}

export type HotspotType = keyof typeof HotspotMakerModels
Expand Down
8 changes: 8 additions & 0 deletions src/makers/option/antennas.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { MakerAntenna } from '../antennaMakerTypes'

const CLOUDGATE = {
name: 'CloudGate',
gain: 1,
} as MakerAntenna

export default { CLOUDGATE }
1 change: 1 addition & 0 deletions src/makers/option/cloudgate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/makers/option/hotspots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import HotspotIcon from './cloudgate.svg'
import { MakerHotspot } from '../hotspotMakerTypes'
import ANTENNAS from './antennas'

const CloudGate = {
name: 'CloudGate Hotspot',
icon: HotspotIcon,
onboardType: 'QR',
onboardUrl: 'https://cloudgateuniverse.com/',
translations: {
en: {
diagnostic:
'<b><white>Diagnostic support allows CloudGate to identify issues with your Hotspot in a secure way.</white></b>\nCloudGate 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.',
'The CloudGate LEDs will light up once it’s powered on.',
],
externalOnboard: 'Visit the local management-console for QR-code',
},
},
antenna: { default: ANTENNAS.CLOUDGATE },
} as MakerHotspot

export default { CloudGate }
9 changes: 9 additions & 0 deletions src/makers/option/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: 26,
supportEmail: '[email protected]',
}