Skip to content

Commit

Permalink
feat: Add default Space Site with Home page only - Meeds-io/MIPs#150
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker committed Oct 23, 2024
1 parent ada8bda commit 0f37c22
Show file tree
Hide file tree
Showing 3 changed files with 162 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 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.
-->
<portal-config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_11 http://www.gatein.org/xml/ns/gatein_objects_1_11"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_11">
<portal-name>@owner@</portal-name>
<displayed>false</displayed>
<locale>en</locale>
<access-permissions>member:@owner@</access-permissions>
<edit-permission>*:/platform/administrators</edit-permission>
<portal-layout>
<page-body />
</portal-layout>
</portal-config>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 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_11 http://www.gatein.org/xml/ns/gatein_objects_1_11"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_11">
<priority>3</priority>
<page-nodes>
<node>
<name>home</name>
<label>Home</label>
<icon>fas fa-home</icon>
<page-reference>group::@owner@::home</page-reference>
</node>
</page-nodes>
</node-navigation>
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Meeds project (https://meeds.io/).
Copyright (C) 2020 - 2024 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-set
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_11 http://www.gatein.org/xml/ns/gatein_objects_1_11"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_11">
<page>
<name>home</name>
<title>Home</title>
<access-permissions>Everyone</access-permissions>
<edit-permission>manager:@owner@</edit-permission>
<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>SpaceBannerPortlet</portlet-ref>
</portlet>
<title>Space Banner</title>
</portlet-application>
</column>
</section-columns>
<section-columns
sticky-beahvior="true"
mobile-columns-style="true">
<column col-span="8">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceActivityStreamPortlet</portlet-ref>
</portlet>
<title>Space Activity Stream</title>
</portlet-application>
</column>
<column col-span="4">
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetDescription</portlet-ref>
</portlet>
<title>Space Description</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetManagers</portlet-ref>
</portlet>
<title>Space Managers</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>SpaceWidgetMembers</portlet-ref>
</portlet>
<title>Space Members</title>
</portlet-application>
<portlet-application>
<portlet>
<application-ref>social</application-ref>
<portlet-ref>WhoIsOnLinePortlet</portlet-ref>
</portlet>
<title>Who is on Line</title>
</portlet-application>
<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>
</column>
</section-columns>
</container>
</page>
</page-set>

0 comments on commit 0f37c22

Please sign in to comment.