mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
refactor(containers): replace containers datatable with react component [EE-1815] (#6059)
This commit is contained in:
parent
65821aaccc
commit
07e7fbd270
80 changed files with 3614 additions and 1084 deletions
|
@ -24,26 +24,6 @@ angular.module('portainer.docker').factory('Container', [
|
|||
method: 'GET',
|
||||
params: { action: 'json' },
|
||||
},
|
||||
stop: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'stop' },
|
||||
},
|
||||
restart: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'restart' },
|
||||
},
|
||||
kill: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'kill' },
|
||||
},
|
||||
pause: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'pause' },
|
||||
},
|
||||
unpause: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'unpause' },
|
||||
},
|
||||
logs: {
|
||||
method: 'GET',
|
||||
params: { id: '@id', action: 'logs' },
|
||||
|
@ -60,27 +40,12 @@ angular.module('portainer.docker').factory('Container', [
|
|||
params: { id: '@id', action: 'top' },
|
||||
ignoreLoadingBar: true,
|
||||
},
|
||||
start: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'start' },
|
||||
transformResponse: genericHandler,
|
||||
},
|
||||
create: {
|
||||
method: 'POST',
|
||||
params: { action: 'create' },
|
||||
transformResponse: genericHandler,
|
||||
ignoreLoadingBar: true,
|
||||
},
|
||||
remove: {
|
||||
method: 'DELETE',
|
||||
params: { id: '@id', v: '@v', force: '@force' },
|
||||
transformResponse: genericHandler,
|
||||
},
|
||||
rename: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'rename', name: '@name' },
|
||||
transformResponse: genericHandler,
|
||||
},
|
||||
exec: {
|
||||
method: 'POST',
|
||||
params: { id: '@id', action: 'exec' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue