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:
parent
8b0eb71d69
commit
a85f0058ee
17 changed files with 440 additions and 132 deletions
15
gruntfile.js
15
gruntfile.js
|
@ -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: ''
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue