From de13ddb45fb84361d9cbc1b1a61601edf4d2399d Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Mon, 13 May 2024 13:29:21 +0100 Subject: [PATCH] feat: Update AppCenter Data injection to use JSON - MEED-6794 - Meeds-io/MIPs#132 Prior to this change, App Center Data was injected at startup time using XML file. This change will introduce AppCenter applications using JSON format. --- services/src/main/resources/applications.json | 22 ++++++ .../webapp/WEB-INF/conf/configuration.xml | 2 - .../task-addon/app-center-configuration.xml | 73 ------------------- 3 files changed, 22 insertions(+), 75 deletions(-) create mode 100644 services/src/main/resources/applications.json delete mode 100644 webapps/src/main/webapp/WEB-INF/conf/task-addon/app-center-configuration.xml diff --git a/services/src/main/resources/applications.json b/services/src/main/resources/applications.json new file mode 100644 index 000000000..9617a6ba1 --- /dev/null +++ b/services/src/main/resources/applications.json @@ -0,0 +1,22 @@ +{ + "descriptors": [ + { + "name": "Tasks", + "imagePath": "war:/../images/tasks.png", + "override": false, + "enabled": true, + "application": { + "title": "Tasks", + "description": "Tasks application", + "url": "./tasks", + "active": true, + "isMandatory": false, + "isMobile": true, + "permissions": [ + "*:/platform/users", + "*:/platform/externals" + ] + } + } + ] +} diff --git a/webapps/src/main/webapp/WEB-INF/conf/configuration.xml b/webapps/src/main/webapp/WEB-INF/conf/configuration.xml index 377c27cb8..a53d54c6d 100644 --- a/webapps/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/webapps/src/main/webapp/WEB-INF/conf/configuration.xml @@ -26,9 +26,7 @@ war:/conf/task-addon/spaces-templates-configuration.xml war:/conf/task-addon/ckeditor-configuration.xml - war:/conf/task-addon/app-center-configuration.xml war:/conf/task-addon/analytics-configuration.xml - war:/conf/task-addon/gamification-integration-configuration.xml diff --git a/webapps/src/main/webapp/WEB-INF/conf/task-addon/app-center-configuration.xml b/webapps/src/main/webapp/WEB-INF/conf/task-addon/app-center-configuration.xml deleted file mode 100644 index d3e3cb139..000000000 --- a/webapps/src/main/webapp/WEB-INF/conf/task-addon/app-center-configuration.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - org.exoplatform.appcenter.service.ApplicationCenterService - - Tasks - addApplicationPlugin - org.exoplatform.appcenter.plugin.ApplicationPlugin - - - imagePath - war:/../images/tasks.png - - - override - ${exo.app-center.tasks.override:false} - - - override-mode - ${exo.app-center.tasks.override-mode:merge} - - - application - description - - - Tasks - - - ./tasks - - - Tasks application - - - - - *:/platform/users - - - *:/platform/externals - - - - - true - - - true - - - - - - -