Feat: make dashboard and machine profile page
This commit is contained in:
parent
d17ca43abb
commit
19cd086436
54 changed files with 11680 additions and 2611 deletions
|
|
@ -16,12 +16,15 @@ const machineEventsByIdBatch = require("../../postgresql_interface").machineEven
|
|||
const couponManager = require('../../coupons')
|
||||
|
||||
const serverVersion = require('../../../package.json').version
|
||||
|
||||
const transactions = require('../transactions')
|
||||
const funding = require('../funding')
|
||||
const supervisor = require('../supervisor')
|
||||
const serverLogs = require('../server-logs')
|
||||
const pairing = require('../pairing')
|
||||
|
||||
const plugins = require('../../plugins')
|
||||
const ticker = require('../../ticker')
|
||||
|
||||
const {
|
||||
accounts: accountsConfig,
|
||||
coins,
|
||||
|
|
@ -237,6 +240,10 @@ const typeDefs = gql`
|
|||
created: Date
|
||||
age: Float
|
||||
deviceTime: Date
|
||||
type Rate {
|
||||
code: String
|
||||
name: String
|
||||
rate: Float
|
||||
}
|
||||
|
||||
type Query {
|
||||
|
|
@ -256,12 +263,19 @@ const typeDefs = gql`
|
|||
uptime: [ProcessStatus]
|
||||
serverLogs(from: Date, until: Date, limit: Int, offset: Int): [ServerLog]
|
||||
serverLogsCsv(from: Date, until: Date, limit: Int, offset: Int): String
|
||||
transactions(from: Date, until: Date, limit: Int, offset: Int): [Transaction]
|
||||
transactions(
|
||||
from: Date
|
||||
until: Date
|
||||
limit: Int
|
||||
offset: Int
|
||||
id: ID
|
||||
): [Transaction]
|
||||
transactionsCsv(from: Date, until: Date, limit: Int, offset: Int): String
|
||||
accounts: JSONObject
|
||||
config: JSONObject
|
||||
blacklist: [Blacklist]
|
||||
# userTokens: [UserToken]
|
||||
<<<<<<< HEAD
|
||||
coupons: [Coupon]
|
||||
}
|
||||
|
||||
|
|
@ -269,6 +283,10 @@ const typeDefs = gql`
|
|||
id: ID!
|
||||
timestamp: Date!
|
||||
deviceId: ID
|
||||
=======
|
||||
rates: JSONObject
|
||||
btcRates(to: String, from: String): [Rate]
|
||||
>>>>>>> 9d88b4f... Feat: make dashboard and machine profile page
|
||||
}
|
||||
|
||||
enum MachineAction {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue