forked from cerc-io/laconic-console
Fix several formatting issues.
This commit is contained in:
parent
77cb5c6267
commit
ee03a9e97b
@ -1,5 +1,6 @@
|
|||||||
name: dxos.network/console-app
|
name: dxos.network/console-moon
|
||||||
displayName: Kubenet Console Client
|
displayName: Kubenet Console Client
|
||||||
build: yarn dist
|
build: yarn dist
|
||||||
version: 0.0.6
|
version: 0.0.16
|
||||||
package: QmZpM8u7ZUfQpXLgtdB1ug7nGExUrXhebtTSfSBPrRwcLX
|
package:
|
||||||
|
/: Qme8aGPrvs6TzgeQGoDpGb46jpvg5pLb71Fg91YFBPgz5K
|
||||||
|
@ -54,10 +54,9 @@ const AppRecords = () => {
|
|||||||
return (
|
return (
|
||||||
<TableRow key={id} size='small'>
|
<TableRow key={id} size='small'>
|
||||||
<TableCell monospace>
|
<TableCell monospace>
|
||||||
{names.map(wrn => <>
|
{names.map(wrn => <div>
|
||||||
<AppLink config={config} wrn={wrn} />
|
<AppLink config={config} wrn={wrn} />
|
||||||
<br />
|
</div>
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell monospace>
|
<TableCell monospace>
|
||||||
|
@ -22,7 +22,7 @@ const BotRecords = () => {
|
|||||||
const [sorter, sortBy] = useSorter('createTime', false);
|
const [sorter, sortBy] = useSorter('createTime', false);
|
||||||
const data = useQueryStatusReducer(useQuery(WNS_RECORDS, {
|
const data = useQueryStatusReducer(useQuery(WNS_RECORDS, {
|
||||||
pollInterval: config.api.intervalQuery,
|
pollInterval: config.api.intervalQuery,
|
||||||
variables: { attributes: { type: 'bot' } }
|
variables: { attributes: { type: 'wrn:bot' } }
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@ -46,7 +46,7 @@ const BotRecords = () => {
|
|||||||
{records.sort(sorter).map(({ id, names, createTime, attributes: { name: displayName, version } }) => {
|
{records.sort(sorter).map(({ id, names, createTime, attributes: { name: displayName, version } }) => {
|
||||||
return (
|
return (
|
||||||
<TableRow key={id} size='small'>
|
<TableRow key={id} size='small'>
|
||||||
<TableCell monospace>{names}</TableCell>
|
<TableCell monospace>{names.map(name => <div>{name}</div>)}</TableCell>
|
||||||
<TableCell monospace>{version}</TableCell>
|
<TableCell monospace>{version}</TableCell>
|
||||||
<TableCell>{displayName}</TableCell>
|
<TableCell>{displayName}</TableCell>
|
||||||
<TableCell>{moment.utc(createTime).fromNow()}</TableCell>
|
<TableCell>{moment.utc(createTime).fromNow()}</TableCell>
|
||||||
|
@ -106,10 +106,10 @@ const WNSRecords = ({ type }) => {
|
|||||||
if (type === 'wrn:app') {
|
if (type === 'wrn:app') {
|
||||||
appLinks = (
|
appLinks = (
|
||||||
<>
|
<>
|
||||||
{names.map(wrn => <>
|
{names.map(wrn =>
|
||||||
|
<div>
|
||||||
<AppLink config={config} wrn={wrn} />
|
<AppLink config={config} wrn={wrn} />
|
||||||
<br />
|
</div>
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
@ -119,7 +119,7 @@ const WNSRecords = ({ type }) => {
|
|||||||
<TableRow key={id} size='small'>
|
<TableRow key={id} size='small'>
|
||||||
<TableCell monospace>{type}</TableCell>
|
<TableCell monospace>{type}</TableCell>
|
||||||
<TableCell monospace>
|
<TableCell monospace>
|
||||||
{appLinks || names}
|
{appLinks || names.map(name => <div>{name}</div>)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell monospace>
|
<TableCell monospace>
|
||||||
{version}
|
{version}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"build": {
|
"build": {
|
||||||
"name": "@dxos/console-app",
|
"name": "@dxos/console-app",
|
||||||
"buildDate": "2020-08-18T23:56:32.818Z",
|
"buildDate": "2020-08-20T22:12:45.569Z",
|
||||||
"version": "1.0.0-beta.24"
|
"version": "1.0.0-moon.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user