[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 

Changeset 11643


Ignore:
Timestamp:
05/18/15 20:16:17 (4 years ago)
Author:
srloomis
Message:

cldrbug 8515: sync with git a1ea51b1597b7e264b0735e446271efac73a5603 - charts work

Location:
trunk/tools/cldr-apps-watcher
Files:
5 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/cldr-apps-watcher/.cfignore

    r11634 r11643  
    1010local-creds.sh 
    1111public/bower_components/ 
    12 npm-debug.log 
     12npm-debug.logdesigndocs 
  • trunk/tools/cldr-apps-watcher/.gitignore

    r10291 r11643  
    44node_modules 
    55cldr-stwatcher.esproj/user* 
    6 config/akka.json 
    76npmdebug.log 
    8 config/milu.json 
    9 config/runtime.json 
    10 config/gdx.json 
    117**/*~ 
  • trunk/tools/cldr-apps-watcher/public/javascripts/stwatcher-client.js

    r10291 r11643  
    9292                     
    9393                    for(var k in json.data ) { 
    94                         var row = json.data[k]; 
     94                        var row = json.data[k].value; 
    9595                        var when = new Date(row.when).getTime(); 
    9696                        var usersn = -3.0; 
  • trunk/tools/cldr-apps-watcher/routes/stwatcher.js

    r11634 r11643  
    445445        var server = req.query.server; 
    446446        var limit = 1024; 
    447         //if(req.query.limit) { 
    448         //limit = Integer.parse(req.query.limit); 
    449         //} 
     447        if(req.query.limit) { 
     448                limit = (req.query.limit); 
     449                if(limit > 1024) { 
     450                        limit = 1024; 
     451                } 
     452        } 
    450453     
    451454       // TODO: IMP 
    452        if(false) { 
     455             db.view('myview', 'serverWhen', { 
     456                startkey: [ server, {} ], 
     457                endkey: [server ], 
     458                inclusive_end: true, 
     459                descending: true, 
     460                limit: limit 
     461             },function(err, body) { 
     462                if(err) { res.send({now: new Date().getTime(), server: server, err: 'DB error'}); return; } 
     463                res.send({now: new Date().getTime(), server: server, data: body.rows}); 
     464             }); 
     465 
    453466//            FetchStatus.find({server: server}, limit, ["when","Z"], function(err, stat) { 
    454467//                if(err) throw (err); 
     
    460473//                } 
    461474//            }); 
    462        } 
     475 
    463476    }; 
    464477 
  • trunk/tools/cldr-apps-watcher/views/index.jade

    r11634 r11643  
    44block content 
    55  h1= SurveyWatcher 
    6   p Note - Charts are currently not working. Pardon the dust as we move to the new host. 
    7   p Welcome to the SurveyWatcher 
     6  p Welcome to the SurveyWatcher. Charts are back! 
    87  hr 
    98  div(id='statusdiv') 
     
    2120  p chart does not reload unless you click the history button again. 
    2221  hr 
    23   p Note - Charts are currently not working. Pardon the dust as we move to the new host. 
    24   hr 
    2522  i(id='powered') Powered by node.js #{process.version}, Express.js.  Running on  
    2623    a(href='http://bluemix.net') IBM Bluemix 
  • trunk/tools/cldr-apps-watcher/views/layout.jade

    r10291 r11643  
    55    link(rel='stylesheet', href='/stylesheets/style.css') 
    66    script(src='//ajax.googleapis.com/ajax/libs/dojo/1.9.3/dojo/dojo.js') 
    7     script window.default_stw_config = { reloadMode: false, jsonurl: '/latest.json', polltime: #{watcher.polltime} }; 
     7    script window.default_stw_config = { reloadMode: false, jsonurl: '/latest.json', polltime: 30}; 
     8     
    89    script(src='/javascripts/stwatcher-client.js') 
    9          
    1010  body 
    1111    block content 
Note: See TracChangeset for help on using the changeset viewer.