aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui
Commit message (Collapse)AuthorAgeFilesLines
* webui: Some JavaScript cleanups and refactorsAaron LI2016-11-285-244/+258
| | | | | Credit: "JavaScript: The Good Parts" by Douglas Crockford
* webui: Replace jQuery.when() with jQuery.Deferred's .then()Aaron LI2016-11-241-5/+5
| | | | | | | | | | Note that jQuery.when() can NOT promise the ordering of the passed Deferred's. Therefore, chain multiple AJAX requests using ".then()" and ".done()" to keep them ordered. This fixes the configurations loading problem on IE (v11), which calls the "when()" arguments in different orders as Firefox and Chromium, thus leads to the wrong results.
* webui: Use new ".getJSONUncached()" instead of ".getJSON()"Aaron LI2016-11-243-7/+7
|
* webui: Extend jQuery with "getJSONUncached()"Aaron LI2016-11-241-6/+27
| | | | | | | | | | This jQuery extension sent the AJAX GET request but force the requested page NOT to be cached by the browser! NOTE: IE will by default cache the GET request even the contents has changed. Credit: https://stackoverflow.com/a/35130770/4856091
* webui: Update modal box stylesAaron LI2016-11-242-28/+43
|
* webui: configs.js: Trigger "Enter keypress" event after field updatedAaron LI2016-11-241-6/+9
| | | | | | | | When the value of a configuration field is updated by jQuery ".val()", trigger the "Enter keypress" event to update its related contents, e.g., the resolution note for "common/nside". Remove the wrong "Enter keypress" event triggering on page loading.
* webui: configs.html: Add placeholder for several fieldsAaron LI2016-11-241-4/+4
|
* webui: products.js: Support download healpix/hpx productsAaron LI2016-11-241-6/+25
|
* webui: Bind "ProductsDownloadHandler" to URI "/products/download/"Aaron LI2016-11-241-0/+2
|
* webui: products.py: Add new "ProductsDownloadHandler"Aaron LI2016-11-242-2/+75
| | | | | This new handler is based on the "StaticFileHandler", and will be used to serve the simulated products for downloading.
* webui: main.js: Prevent form submitting on "Enter" pressAaron LI2016-11-241-0/+9
|
* webui: configs.html: Improve the form layout and stylesAaron LI2016-11-232-33/+49
|
* webui: main.css: Hide the spinner in "number" inputAaron LI2016-11-231-0/+13
| | | | | | Tested on both Firefox (v45.4) and Chromium (v53.0). Credit: https://stackoverflow.com/a/23374725/4856091
* webui: products: Add the client-side support for opening HPX imagesAaron LI2016-11-232-13/+70
|
* webui: ProductsAJAXHandler: implement the "open" GET actionAaron LI2016-11-231-3/+59
| | | | | The new method "_open_hpx()" is added to open the requested the HPX FITS image using the Python subprocess.
* webui: configs.js: Trigger "Enter" after page load on "common/nside"Aaron LI2016-11-231-14/+15
| | | | | Refactor the "click" event handler on "common/nside" to avoid the duplicated code on resolution calculation.
* webui: products: Implement GET action "which"Aaron LI2016-11-232-1/+37
| | | | | | | | The "which" GET action try to locate the given executable name/path, in order to check whether the executable callable. This function will be used to check the validity of the specified FITS viewer, which opens the HPX FITS images.
* webui: Add "from_localhost" to IndexHandler and products templateAaron LI2016-11-232-1/+15
|
* webui: utils: Remove three unused functionsAaron LI2016-11-231-97/+0
|
* webui: WSHandler: remove "check_origin()" and "hosts_allowed" optionAaron LI2016-11-231-43/+0
|
* webui: products: Implement HPX conversion functionAaron LI2016-11-223-18/+71
|
* Update the MIT license URLAaron LI2016-11-221-1/+1
|
* webui: products.js: Convert file size from bytes to MBAaron LI2016-11-221-4/+5
|
* webui: main.js: Add new styles for "products.html"Aaron LI2016-11-221-1/+19
| | | | Also update the ".btn" rule and add the ".btn.btn-small" rule
* webui: products: Implement client-side AJAX interactionsAaron LI2016-11-222-0/+290
|
* webui: Add "ProductsAJAXHandler" to manipulate the products manifestAaron LI2016-11-223-0/+180
| | | | TODO: some actions currently not implemented yet
* webui: Finish the "products.html" pageAaron LI2016-11-221-4/+37
|
* webui: Update against the improved "showModal()"Aaron LI2016-11-222-16/+16
|
* webui: main.js: Extend "showModal()" with "title" and "contents"Aaron LI2016-11-221-4/+15
| | | | | * Change original "message" attribute to "title" * Add new attribute "contents" which allow multiple paragraphs
* webui: Add "/debug" handler when in debug mode.Aaron LI2016-11-222-0/+10
|
* webui: Move several generic functions from "configs.js" to "main.js"Aaron LI2016-11-222-47/+47
|
* webui: configs: Some minor fixesAaron LI2016-11-222-9/+22
| | | | | | | | * configs.py/_set_configs(): Also return the original data if the input values failed the validation; * setServerConfigs(): Success callback also reset value if the input value failed pass the server-side validation; * getServerConfigs(): Return "undefined" if key does not exists.
* webui: configs.html: Add field "output/manifest"Aaron LI2016-11-221-0/+6
|
* webui: websocket.py: Also push current task status when connectedAaron LI2016-11-212-0/+18
|
* Update the "process time" to "CPU process time"Aaron LI2016-11-211-2/+2
|
* webui: configs: Add pixel resolution note for "common/nside"Aaron LI2016-11-192-6/+33
| | | | | | * Calculate pixel resolution note on pressing "Enter" in "common/nside" * Update the pixel resolution note as well as "common/lmax" when "common/nside" changed.
* webui: Rename "Results" to "Products"Aaron LI2016-11-194-16/+16
|
* webui: Minor update the docstring.Aaron LI2016-11-192-2/+6
|
* webui: Remove jQuery version from its filenameAaron LI2016-11-182-1/+1
|
* webui: console.py: Fix the wrong import path for "Foregrounds"Aaron LI2016-11-181-1/+1
|
* webui: configs.js: Fix two bugsAaron LI2016-11-181-2/+2
| | | | | * Fix the wrong "action=reset" in "setServerConfigs()" * Add the missing "return" in the jQuery AJAX chain
* webui: Rename jQuery ".fail()" callback argument "error" to "jqxhr"Aaron LI2016-11-182-21/+21
|
* webui: console.js: Disable the "Start" button when task startedAaron LI2016-11-181-0/+7
|
* webui: main.js: Extend jQuery with ".disable()"Aaron LI2016-11-181-1/+16
|
* webui: Redirect to login page if not authenticated on POST requestAaron LI2016-11-184-12/+14
| | | | | | * Remove the authentication requirement on GET operation * "main.js": Redirect to the login page if POST response 403 forbidden * "main.js": Use global AJAX events handling instead of `$.ajaxSetup()`
* webui: console.py: Add timing reportsAaron LI2016-11-181-2/+16
|
* webui: Fix a bug for "showModal()"; Cleanup ".onmessage()"Aaron LI2016-11-172-16/+6
|
* configs: Update logging message formatAaron LI2016-11-171-2/+8
| | | | | * Also update the logging messages styles for the Web UI * Show a modal notification when the task finished.
* webui: console.js: Change to use AJAX instead of WebSocket messagesAaron LI2016-11-172-42/+65
| | | | Also support modal dialog for confirmation and operation results.
* webui: console.py: Change to request/response instead of WebSocketAaron LI2016-11-171-198/+145
| | | | | | | | * Rename to "ConsoleAJAXHandler" * Change to use the request/response model, which accepts the AJAX request and then response. * Update logging handler to push messages to all connected clients * Many simplifications and rewrites.