This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 293
/
manifest.xml
91 lines (91 loc) · 5.8 KB
/
manifest.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8"?>
<ajxp_plugin label="CONF_MESSAGE[Notification Center]" description="CONF_MESSAGE[Handle users watches and notifications]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<class_definition classname="AJXP_NotificationCenter" filename="plugins/core.notifications/class.AJXP_NotificationCenter.php"/>
<client_settings>
<resources>
<i18n namespace="notification.tpl.short" path="plugins/core.notifications/templates/short"/>
<i18n namespace="notification.tpl.long" path="plugins/core.notifications/templates/long"/>
<i18n namespace="notification.tpl.group" path="plugins/core.notifications/templates/group"/>
<i18n namespace="notification.tpl.block" path="plugins/core.notifications/templates/block"/>
<i18n namespace="notification_center" path="plugins/core.notifications/res/i18n"/>
<css file="plugins/core.notifications/res/css/notification_center.css" autoload="true"/>
<img_library alias="notification_center" path="plugins/core.notifications/res/img"/>
</resources>
</client_settings>
<server_settings>
<param name="activate_notifications" scope="user" description="Activate desktop notifications" label="Desktop Notifications" type="button" choices="run_client_action:activateDesktopNotifications" expose="true" editable="true"/>
<global_param description="CONF_MESSAGE[Display a new entry with all events happening on a user workspaces, and alerts. An SQL database must be setup for the FEED_DRIVER configuration.]" label="CONF_MESSAGE[User events and alerts]" name="USER_EVENTS" type="boolean" default="false"/>
<global_param type="plugin_instance:feed" name="UNIQUE_FEED_INSTANCE" group="CONF_MESSAGE[Instance Params]" label="CONF_MESSAGE[Feed Instance]" description="CONF_MESSAGE[Choose the plugin]" mandatory="true" default="feed.sql"/>
</server_settings>
<registry_contributions>
<actions>
<action name="get_my_feed">
<gui text="notification_center.1" title="notification_center.2" iconClass="icon-rss" src="notification_center/ICON_SIZE/feed.png" accessKey="" hasAccessKey="false">
<context selection="false" dir="" recycle="true" actionBar="true" actionBarGroup="user" contextMenu="false" infoPanel="false"/>
</gui>
<rightsContext adminOnly="false" noUser="false" read="false" userLogged="only" write="false"/>
<subMenu>
<dynamicBuilder><![CDATA[
var context = window.builderContext;
var protoMenu = window.builderProtoMenu;
NotificationLoader.getInstance().dynamicBuilderLoader(context, protoMenu);
]]></dynamicBuilder>
</subMenu>
<processing>
<clientCallback><![CDATA[
]]></clientCallback>
<clientForm id="user_feed"><![CDATA[
<div id="user_feed" box_padding="0" class="dialogBox css_boxshadow">
</div>
]]></clientForm>
<clientListener name="init"><![CDATA[
ResourcesManager.prototype.loadJSResource('plugins/core.notifications/class.NotificationLoader.js', 'NotificationLoader');
NotificationLoader.getInstance();
]]></clientListener>
<serverCallback methodName="loadUserFeed"/>
</processing>
</action>
<action name="dismiss_user_alert">
<processing><serverCallback methodName="dismissUserAlert"/></processing>
</action>
<action name="activateDesktopNotifications">
<gui src="" iconClass="icon-rss" text="notification_center.1" title="notification_title.2">
<context dir="true" recycle="true" selection="false"/>
</gui>
<processing>
<clientCallback><![CDATA[
if(window.Notification){
alert('Depending on your browser, this will ask for a specific permission. To disable, go through your browser preferences and exceptions. If you have already enabled this feature, probably nothing will hapen.');
window.Notification.requestPermission(function(grant) {
['default', 'granted', 'denied'].indexOf(grant) === true
});
}else{
alert('Your browser does not seem to support Desktop Notifications yet.');
}
]]></clientCallback>
</processing>
</action>
</actions>
<hooks>
<serverCallback methodName="persistChangeHookToFeed" hookName="node.change" defer="true"/>
<serverCallback methodName="persistNotificationToAlerts" hookName="msg.notification"/>
</hooks>
<client_configs>
<component_config className="InfoPanel">
<infoPanelExtension mime="generic_dir,generic_file" attributes="" modifier="NotificationLoader.prototype.loadInfoPanel">
<messages>
<message key="type_string" id="share_center.50"/>
</messages>
<html><![CDATA[
<div id="ajxp_activity_panel">
</div>
]]></html>
</infoPanelExtension>
</component_config>
</client_configs>
</registry_contributions>
<dependencies>
<activePlugin pluginName="core.conf"/>
</dependencies>
</ajxp_plugin>