Skip to content

Commit

Permalink
feat: Move sites definition into common extension - MEED-2811 - Meeds…
Browse files Browse the repository at this point in the history
…-io/MIPs#100

This change will move sites pages definition into sites.war extension to centralize the configuration of sites which will improve the maintainability and evolutivity.
  • Loading branch information
boubaker authored and exo-swf committed Nov 9, 2023
1 parent 709dd57 commit 8a5bd30
Show file tree
Hide file tree
Showing 16 changed files with 3,167 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2022 Meeds Association
[email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/gatein_objects_1_8 http://www.exoplatform.org/xml/ns/gatein_objects_1_8" xmlns="http://www.exoplatform.org/xml/ns/gatein_objects_1_8">
<name></name>
<container
id="topAnalyticsPage"
template="system:/groovy/portal/webui/container/UIContainer.gtmpl"
cssClass="singlePageApplication border-box-sizing">
<access-permissions>Everyone</access-permissions>
<container id="breadcrumbAnalytics" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>Everyone</access-permissions>
<portlet-application>
<portlet>
<application-ref>analytics</application-ref>
<portlet-ref>AnalyticsDashboardBreadcrumb</portlet-ref>
</portlet>
<title>Breadcrumb Analytics</title>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container cssClass="analyticsPageRow" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>Everyone</access-permissions>
<portlet-application>
<portlet>
<application-ref>analytics</application-ref>
<portlet-ref>AnalyticsPortlet</portlet-ref>
</portlet>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>analytics</application-ref>
<portlet-ref>AnalyticsPortlet</portlet-ref>
</portlet>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container cssClass="analyticsPageRow" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>Everyone</access-permissions>
<portlet-application>
<portlet>
<application-ref>analytics</application-ref>
<portlet-ref>AnalyticsPortlet</portlet-ref>
</portlet>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>analytics</application-ref>
<portlet-ref>AnalyticsPortlet</portlet-ref>
</portlet>
<access-permissions>Everyone</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
</container>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<page
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_2 http://www.gatein.org/xml/ns/gatein_objects_1_2"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_2">
<owner-type/>
<owner-id/>
<name/>
<container id="SpaceMenu" template="system:/groovy/portal/webui/container/UITableColumnContainer.gtmpl">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceMenuPortlet</portlet-ref>
</portlet>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container id="SpaceApplications" template="system:/groovy/portal/webui/container/UITableColumnContainer.gtmpl">
<container id="ActivityStreamPortlet" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceActivityStreamPortlet</portlet-ref>
</portlet>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
</container>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright (C) 2003-2007 eXo Platform SAS.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, see<http://www.gnu.org/licenses/>.
-->
<page
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_2 http://www.gatein.org/xml/ns/gatein_objects_1_2"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_2">
<owner-type></owner-type>
<owner-id></owner-id>
<name></name>
<container id="SpacePage" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<container id="Menu" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceMenuPortlet</portlet-ref>
</portlet>
<access-permissions>*:/platform/users</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container id="Application" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
</container>
</container>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2023 Meeds Association [email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.exoplatform.org/xml/ns/gatein_objects_1_8 http://www.exoplatform.org/xml/ns/gatein_objects_1_8"
xmlns="http://www.exoplatform.org/xml/ns/gatein_objects_1_8">
<owner-type/>
<owner-id/>
<name/>
<container id="Menu" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceMenuPortlet</portlet-ref>
</portlet>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container id="StreamPage" template="system:/groovy/portal/webui/container/UIMobileSwipeContainer.gtmpl">
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<container id="StreamMainContainer" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceActivityStreamPortlet</portlet-ref>
</portlet>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container id="StreamRightContainer" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<container id="SpaceInfos" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>SpaceInfos</portlet-ref>
</portlet>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container id="stickyBlockDesktop" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<container id="SpaceHomePortlets" template="system:/groovy/portal/webui/container/UIColumnContainer.gtmpl">
<container id="OnlineUsers" template="system:/groovy/portal/webui/container/UIContainer.gtmpl">
<portlet-application>
<portlet>
<application-ref>social-portlet</application-ref>
<portlet-ref>WhoIsOnLinePortlet</portlet-ref>
</portlet>
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
<show-info-bar>false</show-info-bar>
</portlet-application>
</container>
<container id="space-home-widgets-container" template="system:/groovy/portal/webui/container/UIAddOnContainer.gtmpl">
<name>space-home-widgets-container</name>
<factory-id>addonContainer</factory-id>
</container>
</container>
</container>
</container>
</container>
</page>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2022 Meeds Association [email protected]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<node-navigation
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_6 http://www.gatein.org/xml/ns/gatein_objects_1_6"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_6">
<priority>2</priority>

<page-nodes>
<node>
<name>usersManagement</name>
<label>#{administration.usersManagement}</label>
<page-reference>group::/platform/administrators::usersManagement</page-reference>
</node>
<node>
<name>groupsManagement</name>
<label>#{administration.groupsManagement}</label>
<page-reference>group::/platform/administrators::groupsManagement</page-reference>
</node>
<node>
<name>membershipsManagement</name>
<label>#{administration.membershipsManagement}</label>
<page-reference>group::/platform/administrators::membershipsManagement</page-reference>
</node>
<node>
<name>profileManagement</name>
<label>#{administration.profileManagement}</label>
<page-reference>group::/platform/administrators::profileManagement</page-reference>
</node>
<node>
<name>generalSettings</name>
<label>#{administration.generalSettings}</label>
<page-reference>group::/platform/administrators::generalSettings</page-reference>
</node>
<node>
<name>notification</name>
<label>#{administration.notification}</label>
<page-reference>group::/platform/administrators::notification</page-reference>
</node>
<node>
<name>appCenterAdminSetup</name>
<label>#{administration.appCenterAdminSetup}</label>
<page-reference>group::/platform/administrators::appCenterAdminSetup</page-reference>
</node>
</page-nodes>
</node-navigation>
Loading

0 comments on commit 8a5bd30

Please sign in to comment.