Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 40fc8bd

Browse files
committed
Merge remote-tracking branch 'origin/jscore-deprototype' into jscore-deprototype
2 parents 8ef1f20 + 81ba383 commit 40fc8bd

32 files changed

+35
-11561
lines changed

core/src/core/classes/class.AJXP_Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ protected function parseUrl()
565565
$pServ = AJXP_PluginsService::getInstance();
566566
$this->_wrapperClassName = $pServ->getWrapperClassName($this->urlParts["scheme"]);
567567
}else if($this->urlParts["scheme"] == "pydio"){
568-
$this->_wrapperClassName = "AJXP_PermissionWrapper";
568+
$this->_wrapperClassName = "AJXP_MetaStreamWrapper";
569569
}
570570
}
571571

core/src/plugins/access.imap/class.imapAccessWrapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public function url_stat($path, $flags)
375375
$keys = array(
376376
'dev' => 0,
377377
'ino' => 0,
378-
'mode' => 33216,
378+
'mode' => 33279,
379379
'nlink' => 0,
380380
'uid' => 0,
381381
'gid' => 0,
@@ -400,7 +400,7 @@ public function url_stat($path, $flags)
400400
$keys = array(
401401
'dev' => 0,
402402
'ino' => 0,
403-
'mode' => (empty($this->currentAttachmentData)?(33216 | 0040000):33216),
403+
'mode' => (empty($this->currentAttachmentData)?(33279 | 0040000):33216),
404404
'nlink' => 0,
405405
'uid' => 0,
406406
'gid' => 0,

core/src/plugins/access.imap/manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<resources>
55
<i18n namespace="imap_access" path="plugins/access.imap/resources/i18n"/>
66
<img_library alias="imap_images" path="plugins/access.imap/resources/images"/>
7-
<js file="plugins/editor.eml/class.EmlViewer.js" className="EmlViewer" autoload="true"/>
7+
<js file="plugins/editor.eml/class.EmlViewer.js" className="EmlViewer"/>
88
</resources>
99
</client_settings>
1010
<server_settings>

core/src/plugins/action.share/class.ShareCenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ private function deleteExpiredPubliclet($elementId, $data){
12081208
}
12091209
if($repoLoaded){
12101210
AJXP_Controller::registryReset();
1211-
$ajxpNode = new AJXP_Node("ajxp.".$repoObject->getAccessType()."://".$repoObject->getId().$data["FILE_PATH"]);
1211+
$ajxpNode = new AJXP_Node("pydio://".$repoObject->getId().$data["FILE_PATH"]);
12121212
}
12131213
$this->getShareStore()->deleteShare("file", $elementId);
12141214
if(isSet($ajxpNode)){

core/src/plugins/editor.soundmanager/class.SMPlayer.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* The latest code can be found at <http://pyd.io/>.
1919
*/
2020
window.SM2_DEFER = true;
21-
if(!$$("html")[0].hasClassName("no-canvas") && !window.soundManager && pydio.Registry.findEditorById("editor.soundmanager")){
21+
if(!$$("html")[0].hasClassName("no-canvas") && !window.soundManager){
2222
var conn = new Connexion();
2323
conn._libUrl = (ajxpBootstrap.parameters.get('SERVER_PREFIX_URI')?ajxpBootstrap.parameters.get('SERVER_PREFIX_URI'):'')+'plugins/editor.soundmanager/sm/';
2424
conn.loadLibrary('360-player/script/berniecode-animator.js');
@@ -243,7 +243,16 @@ soundManager.setup({\n\
243243

244244
getPreview : function(ajxpNode, rich){
245245
if(!window.soundManager || !window.soundManager.enabled){
246-
return new Element('img', {src:resolveImageSource(ajxpNode.getIcon(),'/images/mimes/ICON_SIZE',64),align:"absmiddle"});
246+
if(console) console.log("Returning simple image, window.soundManager is not loaded");
247+
var simpleImage = new Element('img', {src:resolveImageSource(ajxpNode.getIcon(),'/images/mimes/ICON_SIZE',64),align:"absmiddle"});
248+
simpleImage.resizePreviewElement = function(element){
249+
simpleImage.setStyle({
250+
width:Math.min(64, element.width) + 'px',
251+
height:Math.min(64, element.height) + 'px'
252+
});
253+
};
254+
simpleImage.destroyElement = function(){};
255+
return simpleImage;
247256
}
248257
addVolumeButton();
249258
var url = ajxpBootstrap.parameters.get('ajxpServerAccess')+'&get_action=audio_proxy&file='+encodeURIComponent(base64_encode(ajxpNode.getPath()));

core/src/plugins/gui.ajax/class.AJXP_ClientDriver.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ public function isEnabled()
3838
public function loadConfigs($configData)
3939
{
4040
parent::loadConfigs($configData);
41-
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])) {
42-
// Force legacy theme for the moment
43-
$this->pluginConf["GUI_THEME"] = "oxygen";
44-
}
4541
if (!defined("AJXP_THEME_FOLDER")) {
4642
define("CLIENT_RESOURCES_FOLDER", AJXP_PLUGINS_FOLDER."/gui.ajax/res");
4743
define("AJXP_THEME_FOLDER", CLIENT_RESOURCES_FOLDER."/themes/".$this->pluginConf["GUI_THEME"]);
@@ -53,10 +49,6 @@ public function loadConfigs($configData)
5349

5450
public function switchAction($action, $httpVars, $fileVars)
5551
{
56-
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])) {
57-
// Force legacy theme for the moment
58-
$this->pluginConf["GUI_THEME"] = "oxygen";
59-
}
6052
if (!defined("AJXP_THEME_FOLDER")) {
6153
define("CLIENT_RESOURCES_FOLDER", AJXP_PLUGINS_FOLDER."/gui.ajax/res");
6254
define("AJXP_THEME_FOLDER", CLIENT_RESOURCES_FOLDER."/themes/".$this->pluginConf["GUI_THEME"]);
@@ -227,8 +219,8 @@ public function switchAction($action, $httpVars, $fileVars)
227219
} else {
228220
$content = file_get_contents(AJXP_INSTALL_PATH."/plugins/gui.ajax/res/html/gui.html");
229221
}
230-
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])) {
231-
$content = str_replace("ajaxplorer_boot.js", "ajaxplorer_boot_protolegacy.js", $content);
222+
if (preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT'])){
223+
$ADDITIONAL_FRAMEWORKS = "";
232224
}
233225
$content = str_replace("AJXP_ADDITIONAL_JS_FRAMEWORKS", $ADDITIONAL_FRAMEWORKS, $content);
234226
$content = AJXP_XMLWriter::replaceAjxpXmlKeywords($content, false);

core/src/plugins/gui.ajax/res/html/gui_debug.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323

2424
<?php
2525
$list = AJXP_INSTALL_PATH."/".CLIENT_RESOURCES_FOLDER."/js/ajaxplorer_boot_list.txt";
26-
if(preg_match('/MSIE 7/',$_SERVER['HTTP_USER_AGENT']) || preg_match('/MSIE 8/',$_SERVER['HTTP_USER_AGENT'])){
27-
$list = AJXP_INSTALL_PATH."/".CLIENT_RESOURCES_FOLDER."/js/ajaxplorer_boot_protolegacy_list.txt";
28-
}
2926
$lines = file($list);
3027
foreach ($lines as $line){
3128
print("<script language=\"javascript\" type=\"text/javascript\" src=\"".CLIENT_RESOURCES_FOLDER."/".trim($line)."\"></script>\n");

core/src/plugins/gui.ajax/res/js/ajaxplorer_boot_protolegacy.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/plugins/gui.ajax/res/js/ajaxplorer_boot_protolegacy_list.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

core/src/plugins/gui.ajax/res/js/core/util/LangUtils.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ var LangUtils = (function () {
2727
LangUtils.parseUrl = function parseUrl(data) {
2828
var matches = $A();
2929
//var e=/((http|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+\.[^#?\s]+)(#[\w\-]+)?/;
30-
var detect = /(((ajxp\.)(\w+)):\/)?\/?([^:\/\s]+)((\/\w+)*\/)(.*)(#[\w\-]+)?/g;
30+
var detect = /(pydio:\/)?\/?([^:\/\s]+)((\/\w+)*\/)(.*)(#[\w\-]+)?/g;
3131
var results = data.match(detect);
3232
if (results && results.length) {
33-
var e = /^((ajxp\.(\w+)):\/)?\/?([^:\/\s]+)((\/\w+)*\/)(.*)(#[\w\-]+)?$/;
33+
var e = /^((pydio):\/)?\/?([^:\/\s]+)((\/\w+)*\/)(.*)(#[\w\-]+)?$/;
3434
for (var i = 0; i < results.length; i++) {
3535
if (results[i].match(e)) {
3636
matches.push({ url: RegExp['$&'],
3737
protocol: RegExp.$2,
38-
host: RegExp.$4,
39-
path: RegExp.$5,
40-
file: RegExp.$7,
41-
hash: RegExp.$8 });
38+
host: RegExp.$3,
39+
path: RegExp.$4,
40+
file: RegExp.$6,
41+
hash: RegExp.$7 });
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)