feat: create add machine page
This commit is contained in:
parent
b1b8b82260
commit
2b71c08444
7 changed files with 350 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ const transactions = require('../transactions')
|
|||
const funding = require('../funding')
|
||||
const supervisor = require('../supervisor')
|
||||
const serverLogs = require('../server-logs')
|
||||
const pairing = require('../pairing')
|
||||
const { accounts, coins, countries, currencies, languages } = require('../config')
|
||||
|
||||
// TODO why does server logs messages can be null?
|
||||
|
|
@ -186,6 +187,7 @@ const typeDefs = gql`
|
|||
machineSupportLogs(deviceId: ID!): SupportLogsResponse
|
||||
serverSupportLogs: SupportLogsResponse
|
||||
saveConfig(config: JSONObject): JSONObject
|
||||
createPairingTotem(name: String!): String
|
||||
}
|
||||
`
|
||||
|
||||
|
|
@ -215,6 +217,7 @@ const resolvers = {
|
|||
Mutation: {
|
||||
machineAction: (...[, { deviceId, action }]) => machineAction({ deviceId, action }),
|
||||
machineSupportLogs: (...[, { deviceId }]) => supportLogs.insert(deviceId),
|
||||
createPairingTotem: (...[, { name }]) => pairing.totem(name),
|
||||
serverSupportLogs: () => serverLogs.insert(),
|
||||
saveConfig: (...[, { config }]) => settingsLoader.saveConfig(config)
|
||||
.then(it => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue