-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement publish note feat: Add feature flag for publish note option - EXO-73041 - Meeds-io/MIPs#161 (#1219) Add feature flag for publish note optio fix: Fix enable condition of delete and import/export action menu options - EXO-73041 - Meeds-io/MIPs#161 fix enable condition of delete/import/export action menu options feat: Refactor publish note option integration - EXO-73041 - Meeds-io/meeds#161 (#1220) Refactor publish note option integration
- Loading branch information
Showing
19 changed files
with
355 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
notes-webapp/src/main/webapp/WEB-INF/conf/wiki/feature-flags-configuration.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
* This file is part of the Meeds project (https://meeds.io/). | ||
* | ||
* Copyright (C) 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. | ||
--> | ||
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd http://www.exoplatform.org/xml/ns/kernel_1_3.xsd" | ||
xmlns="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd"> | ||
<component> | ||
<key>NoteFeatureProperties</key> | ||
<type>org.exoplatform.container.ExtendedPropertyConfigurator</type> | ||
<init-params> | ||
<properties-param> | ||
<name>NoteFeatureProperties</name> | ||
<description>Note Feature enablement flag</description> | ||
<property name="exo.feature.insertImage.enabled" | ||
value="${exo.feature.insertImage.enabled:false}"/> | ||
<property name="exo.feature.notePublication.enabled" | ||
value="${exo.feature.notePublication.enabled:false}"/> | ||
</properties-param> | ||
</init-params> | ||
</component> | ||
<external-component-plugins> | ||
<target-component>org.exoplatform.groovyscript.text.TemplateService</target-component> | ||
<component-plugin> | ||
<name>UIPortalApplication-head</name> | ||
<set-method>addTemplateExtension</set-method> | ||
<type>org.exoplatform.groovyscript.text.TemplateExtensionPlugin</type> | ||
<init-params> | ||
<values-param> | ||
<name>templates</name> | ||
<description>The list of templates to include in HTML Page Header with UIPortalApplication.gtmpl</description> | ||
<value>war:/groovy/webui/workspace/UINotesHeadTemplate.gtmpl</value> | ||
</values-param> | ||
</init-params> | ||
</component-plugin> | ||
</external-component-plugins> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
notes-webapp/src/main/webapp/groovy/webui/workspace/UINotesHeadTemplate.gtmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<% | ||
import org.exoplatform.commons.api.settings.ExoFeatureService; | ||
def rcontext = _ctx.getRequestContext(); | ||
ExoFeatureService featureService = uicomponent.getApplicationComponent(ExoFeatureService.class); | ||
def userName = rcontext.getRemoteUser(); | ||
%> | ||
|
||
<script type="text/javascript" id="NoteHeadScripts"> | ||
eXo.env.portal.insertImageOptionEnabled = <%=featureService.isFeatureActiveForUser("insertImage", userName)%>; | ||
eXo.env.portal.notePublicationEnabled = <%=featureService.isFeatureActiveForUser("notePublication", userName)%>; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.