Skip to content

Commit

Permalink
feat: Move MyRewards Portlet to Wallet - MEED-7019 - Meeds-io/MIPs#155
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker committed Sep 5, 2024
1 parent 3fbfbef commit 5bb600e
Show file tree
Hide file tree
Showing 19 changed files with 73 additions and 304 deletions.
20 changes: 19 additions & 1 deletion crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,24 @@ files: [
"escape_quotes" : 0,

},
{
"source": "/portlets/src/main/resources/locale/portlet/LayoutEditor_en.properties",

"translation": "%original_path%/%file_name%!_%locale_with_underscore%.%file_extension%",
"translation_replace": {
"_en!": "","ar_SA": "ar","ar_OM": "aro","az_AZ": "az","ca_ES": "ca","ceb_PH": "ceb",
"co_FR": "co","cs_CZ": "cs","de_DE": "de","el_GR": "el","en_US": "en","es_ES": "es_ES","eu_ES": "eu","fa_IR": "fa",
"fi_FI": "fi","fil_PH": "fil","fr_FR": "fr","hi_IN": "hi","hu_HU": "hu","id_ID": "id","it_IT": "it","ja_JP": "ja",
"kab_KAB": "kab","ko_KR": "ko","lt_LT": "lt","ms_MY": "ms","nl_NL": "nl","no_NO": "no","pcm_NG": "pcm","pl_PL": "pl",
"pt_BR": "pt_BR","pt_PT": "pt_PT","ro_RO": "ro","ru_RU": "ru","sk_SK": "sk","sl_SI": "sl","sq_AL": "sq",
"sv_SE": "sv_SE","th_TH": "th","tl_PH": "tl","tr_TR": "tr","uk_UA": "uk","ur_IN": "ur_IN","vi_VN": "vi",
"zh_CN": "zh_CN","zh_TW": "zh_TW",
},
"dest": "hub/gamification/LayoutEditor.properties",
"update_option": "update_as_unapproved",
"escape_special_characters": 0,
"escape_quotes" : 0,
},
{
"source": "/portlets/src/main/resources/locale/portal/HamburgerMenu_en.properties",

Expand All @@ -126,4 +144,4 @@ files: [
"escape_quotes" : 0,

},
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ layout.portletInstance.category.contributions.description=Applications for Contr

layout.portletInstance.EngagementCenterAchievements.name=Contributions List
layout.portletInstance.EngagementCenterAchievements.description=List of contributions of the user
layout.portletInstance.myContributions.name=My Contributions
layout.portletInstance.myContributions.name=Current Contributions
layout.portletInstance.myContributions.description=Gadget listing weekly contributions of the user
layout.portletInstance.myRewards.name=My Rewards
layout.portletInstance.myRewards.description=Gadget listing rewards and perks
layout.portletInstance.topChallengers.name=Top Challengers
layout.portletInstance.topChallengers.name=Top Contributors
layout.portletInstance.topChallengers.description=Gadget listing top contributors
layout.portletInstance.challengesOverview.name=Challenges Overview
layout.portletInstance.challengesOverview.description=Gadget listing the actions to do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,57 @@
</value-param>
</init-params>
</component-plugin>

<component-plugin profiles="layout">
<name>ContributeSitePortletsUpgrade</name>
<set-method>addUpgradePlugin</set-method>
<type>io.meeds.layout.plugin.upgrade.LayoutApplicationReferenceUpgradePlugin</type>
<init-params>
<value-param>
<name>product.group.id</name>
<description>The groupId of the product</description>
<value>org.exoplatform.social</value>
</value-param>
<value-param>
<name>plugin.execution.order</name>
<description>The plugin execution order</description>
<value>5</value>
</value-param>
<value-param>
<name>plugin.upgrade.execute.once</name>
<description>Execute only once, not each version change</description>
<value>true</value>
</value-param>
<object-param>
<name>myReputation</name>
<object type="io.meeds.layout.model.ApplicationReferenceUpgrade">
<field name="modificationType">
<string>update</string>
</field>
<field name="oldContentId">
<string>gamification-portlets/myReputation</string>
</field>
<field name="newContentId">
<string>kudos/KudosOverview</string>
</field>
</object>
</object-param>
<object-param>
<name>myRewards</name>
<object type="io.meeds.layout.model.ApplicationReferenceUpgrade">
<field name="modificationType">
<string>update</string>
</field>
<field name="oldContentId">
<string>gamification-portlets/myRewards</string>
</field>
<field name="newContentId">
<string>wallet/myRewards</string>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
</external-component-plugins>

</configuration>
32 changes: 0 additions & 32 deletions portlets/src/main/webapp/WEB-INF/gatein-resources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -429,38 +429,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</module>
</portlet>

<portlet>
<name>myRewards</name>
<module>
<load-group>reward-overview-group</load-group>
<script>
<minify>false</minify>
<path>/js/myRewards.bundle.js</path>
</script>
<depends>
<module>vue</module>
</depends>
<depends>
<module>vuetify</module>
</depends>
<depends>
<module>eXoVueI18n</module>
</depends>
<depends>
<module>commonVueComponents</module>
</depends>
<depends>
<module>extensionRegistry</module>
</depends>
<depends>
<module>gamificationCommon</module>
</depends>
<depends>
<module>ruleExtensions</module>
</depends>
</module>
</portlet>

<portlet>
<name>topChallengers</name>
<module>
Expand Down
20 changes: 0 additions & 20 deletions portlets/src/main/webapp/WEB-INF/portlet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -214,26 +214,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</portlet-info>
</portlet>

<portlet>
<portlet-name>myRewards</portlet-name>
<display-name>My Rewards</display-name>
<portlet-class>org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet</portlet-class>
<init-param>
<name>portlet-view-dispatched-file-path</name>
<value>/html/myRewards.html</value>
</init-param>
<expiration-cache>-1</expiration-cache>
<cache-scope>PUBLIC</cache-scope>
<supports>
<mime-type>text/html</mime-type>
</supports>
<supported-locale>en</supported-locale>
<portlet-info>
<title>My Rewards</title>
<keywords>My Rewards</keywords>
</portlet-info>
</portlet>

<portlet>
<portlet-name>topChallengers</portlet-name>
<display-name>Top Challengers</display-name>
Expand Down
7 changes: 0 additions & 7 deletions portlets/src/main/webapp/html/myRewards.html

This file was deleted.

Binary file modified portlets/src/main/webapp/images/portlets/myContributions.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified portlets/src/main/webapp/images/portlets/topChallengers.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This file was deleted.

25 changes: 0 additions & 25 deletions portlets/src/main/webapp/vue-app/myRewards/initComponents.js

This file was deleted.

Loading

0 comments on commit 5bb600e

Please sign in to comment.