From 2c86111d306cc24bbb3b2df8518c1d14c7fe9236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Tue, 18 Jun 2024 15:19:34 +0200 Subject: [PATCH] Apply Sring configuration on app-center - meeds-io/MIPs#132 (#102) --- .../src/main/resources/applications.json | 21 +++++ .../webapp/WEB-INF/conf/configuration.xml | 1 - .../time-tracker/app-center-configuration.xml | 76 ------------------- 3 files changed, 21 insertions(+), 77 deletions(-) create mode 100644 time-tracker-services/src/main/resources/applications.json delete mode 100644 time-tracker-webapps/src/main/webapp/WEB-INF/conf/time-tracker/app-center-configuration.xml diff --git a/time-tracker-services/src/main/resources/applications.json b/time-tracker-services/src/main/resources/applications.json new file mode 100644 index 0000000..38fd8ed --- /dev/null +++ b/time-tracker-services/src/main/resources/applications.json @@ -0,0 +1,21 @@ +{ + "descriptors": [ + { + "name": "TimeSheet", + "imagePath": "war:/../images/timesheet.png", + "override": false, + "enabled": true, + "application": { + "title": "Time Sheet", + "description": "Time Sheet", + "url": "./time_sheet", + "active": true, + "mandatory": true, + "mobile": true, + "permissions": [ + "*:/spaces/exo_employees" + ] + } + } + ] +} diff --git a/time-tracker-webapps/src/main/webapp/WEB-INF/conf/configuration.xml b/time-tracker-webapps/src/main/webapp/WEB-INF/conf/configuration.xml index 553eb69..c630dbd 100644 --- a/time-tracker-webapps/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/time-tracker-webapps/src/main/webapp/WEB-INF/conf/configuration.xml @@ -28,6 +28,5 @@ war:/conf/time-tracker/portal/portal-configuration.xml war:/conf/time-tracker/organization/organization-configuration.xml war:/conf/time-tracker/portal/dynamic-container-configuration.xml - war:/conf/time-tracker/app-center-configuration.xml diff --git a/time-tracker-webapps/src/main/webapp/WEB-INF/conf/time-tracker/app-center-configuration.xml b/time-tracker-webapps/src/main/webapp/WEB-INF/conf/time-tracker/app-center-configuration.xml deleted file mode 100644 index e0861c0..0000000 --- a/time-tracker-webapps/src/main/webapp/WEB-INF/conf/time-tracker/app-center-configuration.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - org.exoplatform.appcenter.service.ApplicationCenterService - - Tasks - addApplicationPlugin - org.exoplatform.appcenter.plugin.ApplicationPlugin - - - imagePath - war:/../images/timesheet.png - - - override - ${exo.time-tracker.ts.override:true} - - - override-mode - ${exo.time-tracker.ts.override-mode:merge} - - - application - description - - - Time Sheet - - - ./time_sheet - - - Time Sheet application - - - - - *:/spaces/exo_employees - - - - - true - - - true - - - true - - - - - - -