forked from cerc-io/laconic-console
Version check and sorting.
This commit is contained in:
@@ -2,30 +2,28 @@
|
||||
# Copyright 2020 DxOS.org
|
||||
#
|
||||
|
||||
type JSONResult {
|
||||
json: String!
|
||||
}
|
||||
|
||||
type Log {
|
||||
log: [String]!
|
||||
}
|
||||
|
||||
type Status {
|
||||
timestamp: String!
|
||||
version: String!
|
||||
}
|
||||
|
||||
type Result {
|
||||
timestamp: String!
|
||||
code: Int!
|
||||
}
|
||||
|
||||
type Log {
|
||||
timestamp: String!
|
||||
log: [String]!
|
||||
}
|
||||
|
||||
# TODO(burdon): Generic result.
|
||||
type JSONResult {
|
||||
timestamp: String!
|
||||
json: String!
|
||||
}
|
||||
|
||||
#
|
||||
# Schema
|
||||
#
|
||||
|
||||
type Query {
|
||||
system_status: Status!
|
||||
system_status: JSONResult!
|
||||
ipfs_status: JSONResult!
|
||||
wns_status: JSONResult!
|
||||
# TODO(burdon): Import WNS schema!
|
||||
|
||||
@@ -5,8 +5,6 @@
|
||||
import debug from 'debug';
|
||||
import IpfsHttpClient from 'ipfs-http-client';
|
||||
|
||||
import { version } from '../package.json';
|
||||
|
||||
const log = debug('dxos:console:server:resolvers');
|
||||
|
||||
const timestamp = () => new Date().toUTCString();
|
||||
@@ -39,7 +37,11 @@ export const createResolvers = config => ({
|
||||
|
||||
system_status: () => ({
|
||||
timestamp: timestamp(),
|
||||
version
|
||||
json: JSON.stringify({
|
||||
dxos: {
|
||||
image: '0.0.1'
|
||||
}
|
||||
})
|
||||
}),
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user