Ignore:
Timestamp:
03/15/14 01:00:23 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Support different environments with QED_ENV. If dev, run against qed-dev database, if production, run against qed database. The UI indicates if we are running in anything but production mode.
  • Return undefined if we allow page leaves, because null is treated as a value.
  • Changed format of design docs, so it can work for different databases.
  • Use correct design documents in configCouch, so server now actually updates them when it starts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/index.js

    r472 r519  
    55    "./ui/MainMenu",
    66    "dojo/_base/array",
     7    "dojo/_base/xhr",
     8    "dojo/dom",
    79    "dojo/parser",
    810    "./stddeps",
    911    "dojo/domReady!"
    10 ], function(Router, routes, session, MainMenu, array, parser) {
     12], function(Router, routes, session, MainMenu, array, xhr, dom, parser) {
    1113
    1214    parser.parse();
    1315
    1416    new MainMenu({},"menu").startup();
     17
     18    xhr("GET", {
     19        url: 'api/mode',
     20        handleAs: 'json'
     21    }).then(function(result){
     22        var node = dom.byId('qedModeNode');
     23        if ( result.mode !== 'production' ) {
     24            node.innerHTML = "Running in "+result.mode+" mode";
     25        }
     26    });
    1527
    1628    array.forEach(routes,function(route){
Note: See TracChangeset for help on using the changeset viewer.