mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-03 04:26:39 +00:00
Stop using table map feature
This commit is contained in:
parent
19e151e521
commit
57c86f920c
@ -33,20 +33,25 @@ exports.list = permissions.user ->
|
|||||||
resin.models.application.getAll (error, applications) ->
|
resin.models.application.getAll (error, applications) ->
|
||||||
errors.handle(error) if error?
|
errors.handle(error) if error?
|
||||||
|
|
||||||
log.out ui.widgets.table.horizontal applications, (application) ->
|
log.out ui.widgets.table.horizontal applications, _.identity, [
|
||||||
application.device_type = application.device_display_name
|
'ID'
|
||||||
application.all_devices = application.devices_length
|
'Name'
|
||||||
return application
|
'Device Display Name'
|
||||||
, [ 'ID', 'Name', 'Device Type', 'Online Devices', 'All Devices' ]
|
'Online Devices'
|
||||||
|
'Devices Length'
|
||||||
|
]
|
||||||
|
|
||||||
exports.info = permissions.user (params) ->
|
exports.info = permissions.user (params) ->
|
||||||
resin.models.application.get params.id, (error, application) ->
|
resin.models.application.get params.id, (error, application) ->
|
||||||
errors.handle(error) if error?
|
errors.handle(error) if error?
|
||||||
|
|
||||||
log.out ui.widgets.table.vertical application, (application) ->
|
log.out ui.widgets.table.vertical application, _.identity, [
|
||||||
application.device_type = application.device_display_name
|
'ID'
|
||||||
return application
|
'Name'
|
||||||
, [ 'ID', 'Name', 'Device Type', 'Git Repository', 'Commit' ]
|
'Device Display Name'
|
||||||
|
'Git Repository'
|
||||||
|
'Commit'
|
||||||
|
]
|
||||||
|
|
||||||
exports.restart = permissions.user (params) ->
|
exports.restart = permissions.user (params) ->
|
||||||
resin.models.application.restart params.id, (error) ->
|
resin.models.application.restart params.id, (error) ->
|
||||||
|
@ -16,10 +16,16 @@ exports.list = permissions.user ->
|
|||||||
example.id = index + 1
|
example.id = index + 1
|
||||||
return example
|
return example
|
||||||
|
|
||||||
log.out ui.widgets.table.horizontal examplesData, (example) ->
|
examplesData = _.map examplesData, (example) ->
|
||||||
example.author ?= 'Unknown'
|
example.author ?= 'Unknown'
|
||||||
return example
|
return example
|
||||||
, [ 'ID', 'Display Name', 'Repository', 'Author' ]
|
|
||||||
|
log.out ui.widgets.table.horizontal examplesData, _.identity, [
|
||||||
|
'ID'
|
||||||
|
'Display Name'
|
||||||
|
'Repository'
|
||||||
|
'Author'
|
||||||
|
]
|
||||||
|
|
||||||
exports.info = permissions.user (params) ->
|
exports.info = permissions.user (params) ->
|
||||||
id = params.id - 1
|
id = params.id - 1
|
||||||
@ -29,11 +35,10 @@ exports.info = permissions.user (params) ->
|
|||||||
error = new Error("Unknown example: #{id}")
|
error = new Error("Unknown example: #{id}")
|
||||||
errors.handle(error)
|
errors.handle(error)
|
||||||
|
|
||||||
log.out ui.widgets.table.vertical example, (example) ->
|
|
||||||
example.id = id
|
example.id = id
|
||||||
example.author ?= 'Unknown'
|
example.author ?= 'Unknown'
|
||||||
return example
|
|
||||||
, [
|
log.out ui.widgets.table.vertical example, _.identity, [
|
||||||
'ID'
|
'ID'
|
||||||
'Display Name'
|
'Display Name'
|
||||||
'Description'
|
'Description'
|
||||||
|
Loading…
Reference in New Issue
Block a user