Skip to content

Commit 39e85d7

Browse files
authored
feat: Add Mycraft personal note - MEED-10060 - Meeds-io/MIPs#234 (#3969)
This change will add mycraft personal note
1 parent 7f717cb commit 39e85d7

File tree

6 files changed

+162
-0
lines changed

6 files changed

+162
-0
lines changed

webapps/plf-meeds-extension/src/main/resources/locale/navigation/portal/mycraft_en.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ portal.mycraft.contents=My Content
2727
portal.mycraft.achievements=My Contributions
2828
portal.mycraft.wallet=My Wallet
2929
portal.mycraft.myteam=My Team
30+
portal.mycraft.notes=Notes

webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/meeds/portal-upgrade-configuration.xml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,5 +395,59 @@
395395
</object-param>
396396
</init-params>
397397
</component-plugin>
398+
<component-plugin profiles="layout">
399+
<name>MycraftNavigationUpgrade-7.2-01</name>
400+
<set-method>addUpgradePlugin</set-method>
401+
<type>io.meeds.social.upgrade.LayoutUpgradePlugin</type>
402+
<init-params>
403+
<value-param>
404+
<name>product.group.id</name>
405+
<value>org.exoplatform.social</value>
406+
</value-param>
407+
<value-param>
408+
<name>plugin.execution.order</name>
409+
<value>120</value>
410+
</value-param>
411+
<value-param>
412+
<name>plugin.upgrade.execute.once</name>
413+
<value>true</value>
414+
</value-param>
415+
<value-param>
416+
<name>enabled</name>
417+
<value>true</value>
418+
</value-param>
419+
<object-param>
420+
<name>overview.upgrade</name>
421+
<object type="io.meeds.social.upgrade.model.LayoutUpgrade">
422+
<field name="updateNavigation">
423+
<boolean>true</boolean>
424+
</field>
425+
<field name="updatePageLayout">
426+
<boolean>true</boolean>
427+
</field>
428+
<field name="configPath">
429+
<string>war:/conf/meeds/upgrades/</string>
430+
</field>
431+
<field name="portalType">
432+
<string>portal</string>
433+
</field>
434+
<field name="portalName">
435+
<string>mycraft</string>
436+
</field>
437+
<field name="pageNames">
438+
<collection type="java.util.ArrayList" item-type="java.lang.String">
439+
<value>
440+
<string>notes</string>
441+
</value>
442+
</collection>
443+
</field>
444+
<field name="importMode">
445+
<string>insert</string>
446+
</field>
447+
</object>
448+
</object-param>
449+
</init-params>
450+
</component-plugin>
451+
398452
</external-component-plugins>
399453
</configuration>

webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/meeds/portal/mycraft/navigation.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@
4141
<icon>far fa-newspaper</icon>
4242
<page-reference>portal::mycraft::contents</page-reference>
4343
</node>
44+
<node>
45+
<name>notes</name>
46+
<label>#{portal.mycraft.notes}</label>
47+
<icon>far fa-clipboard</icon>
48+
<page-reference>portal::mycraft::notes</page-reference>
49+
</node>
4450
</node>
4551
</page-nodes>
4652
</node-navigation>

webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/meeds/portal/mycraft/pages.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,24 @@
125125
</container>
126126
</page>
127127

128+
<page profiles="notes">
129+
<name>notes</name>
130+
<title>notes</title>
131+
<access-permissions>Everyone</access-permissions>
132+
<edit-permission>manager:/platform/administrators</edit-permission>
133+
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
134+
<section-columns>
135+
<column col-span="12">
136+
<portlet-application>
137+
<portlet>
138+
<application-ref>notes</application-ref>
139+
<portlet-ref>Notes</portlet-ref>
140+
</portlet>
141+
<title>Personal notes</title>
142+
</portlet-application>
143+
</column>
144+
</section-columns>
145+
</container>
146+
</page>
147+
128148
</page-set>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
This file is part of the Meeds project (https://meeds.io/).
5+
6+
Copyright (C) 2020 - 2025 Meeds Association contact@meeds.io
7+
8+
This program is free software; you can redistribute it and/or
9+
modify it under the terms of the GNU Lesser General Public
10+
License as published by the Free Software Foundation; either
11+
version 3 of the License, or (at your option) any later version.
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
Lesser General Public License for more details.
16+
17+
You should have received a copy of the GNU Lesser General Public License
18+
along with this program; if not, write to the Free Software Foundation,
19+
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20+
21+
-->
22+
<node-navigation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23+
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_7 http://www.gatein.org/xml/ns/gatein_objects_1_7"
24+
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_7">
25+
<priority>1</priority>
26+
<page-nodes>
27+
<parent-uri>dashboard</parent-uri>
28+
<node>
29+
<name>notes</name>
30+
<label>#{portal.mycraft.notes}</label>
31+
<icon>far fa-clipboard</icon>
32+
<page-reference>portal::mycraft::notes</page-reference>
33+
</node>
34+
</page-nodes>
35+
</node-navigation>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
This file is part of the Meeds project (https://meeds.io/).
5+
6+
Copyright (C) 2020 - 2025 Meeds Association contact@meeds.io
7+
8+
This program is free software; you can redistribute it and/or
9+
modify it under the terms of the GNU Lesser General Public
10+
License as published by the Free Software Foundation; either
11+
version 3 of the License, or (at your option) any later version.
12+
13+
This program is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16+
Lesser General Public License for more details.
17+
18+
You should have received a copy of the GNU Lesser General Public License
19+
along with this program; if not, write to the Free Software Foundation,
20+
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21+
22+
-->
23+
<page-set
24+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25+
xsi:schemaLocation="http://www.exoplatform.org/xml/ns/gatein_objects_1_12 http://www.exoplatform.org/xml/ns/gatein_objects_1_12"
26+
xmlns="http://www.exoplatform.org/xml/ns/gatein_objects_1_12">
27+
<page profiles="notes">
28+
<name>notes</name>
29+
<title>notes</title>
30+
<access-permissions>Everyone</access-permissions>
31+
<edit-permission>manager:/platform/administrators</edit-permission>
32+
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
33+
<section-columns>
34+
<column col-span="12">
35+
<portlet-application>
36+
<portlet>
37+
<application-ref>notes</application-ref>
38+
<portlet-ref>Notes</portlet-ref>
39+
</portlet>
40+
<title>Personal notes</title>
41+
</portlet-application>
42+
</column>
43+
</section-columns>
44+
</container>
45+
</page>
46+
</page-set>

0 commit comments

Comments
 (0)