1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(extensions): add the ability to upload and enable an extension (#3345)

* feat(extensions): offline mode mockup

* feat(extensions): offline mode mockup

* feat(api): add support for extensionUpload API operation

* feat(extensions): offline extension upload

* feat(api): better support for extensions in offline mode

* feat(extension): update offline description

* feat(api): introduce local extension manifest

* fix(api): fix LocalExtensionManifestFile value

* feat(api): use a 5second timeout for online extension infos

* feat(extensions): add download archive link

* feat(extensions): add support for offline update

* fix(api): fix issues with offline install and online updates of extensions

* fix(extensions): fix extensions link URL

* fix(extension): hide screenshot in offline mode
This commit is contained in:
Anthony Lapenna 2019-11-20 18:16:40 +13:00 committed by GitHub
parent 8b0eb71d69
commit a85f0058ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 440 additions and 132 deletions

View file

@ -44,12 +44,12 @@ module.exports = function(grunt) {
grunt.registerTask('build', [
'build:server',
'build:client',
'copy:templates'
'copy:assets'
]);
grunt.registerTask('start:server', [
'build:server',
'copy:templates',
'copy:assets',
'shell:run_container'
]);
@ -70,7 +70,7 @@ module.exports = function(grunt) {
'config:prod',
'env:prod',
'clean:all',
'copy:templates',
'copy:assets',
'shell:build_binary:' + p + ':' + a,
'shell:download_docker_binary:' + p + ':' + a,
'webpack:prod'
@ -83,7 +83,7 @@ module.exports = function(grunt) {
'config:prod',
'env:prod',
'clean:all',
'copy:templates',
'copy:assets',
'shell:build_binary_azuredevops:' + p + ':' + a,
'shell:download_docker_binary:' + p + ':' + a,
'webpack:prod'
@ -135,12 +135,17 @@ gruntfile_cfg.eslint = {
};
gruntfile_cfg.copy = {
templates: {
assets: {
files: [
{
dest: '<%= root %>/',
src: 'templates.json',
cwd: ''
},
{
dest: '<%= root %>/',
src: 'extensions.json',
cwd: ''
}
]
}