This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
/
manifest.xml
293 lines (291 loc) · 16.1 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
<?xml version="1.0" encoding="UTF-8"?>
<ajxpdriver id="access.ajxp_user" label="CONF_MESSAGE[Shared Elements]" description="CONF_MESSAGE[Browse user shared elements.]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:../core.ajaxplorer/ajxp_registry.xsd">
<client_settings icon="plugins/access.ajxp_user/share.png">
<resources>
<i18n namespace="user_dash" path="plugins/access.ajxp_user/i18n" />
<css file="plugins/editor.ajxp_role/rolesEditor.css" />
<js className="UserDashboardHome" file="plugins/access.ajxp_user/class.UserDashboardHome.js" autoload="true"/>
<js className="UserProfileEditor" file="plugins/access.ajxp_user/class.UserProfileEditor.js" autoload="true"/>
<js className="WebDAVprefsEditor" file="plugins/access.ajxp_user/class.WebDAVprefsEditor.js" autoload="true"/>
<css file="plugins/access.ajxp_user/dashboard.css"/>
</resources>
</client_settings>
<registry_contributions>
<client_configs>
<template_part theme="umbra" ajxpId="sidebar_splitter" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height","fake":"option"}'><![CDATA[
<div id="folderPane" ajxpClass="FoldersTree" ajxpOptions='{"display":"dz","replaceScroller":true}' ajxpPaneHeader="363" ajxpPaneIcon="view_tree.png" style="margin:20px;"></div>
<style>#sidebar_splitter{padding-bottom:20px;background-color:#A0C0A4;}</style>
]]></template_part>
<template_part ajxpClass="AjxpPane" ajxpId="workspace_toolbar" ajxpOptions='{"fit":"none"}'><![CDATA[
<div id="search_container_settings" class="settings_search_container" style="display:none;" ajxpClass="SearchEngine" ajxpOptions='{"toggleResultsVisibility":"search_results_cont", "fitMarginBottom":20}'></div>
<style>
#workspace_toolbar, #global_toolbar{display:none;}
#browser{padding:0}
div.flat_tabulator span.toggleHeader{
border-color: #e35d52;
color: #e35d52;
}
.largeButton, .SF_input.SF_inlineButton{
background-color: #e35d52;
}
.action_bar{
background-color: #ebedf0;
padding: 4px;
margin: 0 -5px;
}
#account_pane .action_bar{
text-align: right;
}
.action_bar a{
background-color: #e35d52;
margin-top:3px;
cursor: pointer;
}
div.class-FetchedResultPane{
border-left: 0;
background-color: #f8f8f8;
}
#buttons_bar{
padding-bottom: 2px;
text-align: right;
}
#buttons_bar a {
padding-bottom: 0;
height: 26px;
}
.action_bar span.actionbar_button_label{
font-size: 11px;
}
.thumbnail_selectable_cell{
padding: 11px 2px;
}
.thumbLabel{
font-size: 18px;
}
.text_label{
padding-left: 0;
padding-right: 10px;
}
div.thumbnail_cell_metadata span.icon-angle-right{
display:none;
}
div.class-FetchedResultPane div.thumbnail_selectable_cell.detailed div.thumbLabel{
padding-top:8px;
}
.thumbnail_selectable_cell.detailed div.thumbnail_cell_metadata{
opacity: 1 !important;
}
div.thumbnail_cell_metadata .text_label{
font-size: 13px !important;
letter-spacing: 1px;
color: rgb(111, 121, 131);
}
</style>
]]></template_part>
<template_part ajxpId="browser" ajxpClass="AjxpPane" ajxpOptions='{"fit":"height","fitParent":"ajxp_desktop", "fakeOption":"true", "messageBoxReference":true}' theme="vision"><![CDATA[
<div id="userdashboard_main_tab" ajxpClass="AjxpTabulator" class="settings_main_pane dashboard_main_pane flat_tabulator" ajxpOptions='{"fit":"height", "fitMarginBottom":0, "registerAsEditorOpener":false, "saveState":false,"events":{}, "defaultTabId": "home","tabInfos" : [{"id":"home","label":"Home","iconClass":"icon-home", "element":"home_account_pane"},{"id":"parameters","label":"user_dash.43", "title":"user_dash.43t","iconClass":"icon-cog", "element":"parameters_pane"},{"id":"info","label":"user_dash.46", "title":"user_dash.47","iconClass":"icon-book", "element":"files_list_pane"}]}'>
<div id="home_account_pane" ajxpClass="UserDashboardHome">
<div id="notifications_center">
<span class="icon-rss" id="close-icon"></span>
<h1>AJXP_MESSAGE[user_dash.38]</h1>
</div>
<div id="workspaces_center">
<div id="logo_div"><img src="plugins/gui.ajax/PydioLogo250.png"></div>
<div id="welcome"></div>
<h1>AJXP_MESSAGE[user_dash.39]</h1>
<ul id="workspaces_list" style="height: 100px;"></ul>
<div id="workspaces_button">
<input type="checkbox" name="save_ws_choice" id="save_ws_choice" class="disabled" disabled><label for="save_ws_choice">AJXP_MESSAGE[user_dash.41]</label>
<input type="button" name="go_to_ws" id="go_to_ws" value="AJXP_MESSAGE[user_dash.42]" class="disabled">
</div>
</div>
</div>
<div id="files_list_pane" ajxpClass="AjxpPane">
<div id="userdashboard_addressbook_tab" ajxpClass="AjxpTabulator" class="horizontal_tabulator left_tabulator" ajxpOptions='{"fit":"height", "fitMarginBottom":0, "registerAsEditorOpener":false, "saveState":false,"events":{}, "defaultTabId": "my-users","tabInfos" : [{"id":"my-users","label":"user_dash.48", "title":"user_dash.49","iconClass":"icon-user", "element":"my-users-pane"}]}'>
<div id="my-users-pane" ajxpClass="AjxpPane" class="tabbed_editor">
<div id="buttons_bar" class="action_bar" ajxpClass="ActionsToolbar" ajxpOptions='{"toolbarsList":["change","address_book"],"skipBubbling":true, "skipCarousel":true,"submenuOffsetTop":2}'></div>
<div id="address_book" ajxpClass="FetchedResultPane" ajxpOptions='{"updateGlobalContext":true,"nodeProviderProperties":{"get_action":"ls","dir":"users"}, "displayMode":"detail","replaceScroller":true, "fit":"height", "fitParent":"userdashboard_main_tab", "fitMarginBottom":10, "cellPaddingCorrection":6, "iconBgPosition" : "5px 4px"}'></div>
</div>
</div>
</div>
<div id="parameters_pane" ajxpClass="AjxpPane">
<div id="userdashboard_parameters_tab" ajxpClass="AjxpTabulator" class="horizontal_tabulator left_tabulator" ajxpOptions='{"fit":"height", "fitMarginBottom":0, "registerAsEditorOpener":false, "saveState":false,"events":{}, "defaultTabId": "account","tabInfos" : [{"id":"account","label":"user_dash.44", "title":"user_dash.45","iconClass":"icon-reorder", "element":"account_pane"}]}'>
<div id="account_pane" ajxpClass="UserProfileEditor" class="tabbed_editor">
<div class="action_bar">
<div class="toolbarGroup"></div>
</div>
</div>
</div>
</div>
</div>
<script>
document.observeOnce("ajaxplorer:context_changed", function(){
try{
$("global_toolbar").insert({bottom: $("search_container_settings")});
$("search_container_settings").show();
$("browser").ajxpPaneObject.resize();
}catch(e){}
document.observeOnce("ajaxplorer:repository_list_refreshed",function(){
if(ajaxplorer.repositoryId == 'ajxp_user') return;
try{
$("global_toolbar").down("#search_container_settings").ajxpPaneObject.destroy();
$("global_toolbar").down("#search_container_settings").remove();
}catch(e){}
});
});
window.setTimeout(function(){
try{ $("browser").ajxpPaneObject.resize(); }catch(e){}
}, 100);
</script>
]]></template_part>
</client_configs>
<actions>
<action name="ls" dirDefault="true">
<gui text="32" title="32" src="fileopen.png"
accessKey="folder_access_key">
<context selection="true" dir="" recycle="false"
actionBar="false" actionBarGroup="get" contextMenu="true" infoPanel="false">
</context>
<selectionContext dir="true" file="false" recycle="false"
unique="true" allowedMimes="*">
</selectionContext>
</gui>
<rightsContext noUser="true" userLogged="only" read="true"
write="false" adminOnly="false">
</rightsContext>
<processing>
<clientCallback prepareModal="true"><![CDATA[
var path;
if(window.actionArguments && window.actionArguments.length>0){
path = window.actionArguments[0];
if(Object.isString(path)){path = new AjxpNode(path,false,getBaseName(path));}
}else{
userSelection = ajaxplorer.getUserSelection();
if(userSelection && userSelection.isUnique() && (userSelection.hasDir() || userSelection.hasMime(["zip"]))){
path = userSelection.getUniqueNode();
}
}
if(path){
ajaxplorer.updateContextData(path);
}
]]></clientCallback>
<serverCallback methodName="switchAction"></serverCallback>
</processing>
</action>
<action name="stat">
<processing>
<serverCallback methodName="switchAction"></serverCallback>
</processing>
</action>
<action name="copyUrl">
<gui text="user_dash.18" title="user_dash.19" iconClass="icon-copy" src="editcopy.png" accessKey="" hasAccessKey="false">
<context selection="true" dir="" recycle="false"
actionBar="true" contextMenu="true" infoPanel="true"
actionBarGroup="public_links" inZip="false">
</context>
<selectionContext dir="false" file="true" recycle="false" unique="true" allowedMimes="shared_file" behaviour="disabled"/></gui>
<rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly=""/>
<processing>
<clientCallback prepareModal="true"><![CDATA[
var onLoad = function(oForm){
var userSelection = ajaxplorer.getUserSelection();
var firstNode = userSelection.getUniqueNode();
var copyDiv = $(oForm).down('input[id="text_copy"]');
copyDiv.setValue(firstNode.getMetadata().get('download_url').stripTags());
copyDiv.select();
};
modal.showDialogForm('Delete', 'copy_as_text', onLoad, function(){
hideLightBox(true);
return false;
},null,true);
]]></clientCallback>
<clientForm id="copy_as_text"><![CDATA[
<div id="copy_as_text" action="copy" box_width="280">
<input id="text_copy" style="width:260px;" class="dialogFocus"/>
</div>
]]></clientForm>
<serverCallback methodName="switchAction"/>
</processing>
</action>
<action name="reset_download_counter">
<gui text="user_dash.32" title="user_dash.33" iconClass="icon-undo" src="eraser.png" accessKey="" hasAccessKey="false">
<context selection="true" dir="" recycle="false"
actionBar="true" contextMenu="true" infoPanel="true"
actionBarGroup="public_links" inZip="false">
</context>
<selectionContext dir="false" file="true" recycle="false" unique="true" allowedMimes="shared_file" behaviour="disabled"/></gui>
<rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly=""/>
<processing>
<clientCallback prepareModal="true"><![CDATA[
var baseUrl = ajxpServerAccessPath + "&get_action=reset_download_counter";
baseUrl = ajaxplorer.getUserSelection().updateFormOrUrl(null, baseUrl);
var conn = new Connexion(baseUrl);
conn.addParameter("get_action", "reset_download_counter");
conn.onComplete = function(transport){
ajaxplorer.actionBar.parseXmlMessage(transport.responseXML);
};
conn.sendAsync();
]]></clientCallback>
<serverCallback methodName="switchAction"/>
</processing>
</action>
<action name="clear_expired">
<gui text="user_dash.25" title="user_dash.26" iconClass="icon-time" src="edit_clear_history.png" accessKey="" hasAccessKey="false">
<context selection="true" dir="true" recycle="false" behaviour="hidden"
actionBar="true" contextMenu="true" infoPanel="false"
actionBarGroup="public_links" inZip="false">
</context>
<selectionContext dir="false" file="true" recycle="false" behaviour="disabled" unique="true" allowedMimes="shared_file"/></gui>
<rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly=""/>
<processing>
<clientCallback prepareModal="true"><![CDATA[
var conn = new Connexion();
conn.addParameter("get_action", "clear_expired");
conn.onComplete = function(transport){
ajaxplorer.actionBar.parseXmlMessage(transport.responseXML);
};
conn.sendAsync();
]]></clientCallback>
<serverCallback methodName="switchAction" developerComment="Clear expired links" restParams="/"/>
</processing>
</action>
<action name="delete">
<gui text="7" title="161" src="editdelete.png" iconClass="icon-trash" accessKey="delete_access_key" hasAccessKey="true" specialAccessKey="delete">
<context selection="true" dir="" recycle="false"
actionBar="true" contextMenu="true" infoPanel="true"
actionBarGroup="change" inZip="false">
</context>
<selectionContext dir="false" file="true" recycle="false" unique="false"/>
</gui>
<rightsContext noUser="true" userLogged="only" read="true" write="true" adminOnly=""/>
<processing>
<clientCallback prepareModal="true"><![CDATA[
var onLoad = function(oForm){
$(oForm).down('span[id="delete_message"]').update(MessageHash['user_dash.11']);
$(oForm).down('input[name="ajxp_mime"]').value = ajaxplorer.getUserSelection().getUniqueNode().getAjxpMime();
};
modal.showDialogForm('Delete', 'delete_shared_form', onLoad, function(){
var oForm = modal.getForm();
ajaxplorer.getUserSelection().updateFormOrUrl(oForm);
ajaxplorer.actionBar.submitForm(oForm, true, function(transport){
this.actionBar.parseXmlMessage(transport.responseXML);
if(this.getContextHolder()._selectionSource && this.getContextHolder()._selectionSource.__className=='FetchedResultPane'){
this.getContextHolder()._selectionSource.reloadDataModel();
}
}.bind(ajaxplorer));
hideLightBox(true);
return false;
});
]]></clientCallback>
<clientForm id="delete_shared_form"><![CDATA[
<div id="delete_shared_form" action="delete" box_width="200">
<span id="delete_message"></span>
<input type="hidden" name="ajxp_mime" value="">
</div> ]]></clientForm>
<serverCallback methodName="switchAction"></serverCallback>
</processing>
</action>
</actions>
</registry_contributions>
<class_definition filename="plugins/access.ajxp_user/class.UserDashboardDriver.php" classname="UserDashboardDriver"/>
</ajxpdriver>