lp:~soren/elasticfox/elasticfox.addurl

Created by Soren Hansen and last modified
Get this branch:
bzr branch lp:~soren/elasticfox/elasticfox.addurl
Only Soren Hansen can upload to this branch. If you are Soren Hansen please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Soren Hansen
Project:
ElasticFox
Status:
Development

Recent revisions

64. By Soren Hansen

Merge with trunk.

63. By Soren Hansen

Renamed events:
  addEC2URLEvent->addEC2Url
  showIfHasAddEC2URLEvent->showElementIfHasAddEC2URL

Added event:
  addEC2Credentials

The latter reads three attributes:
  email
  accesskey
  secretkey

These 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("addEC2UrlElement");
                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 addEC2Credentials(email, accesskey, secretkey) {
                var element = document.createElement("addEC2CredsElement");
                element.setAttribute("email", email);
                element.setAttribute("accesskey", accesskey);
                element.setAttribute("secretkey", secretkey);
                document.documentElement.appendChild(element);

                var evt = document.createEvent("Events");
                evt.initEvent("addEC2Credentials", 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:addEC2Credentials('<email address hidden>', '123456789', '123456789abcdef12134557678');">Add credentials to ElasticFox</a>
        </div>
        <script type="text/javascript">
            var element = document.getElementById("EC2URLAddDiv");

            var evt = document.createEvent("Events");
            evt.initEvent("showElementIfHasAddEC2URL", 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 (showIfHasAddEC2URLEvent), 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("addEC2UrlElement");
                element.setAttribute("name", name);
                element.setAttribute("url", url);
                document.documentElement.appendChild(element);

                var evt = document.createEvent("Events");
                evt.initEvent("addEC2URLEvent", 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("showIfHasAddEC2URLEvent", 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("addEC2UrlElement");
      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 Elasticfox

Bug fixes to/for:
- EBS volume attachment to an instance from both the instances and volumes view
- Strict Javascript warnings

M 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/eipdetaildialog.js
M trunk/src/chrome/content/ec2ui/controller.js
M trunk/src/chrome/content/ec2ui/volumesview.js
M trunk/src/chrome/content/ec2ui/securitygroupdetaildialog.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/offeringdetaildialog.js
M trunk/src/chrome/content/ec2ui/attachebsvolumedialog.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/bundletaskdetailsdialog.js
M trunk/src/chrome/content/ec2ui/instancesview.js
A trunk/src/chrome/content/ec2ui/reservedinstancesdetaildialog.js
M trunk/src/chrome/content/ec2ui/dialog_new_volume.xul
M trunk/src/chrome/content/ec2ui/permissiondetaildialog.js
M trunk/src/chrome/content/ec2ui/keypairdetaildialog.js
A trunk/src/chrome/content/ec2ui/purchaseofferingdialog.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/reservedinstancesview.js
A trunk/src/chrome/content/ec2ui/leaseofferingsview.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/snapshotdetaildialog.js
M trunk/src/chrome/content/ec2ui/instancedetaildialog.js
M trunk/src/chrome/content/ec2ui/volumedetaildialog.js
M trunk/src/chrome/content/ec2ui/bundleInstanceDialog.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/snapshotsview.js
M trunk/src/chrome/content/ec2ui/controller.js
M trunk/src/chrome/content/ec2ui/volumesview.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/bundletasksview.js
M trunk/src/chrome/content/ec2ui/client.js
M trunk/src/chrome/content/ec2ui/instancesview.js
M trunk/src/chrome/content/ec2ui/dialog_new_volume.xul
M trunk/src/chrome/content/ec2ui/baseimagesview.js
M trunk/src/chrome/content/ec2ui/preferences.js
M trunk/src/chrome/content/ec2ui/volumes_tab_overlay.xul
M trunk/src/chrome/content/ec2ui/newinstancesdialog.js
M trunk/src/chrome/content/ec2ui/dialog_ami_details.xul
M trunk/src/chrome/content/ec2ui/amidetaildialog.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

58. By jhatax

Elasticfox supports Firefox versions up through 3.6a1pre.

M ec2ui.rdf

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/instancesview.js

55. By jhatax

The same view is for AMIs, AKIs, and ARIs

M src/chrome/locale/ec2ui/en-US/ec2ui.dtd

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers