-
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.
feat: Implement notes publication drawer - EXO-72738
feat: Implement note publication drawer - EXO-72738 - Meeds-io/MIPs#161 Implement note publication drawer
- Loading branch information
Showing
15 changed files
with
825 additions
and
336 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
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
52 changes: 52 additions & 0 deletions
52
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,52 @@ | ||
<?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>NotesEditorPublicationDrawerFeatureProperties</key> | ||
<type>org.exoplatform.container.ExtendedPropertyConfigurator</type> | ||
<init-params> | ||
<properties-param> | ||
<name>NotesEditorPublicationDrawerFeatureProperties</name> | ||
<description>Publication drawer Feature enablement flag</description> | ||
<property name="exo.feature.newPublicationDrawer.enabled" | ||
value="${exo.feature.newPublicationDrawer.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> |
10 changes: 10 additions & 0 deletions
10
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,10 @@ | ||
<% | ||
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="notesHeadScripts"> | ||
eXo.env.portal.newPublicationDrawerEnabled = <%=featureService.isFeatureActiveForUser("newPublicationDrawer", 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
Oops, something went wrong.