Skip to content

Commit

Permalink
feat: Add Spaces Default Page Templates - #2583 #2584 #2586 #2587 #2588
Browse files Browse the repository at this point in the history
… (#2589)

Resolves #2583 #2584 #2586 #2587 #2588
  • Loading branch information
boubaker authored Nov 15, 2024
1 parent aa7894a commit 94abf11
Show file tree
Hide file tree
Showing 12 changed files with 364 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ layout.pageTemplate.analytics.description=Analytics page with applications to me
layout.pageTemplate.category.default=Default
layout.pageTemplate.category.blank=Blank
layout.pageTemplate.category.customized=Customized
layout.pageTemplate.spaceMembers.title=Space Members App
layout.pageTemplate.spaceMembers.description=List & manage members of your workspace
layout.pageTemplate.spaceContribute.title=Space Contribute App
layout.pageTemplate.spaceContribute.description=Suggest actions and list contributions of your team, community
layout.pageTemplate.spaceNotes.title=Space Notes App
layout.pageTemplate.spaceNotes.description=Organize notes of your workspace
layout.pageTemplate.spaceTasks.title=Space Tasks App
layout.pageTemplate.spaceTasks.description=Manage Task Projects of your workspace
layout.pageTemplate.spaceSettings.title=Space Settings App
layout.pageTemplate.spaceSettings.description=List settings for configuring and customizing the space

65 changes: 65 additions & 0 deletions webapps/plf-sites-extension/src/main/resources/page-templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,71 @@
"system": true,
"illustrationPath":"war:/../images/pages/template/analytics.png",
"layoutPath":"war:/conf/portal/template/pages/analytics/page.xml"
}, {
"id":"spaceMembers",
"order":50,
"names":{
"en":"layout.pageTemplate.spaceMembers.title"
},
"descriptions":{
"en":"layout.pageTemplate.spaceMembers.description"
},
"category": "default",
"system": true,
"illustrationPath":"war:/../images/pages/template/SpaceMembers.webp",
"layoutPath":"war:/conf/portal/template/pages/spaceMembers/page.xml"
}, {
"id":"spaceContribute",
"order":60,
"names":{
"en":"layout.pageTemplate.spaceContribute.title"
},
"descriptions":{
"en":"layout.pageTemplate.spaceContribute.description"
},
"category": "default",
"system": true,
"illustrationPath":"war:/../images/pages/template/SpaceContribute.webp",
"layoutPath":"war:/conf/portal/template/pages/spaceContribute/page.xml"
}, {
"id":"spaceNotes",
"order":70,
"names":{
"en":"layout.pageTemplate.spaceNotes.title"
},
"descriptions":{
"en":"layout.pageTemplate.spaceNotes.description"
},
"category": "default",
"system": true,
"illustrationPath":"war:/../images/pages/template/SpaceNotes.webp",
"layoutPath":"war:/conf/portal/template/pages/spaceNotes/page.xml"
}, {
"id":"spaceTasks",
"order":80,
"names":{
"en":"layout.pageTemplate.spaceTasks.title"
},
"descriptions":{
"en":"layout.pageTemplate.spaceTasks.description"
},
"category": "default",
"system": true,
"illustrationPath":"war:/../images/pages/template/SpaceTasks.webp",
"layoutPath":"war:/conf/portal/template/pages/spaceTasks/page.xml"
}, {
"id":"spaceSettings",
"order":90,
"names":{
"en":"layout.pageTemplate.spaceSettings.title"
},
"descriptions":{
"en":"layout.pageTemplate.spaceSettings.description"
},
"category": "default",
"system": true,
"illustrationPath":"war:/../images/pages/template/SpaceSettings.webp",
"layoutPath":"war:/conf/portal/template/pages/spaceSettings/page.xml"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association contact@meeds.io
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.
-->
<container
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_12 http://www.gatein.org/xml/ns/gatein_objects_1_12"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_12">
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl"><!-- To be deleted once WebUI is cleaned from Meeds package -->
<section-columns mobile-columns-style="true">
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>gamification-portlets</application-ref>
<portlet-ref>topChallengers</portlet-ref>
<preferences>
<preference>
<name>topChallengersPeriod</name>
<value>week</value>
</preference>
<preference>
<name>topChallengersCurrentPosition</name>
<value>true</value>
</preference>
</preferences>
</portlet>
<title>Leaderboard</title>
<height>300</height>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>gamification-portlets</application-ref>
<portlet-ref>myContributions</portlet-ref>
<preferences>
<preference>
<name>myContributionsPeriod</name>
<value>week</value>
</preference>
<preference>
<name>myContributionsDisplayLegend</name>
<value>true</value>
</preference>
<preference>
<name>myContributionsProgramLimit</name>
<value>4</value>
</preference>
</preferences>
</portlet>
<title>Contributions</title>
<height>400</height>
</portlet-application>
</column>
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>gamification-portlets</application-ref>
<portlet-ref>programsOverview</portlet-ref>
<preferences>
<preference>
<name>limit</name>
<value>3</value>
</preference>
<preference>
<name>programsSortBy</name>
<value>modifiedDate</value>
</preference>
</preferences>
</portlet>
<title>Programs Overview</title>
<height>300</height>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>gamification-portlets</application-ref>
<portlet-ref>challengesOverview</portlet-ref>
<preferences>
<preference>
<name>endingRulesLimit</name>
<value>0</value>
</preference>
<preference>
<name>lockedRulesLimit</name>
<value>0</value>
</preference>
<preference>
<name>availableRulesLimit</name>
<value>4</value>
</preference>
<preference>
<name>upcomingRulesLimit</name>
<value>0</value>
</preference>
<preference>
<name>rulesSortBy</name>
<value>modifiedDate</value>
</preference>
</preferences>
</portlet>
<title>Actions overview</title>
<height>400</height>
</portlet-application>
</column>
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>gamification-portlets</application-ref>
<portlet-ref>UsersLeaderboard</portlet-ref>
</portlet>
<title>Actions overview</title>
<height>720</height>
</portlet-application>
</column>
</section-columns>
</container>
</container>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association contact@meeds.io
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.
-->
<container
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_12 http://www.gatein.org/xml/ns/gatein_objects_1_12"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_12">
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl"><!-- To be deleted once WebUI is cleaned from Meeds package -->
<section-columns>
<column col-span="12">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>MembersPortlet</portlet-ref>
</portlet>
<title>Space Settings</title>
</portlet-application>
</column>
</section-columns>
</container>
</container>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association contact@meeds.io
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.
-->
<container
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_12 http://www.gatein.org/xml/ns/gatein_objects_1_12"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_12">
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl"><!-- To be deleted once WebUI is cleaned from Meeds package -->
<section-columns>
<column col-span="12">
<portlet-application>
<portlet>
<application-ref>notes</application-ref>
<portlet-ref>Notes</portlet-ref>
</portlet>
<title>Space Notes</title>
</portlet-application>
</column>
</section-columns>
</container>
</container>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association contact@meeds.io
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.
-->
<container
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_12 http://www.gatein.org/xml/ns/gatein_objects_1_12"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_12">
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl"><!-- To be deleted once WebUI is cleaned from Meeds package -->
<section-columns>
<column col-span="12">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceSettingPortlet</portlet-ref>
</portlet>
<title>Space Settings</title>
</portlet-application>
</column>
</section-columns>
</container>
</container>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 Meeds Association contact@meeds.io
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.
-->
<container
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_12 http://www.gatein.org/xml/ns/gatein_objects_1_12"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_12">
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl"><!-- To be deleted once WebUI is cleaned from Meeds package -->
<section-columns>
<column col-span="12">
<portlet-application>
<portlet>
<application-ref>task-management</application-ref>
<portlet-ref>TasksManagement</portlet-ref>
</portlet>
<title>Space Tasks</title>
</portlet-application>
</column>
</section-columns>
</container>
</container>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 94abf11

Please sign in to comment.