From 98cce0bd7d060da0a2834fc458108fbcd74a1a4f Mon Sep 17 00:00:00 2001 From: Houssem Ben Ali Date: Mon, 6 Nov 2023 14:43:18 +0100 Subject: [PATCH 1/3] SWF: Add PR CI Github workflow --- .github/workflows/buildci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/buildci.yml diff --git a/.github/workflows/buildci.yml b/.github/workflows/buildci.yml new file mode 100644 index 00000000..1c31433d --- /dev/null +++ b/.github/workflows/buildci.yml @@ -0,0 +1,12 @@ +name: CI PR Build +on: + pull_request: +jobs: + build-ci: + name: CI Build + uses: exoplatform/swf-scripts/.github/workflows/cibuild.yml@master + with: + maven_profiles: 'exo-release,coverage' + secrets: + NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} + NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} \ No newline at end of file From 2f53d99d71ad8d6c8120b964a90b0da7bbff2a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Mon, 6 Nov 2023 15:17:16 +0100 Subject: [PATCH 2/3] fix: Move agenda connectors extension in a group js - EXO-67332 Before this fix, agenda connectors are loaded with a dynamic container, present in all pages. As this container is not in the new administration site, the connectors are not loaded This commit creates a load-group for all aganda connectors. Addons defining new agenda connectors will have to put their js in this group --- .../dynamic-container-configuration.xml | 68 ------------------- .../webapp/WEB-INF/conf/configuration.xml | 3 - .../main/webapp/WEB-INF/gatein-resources.xml | 54 +++++++-------- .../src/main/webapp/WEB-INF/portlet.xml | 21 ------ .../main/webapp/html/agendaConnectors.html | 7 -- .../webapp/vue-app/agenda-connectors/main.js | 22 +++--- 6 files changed, 37 insertions(+), 138 deletions(-) delete mode 100644 agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/agenda-connectors/dynamic-container-configuration.xml delete mode 100644 agenda-connectors-webapp/src/main/webapp/WEB-INF/portlet.xml delete mode 100644 agenda-connectors-webapp/src/main/webapp/html/agendaConnectors.html diff --git a/agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/agenda-connectors/dynamic-container-configuration.xml b/agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/agenda-connectors/dynamic-container-configuration.xml deleted file mode 100644 index 31a2104e..00000000 --- a/agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/agenda-connectors/dynamic-container-configuration.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - org.exoplatform.commons.addons.AddOnService - - addPlugin - addPlugin - org.exoplatform.commons.addons.AddOnPluginImpl - - - - priority - 5 - - - containerName - bottom-all-container - - - agenda-connectors-portlet - - - - agenda-connectors/AgendaConnectors - - - - - *:/platform/users - - - *:/platform/externals - - - - - >Agenda Connectors Portlet - - - false - - - false - - - false - - - - - - - \ No newline at end of file diff --git a/agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/configuration.xml b/agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/configuration.xml index 68aa3d9c..97651086 100644 --- a/agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/configuration.xml +++ b/agenda-connectors-webapp/src/main/webapp/WEB-INF/conf/configuration.xml @@ -1,8 +1,5 @@ - war:/conf/agenda-connectors/agenda-connectors.xml - war:/conf/agenda-connectors/dynamic-container-configuration.xml - diff --git a/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml b/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml index 81ba3f77..bedfc64e 100644 --- a/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml +++ b/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml @@ -1,33 +1,31 @@ - - Agenda Connectors - AgendaConnectors + Enterprise /skin/css/agenda-connectors.css - - - AgendaConnectors - - - - extensionRegistry - - - eXoVueI18n - - - vue - - - vuetify - - - commonVueComponents - - - + 10 + + + AgendaConnectorsExtensions + AgendaConnectorsGRP + + + extensionRegistry + + + eXoVueI18n + + + vue + + + vuetify + + + commonVueComponents + + - \ No newline at end of file + diff --git a/agenda-connectors-webapp/src/main/webapp/WEB-INF/portlet.xml b/agenda-connectors-webapp/src/main/webapp/WEB-INF/portlet.xml deleted file mode 100644 index ac9d9801..00000000 --- a/agenda-connectors-webapp/src/main/webapp/WEB-INF/portlet.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - AgendaConnectors - Agenda Connectors Portlet - org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet - - portlet-view-dispatched-file-path - /html/agendaConnectors.html - - -1 - PUBLIC - - text/html - - - Agenda Connectors - Agenda Connectors - - - \ No newline at end of file diff --git a/agenda-connectors-webapp/src/main/webapp/html/agendaConnectors.html b/agenda-connectors-webapp/src/main/webapp/html/agendaConnectors.html deleted file mode 100644 index 3d3912f2..00000000 --- a/agenda-connectors-webapp/src/main/webapp/html/agendaConnectors.html +++ /dev/null @@ -1,7 +0,0 @@ -
-
- -
-
\ No newline at end of file diff --git a/agenda-connectors-webapp/src/main/webapp/vue-app/agenda-connectors/main.js b/agenda-connectors-webapp/src/main/webapp/vue-app/agenda-connectors/main.js index d2e10247..da7ae8f1 100644 --- a/agenda-connectors-webapp/src/main/webapp/vue-app/agenda-connectors/main.js +++ b/agenda-connectors-webapp/src/main/webapp/vue-app/agenda-connectors/main.js @@ -41,16 +41,6 @@ const vuetify = new Vuetify(eXo.env.portal.vuetifyPreset); const appId = 'AgendaConnectorsApplication'; -export function init() { - exoi18n.loadLanguageAsync(lang, url).then(i18n => { - // init Vue app when locale resources are ready - Vue.createApp({ - template: ``, - vuetify, - i18n - }, `#${appId}`, 'Agenda Connectors Settings'); - }); -} // get overridden components if exists if (extensionRegistry) { const components = extensionRegistry.loadComponents('AgendaConnectors'); @@ -60,4 +50,14 @@ if (extensionRegistry) { }); } } -Vue.use(Vuetify); \ No newline at end of file + +exoi18n.loadLanguageAsync(lang, url).then(i18n => { + // init Vue app when locale resources are ready + Vue.createApp({ + template: ``, + vuetify, + i18n + }, `#${appId}`, 'Agenda Connectors Settings'); +}); + +Vue.use(Vuetify); From 4b4e2999594ccb0ada34697051106f41d23b613d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20D=C3=A9nari=C3=A9?= Date: Wed, 8 Nov 2023 11:50:00 +0100 Subject: [PATCH 3/3] fix: Access to edit page layout is not working. Before this fix, a lot of page were not working due to missing css Core-min.js in eXo Skin In fact, this css was not load because as we didnt add skin-module in gatein-resources for the agenda-connector css, it automatically take 'Core', and erase the eXkin one. This commit completly remove the css definition as the less file is empty. --- .../src/main/webapp/WEB-INF/gatein-resources.xml | 5 ----- .../src/main/webapp/skin/less/agenda-connectors.less | 2 -- 2 files changed, 7 deletions(-) delete mode 100644 agenda-connectors-webapp/src/main/webapp/skin/less/agenda-connectors.less diff --git a/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml b/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml index bedfc64e..56137681 100644 --- a/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml +++ b/agenda-connectors-webapp/src/main/webapp/WEB-INF/gatein-resources.xml @@ -1,10 +1,5 @@ - - Enterprise - /skin/css/agenda-connectors.css - 10 - AgendaConnectorsExtensions AgendaConnectorsGRP diff --git a/agenda-connectors-webapp/src/main/webapp/skin/less/agenda-connectors.less b/agenda-connectors-webapp/src/main/webapp/skin/less/agenda-connectors.less deleted file mode 100644 index da846af8..00000000 --- a/agenda-connectors-webapp/src/main/webapp/skin/less/agenda-connectors.less +++ /dev/null @@ -1,2 +0,0 @@ -@import "variables.less"; -@import "mixins.less"; \ No newline at end of file