From 3d20f2f6703f3a814f45ec751c79364963d93042 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Fri, 22 Aug 2014 22:02:01 +0400 Subject: [PATCH] Prepare WebUI resources. Html/Css/JavaScript files displacement. Also add new icon. --- src/Icons/oxygen/system-log-out.png | Bin 0 -> 1532 bytes src/icons.qrc | 7 +- src/webui/webui.pri | 14 ++-- src/webui/webui.qrc | 74 ++++++++--------- src/webui/{html => www/private}/index.html | 61 +++++++------- src/webui/www/private/login.html | 76 ++++++++++++++++++ src/webui/{html => www/public}/about.html | 0 .../{html => www/public}/addtrackers.html | 0 .../{html => www/public}/confirmdeletion.html | 0 src/webui/{ => www/public}/css/Core.css | 0 src/webui/{ => www/public}/css/Layout.css | 0 src/webui/{ => www/public}/css/Tabs.css | 0 src/webui/{ => www/public}/css/Window.css | 0 .../{ => www/public}/css/dynamicTable.css | 0 src/webui/{ => www/public}/css/style.css | 0 src/webui/{html => www/public}/download.html | 0 .../{html => www/public}/downloadlimit.html | 0 src/webui/{html => www/public}/filters.html | 0 .../{html => www/public}/preferences.html | 0 .../public}/preferences_content.html | 0 .../{html => www/public}/prop-files.html | 0 .../{html => www/public}/prop-general.html | 0 .../{html => www/public}/prop-trackers.html | 0 .../{html => www/public}/properties.html | 0 src/webui/{ => www/public}/scripts/client.js | 0 .../{ => www/public}/scripts/contextmenu.js | 0 .../{ => www/public}/scripts/download.js | 0 .../{ => www/public}/scripts/dynamicTable.js | 0 .../public}/scripts/excanvas-compressed.js | 0 .../{ => www/public}/scripts/mocha-init.js | 25 ++++-- .../{ => www/public}/scripts/mocha-yc.js | 0 src/webui/{ => www/public}/scripts/mocha.js | 0 .../public}/scripts/mootools-1.2-core-yc.js | 0 .../public}/scripts/mootools-1.2-more.js | 0 .../{ => www/public}/scripts/parametrics.js | 0 .../{ => www/public}/scripts/progressbar.js | 0 .../{html => www/public}/transferlist.html | 0 src/webui/{html => www/public}/upload.html | 0 .../{html => www/public}/uploadlimit.html | 0 39 files changed, 174 insertions(+), 83 deletions(-) create mode 100644 src/Icons/oxygen/system-log-out.png rename src/webui/{html => www/private}/index.html (67%) create mode 100644 src/webui/www/private/login.html rename src/webui/{html => www/public}/about.html (100%) rename src/webui/{html => www/public}/addtrackers.html (100%) rename src/webui/{html => www/public}/confirmdeletion.html (100%) rename src/webui/{ => www/public}/css/Core.css (100%) rename src/webui/{ => www/public}/css/Layout.css (100%) rename src/webui/{ => www/public}/css/Tabs.css (100%) rename src/webui/{ => www/public}/css/Window.css (100%) rename src/webui/{ => www/public}/css/dynamicTable.css (100%) rename src/webui/{ => www/public}/css/style.css (100%) rename src/webui/{html => www/public}/download.html (100%) rename src/webui/{html => www/public}/downloadlimit.html (100%) rename src/webui/{html => www/public}/filters.html (100%) rename src/webui/{html => www/public}/preferences.html (100%) rename src/webui/{html => www/public}/preferences_content.html (100%) rename src/webui/{html => www/public}/prop-files.html (100%) rename src/webui/{html => www/public}/prop-general.html (100%) rename src/webui/{html => www/public}/prop-trackers.html (100%) rename src/webui/{html => www/public}/properties.html (100%) rename src/webui/{ => www/public}/scripts/client.js (100%) rename src/webui/{ => www/public}/scripts/contextmenu.js (100%) rename src/webui/{ => www/public}/scripts/download.js (100%) rename src/webui/{ => www/public}/scripts/dynamicTable.js (100%) rename src/webui/{ => www/public}/scripts/excanvas-compressed.js (100%) rename src/webui/{ => www/public}/scripts/mocha-init.js (87%) rename src/webui/{ => www/public}/scripts/mocha-yc.js (100%) rename src/webui/{ => www/public}/scripts/mocha.js (100%) rename src/webui/{ => www/public}/scripts/mootools-1.2-core-yc.js (100%) rename src/webui/{ => www/public}/scripts/mootools-1.2-more.js (100%) rename src/webui/{ => www/public}/scripts/parametrics.js (100%) rename src/webui/{ => www/public}/scripts/progressbar.js (100%) rename src/webui/{html => www/public}/transferlist.html (100%) rename src/webui/{html => www/public}/upload.html (100%) rename src/webui/{html => www/public}/uploadlimit.html (100%) diff --git a/src/Icons/oxygen/system-log-out.png b/src/Icons/oxygen/system-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6Hb_8>d zA3WP60MrA(0BB7uxj69M7^WSeZ&K0_AMDwRqlGaYy=7TizUuEUWbpB>Cj#?uyf#1h z{dJ7wOF#fgh)JLkfN*6L0#JG%;?*A}aMueiQLS`3jgR(jLvJFg%_ETrVzC%L+r3fm z7si+#x4;Pwo}R?WVi_Rjxs?Ru-z5N(#IlQ_pKf7>GcZ}GRnLX7Ip0Zg?-wG`m2@|j1fU;>tc=$&4~6`zjlD0000 - + + Icons/3-state-checkbox.gif Icons/L.gif Icons/loading.png @@ -349,5 +349,6 @@ Icons/skin/tabs.gif Icons/skin/toolbox-divider.gif Icons/skin/uploading.png + Icons/oxygen/system-log-out.png - \ No newline at end of file + diff --git a/src/webui/webui.pri b/src/webui/webui.pri index d5153d7d5..fb893d47b 100644 --- a/src/webui/webui.pri +++ b/src/webui/webui.pri @@ -6,10 +6,11 @@ HEADERS += $$PWD/httpserver.h \ $$PWD/httpresponsegenerator.h \ $$PWD/btjson.h \ $$PWD/prefjson.h \ - $$PWD/httpheader.h \ - $$PWD/httprequestheader.h \ - $$PWD/httpresponseheader.h \ - $$PWD/jsonutils.h + $$PWD/jsonutils.h \ + $$PWD/httptypes.h \ + $$PWD/extra_translations.h \ + $$PWD/webapplication.h \ + $$PWD/requesthandler.h SOURCES += $$PWD/httpserver.cpp \ $$PWD/httpconnection.cpp \ @@ -17,9 +18,8 @@ SOURCES += $$PWD/httpserver.cpp \ $$PWD/httpresponsegenerator.cpp \ $$PWD/btjson.cpp \ $$PWD/prefjson.cpp \ - $$PWD/httpheader.cpp \ - $$PWD/httprequestheader.cpp \ - $$PWD/httpresponseheader.cpp + $$PWD/webapplication.cpp \ + $$PWD/requesthandler.cpp # QJson JSON parser/serializer for using with Qt4 lessThan(QT_MAJOR_VERSION, 5) { diff --git a/src/webui/webui.qrc b/src/webui/webui.qrc index 08d58de79..035301d86 100644 --- a/src/webui/webui.qrc +++ b/src/webui/webui.qrc @@ -1,37 +1,39 @@ - - - html/index.html - html/download.html - html/addtrackers.html - html/upload.html - html/about.html - html/filters.html - html/transferlist.html - html/prop-general.html - html/prop-trackers.html - html/prop-files.html - html/properties.html - html/uploadlimit.html - html/downloadlimit.html - html/preferences.html - html/preferences_content.html - html/confirmdeletion.html - css/Core.css - css/Layout.css - css/Window.css - css/Tabs.css - css/dynamicTable.css - css/style.css - scripts/excanvas-compressed.js - scripts/mocha-yc.js - scripts/mocha-init.js - scripts/mootools-1.2-core-yc.js - scripts/mootools-1.2-more.js - scripts/dynamicTable.js - scripts/client.js - scripts/download.js - scripts/progressbar.js - scripts/contextmenu.js - scripts/parametrics.js - + + + www/private/index.html + www/private/login.html + www/public/css/Core.css + www/public/css/dynamicTable.css + www/public/css/Layout.css + www/public/css/style.css + www/public/css/Tabs.css + www/public/css/Window.css + www/public/scripts/client.js + www/public/scripts/contextmenu.js + www/public/scripts/download.js + www/public/scripts/dynamicTable.js + www/public/scripts/excanvas-compressed.js + www/public/scripts/mocha.js + www/public/scripts/mocha-init.js + www/public/scripts/mocha-yc.js + www/public/scripts/mootools-1.2-core-yc.js + www/public/scripts/mootools-1.2-more.js + www/public/scripts/parametrics.js + www/public/scripts/progressbar.js + www/public/about.html + www/public/addtrackers.html + www/public/confirmdeletion.html + www/public/download.html + www/public/downloadlimit.html + www/public/filters.html + www/public/preferences.html + www/public/preferences_content.html + www/public/properties.html + www/public/prop-files.html + www/public/prop-general.html + www/public/prop-trackers.html + www/public/transferlist.html + www/public/upload.html + www/public/uploadlimit.html + diff --git a/src/webui/html/index.html b/src/webui/www/private/index.html similarity index 67% rename from src/webui/html/index.html rename to src/webui/www/private/index.html index 44f0cae9c..33f5fded8 100644 --- a/src/webui/html/index.html +++ b/src/webui/www/private/index.html @@ -8,10 +8,10 @@ - - - - + + + +