diff --git a/document_roots/webhost/README.md b/document_roots/webhost/README.md index 2b6c63d..249d16f 100644 --- a/document_roots/webhost/README.md +++ b/document_roots/webhost/README.md @@ -1,17 +1,3 @@ # gPanel Frontend Development -The client side, front end of gPanel. Developed using Angular, SASS, and Bootstrap. Managed with NPM package manager. - -__Note__: In the early stages of development the frontend will be static HTML/CSS/JS. Once enough progress is made it will then be translated into Angular and SASS code. - -## Contribution Set-up & Deployment - -Layout and Components -```shell -gPanel/document_roots/webhost/gPanel.html -``` - -Styles -```shell -gPanel/document_roots/webhost/styles.css -``` +In the early stages of gPanel the only technologies we will be using on the front end are HTML/CSS/JS, utilizing the jQuery, bootstrap, and font-awesome libraries respectively. The reason for doing this is to keep front end development as simple as possible in order to push development of the overall software faster. diff --git a/document_roots/webhost/assets/js/panelHandlers/diagnostics/deleteLog.js b/document_roots/webhost/assets/js/panelHandlers/logs/delete.js similarity index 89% rename from document_roots/webhost/assets/js/panelHandlers/diagnostics/deleteLog.js rename to document_roots/webhost/assets/js/panelHandlers/logs/delete.js index 21b07ba..0737396 100644 --- a/document_roots/webhost/assets/js/panelHandlers/diagnostics/deleteLog.js +++ b/document_roots/webhost/assets/js/panelHandlers/logs/delete.js @@ -8,10 +8,10 @@ jQuery('._js_diagnostics-clear-log').on('click', function(e){ var title; switch(logName) { case "client_errors": - title = "Client Error Log (4xx)"; + title = "Client Error Log"; break; case "server_errors": - title = "Server Error Log (5xx)"; + title = "Server Error Log"; break; case "load_time": title = "Load Time Log"; @@ -27,7 +27,7 @@ jQuery('._js_diagnostics-clear-log').on('click', function(e){ requestData["name"] = logName+".log"; var xhr = new XMLHttpRequest(); - xhr.open('UPDATE', 'api/logs/delete', true); + xhr.open('UPDATE', 'api/log/delete', true); xhr.send(JSON.stringify(requestData)); xhr.onloadend = function() { diff --git a/document_roots/webhost/assets/js/panelHandlers/diagnostics/viewLog.js b/document_roots/webhost/assets/js/panelHandlers/logs/view.js similarity index 91% rename from document_roots/webhost/assets/js/panelHandlers/diagnostics/viewLog.js rename to document_roots/webhost/assets/js/panelHandlers/logs/view.js index d3e6bc9..423892e 100644 --- a/document_roots/webhost/assets/js/panelHandlers/diagnostics/viewLog.js +++ b/document_roots/webhost/assets/js/panelHandlers/logs/view.js @@ -8,10 +8,10 @@ jQuery('._js_diagnostics-view-log').on('click', function(e){ var title; switch(logName) { case "client_errors": - title = "Client Error Log (4xx)"; + title = "Client Error Log"; break; case "server_errors": - title = "Server Error Log (5xx)"; + title = "Server Error Log"; break; case "load_time": title = "Load Time Log"; @@ -27,7 +27,7 @@ jQuery('._js_diagnostics-view-log').on('click', function(e){ requestData["name"] = logName+".log"; var xhr = new XMLHttpRequest(); - xhr.open('POST', 'api/logs/read', true); + xhr.open('POST', 'api/log/read', true); xhr.send(JSON.stringify(requestData)); xhr.onloadend = function() { diff --git a/document_roots/webhost/gPanel.html b/document_roots/webhost/gPanel.html index 87681ca..8b0f623 100644 --- a/document_roots/webhost/gPanel.html +++ b/document_roots/webhost/gPanel.html @@ -72,8 +72,8 @@