From 1cc2bdaaa95ca42f6d2ad9c23efc129b725bf1c4 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 25 Feb 2015 21:42:20 +0100 Subject: [PATCH] - yWeb: add filemanager --- src/nhttpd/web/Makefile.am | 8 + .../httpd/Y_Ext_Filemgr.css => Y_Filemgr.css} | 0 .../Y_Ext_Filemgr.yhtm => Y_Filemgr.yhtm} | 6 +- ..._Filemgr_Edit.yhtm => Y_Filemgr_Edit.yhtm} | 6 +- ...ilemgr_blocks.txt => Y_Filemgr_blocks.txt} | 0 src/nhttpd/web/Y_Tools_Menue.yhtm | 8 +- src/nhttpd/web/Y_Version.txt | 4 +- .../filemgr/files/httpd => }/accordion.js | 0 .../filemgr/files/httpd => }/effects.js | 0 .../extentions/filemgr/filemgr_uninstall.inc | 44 ------ .../filemgr/files/httpd/images/properties.gif | Bin 214 -> 0 bytes .../filemgr/files/httpd/images/rename.gif | Bin 345 -> 0 bytes .../filemgr/files/httpd/images/save.png | Bin 620 -> 0 bytes src/nhttpd/web/extentions/filemgr/install.inc | 20 --- src/nhttpd/web/extentions/filemgr/install.sh | 143 ------------------ .../web/extentions/filemgr/uninstall.sh | 136 ----------------- src/nhttpd/web/images/Makefile.am | 20 +++ .../filemgr/files/httpd => }/images/chmod.png | Bin .../filemgr/files/httpd => }/images/copy.gif | Bin .../filemgr/files/httpd => }/images/cut.png | Bin .../files/httpd => }/images/dir_up.gif | Bin .../files/httpd => }/images/download.png | Bin .../filemgr/files/httpd => }/images/film.png | Bin .../files/httpd => }/images/folder_add.png | Bin .../files/httpd => }/images/ftype_file.png | Bin .../files/httpd => }/images/ftype_folder.png | Bin .../files/httpd => }/images/ftype_link.png | Bin .../filemgr/files/httpd => }/images/home.png | Bin .../files/httpd => }/images/package.png | Bin .../files/httpd => }/images/page_edit.png | Bin .../filemgr/files/httpd => }/images/paste.gif | Bin .../files/httpd => }/images/picture.png | Bin .../filemgr/files/httpd => }/images/text.png | Bin .../files/httpd => }/images/upload.png | Bin .../filemgr/files/httpd => }/images/work.gif | Bin src/nhttpd/web/languages/Deutsch | 2 + src/nhttpd/web/languages/English | 2 + src/nhttpd/web/scripts/Makefile.am | 3 + .../filemgr/files/httpd => }/scripts/Y_NAS.sh | 0 39 files changed, 49 insertions(+), 353 deletions(-) rename src/nhttpd/web/{extentions/filemgr/files/httpd/Y_Ext_Filemgr.css => Y_Filemgr.css} (100%) rename src/nhttpd/web/{extentions/filemgr/files/httpd/Y_Ext_Filemgr.yhtm => Y_Filemgr.yhtm} (98%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd/Y_Ext_Filemgr_Edit.yhtm => Y_Filemgr_Edit.yhtm} (91%) rename src/nhttpd/web/{extentions/filemgr/files/httpd/Y_Ext_Filemgr_blocks.txt => Y_Filemgr_blocks.txt} (100%) rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/accordion.js (100%) rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/effects.js (100%) delete mode 100644 src/nhttpd/web/extentions/filemgr/filemgr_uninstall.inc delete mode 100755 src/nhttpd/web/extentions/filemgr/files/httpd/images/properties.gif delete mode 100755 src/nhttpd/web/extentions/filemgr/files/httpd/images/rename.gif delete mode 100755 src/nhttpd/web/extentions/filemgr/files/httpd/images/save.png delete mode 100644 src/nhttpd/web/extentions/filemgr/install.inc delete mode 100755 src/nhttpd/web/extentions/filemgr/install.sh delete mode 100755 src/nhttpd/web/extentions/filemgr/uninstall.sh rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/chmod.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/copy.gif (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/cut.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/dir_up.gif (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/download.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/film.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/folder_add.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/ftype_file.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/ftype_folder.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/ftype_link.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/home.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/package.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/page_edit.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/paste.gif (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/picture.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/text.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/upload.png (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/images/work.gif (100%) mode change 100755 => 100644 rename src/nhttpd/web/{extentions/filemgr/files/httpd => }/scripts/Y_NAS.sh (100%) diff --git a/src/nhttpd/web/Makefile.am b/src/nhttpd/web/Makefile.am index a7b0dff3f..3ac76f49a 100644 --- a/src/nhttpd/web/Makefile.am +++ b/src/nhttpd/web/Makefile.am @@ -91,3 +91,11 @@ install_DATA = channels.js \ ywidget.css \ ywidget.js \ Y_yweb.js + +# file manager +install_DATA += accordion.js \ + effects.js \ + Y_Filemgr.css \ + Y_Filemgr.yhtm \ + Y_Filemgr_Edit.yhtm \ + Y_Filemgr_blocks.txt diff --git a/src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr.css b/src/nhttpd/web/Y_Filemgr.css similarity index 100% rename from src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr.css rename to src/nhttpd/web/Y_Filemgr.css diff --git a/src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr.yhtm b/src/nhttpd/web/Y_Filemgr.yhtm old mode 100755 new mode 100644 similarity index 98% rename from src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr.yhtm rename to src/nhttpd/web/Y_Filemgr.yhtm index 38bdff8cb..51fd6b535 --- a/src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr.yhtm +++ b/src/nhttpd/web/Y_Filemgr.yhtm @@ -1,5 +1,5 @@ {=include-block:Y_Blocks.txt;head=} - + @@ -553,7 +553,7 @@ function do_download(){ } function do_edit(){ if($F('ftype') != "d") - window.open("/Y_Ext_Filemgr_Edit.yhtm?file="+explorer.build_fname(),"edit", "width=800,height=600,resizable=yes"); + window.open("/Y_Filemgr_Edit.yhtm?file="+explorer.build_fname(),"edit", "width=800,height=600,resizable=yes"); else alert("you can not edit a directory"); } @@ -693,7 +693,7 @@ function ni() { - + diff --git a/src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr_Edit.yhtm b/src/nhttpd/web/Y_Filemgr_Edit.yhtm similarity index 91% rename from src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr_Edit.yhtm rename to src/nhttpd/web/Y_Filemgr_Edit.yhtm index e6990ba39..4318080a1 100644 --- a/src/nhttpd/web/extentions/filemgr/files/httpd/Y_Ext_Filemgr_Edit.yhtm +++ b/src/nhttpd/web/Y_Filemgr_Edit.yhtm @@ -1,5 +1,5 @@ {=include-block:Y_Blocks.txt;head=} - +