Changeset 408
- Timestamp:
- 09/05/12 15:50:38 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui
- Files:
-
- 3 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/build/build.sh
r407 r408 1 1 #!/bin/bash 2 3 PROFILE=$1 4 if [ -z "$PROFILE" ]; then 5 echo "Usage: $0 <profile.js>" 6 exit 1 7 fi 2 8 3 9 TIME0=$SECONDS … … 11 17 12 18 echo "Start Dojo build process." 13 "$SRCDIR/util/buildscripts/build.sh" --profile rft.profile.js19 "$SRCDIR/util/buildscripts/build.sh" --profile "$PROFILE" 14 20 15 21 echo "Copying application top level resources." -
Dev/branches/rest-dojo-ui/build/release.profile.js
r407 r408 37 37 'dijit', 38 38 'dojox', 39 'rft' 39 'rft', 40 'config' 40 41 ], 41 42 … … 48 49 'rft/run' :{ 49 50 include: [ 'rft/run' ] 51 }, 52 'config/db' :{ 53 include: [ 'config/db' ] 50 54 }/*, 51 55 'rft/view' :{ -
Dev/branches/rest-dojo-ui/client/config/db.js
r362 r408 6 6 'dojo/query', 7 7 'dijit/registry', 8 'dojo/text!./docs.json', 9 'dojo/domReady!', 10 'dijit/form/TextBox', 11 'dijit/form/Button', 12 'dijit/form/CheckBox', 13 ], 14 function(json,lang,xhr,parser,query,registry,docsJson){ 8 'dojo/domReady!' 9 ],function(json,lang,xhr,parser,query,registry){ 15 10 var logNode; 16 11 var usernameInput, passwordInput, resetInput, configButton; … … 18 13 var dbUrl = "../data/"; 19 14 20 parser.parse(); 15 parser.parse() 16 .then(function(){ 17 query("#log").forEach(function(n){logNode = n;}); 18 usernameInput = registry.byId('username'); 19 passwordInput = registry.byId('password'); 20 resetInput = registry.byId('reset'); 21 configButton = registry.byId('configure'); 21 22 22 query("#log").forEach(function(n){logNode = n;}); 23 usernameInput = registry.byId('username'); 24 passwordInput = registry.byId('password'); 25 resetInput = registry.byId('reset'); 26 configButton = registry.byId('configure'); 23 usernameInput.set('value',defaultUsername); 24 passwordInput.set('value',defaultPassword); 25 configButton.on('click',configure); 27 26 28 usernameInput.set('value',defaultUsername); 29 passwordInput.set('value',defaultPassword); 30 configButton.on('click',configure); 27 log("Give CouchDB admin username & password and click 'Configure' to start.\nIf the database already exists, rft_admin password will suffice.",true); 28 }); 31 29 32 log("Give CouchDB admin username & password and click 'Configure' to start.\nIf the database already exists, rft_admin password will suffice.",true);33 34 30 function configure(){ 35 31 var docs; -
Dev/branches/rest-dojo-ui/client/config/index.html
r352 r408 2 2 <html> 3 3 <head> 4 <title>Research Facilitator Tool - CouchDB Configure</title> 4 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 5 <title>Research Facilitator Tool - CouchDB Configure</title> 6 <script type="text/javascript" src="../dojotoolkit/dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: false, isDebug: true"></script> 7 <script type="text/javascript" src="db.js"></script> 8 <link rel="stylesheet" type="text/css" href="../dojotoolkit/dijit/themes/claro/claro.css" /> 6 <link rel="stylesheet" type="text/css" href="../dijit/themes/claro/claro.css" /> 9 7 <style> 10 8 label { … … 15 13 </head> 16 14 <body class="claro"> 15 <script type="text/javascript" src="../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: false, isDebug: true"></script> 16 <script type="text/javascript" src="db.js"></script> 17 17 <h1>Configure CouchDB</h1> 18 18 <div> 19 <label for="username">Admin username</label><input type="text" id="username" data-dojo-type="dijit .form.TextBox"/><br/>20 <label for="password">Admin password</label><input type="password" id="password" data-dojo-type="dijit .form.TextBox"/><br/>21 <label for="reset">Full reset</label><input type="checkbox" id="reset" data-dojo-type="dijit .form.CheckBox"/><br/>22 <button id="configure" data-dojo-type="dijit .form.Button">Configure</button><br/>19 <label for="username">Admin username</label><input type="text" id="username" data-dojo-type="dijit/form/TextBox"/><br/> 20 <label for="password">Admin password</label><input type="password" id="password" data-dojo-type="dijit/form/TextBox"/><br/> 21 <label for="reset">Full reset</label><input type="checkbox" id="reset" data-dojo-type="dijit/form/CheckBox"/><br/> 22 <button id="configure" data-dojo-type="dijit/form/Button">Configure</button><br/> 23 23 </div> 24 24 <pre id="log">Waiting for configurator to initialize...</pre> -
Dev/branches/rest-dojo-ui/client/rft/ui/LoginDialog.js
r405 r408 1 1 define(['dojo/_base/declare','dojo/_base/lang','dojo/_base/event','dijit/Dialog', 2 2 'dijit/_WidgetsInTemplateMixin','../auth', 'dojo/text!./templates/LoginDialog.html', 3 '../ content','dijit/form/Form','dijit/form/Button','dijit/form/TextBox'],3 '../app/Controller','dijit/form/Form','dijit/form/Button','dijit/form/TextBox'], 4 4 function (declare, lang, event, Dialog, _WidgetsInTemplateMixin, auth, template, content) { 5 5 return declare([Dialog,_WidgetsInTemplateMixin], {
Note: See TracChangeset
for help on using the changeset viewer.