]
RESOURCES_FE = [
'index.html',
- 'service_request.html',
'screen.css',
'reset.css'
]
//
// Armadillo File Manager
-// Copyright (c) 2010-2011, Robert Sesek <http://www.bluestatic.org>
+// Copyright (c) 2010, Robert Sesek <http://www.bluestatic.org>
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
var gConfig *config.Configuration = nil
func indexHandler(response http.ResponseWriter, request *http.Request) {
- var fileName string = "index.html"
- if strings.HasPrefix(request.URL.Path, "/_@/") {
- fileName = "service_request.html"
- }
- fd, err := os.Open(path.Join(kFrontEndFiles, fileName), os.O_RDONLY, 0)
+ fd, err := os.Open(path.Join(kFrontEndFiles, "index.html"), os.O_RDONLY, 0)
if err != nil {
fmt.Print("Error opening file ", err.String(), "\n")
return
<script type="text/javascript" charset="utf-8">
var app = new armadillo.App();
- app.frontEndMain();
</script>
</body>
</html>
\ No newline at end of file
//
// Armadillo File Manager
-// Copyright (c) 2010-2011, Robert Sesek <http://www.bluestatic.org>
+// Copyright (c) 2010, Robert Sesek <http://www.bluestatic.org>
//
// This program is free software: you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
goog.require('goog.Uri.QueryData');
armadillo.App = function() {
-}
-
-/**
- * Runs the main front end.
- */
-armadillo.App.prototype.frontEndMain = function() {
var start_path = '/';
if (window.location.hash) {
start_path = window.location.hash.substr(1);
armadillo.Version.MAJOR, armadillo.Version.MINOR,
armadillo.Version.BUILD);
goog.dom.setTextContent(goog.dom.getElement('footer'), version)
-};
-
-/**
- * Performs a remote service request, which is essentially an API call that uses
- * the JavaScript frontend rather than the backend.
- */
-armadillo.App.prototype.serviceRequestMain = function() {
- document.write(window.location);
- console.log(window.location);
-};
+}
/**
* Starts a new XHR service request from the backend.
+++ /dev/null
-<html>
- <script type="text/javascript">
- var CLOSURE_NO_DEPS = true;
- </script>
- <script type="text/javascript" src="/fe/armadillo.js"></script>
- <script type="text/javascript" charset="utf-8">
- var app = new armadillo.App();
- app.serviceRequestMain();
- </script>
-</html>
\ No newline at end of file