1
0
Fork 0
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:
Chaim Lev-Ari 2022-01-04 14:16:09 +02:00 committed by GitHub
parent 65821aaccc
commit 07e7fbd270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
80 changed files with 3614 additions and 1084 deletions

View file

@ -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' },