lp:~soren/elasticfox/elasticfox.addurl
- Get this branch:
- bzr branch lp:~soren/elasticfox/elasticfox.addurl
Branch merges
Branch information
Recent revisions
- 63. By Soren Hansen
-
Renamed events:
addEC2URLEvent->addEC2Url
showIfHasAddEC2URLEvent- >showElementIfH asAddEC2URL Added event:
addEC2CredentialsThe latter reads three attributes:
email
accesskey
secretkeyThese are presented in a dialog with the keys as read-only, allowing the user
to save these credentials to ElasticFox.In adding this functionality, I split the saveAccount in the credential_manager
into a UI handling bit, and a backend store bit, so that I could call the
latter from this event handler.New example code:
<html>
<head>
<title>Add cloud test</title>
</head>
<body>
<script type="text/javascript" >
function addEC2URL(name, url) {
var element = document.createElement( "addEC2UrlEleme nt");
element. setAttribute( "name", name);
element. setAttribute( "url", url);
document. documentElement .appendChild( element) ; var evt = document.
createEvent( "Events" );
evt.initEvent ("addEC2URL" , true, false);
element. dispatchEvent( evt);
}function addEC2Credentia ls(email, accesskey, secretkey) {
var element = document.createElement( "addEC2CredsEle ment");
element. setAttribute( "email" , email);
element. setAttribute( "accesskey" , accesskey);
element. setAttribute( "secretkey" , secretkey);
document. documentElement .appendChild( element) ; var evt = document.
createEvent( "Events" );
evt.initEvent ("addEC2Credent ials", true, false);
element. dispatchEvent( evt);
}
</script>
<div id="EC2URLAddDiv" style="display: none">
<a href="javascript:addEC2URL( 'test-cloud' , 'http:// cloud.example. com/');">Add cloud to ElasticFox</a><br/>
<a href="javascript:addEC2Credent ials('< email address hidden>', '123456789', '123456789abcde f12134557678' );">Add credentials to ElasticFox</a>
</div>
<script type="text/javascript" >
var element = document.getElementById( "EC2URLAddDiv" ); var evt = document.
createEvent( "Events" );
evt. initEvent( "showElementIfH asAddEC2URL" , true, false);
element. dispatchEvent( evt);
</script>
</body>
</html> - 62. By Soren Hansen
-
Added an "Add cloud" dialog so that random web pages can't just fiddle with
ElasticFox preferences.Add a new event (showIfHasAddEC
2URLEvent) , which can be used to only expose the
"add cloud" functionality if it's available.Example code:
<html>
<head>
<title>Add cloud test</title>
</head>
<body>
<script type="text/javascript" >
function addEC2URL(name, url) {
var element = document.createElement( "addEC2UrlEleme nt");
element. setAttribute( "name", name);
element. setAttribute( "url", url);
document. documentElement .appendChild( element) ; var evt = document.
createEvent( "Events" );
evt.initEvent ("addEC2URLEven t", true, false);
element. dispatchEvent( evt);
}
</script>
<div id="EC2URLAddDiv" style="display: none">
<a href="javascript:addEC2URL( 'test-cloud' , 'http:// cloud.example. com/');">Add cloud to ElasticFox</a>
</div>
<script type="text/javascript" >
var element = document.getElementById( "EC2URLAddDiv" ); var evt = document.
createEvent( "Events" );
evt. initEvent( "showIfHasAddEC 2URLEvent" , true, false);
element. dispatchEvent( evt);
</script>
</body>
</html> - 61. By Soren Hansen
-
First, completely insecure stab at adding a "Add this cloud to your ElasticFox" functionality.
"Client" side example code:
<html>
<head>
<title>Add URL test</title>
</head>
<body>
<script type="text/javascript" >
var element = document.createElement( "addEC2UrlEleme nt");
element.setAttribute( "name", "internal-cloud");
element.setAttribute( "url", "http:// cloud.example. com/");
document.documentElement .appendChild( element) ; var evt = document.
createEvent( "Events" );
evt.initEvent( "addEC2UrlEvent ", true, false);
element.dispatchEvent( evt);
</script>
</body>
</html> - 60. By jhatax
-
In this Release:
- Reserved Instances support comes to ElasticfoxBug fixes to/for:
- EBS volume attachment to an instance from both the instances and volumes view
- Strict Javascript warningsM trunk/src/
chrome/ locale/ ec2ui/en- US/ec2ui. dtd
A trunk/src/chrome/ content/ ec2ui/dialog_ purchase_ offering. xul
A trunk/src/chrome/ content/ ec2ui/dialog_ offering_ details. xul
M trunk/src/chrome/ content/ ec2ui/eipdetail dialog. js
M trunk/src/chrome/ content/ ec2ui/controlle r.js
M trunk/src/chrome/ content/ ec2ui/volumesvi ew.js
M trunk/src/chrome/ content/ ec2ui/securityg roupdetaildialo g.js
M trunk/src/chrome/ content/ ec2ui/dialog_ volume_ details. xul
M trunk/src/chrome/ content/ ec2ui/utils. js
A trunk/src/chrome/ content/ ec2ui/offeringd etaildialog. js
M trunk/src/chrome/ content/ ec2ui/attachebs volumedialog. js
A trunk/src/chrome/ content/ ec2ui/dialog_ reserved_ instances_ details. xul
M trunk/src/chrome/ content/ ec2ui/client. js
M trunk/src/chrome/ content/ ec2ui/bundletas kdetailsdialog. js
M trunk/src/chrome/ content/ ec2ui/instances view.js
A trunk/src/chrome/ content/ ec2ui/reservedi nstancesdetaild ialog.js
M trunk/src/chrome/ content/ ec2ui/dialog_ new_volume. xul
M trunk/src/chrome/ content/ ec2ui/permissio ndetaildialog. js
M trunk/src/chrome/ content/ ec2ui/keypairde taildialog. js
A trunk/src/chrome/ content/ ec2ui/purchaseo fferingdialog. js
M trunk/src/chrome/ content/ ec2ui/dialog_ new_attachment. xul
M trunk/src/chrome/ content/ ec2ui/dialog_ snapshot_ details. xul
A trunk/src/chrome/ content/ ec2ui/reservedi nstancesview. js
A trunk/src/chrome/ content/ ec2ui/leaseoffe ringsview. js
AM trunk/src/chrome/ content/ ec2ui/images/ cash.png
M trunk/src/chrome/ content/ ec2ui/dialog_ attach_ ebs_volume. xul
A trunk/src/chrome/ content/ ec2ui/leases_ tab_overlay. xul
M trunk/src/chrome/ content/ ec2ui/snapshotd etaildialog. js
M trunk/src/chrome/ content/ ec2ui/instanced etaildialog. js
M trunk/src/chrome/ content/ ec2ui/volumedet aildialog. js
M trunk/src/chrome/ content/ ec2ui/bundleIns tanceDialog. js
M trunk/src/chrome/ content/ ec2ui/session. js
M trunk/src/chrome/ content/ ec2ui/ec2ui_ main_window. xul
M trunk/src/chrome/ content/ ec2ui/model. js - 59. By jhatax
-
This is primarily a bugfix release of Elasticfox. Bugs fixed include:
1. Windows Instance Bundling "doesn't work"
2. An EIP can be attached to another instance w/o detaching the instance
currently attached to the EIP
3. Sorting columns with numerical values works as expected (number sort
not string sort)
4. The Register AMI option in the Bundle Tasks view is not enabled until
a bundle task has run to completion
5. The architecture supported by an AMI is now displayed
6. When launching a new instance, only the instance sizes that can be
launched for the AMI are provided as options
7. A preference has been added that suppresses the "Authorize Connection Port"
dialog if the user wants Elasticfox to remember whether the port should
be opened or not.
8. A bunch of strict javascript warnings have been fixed
9. Refactoring of instancesview.js so that utility functions contain code
that was previously duplicated in "getAdminPasswordImpl" and "connectTo" M trunk/src/
chrome/ locale/ ec2ui/en- US/ec2ui. dtd
M trunk/src/chrome/ content/ ec2ui/dialog_ bundle_ instance. xul
M trunk/src/chrome/ content/ ec2ui/instances _tab_overlay. xul
M trunk/src/chrome/ content/ ec2ui/snapshots view.js
M trunk/src/chrome/ content/ ec2ui/controlle r.js
M trunk/src/chrome/ content/ ec2ui/volumesvi ew.js
M trunk/src/chrome/ content/ ec2ui/dialog_ volume_ details. xul
M trunk/src/chrome/ content/ ec2ui/utils. js
M trunk/src/chrome/ content/ ec2ui/eipview. js
M trunk/src/chrome/ content/ ec2ui/bundletas ksview. js
M trunk/src/chrome/ content/ ec2ui/client. js
M trunk/src/chrome/ content/ ec2ui/instances view.js
M trunk/src/chrome/ content/ ec2ui/dialog_ new_volume. xul
M trunk/src/chrome/ content/ ec2ui/baseimage sview.js
M trunk/src/chrome/ content/ ec2ui/preferenc es.js
M trunk/src/chrome/ content/ ec2ui/volumes_ tab_overlay. xul
M trunk/src/chrome/ content/ ec2ui/newinstan cesdialog. js
M trunk/src/chrome/ content/ ec2ui/dialog_ ami_details. xul
M trunk/src/chrome/ content/ ec2ui/amidetail dialog. js
M trunk/src/chrome/ content/ ec2ui/amisview. js
M trunk/src/chrome/ content/ ec2ui/images_ tab_overlay. xul
M trunk/src/chrome/ content/ ec2ui/dialog_ migrate_ ami.xul
M trunk/src/chrome/ content/ ec2ui/model. js
M trunk/src/chrome/ content/ ec2ui/bundle_ tasks_tab_ overlay. xul - 57. By jhatax
-
Made all the Elasticfox Management dialogs modal again.
Making these non-modal means user input for keys, accountids,
etc is not loaded by Elasticfox until either the Tab is refreshed
or Elasticfox is restarted. Sigh!M src/chrome/
content/ ec2ui/session. js - 56. By jhatax
-
Spaces in key file paths shouldn't be escaped on Windows.
Thanks to user jncorpron for finding the issue and suggesting
a fix.M src/chrome/
content/ ec2ui/instances view.js
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 (needs bzr 0.92)