

diff --git a/.gitignore b/.gitignore index b078b75..182c522 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ Release *.o *.o.d *.mk - +.vscode/** diff --git a/HTTPConnection.h b/HTTPConnection.h index c0f3c5d..7b306e2 100644 --- a/HTTPConnection.h +++ b/HTTPConnection.h @@ -14,7 +14,7 @@ namespace http { void onDataReceived(char *data, int len) override { - coreutils::Log(coreutils::LOG_DEBUG_1) << data; +// coreutils::Log(coreutils::LOG_DEBUG_1) << data; protocol(std::string(data, len)); send(); diff --git a/HTTPPage.h b/HTTPPage.h index dcafa15..da5737c 100644 --- a/HTTPPage.h +++ b/HTTPPage.h @@ -9,11 +9,13 @@ namespace http { class HTTPPage : public core::Object { - - public: + + public: bool check(std::string request) { if(request != "") { - if(name.length() > 0) { + if(request.find("?") != -1) + request = request.substr(0, request.find("?")); + if(name.length() > 0) { if(name == request) return true; } @@ -22,14 +24,14 @@ namespace http { return false; } - virtual int processCommand(std::string request, - core::TCPSession *session, - HTTPSession *httpSession, - HTTPRequest *httpRequest, + virtual int processCommand(std::string request, + core::TCPSession *session, + HTTPSession *httpSession, + HTTPRequest *httpRequest, std::stringstream &data) { return false; } - + }; } diff --git a/HTTPServer b/HTTPServer index 309bd8b..3a37bee 100755 Binary files a/HTTPServer and b/HTTPServer differ diff --git a/__editview.h b/__editview.h index 48c340e..0dd21b6 100644 --- a/__editview.h +++ b/__editview.h @@ -2,6 +2,7 @@ #define ____editview_h__ #include "HTTPPage.h" +#include "File.h" namespace http { @@ -23,7 +24,11 @@ namespace http { data << " " << std::endl; data << "" << std::endl; - data << "
" << std::endl; + coreutils::File workspace("/home/barant/jetserver/views/testview1.view"); + workspace.read(); + data << "" + dragobject.nodeName + "
" +
+
+ data.innerHTML = "
" + dragobject.nodeName + "
" +
"Action: " + dragHint + "
" +
"MouseLocation: " + mouseX + ":" + mouseY + "
" +
- "MouseOver Location: " + (mouseX - dragobject.offsetLeft) + ":" + (mouseY - dragobject.offsetTop) + "
" +
- "Location: " + dragobject.style.left + ":" + dragobject.style.top + "
" +
- "Size: " + dragobject.style.width + ":" + dragobject.style.height + "
" +
+ "MouseOver Location: " + (mouseX - dragobject.offsetLeft) + ":" + (mouseY - dragobject.offsetTop) + "
" +
+ "Location: " + dragobject.style.left + ":" + dragobject.style.top + "
" +
+ "Size: " + dragobject.style.width + ":" + dragobject.style.height + "
" +
"
" + mouseabove.nodeName + "
" +
+
+ data.innerHTML = "
" + mouseabove.nodeName + "
" +
"Action: " + dragHint + "
" +
"MouseLocation: " + mouseX + ":" + mouseY + "
" +
- "MouseOver Location: " + (mouseX - mouseabove.offsetLeft) + ":" + (mouseY - mouseabove.offsetTop) + "
" +
- "Location: " + mouseabove.style.left + ":" + mouseabove.style.top + "
" +
- "Size: " + mouseabove.style.width + ":" + mouseabove.style.height + "
" +
+ "MouseOver Location: " + (mouseX - mouseabove.offsetLeft) + ":" + (mouseY - mouseabove.offsetTop) + "
" +
+ "Location: " + mouseabove.style.left + ":" + mouseabove.style.top + "
" +
+ "Size: " + mouseabove.style.width + ":" + mouseabove.style.height + "
" +
"
" + selected.nodeName + ": " + selected.id + "
" +
- "Location: " + selected.style.left + ":" + selected.style.top + "
" +
- "Size: " + selected.style.width + ":" + selected.style.height + "
" +
+ itemparameters.innerHTML = "
" + selected.nodeName + ": " + selected.id + "
" +
+ "Location: " + selected.style.left + ":" + selected.style.top + "
" +
+ "Size: " + selected.style.width + ":" + selected.style.height + "
" +
"