Explorar el Código

Initial commit

George Vrancianu hace 9 años
commit
efdb472d38
Se han modificado 100 ficheros con 6927 adiciones y 0 borrados
  1. 10 0
      .babelrc
  2. 19 0
      .csslintrc
  3. 26 0
      .eslintrc
  4. 7 0
      .gitignore
  5. 6 0
      .jscsrc
  6. 668 0
      LICENSE
  7. 53 0
      README.md
  8. 125 0
      package.json
  9. 26 0
      preprocessor.js
  10. 0 0
      src/actions/.gitignore
  11. 147 0
      src/actions/ConnectionsActions/ConnectionsActions.js
  12. 6 0
      src/actions/ConnectionsActions/package.json
  13. 255 0
      src/actions/MigrationActions/MigrationActions.js
  14. 6 0
      src/actions/MigrationActions/package.json
  15. 27 0
      src/actions/NotificationActions/NotificationActions.js
  16. 6 0
      src/actions/NotificationActions/package.json
  17. 83 0
      src/actions/UserActions/UserActions.js
  18. 6 0
      src/actions/UserActions/package.json
  19. 22 0
      src/actions/WizardActions/WizardActions.js
  20. 6 0
      src/actions/WizardActions/package.json
  21. 122 0
      src/client.js
  22. 418 0
      src/components/AddCloudConnection/AddCloudConnection.js
  23. 160 0
      src/components/AddCloudConnection/AddCloudConnection.scss
  24. 6 0
      src/components/AddCloudConnection/package.json
  25. 131 0
      src/components/ApiCaller/ApiCaller.js
  26. 6 0
      src/components/ApiCaller/package.json
  27. 109 0
      src/components/App/App.js
  28. 445 0
      src/components/App/App.scss
  29. 6 0
      src/components/App/package.json
  30. 72 0
      src/components/CloudConnection/CloudConnection.js
  31. 18 0
      src/components/CloudConnection/CloudConnection.scss
  32. 6 0
      src/components/CloudConnection/package.json
  33. 103 0
      src/components/CloudConnectionAuth/CloudConnectionAuth.js
  34. 74 0
      src/components/CloudConnectionAuth/CloudConnectionAuth.scss
  35. 6 0
      src/components/CloudConnectionAuth/package.json
  36. 145 0
      src/components/CloudConnectionDetail/CloudConnectionDetail.js
  37. 74 0
      src/components/CloudConnectionDetail/CloudConnectionDetail.scss
  38. 6 0
      src/components/CloudConnectionDetail/package.json
  39. 194 0
      src/components/CloudConnectionsView/CloudConnectionsView.js
  40. 114 0
      src/components/CloudConnectionsView/CloudConnectionsView.scss
  41. 6 0
      src/components/CloudConnectionsView/package.json
  42. 173 0
      src/components/CloudItem/CloudItem.js
  43. 63 0
      src/components/CloudItem/CloudItem.scss
  44. 6 0
      src/components/CloudItem/package.json
  45. 88 0
      src/components/ConfirmationDialog/ConfirmationDialog.js
  46. 41 0
      src/components/ConfirmationDialog/ConfirmationDialog.scss
  47. 6 0
      src/components/ConfirmationDialog/package.json
  48. 292 0
      src/components/ConnectionsList/ConnectionsList.js
  49. 186 0
      src/components/ConnectionsList/ConnectionsList.scss
  50. 6 0
      src/components/ConnectionsList/package.json
  51. 47 0
      src/components/ContactPage/ContactPage.js
  52. 28 0
      src/components/ContactPage/ContactPage.scss
  53. 6 0
      src/components/ContactPage/package.json
  54. 48 0
      src/components/ContentPage/ContentPage.js
  55. 28 0
      src/components/ContentPage/ContentPage.scss
  56. 6 0
      src/components/ContentPage/package.json
  57. 110 0
      src/components/EndpointLink/EndpointLink.js
  58. 6 0
      src/components/EndpointLink/package.json
  59. 74 0
      src/components/EndpointUsage/EndpointUsage.js
  60. 6 0
      src/components/EndpointUsage/package.json
  61. 46 0
      src/components/ErrorPage/ErrorPage.js
  62. 61 0
      src/components/ErrorPage/ErrorPage.scss
  63. 6 0
      src/components/ErrorPage/package.json
  64. 44 0
      src/components/Feedback/Feedback.js
  65. 48 0
      src/components/Feedback/Feedback.scss
  66. 6 0
      src/components/Feedback/package.json
  67. 94 0
      src/components/FilteredTable/FilteredTable.js
  68. 98 0
      src/components/FilteredTable/FilteredTable.scss
  69. 6 0
      src/components/FilteredTable/package.json
  70. 43 0
      src/components/Footer/Footer.js
  71. 60 0
      src/components/Footer/Footer.scss
  72. 6 0
      src/components/Footer/package.json
  73. 107 0
      src/components/Header/Header.js
  74. 192 0
      src/components/Header/Header.scss
  75. BIN
      src/components/Header/headerBackground.png
  76. 5 0
      src/components/Header/left-caret.svg
  77. BIN
      src/components/Header/logo-small.png
  78. BIN
      src/components/Header/logo-small@2x.png
  79. BIN
      src/components/Header/logo-white.png
  80. 6 0
      src/components/Header/package.json
  81. 30 0
      src/components/Helper/Helper.js
  82. 16 0
      src/components/Helper/Helper.scss
  83. 6 0
      src/components/Helper/package.json
  84. 55 0
      src/components/InfoIcon/InfoIcon.js
  85. 20 0
      src/components/InfoIcon/InfoIcon.scss
  86. 6 0
      src/components/InfoIcon/package.json
  87. 71 0
      src/components/Link/Link.js
  88. 6 0
      src/components/Link/package.json
  89. 75 0
      src/components/LoadingIcon/LoadingIcon.js
  90. 79 0
      src/components/LoadingIcon/LoadingIcon.scss
  91. 6 0
      src/components/LoadingIcon/package.json
  92. 31 0
      src/components/LoginPage/LoginPage.js
  93. 92 0
      src/components/LoginPage/LoginPage.scss
  94. 6 0
      src/components/LoginPage/package.json
  95. 267 0
      src/components/MainList/MainList.js
  96. 177 0
      src/components/MainList/MainList.scss
  97. 6 0
      src/components/MainList/package.json
  98. 127 0
      src/components/MigrationDetail/MigrationDetail.js
  99. 72 0
      src/components/MigrationDetail/MigrationDetail.scss
  100. 6 0
      src/components/MigrationDetail/package.json

+ 10 - 0
.babelrc

@@ -0,0 +1,10 @@
+{
+  "presets": [
+    "es2015",
+    "stage-0",
+    "react"
+  ],
+  "plugins": [
+    "transform-runtime"
+  ]
+}

+ 19 - 0
.csslintrc

@@ -0,0 +1,19 @@
+{
+  "adjoining-classes": false,
+  "box-sizing": false,
+  "box-model": false,
+  "compatible-vendor-prefixes": false,
+  "floats": false,
+  "font-sizes": false,
+  "gradients": false,
+  "important": false,
+  "known-properties": false,
+  "outline-none": false,
+  "qualified-headings": false,
+  "regex-selectors": false,
+  "shorthand": false,
+  "text-indent": false,
+  "unique-headings": false,
+  "universal-selector": false,
+  "unqualified-attributes": false
+}

+ 26 - 0
.eslintrc

@@ -0,0 +1,26 @@
+{
+  "parser": "babel-eslint",
+  "extends": "airbnb",
+  "globals": {
+    "__DEV__": true
+  },
+  "rules": {
+    "no-confusing-arrow": 0,
+    "react/jsx-quotes": 0,
+    "jsx-quotes": [2, "prefer-double"],
+    "comma-dangle": 0,
+    "semi": 0,
+    "quotes": 0,
+    "eqeqeq": 0,
+    "prefer-const": 0,
+    "max-len": ["error", 120],
+    "react/jsx-no-bind": 0,
+    "prefer-template": 0,
+    "object-shorthand": 0,
+    "no-param-reassign": 0,
+    "no-else-return": 0,
+    "guard-for-in": 0,
+    "no-nested-ternary": 0,
+    "no-case-declarations": 0
+  }
+}

+ 7 - 0
.gitignore

@@ -0,0 +1,7 @@
+# Include your project-specific ignores in this file
+# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
+
+build
+node_modules
+ncp-debug.log
+npm-debug.log

+ 6 - 0
.jscsrc

@@ -0,0 +1,6 @@
+{
+  "preset": "airbnb",
+  "excludeFiles": ["build/**", "node_modules/**"],
+  "validateQuoteMarks": null,
+  "disallowSpacesInsideTemplateStringPlaceholders": null
+}

+ 668 - 0
LICENSE

@@ -0,0 +1,668 @@
+All files in this repository are licensed as follows. If you contribute
+to this repository, it is assumed that you license your contribution
+under the same license unless you state otherwise.
+
+All files Copyright (C) 2016 Cloudbase Solutions Srl unless otherwise
+specified in the file.
+
+                    GNU AFFERO GENERAL PUBLIC LICENSE
+                       Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+  A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate.  Many developers of free software are heartened and
+encouraged by the resulting cooperation.  However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+  The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community.  It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server.  Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+  An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals.  This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU Affero General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Remote Network Interaction; Use with the GNU General Public License.
+
+  Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software.  This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time.  Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU Affero General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU Affero General Public License for more details.
+
+    You should have received a copy of the GNU Affero General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source.  For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code.  There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+<http://www.gnu.org/licenses/>.

+ 53 - 0
README.md

@@ -0,0 +1,53 @@
+# Coriolis UI
+
+### Install instructions
+- [node](https://nodejs.org/en/download/package-manager/) >=6.x and [yarn](https://yarnpkg.com/lang/en/docs/install/) are required
+- clone repo
+- run `yarn install` to install packages and dependencies
+- change in src/config.js the coriolisUrl variable to match the coriolis server path
+
+
+### Build instructions
+- run `yarn build`
+- run `node build/server.js` to execute the build
+
+Your server will be running at http://localhost:3000/
+
+
+
+#### Development mode
+- run `yarn start` to start local development server
+
+Your development server will be running at http://localhost:3000/
+
+This should be used only for development, as it contains live-reload and other development tools.
+
+
+
+### Apache Configuration
+
+#### Apache modules
+- enable apache modules: `sudo a2enmod headers`, `sudo a2enmod rewrite`, `sudo a2enmod proxy`, `sudo a2enmod proxy_http`
+- restart apache service: `service apache2 restart`
+
+#### Apache CORS config
+- add this configuration to .htaccess or apache site configuration
+
+```
+Header always set Access-Control-Allow-Origin "*"
+Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
+Header always set Access-Control-Max-Age "1000"
+Header always set Access-Control-Allow-Headers "x-requested-with, X-Auth-Token, X-Subject-Token, Content-Type, origin, authorization, accept, client-security-token"
+Header always set Access-Control-Allow-Credentials "true"
+Header add Access-Control-Expose-Headers "X-Subject-Token"
+# Added a rewrite to respond with a 200 SUCCESS on every OPTIONS request.
+RewriteEngine On
+RewriteCond %{REQUEST_METHOD} OPTIONS
+RewriteRule ^(.*)$ $1 [R=200,L]
+
+# Proxy matches paths to appropiate services
+ProxyPassMatch ^/identity/(.*)$ http://127.0.0.1:5000/v3/$1
+ProxyPassMatch ^/barbican/(.*)$ http://127.0.0.1:9311/$1
+ProxyPassMatch ^/coriolis/(.*)$ http://127.0.0.1:7667/v1/$1
+ProxyPassMatch ^/((?!identity|coriolis|barbican).*)$ http://127.0.0.1:3000/$1
+```

+ 125 - 0
package.json

@@ -0,0 +1,125 @@
+{
+  "private": true,
+  "engines": {
+    "node": ">=5.0 <6",
+    "npm": ">=3.3 <4"
+  },
+  "dependencies": {
+    "babel-polyfill": "6.6.1",
+    "babel-runtime": "6.6.1",
+    "bluebird": "3.3.3",
+    "body-parser": "1.15.0",
+    "classnames": "2.2.3",
+    "cookie-parser": "1.4.1",
+    "eventemitter3": "1.1.1",
+    "express": "4.13.4",
+    "express-jwt": "3.3.0",
+    "fastclick": "1.0.6",
+    "fbjs": "0.7.2",
+    "front-matter": "2.0.6",
+    "history": "2.0.0",
+    "immutability-helper": "2.1.2",
+    "isomorphic-style-loader": "0.0.10",
+    "jade": "1.11.0",
+    "jsonwebtoken": "5.7.0",
+    "markdown-it": "6.0.0",
+    "moment": "2.17.1",
+    "moment-timezone": "0.5.11",
+    "node-fetch": "1.3.3",
+    "normalize.css": "3.0.3",
+    "passport": "0.3.2",
+    "passport-facebook": "2.1.0",
+    "pretty-error": "2.0.0",
+    "react": "15.4.2",
+    "react-addons-css-transition-group": "^15.5.2",
+    "react-collapse": "2.3.3",
+    "react-cookie": "^1.0.5",
+    "react-datepicker": "0.40.0",
+    "react-dom": "15.4.2",
+    "react-dropdown": "1.2.0",
+    "react-height": "2.2.0",
+    "react-modal": "1.6.5",
+    "react-moment": "0.1.2",
+    "react-motion": "0.4.7",
+    "react-notification-system": "^0.2.14",
+    "react-notifications": "^1.3.0",
+    "react-routing": "0.0.7",
+    "react-svg": "2.1.16",
+    "react-text-truncate": "0.8.3",
+    "react-tooltip": "3.2.7",
+    "reflux": "6.0.0",
+    "source-map-support": "0.4.0",
+    "svg-injector": "1.1.3",
+    "svg-react-loader": "0.3.7",
+    "whatwg-fetch": "0.11.0"
+  },
+  "devDependencies": {
+    "assets-webpack-plugin": "3.3.0",
+    "autoprefixer": "6.3.3",
+    "babel-cli": "6.6.0",
+    "babel-eslint": "5.0.0",
+    "babel-loader": "6.2.4",
+    "babel-plugin-react-transform": "2.0.0",
+    "babel-plugin-transform-runtime": "6.6.0",
+    "babel-preset-es2015": "6.6.0",
+    "babel-preset-react": "6.5.0",
+    "babel-preset-stage-0": "6.5.0",
+    "browser-sync": "2.11.1",
+    "core-js": "2.1.3",
+    "css-loader": "0.23.1",
+    "csscomb": "3.1.8",
+    "del": "2.2.0",
+    "eslint": "2.3.0",
+    "eslint-config-airbnb": "6.0.2",
+    "eslint-loader": "1.3.0",
+    "eslint-plugin-react": "4.1.0",
+    "extend": "3.0.0",
+    "file-loader": "0.8.5",
+    "gaze": "0.5.2",
+    "git-repository": "0.1.1",
+    "glob": "7.0.0",
+    "jade-loader": "0.8.0",
+    "jest-cli": "0.8.2",
+    "jscs": "2.10.1",
+    "json-loader": "0.5.4",
+    "mkdirp": "0.5.1",
+    "ncp": "2.0.0",
+    "postcss": "5.0.18",
+    "postcss-import": "8.0.2",
+    "postcss-loader": "0.8.1",
+    "postcss-scss": "0.1.6",
+    "precss": "1.4.0",
+    "raw-loader": "0.5.1",
+    "react-modal": "1.6.5",
+    "react-svg": "2.1.16",
+    "react-transform-catch-errors": "1.0.2",
+    "react-transform-hmr": "1.0.2",
+    "redbox-react": "1.2.2",
+    "replace": "0.3.0",
+    "style-loader": "0.13.1",
+    "url-loader": "0.5.7",
+    "webpack": "1.12.14",
+    "webpack-hot-middleware": "2.8.1",
+    "webpack-middleware": "1.4.0"
+  },
+  "jest": {
+    "rootDir": "./src",
+    "scriptPreprocessor": "../preprocessor.js",
+    "unmockedModulePathPatterns": [
+      "fbjs",
+      "react"
+    ]
+  },
+  "scripts": {
+    "lint": "eslint src tools",
+    "csslint": "csscomb src/components --lint --verbose",
+    "csscomb": "csscomb src/components --verbose",
+    "test": "eslint src && jest",
+    "clean": "babel-node tools/run clean",
+    "copy": "babel-node tools/run copy",
+    "bundle": "babel-node tools/run bundle",
+    "build": "babel-node tools/run build",
+    "deploy": "babel-node tools/run deploy",
+    "start": "babel-node tools/run start"
+  }
+}

+ 26 - 0
preprocessor.js

@@ -0,0 +1,26 @@
+/**
+ * React Starter Kit (https://www.reactstarterkit.com/)
+ *
+ * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.txt file in the root directory of this source tree.
+ */
+
+'use strict';
+
+var babel = require('babel-core');
+
+module.exports = {
+  process: function(src, filename) {
+    // Ignore files other than .js, .es, .jsx or .es6
+    if (!babel.canCompile(filename)) {
+      return '';
+    }
+    // Ignore all files within node_modules
+    if (filename.indexOf('node_modules') === -1) {
+      return babel.transform(src, {filename: filename}).code;
+    }
+    return src;
+  }
+};

+ 0 - 0
src/actions/.gitignore


+ 147 - 0
src/actions/ConnectionsActions/ConnectionsActions.js

@@ -0,0 +1,147 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+
+import Reflux from 'reflux';
+import Api from '../../components/ApiCaller';
+import {servicesUrl, useSecret} from '../../config';
+
+let ConnectionsActions = Reflux.createActions({
+  loadConnections: { children: ['completed', 'failed'] },
+  loadConnectionDetail: { children: ['completed', 'failed'] },
+  loadProviders: { children: ['completed', 'failed'] },
+  loadInstances: { children: ['completed', 'failed'] },
+  loadProviderType: {},
+  assignConnectionProvider: {},
+  updateProvider: {},
+  deleteConnection: { children: ['completed', 'failed'] },
+  getSourceClouds: {},
+  getTargetClouds: {},
+  resetSelections: {},
+  newConnection: { children: ['success', 'failed'] },
+  saveEndpoint: { children: ['success', 'failed'] },
+  setConnection: {},
+  validateConnection: { children: ['success', 'failed'] }
+})
+
+
+ConnectionsActions.loadProviders.listen(() => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  Api.sendAjaxRequest({
+    url: `${servicesUrl.coriolis}/${projectId}/providers`,
+    method: "GET"
+  }).then(response => {
+    ConnectionsActions.loadProviders.completed(response)
+    }, ConnectionsActions.loadProviders.failed)
+    .catch(ConnectionsActions.loadProviders.failed);
+})
+
+ConnectionsActions.saveEndpoint.listen((data, secretRef) => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  let payload = null
+  if (useSecret) {
+    payload = {
+      endpoint: {
+        name: data.name,
+        description: data.description,
+        type: data.type,
+        connection_info: {
+          secret_ref: secretRef
+        }
+      }
+    }
+  } else {
+    payload = { endpoint: data }
+  }
+
+  Api.sendAjaxRequest({
+    url: `${servicesUrl.coriolis}/${projectId}/endpoints`,
+    method: "POST",
+    data: payload
+  }).then(ConnectionsActions.saveEndpoint.success, ConnectionsActions.saveEndpoint.failed)
+    .catch(ConnectionsActions.saveEndpoint.failed);
+})
+ConnectionsActions.newConnection.listen((data) => {
+  if (useSecret) {
+    let barbicanPayload = {
+      payload: JSON.stringify(data.connection_info),
+      payload_content_type: "text/plain",
+      content_types: {
+        default: "text/plain"
+      }
+    }
+
+    Api.sendAjaxRequest({
+      url: servicesUrl.barbican + "/v1/secrets",
+      method: "POST",
+      data: barbicanPayload
+    }).then((response) => {
+        ConnectionsActions.newConnection.success(response, data)
+      }, ConnectionsActions.newConnection.failed)
+      .catch(ConnectionsActions.newConnection.failed);
+  } else {
+    ConnectionsActions.saveEndpoint(data)
+  }
+});
+
+ConnectionsActions.loadConnections.listen(() => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  if (projectId) {
+    Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/endpoints`,
+      method: "GET"
+    }).then(ConnectionsActions.loadConnections.completed, ConnectionsActions.loadConnections.failed)
+      .catch(ConnectionsActions.loadConnections.failed);
+  }
+})
+
+ConnectionsActions.deleteConnection.listen((connection) => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+
+  Api.sendAjaxRequest({
+    url: `${servicesUrl.coriolis}/${projectId}/endpoints/${connection.id}`,
+    method: "DELETE"
+  }).then(() => {
+    if (connection.connection_info && connection.connection_info.secret_ref) {
+      let uuidIndex = connection.connection_info.secret_ref.lastIndexOf("/")
+      let uuid = connection.connection_info.secret_ref.substr(uuidIndex + 1)
+      Api.sendAjaxRequest({
+        url: servicesUrl.barbican + "/v1/secrets/" + uuid,
+        method: "DELETE"
+      }).then(ConnectionsActions.deleteConnection.completed(connection), ConnectionsActions.deleteConnection.failed)
+    } else {
+      ConnectionsActions.deleteConnection.completed(connection)
+    }
+
+  }, ConnectionsActions.deleteConnection.failed)
+  .catch(ConnectionsActions.deleteConnection.failed);
+})
+
+
+ConnectionsActions.validateConnection.listen((endpoint, callback) => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  Api.sendAjaxRequest({
+    url: `${servicesUrl.coriolis}/${projectId}/endpoints/${endpoint.id}/actions`,
+    method: "POST",
+    data: { "validate-connection": null }
+  }).then(response => {
+      ConnectionsActions.validateConnection.completed(response)
+    }, ConnectionsActions.validateConnection.failed)
+    .catch(ConnectionsActions.validateConnection.failed);
+})
+
+export default ConnectionsActions;

+ 6 - 0
src/actions/ConnectionsActions/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "ConnectionsActions",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./ConnectionsActions.js"
+}

+ 255 - 0
src/actions/MigrationActions/MigrationActions.js

@@ -0,0 +1,255 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import Reflux from 'reflux';
+import Api from '../../components/ApiCaller';
+import NotificationActions from '../NotificationActions'
+import {servicesUrl, securityGroups} from '../../config';
+
+let MigrationActions = Reflux.createActions({
+  'loadMigrations': { children: ['completed', 'failed'], shouldEmit: () => {} },
+  'loadMigration': { children: ['completed', 'failed'] }, // TODO: Reload migration action
+  'addMigration': { children: ['completed', 'failed'] },
+  'deleteMigration': { children: ['completed', 'failed'] },
+  'executeReplica': { children: ['completed', 'failed'] },
+  'cancelMigration': { children: ['completed', 'failed'] },
+  'getReplicaExecutions': { children: ['completed', 'failed'] },
+  'getReplicaExecutionDetail': { children: ['completed', 'failed'] },
+  'createMigrationFromReplica': { children: ['completed', 'failed'] },
+  'reloadReplicaExecution': { children: ['completed', 'failed'] },
+  'getMigration': {},
+  'setMigration': {},
+  'setMigrationProperty': {}
+})
+
+MigrationActions.loadMigrations.listen(() => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+
+  Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/migrations/detail`,
+      method: "GET"
+    })
+    .then(MigrationActions.loadMigrations.completed, MigrationActions.loadMigrations.failed)
+    .catch(MigrationActions.loadMigrations.failed);
+
+  Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/replicas/detail`,
+      method: "GET"
+    })
+    .then(MigrationActions.loadMigrations.completed, MigrationActions.loadMigrations.failed)
+    .catch(MigrationActions.loadMigrations.failed);
+})
+
+MigrationActions.loadMigrations.shouldEmit = () => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  if (typeof projectId === "undefined") {
+    return false
+  }
+  if (Reflux.GlobalState.migrationStore.queryInProgress) {
+    return false
+  }
+  return true
+}
+
+MigrationActions.loadMigration.listen((migration) => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+
+  Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/migrations/${migration.id}`,
+      method: "GET"
+    })
+    .then(MigrationActions.loadMigration.completed, MigrationActions.loadMigration.failed)
+    .catch(MigrationActions.loadMigration.failed);
+})
+
+MigrationActions.loadMigration.shouldEmit = () => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  return typeof projectId !== "undefined"
+}
+
+MigrationActions.deleteMigration.listen((migration) => {
+  let migrationType = migration.type === 'replica' ? 'replicas' : 'migrations'
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/${migrationType}/${migration.id}`,
+      method: "DELETE"
+    })
+    .then(MigrationActions.deleteMigration.completed(migration), MigrationActions.deleteMigration.failed)
+    .catch(MigrationActions.deleteMigration.failed);
+})
+
+MigrationActions.executeReplica.listen((replica, callback = null) => {
+  if (replica.type == 'replica') {
+    let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+
+    let payload = {
+      execution: {
+        shutdown_instances: false
+      }
+    }
+
+    Api.sendAjaxRequest({
+        url: `${servicesUrl.coriolis}/${projectId}/replicas/${replica.id}/executions`,
+        method: "POST",
+        data: payload
+      })
+      .then((response) => {
+        MigrationActions.executeReplica.completed(replica, response)
+        if (callback) {
+          callback(replica, response)
+        }
+      }, MigrationActions.executeReplica.failed)
+      .catch(MigrationActions.executeReplica.failed);
+  } else {
+    NotificationActions.notify("You cannot execute a migration.", "warning")
+  }
+})
+
+MigrationActions.cancelMigration.listen((migration, callback = null) => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  let url = null
+  if (migration.type == 'migration') {
+    url = `${servicesUrl.coriolis}/${projectId}/migrations/${migration.id}/actions`
+  } else {
+    if (migration.executions.length) {
+      let executionId = migration.executions[migration.executions.length - 1].id
+      url = `${servicesUrl.coriolis}/${projectId}/replicas/${migration.id}/executions/${executionId}/actions`
+    } else {
+      NotificationActions.notify("No executions to cancel on this replica")
+    }
+  }
+
+  let payload = {
+    cancel: null
+  }
+
+  Api.sendAjaxRequest({
+      url: url,
+      method: "POST",
+      data: payload
+    })
+    .then((response) => {
+      if (callback) {
+        callback(migration, response)
+      }
+        MigrationActions.cancelMigration.completed(migration, response)
+      }, MigrationActions.cancelMigration.failed
+    )
+    .catch(MigrationActions.cancelMigration.failed);
+
+})
+
+MigrationActions.getReplicaExecutions.listen((replica, callback) => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/replicas/${replica.id}/executions/detail`,
+      method: "GET"
+    })
+    .then((response) => {
+      MigrationActions.getReplicaExecutions.completed(replica, response)
+      if (callback) callback()
+    }, MigrationActions.getReplicaExecutions.failed)
+    .catch(MigrationActions.getReplicaExecutions.failed);
+})
+
+
+MigrationActions.getReplicaExecutionDetail.listen((replica, executionId, callback = null) => {
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/replicas/${replica.id}/executions/${executionId}`,
+      method: "GET"
+    })
+    .then((response) => {
+      MigrationActions.getReplicaExecutionDetail.completed(replica, executionId, response)
+      if (callback) {
+        callback(replica, executionId, response)
+      }
+    }, MigrationActions.getReplicaExecutionDetail.failed)
+    .catch(MigrationActions.getReplicaExecutionDetail.failed);
+})
+
+MigrationActions.addMigration.listen((migration) => {
+  let payload = {}
+  let instances = []
+
+  migration.selectedInstances.forEach(instance => {
+    if (migration.selectedInstances.indexOf(instance.id)) {
+      instances.push(instance.instance_name)
+    }
+  })
+
+  let network_map = {}
+  migration.networks.forEach(network => {
+    network_map[network.name] = network.migrateNetwork
+  })
+
+  let destinationEnv = {}
+
+  for (var i in migration.destination_environment) {
+    if (migration.destination_environment[i].label) { // removing label from dropdown if present
+      destinationEnv[i] = migration.destination_environment[i].value
+    } else {
+      destinationEnv[i] = migration.destination_environment[i]
+    }
+  }
+
+  destinationEnv["network_map"] = network_map
+
+  payload[migration.migrationType] = {
+    "origin_endpoint_id": migration.sourceCloud.credential.id,
+    "destination_endpoint_id": migration.targetCloud.credential.id,
+    "destination_environment": destinationEnv,
+    "instances": instances,
+    "notes": migration.notes,
+    "security_groups": securityGroups
+  }
+
+  let migrationType = migration.migrationType === 'replica' ? 'replicas' : 'migrations'
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+  Api.sendAjaxRequest({
+    url: `${servicesUrl.coriolis}/${projectId}/${migrationType}`,
+    method: "POST",
+    data: payload
+  })
+    .then(MigrationActions.addMigration.completed, MigrationActions.addMigration.failed)
+    .catch(MigrationActions.addMigration.failed);
+
+})
+
+MigrationActions.createMigrationFromReplica.listen((replica) => {
+  let payload = {
+    migration: {
+      replica_id: replica.id,
+      force: false,
+      clone_disks: true
+    }
+  }
+
+  let projectId = Reflux.GlobalState.userStore.currentUser.project.id
+
+  Api.sendAjaxRequest({
+      url: `${servicesUrl.coriolis}/${projectId}/migrations`,
+      method: "POST",
+      data: payload
+    })
+    .then(MigrationActions.createMigrationFromReplica.completed, MigrationActions.createMigrationFromReplica.failed)
+    .catch(MigrationActions.createMigrationFromReplica.failed);
+
+})
+
+
+export default MigrationActions;

+ 6 - 0
src/actions/MigrationActions/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "MigrationActions",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./MigrationActions.js"
+}

+ 27 - 0
src/actions/NotificationActions/NotificationActions.js

@@ -0,0 +1,27 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import Reflux from 'reflux';
+
+let NotificationActions = Reflux.createActions({
+  'removeNotification': {},
+  'keepNotification': {},
+  'markAsRead': {},
+  'notify': {}
+})
+
+export default NotificationActions;

+ 6 - 0
src/actions/NotificationActions/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "NotificationActions",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./NotificationActions.js"
+}

+ 83 - 0
src/actions/UserActions/UserActions.js

@@ -0,0 +1,83 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import Reflux from 'reflux';
+import Api from '../../components/ApiCaller';
+import {servicesUrl, defaultDomain} from '../../config';
+import Location from '../../core/Location';
+
+let UserAction = Reflux.createActions({
+  'login': { children: ["success", "failed"] },
+  'logout': {},
+  'tokenLogin': { children: ["failed"] },
+  'setCurrentUser': {}
+})
+
+UserAction.login.listen((userData => {
+  let auth = {
+    "auth": {
+      "identity": {
+        "methods": [
+          "password"
+        ],
+        "password": {
+          "user": {
+            "name": userData.name,
+            "domain": {
+              "name": userData.domain ? userData.domain : defaultDomain
+            },
+            "password": userData.password
+          }
+        }
+      },
+      scope: {
+        project: {
+          domain: {
+            name: userData.domain ? userData.domain : defaultDomain
+          },
+          name: userData.name
+        }
+      }
+    }
+  }
+
+  Api.setDefaultHeader({ "X-Auth-Token": null })
+
+  Api.sendAjaxRequest({
+    url: servicesUrl.identity,
+    method: "POST",
+    data: auth
+  })
+    .then((response) => {
+      UserAction.login.success(response)
+      Location.push('/migrations')
+    }, UserAction.login.failed)
+    .catch(UserAction.login.failed)
+}))
+
+UserAction.tokenLogin.listen((token) => {
+  Api.sendAjaxRequest({
+      url: servicesUrl.identity,
+      method: "GET",
+      headers: { 'X-Subject-Token': token }
+    })
+    .then(UserAction.login.success, UserAction.tokenLogin.failed)
+    .catch((response) => {
+      UserAction.tokenLogin.failed(response)
+    });
+})
+export default UserAction;

+ 6 - 0
src/actions/UserActions/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "UserActions",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./UserActions.js"
+}

+ 22 - 0
src/actions/WizardActions/WizardActions.js

@@ -0,0 +1,22 @@
+/*
+ Copyright (C) 2017  Cloudbase Solutions SRL
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+import Reflux from 'reflux';
+
+let WizardActions = Reflux.createActions(['updateWizardState', 'newState'])
+
+export default WizardActions;

+ 6 - 0
src/actions/WizardActions/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "WizardActions",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./WizardActions.js"
+}

+ 122 - 0
src/client.js

@@ -0,0 +1,122 @@
+/*
+ Copyright (C) 2017  Cloudbase Solutions SRL
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+import 'babel-polyfill';
+import ReactDOM from 'react-dom';
+import FastClick from 'fastclick';
+import Router from './routes';
+import Location from './core/Location';
+import { addEventListener, removeEventListener } from './core/DOMUtils';
+
+let cssContainer = document.getElementById('css');
+const appContainer = document.getElementById('app');
+const context = {
+  insertCss: styles => styles._insertCss(),
+  onSetTitle: value => (document.title = value),
+  onSetMeta: (name, content) => {
+    // Remove and create a new <meta /> tag in order to make it work
+    // with bookmarks in Safari
+    const elements = document.getElementsByTagName('meta');
+    Array.from(elements).forEach((element) => {
+      if (element.getAttribute('name') === name) {
+        element.parentNode.removeChild(element);
+      }
+    });
+    const meta = document.createElement('meta');
+    meta.setAttribute('name', name);
+    meta.setAttribute('content', content);
+    document
+      .getElementsByTagName('head')[0]
+      .appendChild(meta);
+  },
+};
+
+// Google Analytics tracking. Don't send 'pageview' event after the first
+// rendering, as it was already sent by the Html component.
+let trackPageview = () => (trackPageview = () => window.ga('send', 'pageview'));
+
+function render(state) {
+  Router.dispatch(state, (newState, component) => {
+    ReactDOM.render(component, appContainer, () => {
+      // Restore the scroll position if it was saved into the state
+      if (state.scrollY !== undefined) {
+        window.scrollTo(state.scrollX, state.scrollY);
+      } else {
+        window.scrollTo(0, 0);
+      }
+
+      trackPageview();
+
+      // Remove the pre-rendered CSS because it's no longer used
+      // after the React app is launched
+      if (cssContainer) {
+        cssContainer.parentNode.removeChild(cssContainer);
+        cssContainer = null;
+      }
+    });
+  });
+}
+
+function run() {
+  let currentLocation = null;
+  let currentState = null;
+
+  // Make taps on links and buttons work fast on mobiles
+  FastClick.attach(document.body);
+
+  // Re-render the app when window.location changes
+  const unlisten = Location.listen(location => {
+    currentLocation = location;
+    currentState = Object.assign({}, location.state, {
+      path: location.pathname,
+      query: location.query,
+      state: location.state,
+      context,
+    });
+    render(currentState);
+  });
+
+  // Save the page scroll position into the current location's state
+  const supportPageOffset = window.pageXOffset !== undefined;
+  const isCSS1Compat = ((document.compatMode || '') === 'CSS1Compat');
+  const setPageOffset = () => {
+    currentLocation.state = currentLocation.state || Object.create(null);
+    if (supportPageOffset) {
+      currentLocation.state.scrollX = window.pageXOffset;
+      currentLocation.state.scrollY = window.pageYOffset;
+    } else {
+      currentLocation.state.scrollX = isCSS1Compat ?
+        document.documentElement.scrollLeft : document.body.scrollLeft;
+      currentLocation.state.scrollY = isCSS1Compat ?
+        document.documentElement.scrollTop : document.body.scrollTop;
+    }
+  };
+
+  addEventListener(window, 'scroll', setPageOffset);
+  addEventListener(window, 'pagehide', () => {
+    removeEventListener(window, 'scroll', setPageOffset);
+    unlisten();
+  });
+}
+
+// Run the application when both DOM is ready and page content is loaded
+if (['complete', 'loaded', 'interactive'].includes(document.readyState) && document.body) {
+  run();
+} else {
+  document.addEventListener('DOMContentLoaded', run, false);
+}

+ 418 - 0
src/components/AddCloudConnection/AddCloudConnection.js

@@ -0,0 +1,418 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './AddCloudConnection.scss';
+import Reflux from 'reflux';
+import ConnectionsStore from '../../stores/ConnectionsStore';
+import ConnectionsActions from '../../actions/ConnectionsActions';
+import NotificationActions from '../../actions/NotificationActions';
+import Dropdown from '../NewDropdown';
+import LoadingIcon from "../LoadingIcon/LoadingIcon";
+
+const title = 'Add Cloud Connection';
+
+class AddCloudConnection extends Reflux.Component {
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  static defaultProps = {
+    cloud: null,
+    connection: null
+  }
+
+  constructor(props) {
+    super(props)
+
+    this.store = ConnectionsStore
+
+    this.state = {
+      connectionName: null,
+      description: null,
+      currentCloud: this.props.cloud,
+      currentCloudData: null,
+      connected: false,
+      isConnecting: false,
+      requiredFields: [],
+      cloudFormsSubmitted: false
+    }
+  }
+
+  componentWillMount() {
+    super.componentWillMount.call(this)
+    this.context.onSetTitle(title);
+  }
+
+  componentDidMount() {
+    if (this.props.connection) {
+      this.state.allClouds.forEach(item => {
+        if (item.name === this.props.connection.type) {
+          let credentials = this.props.connection.credentials
+          for (var i in credentials) {
+            credentials[i] = credentials[i] + ""
+          }
+          this.setState({
+            currentCloudData: credentials,
+            connectionName: this.props.connection.name,
+            description: this.props.connection.description
+          }, () => {
+            this.chooseCloud(item)
+          })
+        }
+      })
+    } else if (this.props.cloud) {
+      this.chooseCloud(this.props.cloud)
+    }
+  }
+
+  handleChangeName(e) {
+    this.setState({ connectionName: e.target.value })
+  }
+
+  handleChangeDescription(e) {
+    this.setState({ description: e.target.value })
+  }
+
+  handleAdd() {
+    let credentials = Object.assign({}, this.state.currentCloudData)
+    for (var key in credentials) {
+      if (credentials[key].label) {
+        credentials[key] = credentials[key].value
+      }
+    }
+
+    ConnectionsActions.newConnection({
+      name: this.state.connectionName,
+      description: this.state.description,
+      type: this.state.currentCloud.name,
+      connection_info: credentials
+    })
+    this.props.addHandle(this.state.connectionName);
+  }
+
+  chooseCloud(cloud) {
+    let currentCloudData = {}
+    if (this.state.currentCloudData !== null) {
+      currentCloudData = this.state.currentCloudData
+    }
+    let requiredFields = []
+
+    cloud.endpoint.fields.forEach(field => {
+      if (typeof currentCloudData[field.name] == "undefined") {
+        if (field.type == "dropdown") {
+          currentCloudData[field.name] = field.options[0]
+        } else {
+          currentCloudData[field.name] = ""
+        }
+      } else {
+
+      }
+      if (field.required) {
+        requiredFields.push(field.name)
+      }
+
+    })
+
+    this.setState({
+      currentCloud: cloud,
+      currentCloudData: currentCloudData,
+      requiredFields: requiredFields
+    }, this.setDefaultValues)
+  }
+
+  setDefaultValues() {
+    this.state.currentCloud.endpoint.fields.forEach(field => {
+      let currentCloudData = this.state.currentCloudData
+      switch (field.type) {
+        case 'dropdown':
+          field.options.forEach(option => {
+            if (option.default === true && typeof currentCloudData[field.name] == "undefined") {
+              currentCloudData[field.name] = option
+              this.setState({ currentCloudData: currentCloudData })
+            }
+          }, this)
+          break
+        case 'switch-radio':
+          field.options.forEach(option => {
+            if (option.default && typeof currentCloudData[field.name] == "undefined") {
+              currentCloudData[field.name] = option.value
+              this.setState({ currentCloudData: currentCloudData })
+            }
+          }, this)
+          break;
+        case 'text':
+          if (field.default && typeof currentCloudData[field.name] == "undefined") {
+            currentCloudData[field.name] = field.default
+            this.setState({ currentCloudData: currentCloudData })
+          }
+          break
+        default:
+          break;
+      }
+    }, this)
+  }
+
+  isValid(field) {
+    if (field.required && this.state.cloudFormsSubmitted) {
+      if (this.state.currentCloudData[field.name].length == 0) {
+        return false
+      } else {
+        return true
+      }
+    } else {
+      return true
+    }
+  }
+
+  handleCancel() {
+    this.props.closeHandle();
+  }
+
+  handleBack() {
+    this.setState({ connected: false })
+  }
+
+  renderCloudList() {
+    let clouds = this.state.allClouds.map((cloud, index) => {
+      let colorType = "dimmer"
+      if (cloud.credentials != null && cloud.credentials.length != 0) {
+        colorType = ""
+      }
+
+      return (
+        <div className={s.cloudContainer} key={"cloudImage_" + index}>
+          <div
+            className={s.cloudImage + " icon large-cloud " + cloud.name + " " + colorType}
+            onClick={() => this.chooseCloud(cloud)}
+          ></div>
+        </div>
+      )
+    }, this)
+
+    return (
+      <div className={s.container}>
+        <div className={s.cloudList}>
+          {clouds}
+        </div>
+        <div className={s.buttons}>
+          <button className={s.centerBtn + " gray"} onClick={(e) => this.handleCancel(e)}>Cancel</button>
+        </div>
+      </div>
+    )
+  }
+
+  renderField(field) {
+    let returnValue
+    switch (field.type) {
+      case "text":
+        returnValue = (
+          <div className={"form-group " + (this.isValid(field) ? "" : s.error)} key={"cloudField_" + field.name}>
+            <input
+              type="text"
+              placeholder={field.label + (field.required ? " *" : "")}
+              onChange={(e) => this.handleCloudFieldChange(e, field)}
+              value={this.state.currentCloudData[field.name]}
+            />
+          </div>
+        )
+        break;
+      case "password":
+        returnValue = (
+          <div className={"form-group " + (this.isValid(field) ? "" : s.error)} key={"cloudField_" + field.name}>
+            <input
+              type="password"
+              placeholder={field.label + (field.required ? " *" : "")}
+              onChange={(e) => this.handleCloudFieldChange(e, field)}
+              value={this.state.currentCloudData[field.name]}
+            />
+          </div>
+        )
+        break;
+      case "dropdown":
+        returnValue = (
+          <div className={"form-group " + (this.isValid(field) ? "" : s.error)} key={"cloudField_" + field.name}>
+            <Dropdown
+              options={field.options}
+              onChange={(e) => this.handleCloudFieldChange(e, field)}
+              placeholder={field.label + (field.required ? " *" : "")}
+              value={this.state.currentCloudData[field.name]}
+            />
+          </div>
+        )
+        break;
+      case "switch-radio":
+        let fields = ""
+        field.options.forEach((option) => {
+          if (option.value == this.state.currentCloudData[field.name]) {
+            fields = option.fields.map((optionField) => this.renderField(optionField))
+          }
+        })
+        let radioOptions = field.options.map((option, key) => (
+            <div key={"radio_option_" + key} className={s.radioOption}>
+              <input
+                type="radio"
+                value={option.value}
+                id={option.name}
+                checked={option.value == this.state.currentCloudData[field.name]}
+                onChange={(e) => this.handleCloudFieldChange(e, field)}
+              /> <label htmlFor={option.name}>{option.label}</label>
+            </div>
+          )
+        )
+        returnValue = (
+          <div key={"cloudField_" + field.name}>
+            <div className="form-group switch-radio" key={"cloudField_" + field.name}>
+              { radioOptions }
+            </div>
+            <div></div>
+            {fields}
+          </div>
+        )
+        break;
+      default:
+        break
+    }
+    return returnValue
+  }
+
+  connectToCloud() {
+    // TODO: Validation here
+    let valid = true
+
+    for (var i in this.state.currentCloudData) {
+      if (this.state.requiredFields.indexOf(i) > -1 && !this.state.currentCloudData[i]) {
+        valid = false
+      }
+    }
+    if (!valid) {
+      NotificationActions.notify("Please fill all required fields", "error")
+      this.setState({ cloudFormsSubmitted: true })
+    } else {
+      this.setState({ isConnecting: true })
+      setTimeout(() => {
+        this.setState({ isConnecting: false, connected: true })
+      }, 1000)
+    }
+  }
+
+  handleCloudFieldChange(e, field) {
+    let currentCloudData = this.state.currentCloudData
+    if (field.type == 'dropdown') {
+      currentCloudData[field.name] = e
+    } else {
+      currentCloudData[field.name] = e.target.value
+    }
+    this.setState({ currentCloudData: currentCloudData })
+  }
+
+  renderCloudFields(cloud) {
+    if (this.state.currentCloudData == null) {
+      this.setState({ currentCloudData: {} })
+    }
+    if (!this.state.isConnecting) {
+      let fields = cloud.endpoint.fields.map(field => this.renderField(field), this)
+      return (
+        <div className={s.container}>
+          <div className={s.cloudImage}>
+            <div className={" icon large-cloud " + this.state.currentCloud.name}></div>
+          </div>
+          <div className="form-group">
+            <input
+              type="text"
+              placeholder="Endpoint Name"
+              onChange={(e) => this.handleChangeName(e)}
+              value={this.state.connectionName}
+            />
+          </div>
+          <div className="form-group">
+            <textarea
+              placeholder="Endpoint Description"
+              onChange={(e) => this.handleChangeDescription(e)}
+              value={this.state.description}
+            ></textarea>
+          </div>
+          <div className={s.cloudFields + (cloud.endpoint.fields.length > 6 ? " " + s.larger : "")}>
+            {fields}
+          </div>
+          <div className={s.buttons}>
+            <button className={s.leftBtn + " gray"} onClick={(e) => this.handleCancel(e)}>Cancel</button>
+            <button className={s.rightBtn} onClick={(e) => this.handleAdd(e)}>Save</button>
+          </div>
+        </div>
+      )
+    } else {
+      return (
+        <div className={s.connecting}>
+          <LoadingIcon/>
+          <div className={s.text}>Connecting ...</div>
+        </div>)
+    }
+  }
+
+  renderSaveConnection() {
+    return (
+      <div className={s.container}>
+        <div className={s.cloudImage}>
+          <div className={" icon large-cloud " + this.state.currentCloud.name}></div>
+        </div>
+        <div className="form-group">
+          <input
+            type="text"
+            placeholder="Connection name"
+            onChange={(e) => this.handleChangeName(e)}
+            value={this.state.connectionName}
+          />
+        </div>
+        <div className="form-group">
+          <textarea onChange={(e) => this.handleChangeDescription(e)} value={this.state.description}></textarea>
+        </div>
+        <div className={s.buttons}>
+          <button className={s.leftBtn + " gray"} onClick={(e) => this.handleBack(e)}>Back</button>
+          <button className={s.rightBtn} onClick={(e) => this.handleAdd(e)}>Add</button>
+        </div>
+      </div>
+    )
+  }
+
+  render() {
+    let modalBody
+
+    if (this.state.currentCloud == null) {
+      if (this.state.allClouds) {
+        modalBody = this.renderCloudList()
+      } else {
+        modalBody = <LoadingIcon/>
+      }
+    } else {
+      modalBody = this.renderCloudFields(this.state.currentCloud)
+    }
+    return (
+      <div className={s.root}>
+        <div className={s.header}>
+          <h3>{title}</h3>
+        </div>
+        {modalBody}
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(AddCloudConnection, s);

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 160 - 0
src/components/AddCloudConnection/AddCloudConnection.scss


+ 6 - 0
src/components/AddCloudConnection/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "AddCloudConnection",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./AddCloudConnection.js"
+}

+ 131 - 0
src/components/ApiCaller/ApiCaller.js

@@ -0,0 +1,131 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+/* eslint-disable */
+
+import React, { Component } from 'react';
+import NotificationActions from '../../actions/NotificationActions';
+import Location from '../../core/Location';
+
+let apiInstance = null
+
+class ApiCaller {
+  defaultHeaders = {
+    "Content-Type": "application/json"
+  }
+
+  constructor() {
+    if(!apiInstance){
+      apiInstance = this;
+    }
+
+    return apiInstance;
+  }
+
+
+  sendAjaxRequest(options) {
+    return new Promise((resolve, reject) => {
+      let request = new XMLHttpRequest();
+      //request.withCredentials = true
+      request.open(options.method, options.url);
+
+      let headers = Object.assign({}, this.defaultHeaders)
+
+      if (options.headers) {
+        for (var key in options.headers) {
+          headers[key] = options.headers[key]
+        }
+      }
+
+      for (name in headers) {
+        request.setRequestHeader(name, headers[name])
+      }
+
+      request.onreadystatechange = () => {
+        if (request.readyState === 4) {   //if complete
+          if (!(request.status >= 200 && request.status <= 299)) {  //check if "OK" (200)
+            reject({ status: request.status });
+          }
+        }
+      }
+
+      console.log(`Sending ${options.method} Request to ${options.url}`);
+      try {
+        options.data ? request.send(JSON.stringify(options.data)) : request.send();
+      }
+      catch (err) {
+        reject(err)
+      }
+
+      request.onload = () => {
+        let result = {
+          status: request.status,
+          data: request.responseText ?
+            (options.json !== false ? JSON.parse(request.responseText) : request.responseText): null,
+          headers: ApiCaller.processHeaders(request.getAllResponseHeaders())
+        };
+        if (result.status >= 200 && result.status <= 299) {
+          console.log(`Response ${options.url}`, result.data)
+          resolve(result);
+        } else {
+          console.log(`Error Response: ${options.url}`, result.data);
+          if (result.data && result.data.error && result.data.error.message) {
+            NotificationActions.notify(result.data.error.message, "error")
+          }
+          if (result.status == 401) {
+            this.resetHeaders()
+            Location.push("/login")
+          }
+          reject({ status: request.status });
+        }
+      };
+
+      request.onerror = () => {
+        console.log('Error Response: ', result.data);
+        reject({ status: 500, data: 'Connection error' });
+      }
+    });
+  }
+
+  resetHeaders() {
+    this.defaultHeaders = {
+      "Content-Type": "application/json"
+    }
+  }
+
+  static processHeaders(rawHeaders) {
+    let headers = {}
+    let lines = rawHeaders.split("\n");
+    lines.forEach(line => {
+      let comps = line.split(':')
+      if (comps[0].length) {
+        headers[comps[0]] = comps[1].trim()
+      }
+    })
+    return headers
+  }
+
+  setDefaultHeader(name, value) {
+    if (value == null) {
+      delete this.defaultHeaders[name]
+    } else {
+      this.defaultHeaders[name] = value
+    }
+
+  }
+}
+
+export default new ApiCaller;

+ 6 - 0
src/components/ApiCaller/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "ApiCaller",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./ApiCaller.js"
+}

+ 109 - 0
src/components/App/App.js

@@ -0,0 +1,109 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import Reflux from 'reflux';
+import emptyFunction from 'fbjs/lib/emptyFunction';
+import s from './App.scss';
+import UserStore from '../../stores/UserStore';
+import NotificationsStore from '../../stores/NotificationsStore';
+import ConnectionsStore from '../../stores/ConnectionsStore';
+import NotificationActions from '../../actions/NotificationActions';
+import MigrationStore from '../../stores/MigrationStore';
+import Notifications from '../Notifications'
+import Api from '../ApiCaller'
+import cookie from 'react-cookie'
+import Location from '../../core/Location'
+
+class App extends Reflux.Component {
+
+  static propTypes = {
+    context: PropTypes.shape({
+      insertCss: PropTypes.func,
+      onSetTitle: PropTypes.func,
+      onSetMeta: PropTypes.func,
+      onPageNotFound: PropTypes.func,
+      onNewMigration: PropTypes.func,
+      notify: PropTypes.func
+    }),
+    children: PropTypes.element.isRequired,
+    error: PropTypes.object
+  };
+
+  static childContextTypes = {
+    insertCss: PropTypes.func.isRequired,
+    onSetTitle: PropTypes.func.isRequired,
+    onSetMeta: PropTypes.func.isRequired,
+    onPageNotFound: PropTypes.func.isRequired,
+    notify: PropTypes.func.isRequired
+  };
+
+  constructor(props) {
+    super(props)
+    this.stores = [UserStore, NotificationsStore, ConnectionsStore, MigrationStore]
+    this.state = {
+      notifications: []
+    }
+
+    // init token if page is refreshed
+    let token = cookie.load('token')
+    if (token) {
+      Api.setDefaultHeader('X-Auth-Token', token)
+    } else {
+      Location.push("/login")
+    }
+  }
+
+  getChildContext() {
+    const context = this.props.context;
+    return {
+      insertCss: context.insertCss || emptyFunction,
+      onSetTitle: context.onSetTitle || emptyFunction,
+      onSetMeta: context.onSetMeta || emptyFunction,
+      onPageNotFound: context.onPageNotFound || emptyFunction,
+      notify: this.notify
+    };
+  }
+
+  notify(message, type = "info", title = null) {
+    NotificationActions.notify(message, type, title)
+  }
+
+  componentWillMount() {
+    super.componentWillMount.call(this)
+    const { insertCss } = this.props.context;
+    this.removeCss = insertCss(s);
+  }
+
+  componentWillUnmount() {
+    this.removeCss();
+  }
+
+  render() {
+    return !this.props.error ? (
+      <div className={s.root}>
+        <Notifications notifications={this.state.notifications}/>
+        {this.props.children}
+      </div>
+    ) : (<div className={s.root}>
+      {this.props.children}
+    </div>)
+  }
+
+}
+
+export default App;

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 445 - 0
src/components/App/App.scss


+ 6 - 0
src/components/App/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "App",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./App.js"
+}

+ 72 - 0
src/components/CloudConnection/CloudConnection.js

@@ -0,0 +1,72 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { PropTypes } from 'react';
+import Reflux from 'reflux';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './CloudConnection.scss';
+import ConnectionsStore from '../../stores/ConnectionsStore';
+import ConnectionsActions from '../../actions/ConnectionsActions';
+
+
+class CloudConnection extends Reflux.Component {
+  title = ""
+  constructor(props) {
+    super(props)
+    this.store = ConnectionsStore
+
+    this.state = {
+      connection: {
+        name: null,
+        cloudName: null,
+        id: null
+      },
+      title: 'Edit'
+    }
+  }
+
+  static propTypes = {
+    type: PropTypes.string,
+
+  }
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  componentWillMount() {
+    super.componentWillMount.call(this)
+    ConnectionsActions.loadConnectionDetail(this.props.connectionId)
+  }
+
+  componentDidMount() {
+    this.context.onSetTitle(this.title);
+  }
+
+  render() {
+    return (
+      <div className={s.root}>
+        {React.cloneElement(this.props.children, {
+          connections: this.state.connections,
+          connectionId: this.props.connectionId })}
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(CloudConnection, s);

+ 18 - 0
src/components/CloudConnection/CloudConnection.scss

@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';

+ 6 - 0
src/components/CloudConnection/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "CloudConnection",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./CloudConnection.js"
+}

+ 103 - 0
src/components/CloudConnectionAuth/CloudConnectionAuth.js

@@ -0,0 +1,103 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './CloudConnectionAuth.scss';
+import ConnectionsStore from '../../stores/ConnectionsStore';
+import {defaultLabels} from '../../config'
+import LoadingIcon from "../LoadingIcon/LoadingIcon";
+
+
+const title = 'connection details';
+
+class CloudConnectionAuth extends Component {
+  static propTypes = {
+    connection: PropTypes.object
+  }
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  constructor(props) {
+    super(props)
+
+    let fields = this.processProps(props)
+    this.state = { fields: fields }
+  }
+
+  processProps(props) {
+    let fields = []
+    if (props.connection.credentials) {
+      for (var fieldName in props.connection.credentials) {
+        let value = props.connection.credentials[fieldName]
+        if (value.value) { // if dropdown
+          value = value.value
+        }
+        if (value === true) value = "Yes"
+        if (value === false) value = "No"
+
+        fields.push({
+          fieldName: defaultLabels[fieldName] ? defaultLabels[fieldName] : fieldName,
+          fieldValue: value
+        })
+      }
+    }
+    return fields
+  }
+
+  componentWillReceiveProps(newProps, oldProps) {
+
+  }
+
+  componentWillMount() {
+    this.context.onSetTitle(title);
+  }
+
+  renderFields() {
+    if (this.state.fields.length) {
+      return this.state.fields.map((field, index) => (
+          <div className={s.formGroup} key={"formGroup_" + index}>
+            <div className={s.title}>
+              {field.fieldName}
+            </div>
+            <div className={s.value}>
+              {field.fieldValue ? field.fieldValue : "-"}
+            </div>
+          </div>
+        )
+      )
+    } else {
+      return <LoadingIcon/>
+    }
+  }
+
+  render() {
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          {this.renderFields()}
+        </div>
+        <button className="wire">Change Authentication</button>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(CloudConnectionAuth, s);

+ 74 - 0
src/components/CloudConnectionAuth/CloudConnectionAuth.scss

@@ -0,0 +1,74 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  :global(.arrow) {
+    width: 36px;
+    height: 28px;
+    margin-top: 30px;
+    margin-left: 130px;
+    position: absolute;
+  }
+}
+
+.container {
+  margin: 0 auto;
+  &:after {
+    clear: both;
+    height: 0;
+    display: block;
+    content: ' ';
+  }
+}
+.columnLeft, .columnRight {
+  width: 50%;
+  float: left;
+}
+.formGroup {
+  margin-bottom: 32px;
+  width: 50%;
+  float: left;
+  .title {
+    font-weight: $weight-semibold;
+    font-size: 10px;
+    color: $gray-dark;
+    letter-spacing: -0.34px;
+    text-transform: uppercase;
+    margin-bottom: 8px;
+  }
+  .titleIp {
+    font-weight: $weight-semibold;
+    font-size: 14px;
+    color: $gray;
+    letter-spacing: -0.41px;
+  }
+  .value {
+    font-weight: $weight-regular;
+    font-size: 14px;
+    color: $black;
+    letter-spacing: -0.41px;
+    a {
+      color: $blue;
+    }
+  }
+}
+.cloudImg {
+  width: 96px;
+  margin-top: 16px;
+}

+ 6 - 0
src/components/CloudConnectionAuth/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "CloudConnectionAuth",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./CloudConnectionAuth.js"
+}

+ 145 - 0
src/components/CloudConnectionDetail/CloudConnectionDetail.js

@@ -0,0 +1,145 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './CloudConnectionDetail.scss';
+import Moment from 'react-moment';
+import TextTruncate from 'react-text-truncate';
+import LoadingIcon from '../LoadingIcon'
+import {defaultLabels} from '../../config'
+
+const title = 'connection details';
+
+class CloudConnectionDetail extends Component {
+  static propTypes = {
+    connection: PropTypes.object
+  }
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  componentWillMount() {
+    this.context.onSetTitle(title);
+  }
+
+  constructor(props) {
+    super(props)
+    this.state = {
+      fields: this.processProps(props)
+    }
+  }
+
+  componentWillReceiveProps(newProps) {
+    this.setState({ fields: this.processProps(newProps) })
+  }
+
+  processProps(props) {
+    let fields = []
+    if (props.connection.credentials) {
+      for (var fieldName in props.connection.credentials) {
+        let value = props.connection.credentials[fieldName]
+        if (value.value) { // if dropdown
+          value = value.value
+        }
+        if (value === true) value = "Yes"
+        if (value === false) value = "No"
+
+        fields.push({
+          fieldName: defaultLabels[fieldName] ? defaultLabels[fieldName] : fieldName,
+          fieldValue: value
+        })
+      }
+    }
+    return fields
+  }
+
+  renderAuthFields() {
+    if (this.state.fields.length) {
+      return this.state.fields.map((field, index) => (
+          <div className={s.formGroup} key={"formGroup_" + index}>
+            <div className={s.title}>
+              {field.fieldName}
+            </div>
+            <div className={s.value}>
+              {field.fieldValue ? field.fieldValue : "-"}
+            </div>
+          </div>
+        )
+      )
+    } else {
+      return <LoadingIcon/>
+    }
+  }
+
+  render() {
+    let item = this.props.connection
+    if (item) {
+      return (
+        <div className={s.root}>
+          <div className={s.container}>
+            <div className={s.formGroup}>
+              <div className={s.title}>
+                Name
+              </div>
+              <div className={s.value}>
+                {item.name}
+              </div>
+            </div>
+            <div className={s.formGroup}>
+              <div className={s.title}>
+                Type
+              </div>
+              <div className={s.value}>
+                {item.type}
+              </div>
+            </div>
+            <div className={s.formGroup}>
+              <div className={s.title}>
+                Description
+              </div>
+              <div className={s.value}>
+                {item.description == "" ? "-" : item.description}
+              </div>
+            </div>
+            <div className={s.formGroup}>
+              <div className={s.title}>
+                Created
+              </div>
+              <div className={s.value}>
+                <Moment format="MM/DD/YYYY HH:MM" date={item.created} />
+              </div>
+            </div>
+          </div>
+          <div className={s.container}>
+            {this.renderAuthFields()}
+          </div>
+        </div>
+      )
+    } else {
+      return (<div className={s.root}>
+        <div className={s.container}>
+          <LoadingIcon />
+        </div>
+      </div>)
+    }
+  }
+
+}
+
+export default withStyles(CloudConnectionDetail, s);

+ 74 - 0
src/components/CloudConnectionDetail/CloudConnectionDetail.scss

@@ -0,0 +1,74 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  :global(.arrow) {
+    width: 36px;
+    height: 28px;
+    margin-top: 30px;
+    margin-left: 130px;
+    position: absolute;
+  }
+}
+
+.container {
+  margin: 0 auto;
+  &:after {
+    clear: both;
+    height: 0;
+    display: block;
+    content: ' ';
+  }
+}
+.columnLeft, .columnRight {
+  width: 50%;
+  float: left;
+}
+.formGroup {
+  margin-bottom: 32px;
+  width: 50%;
+  float: left;
+  .title {
+    font-weight: $weight-semibold;
+    font-size: 10px;
+    color: $gray-dark;
+    letter-spacing: -0.34px;
+    text-transform: uppercase;
+    margin-bottom: 8px;
+  }
+  .titleIp {
+    font-weight: $weight-semibold;
+    font-size: 14px;
+    color: $gray;
+    letter-spacing: -0.41px;
+  }
+  .value {
+    font-weight: $weight-regular;
+    font-size: 14px;
+    color: $black;
+    letter-spacing: -0.41px;
+    a {
+      color: $blue;
+    }
+  }
+}
+.cloudImg {
+  width: 96px;
+  margin-top: 16px;
+}

+ 6 - 0
src/components/CloudConnectionDetail/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "CloudConnectionDetail",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./CloudConnectionDetail.js"
+}

+ 194 - 0
src/components/CloudConnectionsView/CloudConnectionsView.js

@@ -0,0 +1,194 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './CloudConnectionsView.scss';
+import Header from '../Header';
+import ConnectionsActions from '../../actions/ConnectionsActions';
+import Location from '../../core/Location';
+import Link from '../Link';
+import Dropdown from '../NewDropdown';
+import LoadingIcon from '../LoadingIcon';
+import Modal from 'react-modal';
+import AddCloudConnection from '../AddCloudConnection';
+import ConfirmationDialog from '../ConfirmationDialog'
+
+
+class CloudConnectionsView extends Component {
+  title = ""
+
+  static propTypes = {
+    connection: PropTypes.object,
+    connectionId: PropTypes.string
+  }
+
+  static defaultProps = {
+    connection: null
+  }
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  constructor(props) {
+    super(props)
+    this.state = {
+      connection: {
+        name: null,
+        type: null,
+        id: null
+      },
+      confirmationDialog: {
+        visible: false,
+        message: "Are you sure?",
+        onConfirm: null,
+        onCancel: null
+      },
+      showModal: false
+    }
+  }
+
+  componentWillReceiveProps(newProps, oldProps) {
+    if (newProps.connections) {
+      let connection = newProps.connections.filter((connection => connection.id == this.props.connectionId))[0]
+
+      this.setState({ connection: connection })
+    }
+  }
+
+  componentDidMount() {
+    this.context.onSetTitle(this.title);
+  }
+
+  onConnectionsActionsChange(option) {
+    switch (option.value) {
+      case "delete":
+        ConnectionsActions.deleteConnection(this.state.connection)
+        Location.push('/cloud-endpoints')
+        break
+      default:
+        break
+    }
+  }
+
+  showEditConnectionModal() {
+    this.setState({ showModal: true })
+  }
+
+  deleteConnection() {
+    this.setState({
+      confirmationDialog: {
+        visible: true,
+        onConfirm: () => {
+          this.setState({ confirmationDialog: { visible: false }})
+          ConnectionsActions.deleteConnection(this.state.connection)
+        },
+        onCancel: () => {
+          this.setState({ confirmationDialog: { visible: false }})
+        }
+      }
+    })
+
+  }
+
+  closeModal() {
+    this.setState({ showModal: false })
+  }
+
+  render() {
+    let item = this.state.connection
+    let title = "Edit Connection"
+
+    let modalStyle = {
+      content: {
+        padding: "0px",
+        borderRadius: "4px",
+        bottom: "auto",
+        width: "576px",
+        height: "auto",
+        left: "50%",
+        top: "3%",
+        marginLeft: "-288px"
+      }
+    }
+
+    if (item) {
+      return (
+        <div className={s.root}>
+          <Header title={title} linkUrl="/cloud-endpoints"/>
+          <div className={s.connectionHead}>
+            <div className={s.container}>
+              <div className={s.connectionTypeImg + " icon small-cloud " + (item && item.type)}></div>
+              <div className={s.connectionInfo}>
+                <h2>{item.name}</h2>
+              </div>
+              <div className={s.connectionActions}>
+                <button onClick={(e) => this.showEditConnectionModal(e)}>Edit</button>
+                <button onClick={(e) => this.deleteConnection(e)} className="gray">Delete</button>
+              </div>
+            </div>
+          </div>
+          <div className={s.container}>
+            <div className={s.sidebar}>
+              <Link
+                to={"/cloud-endpoints/" + item.id + "/"}
+                className={this.props.type == 'detail' ? "active" : ""}
+              >Overview</Link>
+              <Link
+                to={"/cloud-endpoints/auth/" + item.id + "/"}
+                className={this.props.type == 'auth' ? "active" : ""}
+              >Authentication</Link>
+            </div>
+            <div className={s.content}>
+              {React.cloneElement(this.props.children, { connection: item })}
+            </div>
+          </div>
+          <Modal
+            isOpen={this.state.showModal}
+            contentLabel="Add new cloud connection"
+            style={modalStyle}
+          >
+            <AddCloudConnection
+              closeHandle={(e) => this.closeModal(e)}
+              addHandle={(e) => this.closeModal(e)}
+              connection={item}
+            />
+          </Modal>
+          <ConfirmationDialog
+            visible={this.state.confirmationDialog.visible}
+            message={this.state.confirmationDialog.message}
+            onConfirm={(e) => this.state.confirmationDialog.onConfirm(e)}
+            onCancel={(e) => this.state.confirmationDialog.onCancel(e)}
+          />
+        </div>
+      );
+    } else {
+      return (
+        <div className={s.root}>
+          <Header title={title} linkUrl="/cloud-endpoints"/>
+          <div className={s.container}>
+            <LoadingIcon />
+          </div>
+        </div>)
+    }
+
+  }
+
+}
+
+export default withStyles(CloudConnectionsView, s);

+ 114 - 0
src/components/CloudConnectionsView/CloudConnectionsView.scss

@@ -0,0 +1,114 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+$connectionHeaderBg: #D9DCE3;
+
+.root {
+
+}
+.connectionHead {
+  background-color: $connectionHeaderBg;
+  margin-top: 64px;
+  padding: 16px;
+  .connectionTypeImg {
+    margin-right: 64px;
+    margin-top: 8px;
+    float: left;
+  }
+  .connectionInfo {
+    float: left;
+    .connectionStatus {
+      width: 80px;
+      border-radius: 4px;
+      color: #FFF;
+      line-height: 16px;
+      display: inline-block;
+      font-size: 10px;
+      text-align: center;
+      &:global(.PAUSED) {
+        background-color: $gray;
+      }
+    }
+    .connectionType {
+      width: 80px;
+      background-color: #FFF;
+      border-radius: 4px;
+      line-height: 14px;
+      font-size: 10px;
+      text-align: center;
+      display: inline-block;
+      text-transform: uppercase;
+      border: 1px solid $blue;
+      color: $blue;
+      margin-right: 16px;
+      &:global(.replica) {
+        border: 1px solid $color-replica;
+        color: $color-replica;
+      }
+    }
+  }
+  .connectionActions {
+    float: right;
+    margin-top: 8px;
+    button {
+      margin-left: 16px;
+      max-width: 96px;
+    }
+    :global(.Dropdown-root) {
+      width: 160px;
+      float: left;
+      margin-right: 16px;
+    }
+  }
+  &:after {
+    clear: both;
+    content: " ";
+    display: block;
+    height: 0;
+  }
+}
+
+.container {
+  margin: 0 auto;
+  padding: 0;
+  max-width: $narrow-content-width;
+}
+.sidebar {
+  padding-top: 32px;
+  width: 128px;
+  float: left;
+  a {
+    display: block;
+    /* Tasks: */
+    font-weight: $weight-regular;
+    font-size: 16px;
+    color: $gray;
+    letter-spacing: -0.46px;
+    text-decoration: none;
+    margin-bottom: 16px;
+    &:global(.active) {
+      color: $blue;
+    }
+  }
+}
+.content {
+  padding-top: 32px;
+  float: left;
+  width: 800px;
+}

+ 6 - 0
src/components/CloudConnectionsView/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "CloudConnectionsView",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./CloudConnectionsView.js"
+}

+ 173 - 0
src/components/CloudItem/CloudItem.js

@@ -0,0 +1,173 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './CloudItem.scss';
+import sApp from '../App/App.scss';
+import Dropdown from '../NewDropdown';
+import AddCloudConnection from '../AddCloudConnection';
+import Modal from 'react-modal';
+
+class CloudItem extends Component {
+  static propTypes = {
+    cloud: PropTypes.object,
+    addCredentialsCallback: PropTypes.func,
+    callback: PropTypes.func,
+    exclude: PropTypes.string
+  }
+
+  constructor(props) {
+    super(props);
+
+    let credentialSelected = null
+    if (props.credentialSelected !== null && props.credentialSelected.id !== props.exclude) {
+      props.cloud.credentials.forEach(credential => {
+        if (credential.name === props.credentialSelected.name) {
+          credentialSelected = {
+            label: credential.name,
+            value: credential.id
+          }
+        }
+      })
+    }
+
+    let credentialsOptions = []
+
+    if (this.props.cloud.credentials) {
+      this.props.cloud.credentials.forEach((credential) => {
+        if (credential.id != this.props.exclude) {
+          credentialsOptions.push({ value: credential.id, label: credential.name })
+        }
+      })
+      credentialsOptions.push({ value: "new", label: "Add New ..." })
+    }
+
+    this.state = {
+      showModal: false,
+      credentialsOptions: credentialsOptions,
+      credentialSelected: credentialSelected
+    }
+  }
+
+  componentWillReceiveProps(nextProps) {
+    this.updateCredentialOptions(nextProps)
+    if (nextProps.selected === false && this.props.selected === true) {
+      this.setState( {credentialSelected: null })
+    }
+  }
+
+  onCredentialsChange(credential) {
+    this.setState({ credentialSelected: credential, credential: credential })
+    if (credential.value != "new") {
+      this.props.callback({
+        name: this.props.cloud.name,
+        cloudRef: this.props.cloud,
+        credential: { name: credential.label, id: credential.value }
+      });
+    } else {
+      this.addNew()
+    }
+    return credential;
+  }
+
+  addConnection(connection) {
+    let newCredentials = { cloudName: this.props.cloud.name, connection: connection }
+    this.props.addCredentialsCallback(newCredentials)
+    this.setState({ showModal: false }, () => {
+      this.onCredentialsChange({ label: connection, value: connection })
+    })
+  }
+
+  closeModal() {
+    this.setState({ showModal: false })
+  }
+
+  /**
+   * Opens new popup
+   */
+  addNew() {
+    this.setState({ showModal: true })
+  }
+
+  updateCredentialOptions(props) {
+    let credentialsOptions = []
+    if (props.cloud.credentials) {
+      props.cloud.credentials.forEach((credential) => {
+        if (credential.id != this.props.exclude) {
+          credentialsOptions.push({value: credential.id, label: credential.name})
+        }
+      })
+      credentialsOptions.push({ value: "new", label: "Add New ..." })
+    }
+
+    this.setState({ credentialsOptions: credentialsOptions })
+  }
+
+  render() {
+    let colorType = ""
+    let credential
+
+    if (this.props.cloud.credentials == null || this.props.cloud.credentials.length == 0) {
+      credential = <button className="transparent" onClick={(e) => this.addNew(e)}>Add</button>
+      colorType = "dimmer"
+    } else {
+      credential = (<Dropdown
+        options={this.state.credentialsOptions}
+        onChange={(e) => this.onCredentialsChange(e)}
+        placeholder="Select"
+        value={this.state.credentialSelected}
+      />)
+    }
+
+    let modalStyle = {
+      content: {
+        padding: "0px",
+        borderRadius: "4px",
+        bottom: "auto",
+        width: "576px",
+        height: "auto",
+        left: "50%",
+        top: "20%",
+        marginLeft: "-288px"
+      }
+    }
+
+    return (
+      <div className={s.root + " " + (this.props.selected ? s.selected : "")}>
+        <div className={s.container}>
+          <div className={s.cloudImage + " icon large-cloud " + this.props.cloud.name + " " + colorType}></div>
+          {credential}
+        </div>
+        <Modal
+          isOpen={this.state.showModal}
+          contentLabel="Add new cloud connection"
+          style={modalStyle}
+        >
+          <AddCloudConnection
+            closeHandle={(e) => this.closeModal(e)}
+            addHandle={(e) => this.addConnection(e)}
+            cloud={this.props.cloud}
+          />
+        </Modal>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(CloudItem, s);

+ 63 - 0
src/components/CloudItem/CloudItem.scss

@@ -0,0 +1,63 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  width: 255px;
+  float: left;
+  margin-bottom: 48px;
+  height: 200px;
+  &:nth-child(3n+1) {
+
+  }
+  &:nth-child(3n+2) {
+    text-align: center;
+  }
+  &:nth-child(3n) {
+    text-align: right;
+  }
+  &.selected {
+    :global(.Dropdown-control) {
+      background-color: $blue;
+      color: #FFF;
+      :global(.Dropdown-arrow) {
+        background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSI3cHgiIHZpZXdCb3g9IjEgNSAxNCA3IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwb2x5Z29uIGlkPSJDb21iaW5lZC1TaGFwZSIgc3Ryb2tlPSJub25lIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHBvaW50cz0iOCAxMC4zODIzMzc2IDIuNTAyNjA3MDIgNSAxLjgxNTQzMjg5IDUuNjcyNzkyMjEgOCAxMS43Mjc5MjIxIDE0LjE4NDU2NzEgNS42NzI3OTIyMSAxMy40OTczOTMgNSA4IDEwLjM4MjMzNzYiPjwvcG9seWdvbj48L3N2Zz4=');
+      }
+    }
+  }
+}
+
+.cloudImage {
+  margin-bottom: 32px;
+}
+
+.addBtn {
+
+}
+
+.container {
+  min-height: 200px;
+  margin: 0 auto;
+  display: inline-block;
+  text-align: left;
+  width: 192px;
+}
+
+.hidden {
+  display: none;
+}

+ 6 - 0
src/components/CloudItem/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "CloudItem",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./CloudItem.js"
+}

+ 88 - 0
src/components/ConfirmationDialog/ConfirmationDialog.js

@@ -0,0 +1,88 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './ConfirmationDialog.scss';
+import Modal from 'react-modal';
+
+class ConfirmationDialog extends Component {
+  static propTypes = {
+    message: PropTypes.string,
+    onConfirm: PropTypes.func,
+    onCancel: PropTypes.func,
+    visible: PropTypes.bool
+  }
+
+  static defaultProps = {
+    message: "Are you sure?",
+    visible: false,
+    place: "right"
+  }
+
+  constructor(props) {
+    super(props)
+  }
+
+  onCancel() {
+    if (this.props.onCancel) {
+      this.props.onCancel()
+    }
+  }
+
+  onConfirm() {
+    if (this.props.onConfirm) {
+      this.props.onConfirm()
+    }
+  }
+
+  render() {
+    let modalStyle = {
+      content: {
+        padding: "16px",
+        borderRadius: "4px",
+        bottom: "auto",
+        width: "250px",
+        height: "auto",
+        left: "50%",
+        top: "40%",
+        marginLeft: "-75px"
+      }
+    }
+    if (this.props.visible) {
+      return (
+        <div className={s.root}>
+          <Modal
+            isOpen={this.props.visible}
+            contentLabel="Add new cloud connection"
+            style={modalStyle}
+          >
+            <p className={s.message}>{this.props.message}</p>
+            <div className={s.buttons}>
+              <button className={s.leftBtn + " gray"} onClick={(e) => this.onCancel(e)}>Cancel</button>
+              <button className={s.rightBtn} onClick={(e) => this.onConfirm(e)}>Yes</button>
+            </div>
+          </Modal>
+        </div>
+      );
+    } else {
+      return null
+    }
+  }
+}
+
+export default withStyles(ConfirmationDialog, s);

+ 41 - 0
src/components/ConfirmationDialog/ConfirmationDialog.scss

@@ -0,0 +1,41 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.buttons {
+  .leftBtn {
+    float: left;
+    width: 80px;
+  }
+  .rightBtn {
+    float: right;
+    width: 80px;
+  }
+  &:after {
+
+  }
+  .centerBtn {
+    margin: 0 auto;
+    width: 256px;
+    display: block;
+  }
+}
+.message {
+  font-size: 16px;
+  text-align: center;
+}

+ 6 - 0
src/components/ConfirmationDialog/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "ConfirmationDialog",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./ConfirmationDialog.js"
+}

+ 292 - 0
src/components/ConnectionsList/ConnectionsList.js

@@ -0,0 +1,292 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { PropTypes } from 'react';
+import Reflux from 'reflux';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import Location from '../../core/Location';
+import Dropdown from '../NewDropdown';
+import SearchBox from '../SearchBox';
+import Moment from 'react-moment';
+import s from './ConnectionsList.scss';
+import AddCloudConnection from '../AddCloudConnection';
+import Modal from 'react-modal';
+import ConnectionsStore from '../../stores/ConnectionsStore';
+import ConnectionsActions from '../../actions/ConnectionsActions';
+import TextTruncate from 'react-text-truncate';
+import UserIcon from '../UserIcon';
+import FilteredTable from '../FilteredTable';
+import EndpointUsage from '../EndpointUsage';
+import NotificationIcon from '../NotificationIcon';
+
+
+const title = 'Cloud Endpoints';
+const connectionTypes = [
+  { label: "All", type: "all" },
+  { label: "Oracle Cloud", type: "opc" },
+  { label: "Oracle VM Server", type: "oracle_vm" },
+  { label: "Openstack", type: "openstack" },
+  { label: "VMware", type: "vmware_vsphere" }
+]
+const connectionActions = [
+  { label: "Delete", value: "delete" }
+]
+
+
+class ConnectionsList extends Reflux.Component {
+  constructor(props) {
+    super(props)
+    this.store = ConnectionsStore
+
+    this.state = {
+      showModal: false,
+      queryText: '',
+      filterType: 'all',
+      searchMin: true,
+      connections: null
+    }
+  }
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  componentWillMount() {
+    super.componentWillMount.call(this)
+
+    this.context.onSetTitle(title);
+    if (this.state.connections == null) {
+      ConnectionsActions.loadConnections()
+    }
+  }
+
+  connectionsSelected() {
+    let count = this.connectionsSelectedCount(),
+        total = 0
+    if (this.state.connections) {
+      total = this.state.connections.length
+    }
+
+    return `${count} of ${total} connection(s) selected`;
+  }
+
+  connectionsSelectedCount() {
+    let count = 0
+    if (this.state.connections) {
+      this.state.connections.forEach((item) => {
+        if (item.selected) count++
+      })
+    }
+    return count
+  }
+
+  connectionDetail(e, item) {
+    Location.push('/cloud-endpoints/' + item.id + "/")
+  }
+
+  checkItem(e, itemRef) {
+    let items = this.state.connections
+    items.forEach((item) => {
+      if (item == itemRef) {
+        item.selected = !item.selected
+      }
+    })
+    this.setState({ connections: items })
+  }
+
+  filterFn(item, queryText, filterType) {
+    return (
+      item.name.toLowerCase().indexOf(queryText.toLowerCase()) != -1 &&
+      (filterType == "all" || filterType == item.type)
+    )
+  }
+
+  searchItem(queryText) {
+    this.setState({ queryText: queryText.target.value })
+  }
+
+  filterType(e, type) {
+    this.setState({ filterType: type })
+  }
+
+  closeModal() {
+    this.setState({ showModal: false })
+  }
+
+  bulkActions(action) {
+    switch (action.value) {
+      case "delete":
+        let selectedConnections = this.state.connections.filter((connection) => connection.selected)
+        selectedConnections.forEach(connection => {
+          ConnectionsActions.deleteConnection(connection)
+        })
+        break;
+    }
+  }
+
+  renderSearch(items) {
+    let output = null
+    if (items && items.length) {
+      output = items.map((item, index) => (
+        <div className={"item " + (item.selected ? " selected" : "")} key={"vm_" + index}>
+          <div className="checkbox-container">
+            <input
+              id={"vm_check_" + index}
+              type="checkbox"
+              checked={item.selected}
+              onChange={(e) => this.checkItem(e, item)}
+              className="checkbox-normal"
+            />
+            <label htmlFor={"vm_check_" + index}></label>
+          </div>
+          <span className="cell cell-icon" onClick={(e) => this.connectionDetail(e, item)}>
+            <div className={"icon endpoint"}></div>
+            <span className="details">
+              {/*{item.name ? item.name : "N/A"}*/}
+              <TextTruncate line={1} truncateText="..." text={item.name} />
+              <span className={s.description}>{item.description == "" ? "N/A" : item.description}</span>
+            </span>
+          </span>
+          <span className="cell">
+              <div className={s.cloudImage + " icon small-cloud " + item.type}></div>
+            </span>
+          <span className={"cell " + s.composite}>
+              <span className={s.label}>Created</span>
+              <span className={s.value}>
+                <Moment fromNow ago date={item.created_at}/> ago
+              </span>
+            </span>
+          <span className={"cell " + s.composite}>
+              <span className={s.label}>Usage</span>
+              <span className={s.value}>
+                <EndpointUsage connectionId={item.id} />
+              </span>
+            </span>
+        </div>
+      ), this)
+    }
+    return output
+  }
+
+  onProjectChange(project) {
+    this.setState({ currentProject: project.value })
+  }
+
+  currentInstance(migration) {
+    let instance = "N/A"
+    migration.vms.forEach((item) => {
+      if (item.selected) {
+        instance = item.name
+      }
+    })
+    return instance
+  }
+
+  showNewConnectionModal() {
+    this.setState({ showModal: true })
+  }
+
+  render() {
+    let itemStates = connectionTypes.map((state, index) => (
+        <a
+          className={this.state.filterType == state.type || (this.state.filterType == null && state.type == "all") ?
+            "selected" : ""}
+          onClick={(e) => this.filterType(e, state.type)} key={"status_" + index}
+        >{state.label}</a>
+      ), this)
+
+    let modalStyle = {
+      content: {
+        padding: "0px",
+        borderRadius: "4px",
+        bottom: "auto",
+        width: "576px",
+        height: "auto",
+        left: "50%",
+        top: "3%",
+        marginLeft: "-288px"
+      }
+    }
+
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          <div className={s.pageHeader}>
+            <div className={s.top}>
+              <h1>{title}</h1>
+              <div className={s.topActions}>
+                <button onClick={(e) => this.showNewConnectionModal(e)}>New Connection</button>
+                <UserIcon />
+                <NotificationIcon />
+              </div>
+            </div>
+            <div className="filters">
+              <div className="category-filter">
+                {itemStates}
+              </div>
+              <div className="name-filter">
+                <SearchBox
+                  placeholder="Search"
+                  value={this.state.queryText}
+                  onChange={(e) => this.searchItem(e)}
+                  minimize={true} // eslint-disable-line react/jsx-boolean-value
+                  onClick={(e) => this.toggleSearch(e)}
+                  className={"searchBox " + (this.state.searchMin ? "minimize" : "")}
+                />
+              </div>
+              <div className={s.bulkActions + (this.connectionsSelectedCount() === 0 ? " invisible": "")}>
+                <div className={s.connectionsCount}>
+                  {this.connectionsSelected()}
+                </div>
+                <Dropdown
+                  options={connectionActions}
+                  placeholder="More Actions"
+                  onChange={(e) => this.bulkActions(e)}
+                />
+              </div>
+            </div>
+          </div>
+          <div className={s.pageContent}>
+            <FilteredTable
+              items={this.state.connections}
+              filterFn={this.filterFn}
+              queryText={this.state.queryText}
+              filterType={this.state.filterType}
+              renderSearch={(e) => this.renderSearch(e)}
+            ></FilteredTable>
+          </div>
+          <div className={s.pageFooter}>
+
+          </div>
+        </div>
+        <Modal
+          isOpen={this.state.showModal}
+          contentLabel="Add new cloud connection"
+          style={modalStyle}
+        >
+          <AddCloudConnection
+            closeHandle={(e) => this.closeModal(e)}
+            addHandle={(e) => this.closeModal(e)}
+          />
+        </Modal>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(ConnectionsList, s);

+ 186 - 0
src/components/ConnectionsList/ConnectionsList.scss

@@ -0,0 +1,186 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  height: 100%;
+}
+.pageHeader {
+  padding: 44px 64px 0;
+  flex: 1;
+
+  h1 {
+    float: left;
+    margin: 0;
+  }
+  .top {
+    &:after {
+      content: " ";
+      clear: both;
+      display: block;
+      height: 0;
+    }
+    margin-bottom: 48px;
+  }
+  .topActions {
+    float: right;
+    margin-top: 3px;
+    :global(.Dropdown-root) {
+      margin-right: 16px;
+      float: left;
+      width: 160px;
+      :global(.Dropdown-control) {
+        text-align: left;
+      }
+    }
+
+  }
+  :global(.filters) {
+    :global(.category-filter) {
+      float: left;
+      padding: 2px 8px 2px 0;
+      margin-top: 7px;
+      border-right: 1px solid $gray-dark;
+    }
+    :global(.name-filter) {
+      float: left;
+      padding-left: 24px;
+      margin-top: 2px;
+    }
+    &:after {
+      clear: both;
+      content: ' ';
+      display: block;
+      height: 0;
+    }
+  }
+}
+.pageContent {
+  flex: 10;
+  overflow-y: auto;
+  padding: 0 64px;
+}
+.pageFooter {
+  flex: 1;
+  padding: 16px 64px 44px;
+  :global(.Dropdown-root) {
+    width: 160px;
+    float: left;
+  }
+  .connectionsCount {
+    float: left;
+    line-height: 32px;
+    margin-left: 16px;
+  }
+}
+.bulkActions {
+  float: right;
+  padding-top: 2px;
+  transition: opacity $animation-swift-out;
+  :global(.Dropdown-root) {
+    width: 160px;
+    float: left;
+  }
+  .connectionsCount {
+    float: left;
+    line-height: 32px;
+    margin-right: 16px;
+  }
+}
+.container {
+  margin: 0 auto;
+  padding: 0;
+  max-width: $max-content-width;
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  :global(.items-list) {
+    :global(.item) {
+      position: relative;
+      span:global(.cell):nth-child(2) {
+        flex: 3;
+        cursor: pointer;
+      }
+      span:global(.cell):nth-child(3) {
+        flex: 2;
+      }
+      span:global(.cell):nth-child(4) {
+        flex: 2;
+      }
+      span:global(.cell):nth-child(5) {
+        flex: 3;
+      }
+      :global(.checkbox-container) {
+        position: absolute;
+        left: -32px;
+        top: 21px;
+        opacity: 0;
+        transition: opacity $animation-swift-out;
+      }
+      &:hover, &:global(.selected) {
+        :global(.checkbox-container) {
+          opacity: 1;
+        }
+      }
+      .description {
+        display: block;
+        color: $gray-dark;
+        letter-spacing: -0.41px;
+        font-size: 14px;
+      }
+      :global(.icon.small-cloud) {
+        margin: 0 auto;
+      }
+    }
+
+    .composite {
+      flex-direction: column;
+      align-items: flex-start;
+      .label {
+        display: block;
+        color: $gray-dark;
+        margin-top: 4px;
+      }
+      .value {
+        color: $blue;
+        width: 100%;
+        display: inline-block;
+      }
+    }
+  }
+  .connectionStatus {
+    width: 96px;
+    border-radius: 4px;
+    color: #FFF;
+    line-height: 16px;
+    display: block;
+    font-size: 10px;
+    text-align: center;
+    &:global(.PAUSED) {
+      background-color: $gray;
+    }
+  }
+  .chevronRight {
+    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOHB4IiBoZWlnaHQ9IjEzcHgiIHZpZXdCb3g9IjQgMiA4IDEzIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwb2x5Z29uIGlkPSJDb21iaW5lZC1TaGFwZSIgc3Ryb2tlPSJub25lIiBmaWxsPSIjNjE2NzcwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDguMDAwMDAwLCA4LjM2Mzk2MSkgcm90YXRlKC05MC4wMDAwMDApIHRyYW5zbGF0ZSgtOC4wMDAwMDAsIC04LjM2Mzk2MSkgIiBwb2ludHM9IjggMTAuMzgyMzM3NiAyLjUwMjYwNzAyIDUgMS44MTU0MzI4OSA1LjY3Mjc5MjIxIDggMTEuNzI3OTIyMSAxNC4xODQ1NjcxIDUuNjcyNzkyMjEgMTMuNDk3MzkzIDUgOCAxMC4zODIzMzc2Ij48L3BvbHlnb24+PC9zdmc+');
+    width: 8px;
+    height: 13px;
+    display: inline-block;
+    margin: 0 16px;
+  }
+
+}

+ 6 - 0
src/components/ConnectionsList/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "ConnectionsList",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./ConnectionsList.js"
+}

+ 47 - 0
src/components/ContactPage/ContactPage.js

@@ -0,0 +1,47 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './ContactPage.scss';
+
+const title = 'Contact Us';
+
+class ContactPage extends Component {
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  componentWillMount() {
+    this.context.onSetTitle(title);
+  }
+
+  render() {
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          <h1>{title}</h1>
+          <p>...</p>
+        </div>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(ContactPage, s);

+ 28 - 0
src/components/ContactPage/ContactPage.scss

@@ -0,0 +1,28 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+
+}
+
+.container {
+  margin: 0 auto;
+  padding: 0 0 40px;
+  max-width: $max-content-width;
+}

+ 6 - 0
src/components/ContactPage/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "ContactPage",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./ContactPage.js"
+}

+ 48 - 0
src/components/ContentPage/ContentPage.js

@@ -0,0 +1,48 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './ContentPage.scss';
+
+class ContentPage extends Component {
+
+  static propTypes = {
+    path: PropTypes.string.isRequired,
+    content: PropTypes.string.isRequired,
+    title: PropTypes.string,
+  };
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  render() {
+    this.context.onSetTitle(this.props.title);
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          {this.props.path === '/' ? null : <h1>{this.props.title}</h1>}
+          <div dangerouslySetInnerHTML={{ __html: this.props.content || '' }} />
+        </div>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(ContentPage, s);

+ 28 - 0
src/components/ContentPage/ContentPage.scss

@@ -0,0 +1,28 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+
+}
+
+.container {
+  margin: 0 auto;
+  padding: 0 0 40px;
+  max-width: $max-content-width;
+}

+ 6 - 0
src/components/ContentPage/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "ContentPage",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./ContentPage.js"
+}

+ 110 - 0
src/components/EndpointLink/EndpointLink.js

@@ -0,0 +1,110 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import Location from '../../core/Location';
+import Reflux from 'reflux';
+import ConnectionStore from '../../stores/ConnectionsStore';
+
+function isLeftClickEvent(event) {
+  return event.button === 0;
+}
+
+function isModifiedEvent(event) {
+  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
+}
+
+class EndpointLink extends Reflux.Component {
+
+  static propTypes = {
+    connectionId: PropTypes.string
+  };
+
+  constructor(props) {
+    super(props)
+
+    this.store = ConnectionStore;
+
+    this.state = {
+      connection: null
+    }
+  }
+
+  componentWillMount() {
+    super.componentWillMount.call(this)
+  }
+
+  componentDidMount() {
+    this.componentWillReceiveProps(this.props)
+  }
+
+  componentWillReceiveProps(props) {
+    if (this.state && this.state.connections) {
+      this.state.connections.forEach(connection => {
+        if (connection.id == props.connectionId) {
+          this.setState({ connection: connection })
+        }
+      })
+    }
+  }
+
+
+  handleClick = (event) => {
+    let allowTransition = true;
+    let clickResult;
+
+    if (this.props && this.props.onClick) {
+      clickResult = this.props.onClick(event);
+    }
+
+    if (isModifiedEvent(event) || !isLeftClickEvent(event)) {
+      return;
+    }
+
+    if (clickResult === false || event.defaultPrevented === true) {
+      allowTransition = false;
+    }
+
+    event.preventDefault();
+
+    if (allowTransition) {
+      const link = event.currentTarget;
+      if (this.props && this.props.to) {
+        Location.push(this.props.to);
+      } else {
+        Location.push({ pathname: link.pathname, search: link.search });
+      }
+    }
+  };
+
+  render() {
+    const { to, ...props } = this.props; // eslint-disable-line no-use-before-define
+    if (this.state && this.state.connection) {
+      return <a
+        href={Location.createHref(`/cloud-endpoints/${this.state.connection.id}`)}
+        {...props}
+        onClick={this.handleClick}
+      >{this.state.connection.name}</a>;
+    } else {
+      return null
+    }
+
+  }
+
+}
+
+export default EndpointLink;

+ 6 - 0
src/components/EndpointLink/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "EndpointLink",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./EndpointLink.js"
+}

+ 74 - 0
src/components/EndpointUsage/EndpointUsage.js

@@ -0,0 +1,74 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { PropTypes } from 'react';
+import Reflux from 'reflux';
+import MigrationStore from '../../stores/MigrationStore';
+
+class EndpointUsage extends Reflux.Component {
+
+  static propTypes = {
+    connectionId: PropTypes.string
+  };
+
+  constructor(props) {
+    super(props)
+
+    this.store = MigrationStore;
+
+    this.state = {
+      connectionId: props.connectionId,
+      migrationCount: 0,
+      replicaCount: 0
+    }
+  }
+
+  componentWillMount() {
+    super.componentWillMount.call(this)
+    this.componentWillReceiveProps(this.props)
+  }
+
+  componentWillReceiveProps(props) {
+    if (props.connectionId && this.state.migrations) {
+      let migrationCount = 0
+      let replicaCount = 0
+      this.state.migrations.forEach(migration => {
+        if (migration.destination_endpoint_id === this.state.connectionId ||
+          migration.origin_endpoint_id === this.state.connectionId) {
+          if (migration.type == "migration") {
+            migrationCount++
+          } else {
+            replicaCount++
+          }
+        }
+      })
+      this.setState({ migrationCount: migrationCount, replicaCount: replicaCount })
+    }
+  }
+
+  render() {
+    if (this.state && this.state.connectionId) {
+      return <div>{this.state.migrationCount} migrations, {this.state.replicaCount} replicas</div>;
+    } else {
+      return null
+    }
+
+  }
+
+}
+
+export default EndpointUsage;

+ 6 - 0
src/components/EndpointUsage/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "EndpointUsage",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./EndpointUsage.js"
+}

+ 46 - 0
src/components/ErrorPage/ErrorPage.js

@@ -0,0 +1,46 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './ErrorPage.scss';
+
+const title = 'Error';
+
+class ErrorPage extends Component {
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+    onPageNotFound: PropTypes.func.isRequired,
+  };
+
+  componentWillMount() {
+    this.context.onSetTitle(title);
+  }
+
+  render() {
+    return (
+      <div>
+        <h1>{title}</h1>
+        <p>Sorry, an critical error occurred on this page.</p>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(ErrorPage, s);

+ 61 - 0
src/components/ErrorPage/ErrorPage.scss

@@ -0,0 +1,61 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+* {
+  margin: 0;
+  line-height: 1.2;
+}
+
+html {
+  display: table;
+  width: 100%;
+  height: 100%;
+  color: #888;
+  text-align: center;
+  font-family: sans-serif;
+}
+
+body {
+  display: table-cell;
+  margin: 2em auto;
+  vertical-align: middle;
+}
+
+h1 {
+  color: #555;
+  font-weight: $weight-regular;
+  font-size: 2em;
+}
+
+p {
+  margin: 0 auto;
+  width: 280px;
+}
+
+@media only screen and (max-width: 280px) {
+
+  body, p {
+    width: 95%;
+  }
+
+  h1 {
+    font-size: 1.5em;
+    margin: 0 0 0.3em;
+
+  }
+
+}

+ 6 - 0
src/components/ErrorPage/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "ErrorPage",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./ErrorPage.js"
+}

+ 44 - 0
src/components/Feedback/Feedback.js

@@ -0,0 +1,44 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './Feedback.scss';
+
+class Feedback extends Component {
+
+  render() {
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          <a
+            className={s.link}
+            href="https://gitter.im/kriasoft/react-starter-kit"
+          >Ask a question</a>
+          <span className={s.spacer}>|</span>
+          <a
+            className={s.link}
+            href="https://github.com/kriasoft/react-starter-kit/issues/new"
+          >Report an issue</a>
+        </div>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(Feedback, s);

+ 48 - 0
src/components/Feedback/Feedback.scss

@@ -0,0 +1,48 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  background: #f5f5f5;
+  color: #333;
+}
+
+.container {
+  margin: 0 auto;
+  padding: 20px 8px;
+  max-width: $max-content-width;
+  text-align: center;
+  font-size: 1.5em; /* ~24px */
+}
+
+.link,
+.link:active,
+.link:hover,
+.link:visited {
+  color: #333;
+  text-decoration: none;
+}
+
+.link:hover {
+  text-decoration: underline;
+}
+
+.spacer {
+  padding-right: 15px;
+  padding-left: 15px;
+}

+ 6 - 0
src/components/Feedback/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "Feedback",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./Feedback.js"
+}

+ 94 - 0
src/components/FilteredTable/FilteredTable.js

@@ -0,0 +1,94 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './FilteredTable.scss';
+import LoadingIcon from "../LoadingIcon/LoadingIcon";
+
+
+class FilteredTable extends Component {
+
+  static defaultProps = {
+    items: [],
+    filterFn: null,
+    renderSearchItem: null
+  }
+
+  static propTypes = {
+    items: PropTypes.array,
+    filterFn: PropTypes.func,
+    queryText: PropTypes.string,
+    filterType: PropTypes.string,
+    renderSearch: PropTypes.func
+  }
+
+  constructor(props) {
+    super(props)
+    if (props.items) {
+      this.state = {
+        filteredData: props.items
+      }
+    } else {
+      this.state = {
+        filteredData: null
+      }
+    }
+  }
+
+  componentWillReceiveProps(newProps, oldProps) {
+    if (newProps.items) {
+      this.setState({filteredData: newProps.items}, () => {
+        this.searchItem()
+      })
+    }
+  }
+
+  searchItem() {
+    let queryResult = []
+    if (this.props.items.length) {
+      this.props.items.forEach((item) => {
+        if (this.props.filterFn(item, this.props.queryText, this.props.filterType)) {
+          queryResult.push(item)
+        }
+      }, this)
+    }
+
+    this.setState({
+      filteredData: queryResult
+    })
+  }
+
+  render() {
+    let output = <LoadingIcon/>
+    if (this.state.filteredData) {
+      if (this.state.filteredData.length) {
+        output = (<div className="items-list">{this.props.renderSearch(this.state.filteredData)}</div>)
+      } else {
+        output = (<div className="no-results">No results</div>)
+      }
+    }
+    return (
+      <div className={s.root + " " + this.props.customClassName}>
+        {output}
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(FilteredTable, s);

+ 98 - 0
src/components/FilteredTable/FilteredTable.scss

@@ -0,0 +1,98 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+
+}
+
+.headerItems {
+  padding-bottom: 8px;
+  border-bottom: 1px solid $gray-light;
+  .cell {
+    float: left;
+    box-sizing: border-box;
+    font-weight: $weight-regular;
+    padding-left: 8px;
+    color: $gray;
+    letter-spacing: -0.41px;
+    &:first-child {
+      padding-left: 0;
+    }
+  }
+  &:after {
+    content: " ";
+    clear: both;
+    display: block;
+    height: 0;
+  }
+}
+.listItems {
+  .row {
+    padding: 8px 0;
+    border-bottom: 1px solid $gray-light;
+    position: relative;
+    .cell {
+      float: left;
+      box-sizing: border-box;
+      padding-left: 8px;
+      overflow: hidden;
+      color: $gray-dark;
+      font-weight: $weight-regular;
+      &:first-child {
+        color: $black;
+        padding-left: 0;
+      }
+    }
+    &:global(.isOpen) {
+      .caret {
+        opacity: 1;
+        transform: scale(-1);
+      }
+    }
+    &:after {
+      content: " ";
+      clear: both;
+      display: block;
+      height: 0;
+    }
+    .caret {
+      width: 14px;
+      height: 26px;
+      content: ' ';
+      display: block;
+      position: absolute;
+      right: -26px;
+      top: 4px;
+      opacity: 0;
+      background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTRweCIgaGVpZ2h0PSI3cHgiIHZpZXdCb3g9IjEgNSAxNCA3IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwb2x5Z29uIGlkPSJDb21iaW5lZC1TaGFwZSIgc3Ryb2tlPSJub25lIiBmaWxsPSIjMDA1NkI4IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHBvaW50cz0iOCAxMC4zODIzMzc2IDIuNTAyNjA3MDIgNSAxLjgxNTQzMjg5IDUuNjcyNzkyMjEgOCAxMS43Mjc5MjIxIDE0LjE4NDU2NzEgNS42NzI3OTIyMSAxMy40OTczOTMgNSA4IDEwLjM4MjMzNzYiPjwvcG9seWdvbj48L3N2Zz4=');
+      background-position: right center;
+      background-repeat: no-repeat;
+      transition: transform $animation-swift-out;
+    }
+    .detailView {
+      clear: both;
+    }
+    &:hover {
+      .caret {
+        opacity: 1;
+      }
+    }
+  }
+}
+

+ 6 - 0
src/components/FilteredTable/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "FilteredTable",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./FilteredTable.js"
+}

+ 43 - 0
src/components/Footer/Footer.js

@@ -0,0 +1,43 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './Footer.scss';
+import Link from '../Link';
+
+class Footer extends Component {
+
+  render() {
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          <span className={s.text}>© Your Company</span>
+          <span className={s.spacer}>·</span>
+          <Link className={s.link} to="/">Home</Link>
+          <span className={s.spacer}>·</span>
+          <Link className={s.link} to="/privacy">Privacy</Link>
+          <span className={s.spacer}>·</span>
+          <Link className={s.link} to="/not-found">Not Found</Link>
+        </div>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(Footer, s);

+ 60 - 0
src/components/Footer/Footer.scss

@@ -0,0 +1,60 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  background: #333;
+  color: #fff;
+}
+
+.container {
+  margin: 0 auto;
+  padding: 20px 15px;
+  max-width: $max-content-width;
+  text-align: center;
+}
+
+.text {
+  color: rgba(255, 255, 255, .5);
+}
+
+.textMuted {
+  composes: text;
+  color: rgba(255, 255, 255, .3);
+}
+
+.spacer {
+  color: rgba(255, 255, 255, .3);
+}
+
+.text,
+.link {
+  padding: 2px 5px;
+  font-size: 1em;
+}
+
+.link,
+.link:active,
+.link:visited {
+  color: rgba(255, 255, 255, .6);
+  text-decoration: none;
+}
+
+.link:hover {
+  color: rgba(255, 255, 255, 1);
+}

+ 6 - 0
src/components/Footer/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "Footer",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./Footer.js"
+}

+ 107 - 0
src/components/Header/Header.js

@@ -0,0 +1,107 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './Header.scss';
+import UserIcon from '../UserIcon';
+import NotificationIcon from '../NotificationIcon';
+import Link from '../Link';
+import Location from '../../core/Location';
+
+class Header extends Component {
+  static propTypes = {
+    title: PropTypes.string,
+    linkUrl: PropTypes.string
+  }
+  static defaultProps = {
+    title: "Coriolis",
+    linkUrl: "/migrations/"
+  }
+
+  constructor(props) {
+    super(props)
+    this.state = {
+      menuOpen: false,
+      windowHeight: '0'
+    }
+    this.updateWindowDimensions = this.updateWindowDimensions.bind(this)
+  }
+
+  componentDidMount() {
+    this.updateWindowDimensions()
+    window.addEventListener('resize', this.updateWindowDimensions)
+  }
+
+  componentWillUnmount() {
+    window.removeEventListener('resize', this.updateWindowDimensions)
+  }
+
+  updateWindowDimensions() {
+    this.setState({ height: window.innerHeight })
+  }
+
+  goToMenu(location) {
+    this.setState({ menuOpen: false })
+    Location.push(location)
+  }
+
+  toggleMenu() {
+    this.setState({ menuOpen: !this.state.menuOpen })
+  }
+
+  render() {
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          <div
+            onClick={(e) => this.toggleMenu(e)}
+            className={s.menuIcon + (this.state.menuOpen ? " open" : "")}
+          >
+            <span></span>
+            <span></span>
+            <span></span>
+            <span></span>
+          </div>
+          <Link className={s.brand} to={this.props.linkUrl}>
+            <div className="logo coriolis-white"></div>
+          </Link>
+          <div className={s.banner}>
+            <h1 className={s.bannerTitle}>{this.props.title}</h1>
+          </div>
+          <div className={s.userIcon}>
+            <UserIcon dark={true} />
+            <NotificationIcon dark={true} />
+          </div>
+        </div>
+        <div
+          className={s.sideMenu + (this.state.menuOpen ? " open" : "")}
+          style={{ height: this.state.height }}
+        >
+          <ul>
+            <li><a onClick={(e) => this.goToMenu("/replicas")}>Replicas</a></li>
+            <li><a onClick={(e) => this.goToMenu("/migrations")}>Migrations</a></li>
+            <li><a onClick={(e) => this.goToMenu("/cloud-endpoints")}>Cloud Endpoints</a></li>
+          </ul>
+        </div>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(Header, s);

+ 192 - 0
src/components/Header/Header.scss

@@ -0,0 +1,192 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+$brand-color: #FFF;
+
+.root {
+  color: #fff;
+  background: #000 url('./headerBackground.png');
+  height: 64px;
+  position: absolute;
+  width: 100%;
+  top: 0;
+  z-index: 9999;
+  .bannerTitle {
+    margin: 0;
+    font-weight: $weight-light;
+    font-size: 32px;
+    line-height: 32px;
+    color: #FFFFFF;
+    letter-spacing: -0.81px;
+    min-width: $wizard-content-width;
+    padding: 16px 32px;
+  }
+
+  .menuIcon {
+    width: 20px;
+    height: 16px;
+    position: relative;
+    -webkit-transform: rotate(0deg);
+    -moz-transform: rotate(0deg);
+    -o-transform: rotate(0deg);
+    transform: rotate(0deg);
+    -webkit-transition: .5s ease-in-out;
+    -moz-transition: .5s ease-in-out;
+    -o-transition: .5s ease-in-out;
+    transition: .5s ease-in-out;
+    cursor: pointer;
+    z-index: 1001;
+    float: left;
+    margin-left: 24px;
+    margin-top: 8px;
+    span {
+      display: block;
+      position: absolute;
+      height: 2px;
+      width: 100%;
+      background: #FFF;
+      border-radius: 1px;
+      opacity: 1;
+      left: 0;
+      -webkit-transform: rotate(0deg);
+      -moz-transform: rotate(0deg);
+      -o-transform: rotate(0deg);
+      transform: rotate(0deg);
+      -webkit-transition: .25s ease-in-out;
+      -moz-transition: .25s ease-in-out;
+      -o-transition: .25s ease-in-out;
+      transition: .25s ease-in-out;
+      &:nth-child(1) {
+        top: 0px;
+      }
+      &:nth-child(2), &:nth-child(3) {
+        top: 8px;
+      }
+      &:nth-child(4) {
+        top: 16px;
+      }
+    }
+
+    &:global(.open) {
+      span {
+        &:nth-child(1) {
+          top: 6px;
+          width: 0%;
+          left: 50%;
+        }
+        &:nth-child(2) {
+          -webkit-transform: rotate(45deg);
+          -moz-transform: rotate(45deg);
+          -o-transform: rotate(45deg);
+          transform: rotate(45deg);
+        }
+        &:nth-child(3) {
+          -webkit-transform: rotate(-45deg);
+          -moz-transform: rotate(-45deg);
+          -o-transform: rotate(-45deg);
+          transform: rotate(-45deg);
+        }
+        &:nth-child(4) {
+          top: 12px;
+          width: 0%;
+          left: 50%;
+        }
+      }
+    }
+  }
+}
+
+.sideMenu {
+  width: 224px;
+  position: absolute;
+  left: -224px;
+  background-color: #000;
+  background-image: url('../../public/images/star-bg.jpg');
+  transition: left $animation-swift-out;
+  ul {
+    margin-top: 88px;
+    list-style: none;
+    li {
+      margin-bottom: 24px;
+      list-style-image: none;
+      a {
+        font-size: 18px;
+        color: #FFFFFF;
+        letter-spacing: -0.27px;
+        cursor: pointer;
+        &:hover {
+          color :$blue;
+        }
+      }
+
+    }
+  }
+  &:global(.open) {
+    left: 0;
+  }
+}
+
+.container {
+  margin: 0 auto;
+  padding: 16px 0;
+  max-width: $max-content-width
+}
+
+.brand {
+  color: color($brand-color lightness(+10%));
+  text-decoration: none;
+  font-size: 1.75em; /* ~28px */
+  background-size: 7%;
+  display: inline-block;
+  margin-left: 24px;
+  position: relative;
+  z-index: 10;
+  float: left;
+  :global(.logo) {
+    width: 160px;
+    height: 32px;
+  }
+}
+.userIcon {
+  float: right;
+  margin-right: 16px;
+}
+.brandTxt {
+  margin-left: 10px;
+}
+
+.nav {
+  float: right;
+  margin-top: 6px;
+}
+
+.banner {
+  position: absolute;
+  top: 0;
+  text-align: center;
+  width: 100%;
+}
+
+
+.bannerDesc {
+  padding: 0;
+  color: rgba(255, 255, 255, .5);
+  font-size: 1.25em;
+  margin: 0;
+}

BIN
src/components/Header/headerBackground.png


+ 5 - 0
src/components/Header/left-caret.svg

@@ -0,0 +1,5 @@
+<svg>
+  <symbol id="left-caret" width="13px" height="23px" viewBox="25 21 13 23" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <polyline id="Path-2" stroke="#FFFFFF" stroke-width="2" fill="none" points="37 22 27 32.1010101 37 42.2020202"></polyline>
+  </symbol>
+</svg>

BIN
src/components/Header/logo-small.png


BIN
src/components/Header/logo-small@2x.png


BIN
src/components/Header/logo-white.png


+ 6 - 0
src/components/Header/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "Header",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./Header.js"
+}

+ 30 - 0
src/components/Helper/Helper.js

@@ -0,0 +1,30 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import { Component } from 'react';
+import moment from 'moment';
+
+class Helper extends Component {
+  static getRandomArbitrary(min, max) {
+    return Math.round(Math.random() * (max - min) + min);
+  }
+  static generateMigrationName(type) {
+    return type + "_" + moment().format("MMDDYY-HHmmss")
+  }
+}
+
+export default Helper;

+ 16 - 0
src/components/Helper/Helper.scss

@@ -0,0 +1,16 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/

+ 6 - 0
src/components/Helper/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "Helper",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./Helper.js"
+}

+ 55 - 0
src/components/InfoIcon/InfoIcon.js

@@ -0,0 +1,55 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './InfoIcon.scss';
+import ReactTooltip from 'react-tooltip'
+
+class InfoIcon extends Component {
+  static propTypes = {
+    text: PropTypes.string,
+    place: PropTypes.string
+  }
+
+  static defaultProps = {
+    text: "Missing 'text' property",
+    place: "right"
+  }
+
+  componentWillMount() {
+
+  }
+
+  render() {
+    return (
+      <div data-tip={this.props.text} className={s.root}>
+        <ReactTooltip
+          className={s.infoIcon}
+          multiline={true} // eslint-disable-line react/jsx-boolean-value
+          type="light"
+          place={this.props.place}
+          effect="solid"
+          border={true} // eslint-disable-line react/jsx-boolean-value
+        />
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(InfoIcon, s);

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 20 - 0
src/components/InfoIcon/InfoIcon.scss


+ 6 - 0
src/components/InfoIcon/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "InfoIcon",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./InfoIcon.js"
+}

+ 71 - 0
src/components/Link/Link.js

@@ -0,0 +1,71 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import Location from '../../core/Location';
+
+function isLeftClickEvent(event) {
+  return event.button === 0;
+}
+
+function isModifiedEvent(event) {
+  return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
+}
+
+class Link extends Component {
+
+  static propTypes = {
+    to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
+    onClick: PropTypes.func,
+  };
+
+  handleClick = (event) => {
+    let allowTransition = true;
+    let clickResult;
+
+    if (this.props && this.props.onClick) {
+      clickResult = this.props.onClick(event);
+    }
+
+    if (isModifiedEvent(event) || !isLeftClickEvent(event)) {
+      return;
+    }
+
+    if (clickResult === false || event.defaultPrevented === true) {
+      allowTransition = false;
+    }
+
+    event.preventDefault();
+
+    if (allowTransition) {
+      const link = event.currentTarget;
+      if (this.props && this.props.to) {
+        Location.push(this.props.to);
+      } else {
+        Location.push({ pathname: link.pathname, search: link.search });
+      }
+    }
+  };
+
+  render() {
+    const { to, ...props } = this.props; // eslint-disable-line no-use-before-define
+    return <a href={Location.createHref(to)} {...props} onClick={this.handleClick} />;
+  }
+
+}
+
+export default Link;

+ 6 - 0
src/components/Link/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "Link",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./Link.js"
+}

+ 75 - 0
src/components/LoadingIcon/LoadingIcon.js

@@ -0,0 +1,75 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import s from './LoadingIcon.scss';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+
+const svgIcon = `
+<svg id="loadingIcon" width="137px" height="122px" viewBox="0 0 137 122" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="Coriolis_Symbol_Large">
+            <g id="Group-3">
+                <path d="M95.8871,1.2248 C95.6601,1.2248 95.4321,1.2268 95.2021,1.2318 C78.3771,1.5528 57.5671,13.3988 40.8941,32.1488 C15.2921,60.9408 6.7641,97.1778 21.8841,112.9268 C26.5931,117.8328 33.3131,120.3458 41.3081,120.1918 C58.1341,119.8708 78.9431,108.0238 95.6161,89.2748 C121.2181,60.4828 129.7471,24.2458 114.6271,8.4968 C110.0521,3.7318 103.5841,1.2248 95.8871,1.2248 M40.6221,121.3128 C32.6151,121.3128 25.8701,118.6878 21.0801,113.6988 C5.5671,97.5398 14.0821,60.6248 40.0621,31.4078 C56.9341,12.4338 78.0551,0.4438 95.1811,0.1178 C103.5041,-0.0442 110.5001,2.5888 115.4311,7.7258 C130.9441,23.8838 122.4281,60.7988 96.4481,90.0148 C79.5761,108.9888 58.4561,120.9798 41.3301,121.3068 C41.0921,121.3108 40.8561,121.3128 40.6221,121.3128" id="Fill-1" fill="#E62565"></path>
+                <path d="M17.7337,102.4263 C21.3347,106.9853 26.9857,109.7933 34.0757,110.5453 C50.0377,112.2403 71.4927,103.7513 90.0747,88.3913 C117.9157,65.3793 130.7487,34.2303 118.6817,18.9553 C115.0807,14.3963 109.4297,11.5883 102.3397,10.8363 C86.3827,9.1433 64.9227,17.6313 46.3417,32.9893 C18.5007,56.0013 5.6667,87.1503 17.7337,102.4263 M38.2057,111.8713 C36.7527,111.8713 35.3357,111.7993 33.9577,111.6533 C26.5627,110.8683 20.6507,107.9163 16.8587,103.1163 C4.4207,87.3693 17.3277,55.5253 45.6317,32.1303 C64.4357,16.5883 86.2117,8.0043 102.4567,9.7283 C109.8517,10.5133 115.7647,13.4653 119.5567,18.2643 C131.9957,34.0113 119.0887,65.8553 90.7847,89.2513 C73.5747,103.4753 53.8767,111.8713 38.2057,111.8713" id="Fill-2" fill="#FF2D55"></path>
+                <path d="M98.9136,19.4672 C85.3926,19.4672 68.3216,24.3372 51.7716,33.8262 C30.9866,45.7422 15.7566,62.1752 12.0246,76.7122 C10.5056,82.6272 11.0316,87.7502 13.5866,91.9402 C22.6216,106.7532 54.4546,104.7682 84.5496,87.5142 C105.3346,75.5982 120.5646,59.1652 124.2966,44.6272 C125.8146,38.7132 125.2896,33.5902 122.7346,29.3992 C118.6676,22.7322 109.9786,19.4672 98.9136,19.4672 M37.4626,102.9262 C25.9576,102.9262 16.8936,99.5022 12.6356,92.5202 C9.9176,88.0642 9.3486,82.6522 10.9456,76.4352 C14.7496,61.6172 30.1806,44.9192 51.2176,32.8592 C81.8306,15.3072 114.3406,13.4952 123.6856,28.8192 C126.4036,33.2762 126.9716,38.6882 125.3756,44.9042 C121.5716,59.7232 106.1406,76.4202 85.1036,88.4812 C68.4386,98.0352 51.2086,102.9262 37.4626,102.9262" id="Fill-3" fill="#FC5830"></path>
+                <path d="M9.4403,81.4743 C15.4543,95.8313 46.6743,98.1533 79.0373,86.6483 C101.9923,78.4883 120.4523,65.0103 126.0673,52.3123 C128.0943,47.7273 128.3363,43.5253 126.7863,39.8243 C120.7703,25.4663 89.5513,23.1453 57.1893,34.6493 C34.2343,42.8093 15.7733,56.2873 10.1593,68.9863 C8.1323,73.5713 7.8903,77.7733 9.4403,81.4743 M40.1333,95.0673 C38.0613,95.0673 36.0383,94.9913 34.0753,94.8383 C20.5793,93.7853 11.4653,89.1923 8.4133,81.9043 C6.7393,77.9103 6.9843,73.4123 9.1403,68.5353 C14.8723,55.5713 33.5863,41.8573 56.8163,33.5993 C72.6973,27.9533 88.7963,25.4183 102.1513,26.4603 C115.6473,27.5133 124.7613,32.1063 127.8133,39.3943 C129.4873,43.3883 129.2423,47.8863 127.0863,52.7633 C121.3543,65.7273 102.6403,79.4403 79.4103,87.6983 C65.8643,92.5143 52.1583,95.0673 40.1333,95.0673" id="Fill-4" fill="#FD9727"></path>
+                <path d="M5.2865,71.0308 C8.2875,84.9278 38.9025,91.5548 73.5305,85.8008 C99.2035,81.5358 120.7115,71.5368 128.3265,60.3278 C130.6935,56.8438 131.5405,53.4458 130.8455,50.2258 C127.8445,36.3288 97.2315,29.7038 62.6025,35.4558 C36.9295,39.7208 15.4205,49.7188 7.8045,60.9288 C5.4385,64.4118 4.5915,67.8108 5.2865,71.0308 M49.2235,88.9908 C41.2215,88.9908 33.7145,88.2598 27.0975,86.7998 C13.8625,83.8788 5.7295,78.3618 4.1975,71.2658 C3.4355,67.7368 4.3385,64.0478 6.8835,60.3028 C14.6615,48.8538 36.4605,38.6688 62.4195,34.3568 C79.4025,31.5348 95.9575,31.5708 109.0355,34.4568 C122.2695,37.3778 130.4015,42.8948 131.9345,49.9908 C132.6965,53.5198 131.7935,57.2078 129.2485,60.9538 C121.4705,72.4028 99.6715,82.5878 73.7125,86.8998 C65.3225,88.2938 57.0375,88.9908 49.2235,88.9908" id="Fill-5" fill="#FDC02F"></path>
+                <path d="M68.0188,36.4536 C31.1278,36.4536 1.1138,47.3826 1.1138,60.8156 C1.1138,74.2496 31.1278,85.1786 68.0188,85.1786 C104.9098,85.1786 134.9228,74.2496 134.9228,60.8156 C134.9228,47.3826 104.9098,36.4536 68.0188,36.4536 M68.0188,86.2926 C49.9348,86.2926 32.9248,83.6876 20.1228,78.9596 C7.1468,74.1656 -0.0002,67.7226 -0.0002,60.8156 C-0.0002,53.9096 7.1468,47.4656 20.1228,42.6726 C32.9248,37.9436 49.9348,35.3396 68.0188,35.3396 C86.1028,35.3396 103.1118,37.9436 115.9138,42.6726 C128.8908,47.4656 136.0368,53.9096 136.0368,60.8156 C136.0368,67.7226 128.8908,74.1656 115.9138,78.9596 C103.1128,83.6876 86.1028,86.2926 68.0188,86.2926" id="Fill-6" fill="#FFDC00"></path>
+                <path d="M6.35082759,49.9596832 C5.65582759,53.1796832 6.50282759,56.5786832 8.86882759,60.0616832 C16.4848276,71.2716832 37.9938276,81.2696832 63.6668276,85.5346832 C72.1398276,86.9426832 80.3768276,87.6086832 88.0238276,87.6096832 C111.627828,87.6096832 129.642828,81.2616832 131.909828,70.7646832 C132.604828,67.5446832 131.757828,64.1466832 129.390828,60.6636832 C121.776828,49.4536832 100.267828,39.4546832 74.5948276,35.1896832 C39.9688276,29.4386832 9.35182759,36.0626832 6.35082759,49.9596832 M87.9738276,88.7246832 C80.1598276,88.7246832 71.8748276,88.0276832 63.4838276,86.6336832 C37.5248276,82.3216832 15.7258276,72.1376832 7.94782759,60.6876832 C5.40282759,56.9426832 4.49982759,53.2536832 5.26182759,49.7246832 C6.79382759,42.6286832 14.9268276,37.1126832 28.1618276,34.1916832 C41.2388276,31.3046832 57.7938276,31.2686832 74.7768276,34.0906832 C100.735828,38.4036832 122.534828,48.5876832 130.313828,60.0366832 C132.857828,63.7826832 133.760828,67.4706832 132.998828,70.9996832 C131.465828,78.0956832 123.333828,83.6126832 110.099828,86.5336832 C103.482828,87.9936832 95.9758276,88.7246832 87.9738276,88.7246832" id="Fill-7" fill="#CDDA49"></path>
+                <path d="M9.4403,39.9491 C7.8903,43.6501 8.1323,47.8521 10.1593,52.4371 C15.7733,65.1361 34.2343,78.6141 57.1893,86.7741 C89.5503,98.2791 120.7713,95.9561 126.7863,81.5991 C128.3363,77.8981 128.0943,73.6961 126.0673,69.1111 C120.4523,56.4121 101.9923,42.9341 79.0373,34.7741 C46.6763,23.2701 15.4563,25.5911 9.4403,39.9491 M96.0923,95.1921 C84.0673,95.1921 70.3623,92.6401 56.8163,87.8241 C33.5863,79.5661 14.8723,65.8521 9.1403,52.8881 C6.9843,48.0111 6.7393,43.5131 8.4133,39.5191 C11.4653,32.2311 20.5793,27.6381 34.0753,26.5851 C47.4313,25.5421 63.5293,28.0781 79.4103,33.7241 C102.6403,41.9821 121.3543,55.6951 127.0863,68.6601 C129.2423,73.5371 129.4873,78.0351 127.8133,82.0291 C124.7613,89.3171 115.6473,93.9101 102.1513,94.9631 C100.1873,95.1161 98.1653,95.1921 96.0923,95.1921" id="Fill-8" fill="#8CC152"></path>
+                <path d="M37.4075,19.5507 C26.3395,19.5507 17.6535,22.8147 13.5865,29.4827 C11.0315,33.6727 10.5065,38.7967 12.0245,44.7107 C15.7565,59.2487 30.9865,75.6817 51.7715,87.5977 C81.8655,104.8517 113.6995,106.8377 122.7345,92.0237 C125.2895,87.8337 125.8155,82.7107 124.2965,76.7967 C120.5645,62.2587 105.3345,45.8257 84.5495,33.9087 C68.0015,24.4217 50.9275,19.5507 37.4075,19.5507 M98.8585,103.0097 C85.1115,103.0097 67.8845,98.1197 51.2175,88.5647 C30.1805,76.5037 14.7495,59.8067 10.9455,44.9877 C9.3485,38.7717 9.9175,33.3597 12.6355,28.9027 C21.9805,13.5797 54.4905,15.3907 85.1035,32.9427 C106.1405,45.0027 121.5715,61.7007 125.3755,76.5187 C126.9715,82.7357 126.4035,88.1477 123.6855,92.6037 C119.4275,99.5847 110.3615,103.0097 98.8585,103.0097" id="Fill-9" fill="#159588"></path>
+                <path d="M17.2963,18.6519 L17.7333,18.9969 C5.6663,34.2729 18.5003,65.4219 46.3413,88.4339 C64.9233,103.7929 86.3753,112.2799 102.3403,110.5869 C109.4293,109.8349 115.0803,107.0269 118.6823,102.4679 C130.7493,87.1929 117.9153,56.0439 90.0753,33.0319 C71.4923,17.6719 50.0303,9.1809 34.0753,10.8779 C26.9853,11.6309 21.3343,14.4379 17.7333,18.9969 L17.2963,18.6519 Z M98.2093,111.9139 C82.5383,111.9139 62.8413,103.5179 45.6323,89.2929 C17.3273,65.8979 4.4203,34.0539 16.8593,18.3069 C20.6513,13.5069 26.5633,10.5549 33.9573,9.7699 C50.2033,8.0459 71.9803,16.6299 90.7843,32.1729 C119.0883,55.5679 131.9953,87.4119 119.5573,103.1579 C115.7653,107.9589 109.8523,110.9109 102.4573,111.6949 C101.0803,111.8409 99.6613,111.9139 98.2093,111.9139 L98.2093,111.9139 Z" id="Fill-10" fill="#2F81B7"></path>
+                <path d="M40.6234,1.2244 C32.9264,1.2244 26.4584,3.7314 21.8834,8.4964 C6.7634,24.2454 15.2924,60.4824 40.8944,89.2744 C57.5674,108.0244 78.3774,119.8714 95.2024,120.1924 C103.2004,120.3364 109.9174,117.8324 114.6264,112.9264 C129.7464,97.1774 121.2184,60.9404 95.6154,32.1484 C78.9434,13.3994 58.1344,1.5524 41.3084,1.2314 C41.0784,1.2264 40.8504,1.2244 40.6234,1.2244 M95.8884,121.3124 C95.6534,121.3124 95.4184,121.3104 95.1804,121.3064 C78.0544,120.9794 56.9344,108.9894 40.0624,90.0154 C14.0824,60.7984 5.5664,23.8834 21.0794,7.7254 C26.0104,2.5894 33.0144,-0.0516 41.3294,0.1174 C58.4554,0.4444 79.5764,12.4344 96.4484,31.4084 C122.4284,60.6244 130.9444,97.5394 115.4304,113.6984 C110.6404,118.6874 103.8944,121.3124 95.8884,121.3124" id="Fill-11" fill="#0056B8"></path>
+                
+            </g>
+        </g>
+    </g>
+</svg>`
+
+class LoadingIcon extends Component {
+
+  static propTypes = {
+    width: PropTypes.number,
+    height: PropTypes.number,
+    animate: PropTypes.bool
+  }
+
+  static defaultProps = {
+    width: 137,
+    height: 122,
+    animate: true
+  }
+
+  render() {
+    let wrapperStyle = {
+      width: this.props.width,
+      height: this.props.height,
+      margin: "0 auto"
+    }
+    return <div className={s.root}>
+      <div
+        className={!this.props.animate && "noAnimation"}
+        style={wrapperStyle}
+        dangerouslySetInnerHTML={{__html: svgIcon}}
+      ></div>
+    </div>
+  }
+
+}
+
+export default withStyles(LoadingIcon, s);

+ 79 - 0
src/components/LoadingIcon/LoadingIcon.scss

@@ -0,0 +1,79 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+$loader-offset:         0.2;
+$base-opacity:          0.3;
+
+@keyframes :global(anim) {
+  0% {
+    fill-opacity: $base-opacity;
+  }
+  20% {
+    fill-opacity: 1.2;
+  }
+  50% {
+    fill-opacity: 0.5;
+  }
+  100% {
+    fill-opacity: 0;
+  }
+}
+
+.root {
+  text-align: center;
+  padding: 16px;
+  :global {
+    #loadingIcon {
+      bottom: 10%;
+      width: 100%;
+      height: 100%;
+      path {
+        animation: anim 2.1s ease-out infinite;
+      }
+      #Fill-1 { animation-delay: 0s; fill-opacity: $base-opacity;}
+      #Fill-2 { animation-delay: -0.1s; fill-opacity: $base-opacity; }
+      #Fill-3 { animation-delay: -0.2s; fill-opacity: $base-opacity;}
+      #Fill-4 { animation-delay: -0.3s; fill-opacity: $base-opacity;}
+      #Fill-5 { animation-delay: -0.4s; fill-opacity: $base-opacity;}
+      #Fill-6 { animation-delay: -0.5s; fill-opacity: $base-opacity;}
+      #Fill-7 { animation-delay: -0.6s; fill-opacity: $base-opacity;}
+      #Fill-8 { animation-delay: -0.7s; fill-opacity: $base-opacity;}
+      #Fill-9 { animation-delay: -0.8s; fill-opacity: $base-opacity;}
+      #Fill-10 { animation-delay: -0.9s; fill-opacity: $base-opacity;}
+      #Fill-11 { animation-delay: -1s; fill-opacity: $base-opacity;}
+    }
+    .noAnimation {
+      #loadingIcon {
+        path {
+          animation: none;
+        }
+        #Fill-1 { animation-delay: 0s; fill-opacity: 1;}
+        #Fill-2 { animation-delay: -0.1s; fill-opacity: 1; }
+        #Fill-3 { animation-delay: -0.2s; fill-opacity: 1;}
+        #Fill-4 { animation-delay: -0.3s; fill-opacity: 1;}
+        #Fill-5 { animation-delay: -0.4s; fill-opacity: 1;}
+        #Fill-6 { animation-delay: -0.5s; fill-opacity: 1;}
+        #Fill-7 { animation-delay: -0.6s; fill-opacity: 1;}
+        #Fill-8 { animation-delay: -0.7s; fill-opacity: 1;}
+        #Fill-9 { animation-delay: -0.8s; fill-opacity: 1;}
+        #Fill-10 { animation-delay: -0.9s; fill-opacity: 1;}
+        #Fill-11 { animation-delay: -1s; fill-opacity: 1;}
+      }
+    }
+  }
+}

+ 6 - 0
src/components/LoadingIcon/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "LoadingIcon",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./LoadingIcon.js"
+}

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 31 - 0
src/components/LoginPage/LoginPage.js


+ 92 - 0
src/components/LoginPage/LoginPage.scss

@@ -0,0 +1,92 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  height: 100%;
+  background-image: url('../../public/images/star-bg.jpg');
+  background-position: center center;
+  .coriolisText {
+    width: 208px;
+    height: 40px;
+    margin: 24px auto 0;
+    svg {
+      width: 100%;
+      height: 100%;
+    }
+  }
+  .footerLogo {
+    .text {
+      opacity: 0.72;
+      font-size: 9px;
+      color: #FFFFFF;
+      letter-spacing: -0.3px;
+      margin-bottom: 12px;
+    }
+    .coriolisLogo {
+
+    }
+    position: absolute;
+    bottom: 10%;
+    left: 50%;
+    margin-left: -64px;
+    width: 132px;
+  }
+}
+.loginContainer {
+  width: 60%;
+  margin: 64px auto 0;
+  padding: 32px;
+  background-color: rgba(221, 224, 229, 0.5);
+  box-sizing: border-box;
+  border-radius: 8px;
+  &:after {
+    content: "";
+    display: table;
+    clear: both;
+  }
+  input, button {
+    width: 100%;
+  }
+
+}
+.loginBtn {
+  float: left;
+  &:nth-child(2n) {
+    float: right;
+  }
+  &:nth-child(3), &:nth-child(4) {
+    margin-top: 16px;
+  }
+  img {
+    width: 192px;
+    height: 32px;
+  }
+}
+.container {
+  margin: 0 auto;
+  padding: 10vh 0 40px;
+  width: 464px;
+  text-align: center;
+  :global {
+    .form-group {
+      margin-bottom: 16px;
+    }
+  }
+
+}

+ 6 - 0
src/components/LoginPage/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "LoginPage",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./LoginPage.js"
+}

+ 267 - 0
src/components/MainList/MainList.js

@@ -0,0 +1,267 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { PropTypes } from 'react';
+import Reflux from 'reflux';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import Location from '../../core/Location';
+import Dropdown from '../NewDropdown';
+import SearchBox from '../SearchBox';
+import Config from '../Config';
+import Moment from 'react-moment';
+import s from './ConnectionsList.scss';
+import AddCloudConnection from '../AddCloudConnection';
+import Modal from 'react-modal';
+import ConnectionsStore from '../../stores/ConnectionsStore';
+import ConnectionsActions from '../../actions/ConnectionsActions';
+import TextTruncate from 'react-text-truncate';
+import UserIcon from '../UserIcon';
+import FilteredTable from '../FilteredTable'
+
+
+const title = 'Cloud Connections';
+const connectionTypes = [
+  { label: "All", type: "all" },
+  { label: "Amazon", type: "amazon" },
+  { label: "Azure", type: "azure" },
+  { label: "Openstack", type: "openstack" },
+  { label: "VMware", type: "vmware_vsphere" }
+]
+
+class MainList extends Reflux.Component {
+  constructor(props) {
+    super(props)
+    this.store = ConnectionsStore
+
+    this.state = {
+      showModal: false,
+      queryText: '',
+      filterType: 'all',
+      searchMin: true,
+      connections: null
+    }
+  }
+
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  componentWillMount() {
+    super.componentWillMount.call(this)
+
+    this.context.onSetTitle(title);
+    if (this.state.connections == null) {
+      ConnectionsActions.loadConnections()
+    }
+  }
+
+  connectionsSelected() {
+    let count = 0,
+        total = 0
+    if (this.state.connections) {
+      this.state.connections.forEach((item) => {
+        if (item.selected) count++
+      })
+      total = this.state.connections.length
+    }
+
+    return `${count} of ${total} connection(s) selected`;
+  }
+
+  connectionDetail(e, item) {
+    Location.push('/cloud-endpoints/' + item.id + "/")
+  }
+
+  checkItem(e, itemRef) {
+    let items = this.state.connections
+    items.forEach((item) => {
+      if (item == itemRef) {
+        item.selected = !item.selected
+      }
+    })
+    this.setState({ connections: items })
+  }
+
+  filterFn(item, queryText, filterType) {
+    return (
+      item.name.toLowerCase().indexOf(queryText.toLowerCase()) != -1 &&
+      (filterType == "all" || filterType == item.type)
+    )
+  }
+
+  searchItem(queryText) {
+    this.setState({ queryText: queryText.target.value })
+  }
+
+  filterType(e, type) {
+    this.setState({ filterType: type })
+  }
+
+  closeModal() {
+    this.setState({ showModal: false })
+  }
+
+  bulkActions(action) {
+    switch (action.value) {
+      case "delete":
+        let selectedConnections = this.state.connections.filter((connection) => connection.selected)
+        selectedConnections.forEach(connection => {
+          ConnectionsActions.deleteConnection(connection)
+        })
+        break;
+    }
+  }
+
+  renderSearch(items) {
+    let output = null
+    if (items && items.length) {
+      output = items.map((item, index) => (
+        <div className="item" key={"vm_" + index}>
+          <div className="checkbox-container">
+            <input
+              id={"vm_check_" + index}
+              type="checkbox"
+              checked={item.selected}
+              onChange={(e) => this.checkItem(e, item)}
+              className="checkbox-normal"
+            />
+            <label htmlFor={"vm_check_" + index}></label>
+          </div>
+          <span className="cell cell-icon" onClick={(e) => this.connectionDetail(e, item)}>
+              <span className="details">
+                {item.name}
+                <span className={s.description}>{item.description == "" ? "N/A" : item.description}</span>
+              </span>
+            </span>
+          <span className="cell">
+              <div className={s.cloudImage + " icon small-cloud " + item.type}></div>
+            </span>
+          <span className={"cell " + s.composite}>
+              <span className={s.label}>Created</span>
+              <span className={s.value}>
+                <Moment fromNow ago date={item.created_at}/> ago
+              </span>
+            </span>
+          <span className={"cell " + s.composite}>
+              <span className={s.label}>URL</span>
+              <span className={s.value}>
+                <TextTruncate line={1} truncateText="..." text={item.connection_info.secret_ref}/>
+              </span>
+            </span>
+        </div>
+      ), this)
+    }
+    return output
+  }
+
+  onProjectChange(project) {
+    this.setState({ currentProject: project.value })
+  }
+
+  showNewConnectionModal() {
+    this.setState({ showModal: true })
+  }
+
+  render() {
+    let itemStates = connectionTypes.map((state, index) => (
+        <a
+          className={this.state.filterType == state.type || (this.state.filterType == null && state.type == "all") ?
+            "selected" : ""}
+          onClick={(e) => this.filterType(e, state.type)} key={"status_" + index}
+        >{state.label}</a>
+      ), this)
+
+    let modalStyle = {
+      content: {
+        padding: "0px",
+        borderRadius: "4px",
+        bottom: "auto",
+        width: "576px",
+        height: "auto",
+        left: "50%",
+        top: "20%",
+        marginLeft: "-288px"
+      }
+    }
+
+    return (
+      <div className={s.root}>
+        <div className={s.container}>
+          <div className={s.pageHeader}>
+            <div className={s.top}>
+              <h1>{title}</h1>
+              <div className={s.topActions}>
+                <button onClick={(e) => this.showNewConnectionModal(e)}>New Connection</button>
+                <UserIcon />
+              </div>
+            </div>
+            <div className="filters">
+              <div className="category-filter">
+                {itemStates}
+              </div>
+              <div className="name-filter">
+                <SearchBox
+                  placeholder="Search"
+                  value={this.state.queryText}
+                  onChange={(e) => this.searchItem(e)}
+                  minimize={true} // eslint-disable-line react/jsx-boolean-value
+                  onClick={(e) => this.toggleSearch(e)}
+                  className={"searchBox " + (this.state.searchMin ? "minimize" : "")}
+                />
+              </div>
+              <div className={s.bulkActions}>
+                <div className={s.connectionsCount}>
+                  {this.connectionsSelected()}
+                </div>
+                <Dropdown
+                  options={Config.connectionsActions}
+                  placeholder="Select"
+                  onChange={(e) => this.bulkActions(e)}
+                />
+              </div>
+            </div>
+          </div>
+          <div className={s.pageContent}>
+            <FilteredTable
+              items={this.state.connections}
+              filterFn={this.filterFn}
+              queryText={this.state.queryText}
+              filterType={this.state.filterType}
+              renderSearch={(e) => this.renderSearch(e)}
+            ></FilteredTable>
+          </div>
+          <div className={s.pageFooter}>
+
+          </div>
+        </div>
+        <Modal
+          isOpen={this.state.showModal}
+          contentLabel="Add new cloud connection"
+          style={modalStyle}
+        >
+          <AddCloudConnection
+            closeHandle={(e) => this.closeModal(e)}
+            addHandle={(e) => this.closeModal(e)}
+          />
+        </Modal>
+      </div>
+    );
+  }
+
+}
+
+export default withStyles(MainList, s);

+ 177 - 0
src/components/MainList/MainList.scss

@@ -0,0 +1,177 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  height: 100%;
+}
+.pageHeader {
+  padding: 44px 64px 0;
+  flex: 1;
+
+  h1 {
+    float: left;
+    margin: 0;
+  }
+  .top {
+    &:after {
+      content: " ";
+      clear: both;
+      display: block;
+      height: 0;
+    }
+    margin-bottom: 48px;
+  }
+  .topActions {
+    float: right;
+    margin-top: 3px;
+    :global(.Dropdown-root) {
+      margin-right: 16px;
+      float: left;
+      width: 160px;
+      :global(.Dropdown-control) {
+        text-align: left;
+      }
+    }
+
+  }
+  :global(.filters) {
+    :global(.category-filter) {
+      float: left;
+      padding: 2px 8px 2px 0;
+      margin-top: 7px;
+      border-right: 1px solid $gray-dark;
+    }
+    :global(.name-filter) {
+      float: left;
+      padding-left: 24px;
+      margin-top: 2px;
+    }
+    &:after {
+      clear: both;
+      content: ' ';
+      display: block;
+      height: 0;
+    }
+  }
+}
+.pageContent {
+  flex: 10;
+  overflow-y: auto;
+  padding: 0 64px;
+}
+.pageFooter {
+  flex: 1;
+  padding: 16px 64px 44px;
+  :global(.Dropdown-root) {
+    width: 160px;
+    float: left;
+  }
+  .connectionsCount {
+    float: left;
+    line-height: 32px;
+    margin-left: 16px;
+  }
+}
+.bulkActions {
+  float: right;
+  padding-top: 2px;
+  :global(.Dropdown-root) {
+    width: 160px;
+    float: left;
+  }
+  .connectionsCount {
+    float: left;
+    line-height: 32px;
+    margin-right: 16px;
+  }
+}
+.container {
+  margin: 0 auto;
+  padding: 0;
+  max-width: $max-content-width;
+  height: 100%;
+  display: flex;
+  flex-direction: column;
+  :global(.items-list) {
+    :global(.item) {
+      position: relative;
+      span:global(.cell):nth-child(2) {
+        flex: 3;
+      }
+      span:global(.cell):nth-child(3) {
+        flex: 2;
+      }
+      span:global(.cell):nth-child(4) {
+        flex: 2;
+      }
+      span:global(.cell):nth-child(5) {
+        flex: 3;
+      }
+      :global(.checkbox-container) {
+        position: absolute;
+        left: -32px;
+        top: 21px;
+      }
+      .description {
+        display: block;
+        color: $gray-dark;
+        letter-spacing: -0.41px;
+        font-size: 14px;
+      }
+      :global(.icon.small-cloud) {
+        margin: 0 auto;
+      }
+    }
+
+    .composite {
+      flex-direction: column;
+      align-items: flex-start;
+      .label {
+        display: block;
+        color: $gray-dark;
+        margin-top: 4px;
+      }
+      .value {
+        color: $blue;
+        width: 100%;
+        display: inline-block;
+      }
+    }
+  }
+  .connectionStatus {
+    width: 96px;
+    border-radius: 4px;
+    color: #FFF;
+    line-height: 16px;
+    display: block;
+    font-size: 10px;
+    text-align: center;
+    &:global(.PAUSED) {
+      background-color: $gray;
+    }
+  }
+  .chevronRight {
+    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOHB4IiBoZWlnaHQ9IjEzcHgiIHZpZXdCb3g9IjQgMiA4IDEzIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxwb2x5Z29uIGlkPSJDb21iaW5lZC1TaGFwZSIgc3Ryb2tlPSJub25lIiBmaWxsPSIjNjE2NzcwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDguMDAwMDAwLCA4LjM2Mzk2MSkgcm90YXRlKC05MC4wMDAwMDApIHRyYW5zbGF0ZSgtOC4wMDAwMDAsIC04LjM2Mzk2MSkgIiBwb2ludHM9IjggMTAuMzgyMzM3NiAyLjUwMjYwNzAyIDUgMS44MTU0MzI4OSA1LjY3Mjc5MjIxIDggMTEuNzI3OTIyMSAxNC4xODQ1NjcxIDUuNjcyNzkyMjEgMTMuNDk3MzkzIDUgOCAxMC4zODIzMzc2Ij48L3BvbHlnb24+PC9zdmc+');
+    width: 8px;
+    height: 13px;
+    display: inline-block;
+    margin: 0 16px;
+  }
+
+}

+ 6 - 0
src/components/MainList/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "MainList",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./MainList.js"
+}

+ 127 - 0
src/components/MigrationDetail/MigrationDetail.js

@@ -0,0 +1,127 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+import React, { Component, PropTypes } from 'react';
+import withStyles from 'isomorphic-style-loader/lib/withStyles';
+import s from './MigrationDetail.scss';
+import Moment from 'react-moment';
+import LoadingIcon from "../LoadingIcon";
+import EndpointLink from '../EndpointLink';
+
+const title = 'Migration details';
+
+class MigrationDetail extends Component {
+  static contextTypes = {
+    onSetTitle: PropTypes.func.isRequired,
+  };
+
+  static propTypes = {
+    migration: PropTypes.object
+  }
+
+  componentWillMount() {
+    this.context.onSetTitle(title);
+  }
+
+  render() {
+    let item = this.props.migration
+    let output = null
+    if (item) {
+      output = (
+        <div className={s.root}>
+          <div className={s.container}>
+            <div className={s.columnLeft}>
+              <div className={s.formGroup}>
+                <div className={s.title}>
+                  Source
+                </div>
+                <div className={s.value}>
+                  <EndpointLink connectionId={item.origin_endpoint_id} />
+                </div>
+                <div className={s.cloudImg + " icon large-cloud " + item.origin_endpoint_type + " dim"}></div>
+                <div className="arrow large"></div>
+              </div>
+              <div className={s.formGroup}>
+                <div className={s.title}>
+                  Type
+                </div>
+                <div className={s.value}>
+                  {item.migrationType == "replica" ? "Coriolis Replica" : "Coriolis Migration"}
+                </div>
+              </div>
+              <div className={s.formGroup}>
+                <div className={s.title}>
+                  Notes
+                </div>
+                <div className={s.value}>
+                  {item.notes}
+                </div>
+              </div>
+            </div>
+            <div className={s.columnRight}>
+              <div className={s.formGroup}>
+                <div className={s.title}>
+                  Target
+                </div>
+                <div className={s.value}>
+                  <EndpointLink connectionId={item.destination_endpoint_id} />
+                </div>
+                <div className={s.cloudImg + " icon large-cloud " + item.destination_endpoint_type + " dim"}></div>
+              </div>
+              <div className={s.formGroup}>
+                <div className={s.title}>
+                  Created
+                </div>
+                <div className={s.value}>
+                  <Moment format="MM/DD/YYYY HH:MM" date={item.created} />
+                </div>
+              </div>
+              <div className={s.formGroup}>
+                <div className={s.titleIp}>
+                  Id
+                </div>
+                <div className={s.value}>
+                  <a>{item.id}</a>
+                </div>
+              </div>
+              {/*<div className={s.formGroup}>
+               <div className={s.title}>
+               Flavours
+               </div>
+               <div className={s.value}>
+               {item.autoFlavors ? "Automatic flavour selection" : "Manual flavour selection"}
+               </div>
+               </div>*/}
+              {/*<div className={s.formGroup}>
+               <div className={s.title}>
+               Disk Format
+               </div>
+               <div className={s.value}>
+               {item.diskFormat}
+               </div>
+               </div>*/}
+            </div>
+          </div>
+        </div>
+      )
+    }
+    return output
+  }
+
+}
+
+export default withStyles(MigrationDetail, s);

+ 72 - 0
src/components/MigrationDetail/MigrationDetail.scss

@@ -0,0 +1,72 @@
+/*
+Copyright (C) 2017  Cloudbase Solutions SRL
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as
+published by the Free Software Foundation, either version 3 of the
+License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+@import '../variables.scss';
+
+.root {
+  :global(.arrow) {
+    width: 64px;
+    height: 32px;
+    margin-top: 52px;
+    margin-left: 70px;
+    position: absolute;
+  }
+}
+
+.container {
+  margin: 0 auto;
+  &:after {
+    clear: both;
+    height: 0;
+    display: block;
+    content: ' ';
+  }
+}
+.columnLeft, .columnRight {
+  width: 50%;
+  float: left;
+}
+.formGroup {
+  margin-bottom: 32px;
+  .title {
+    font-weight: $weight-semibold;
+    font-size: 10px;
+    color: $gray-dark;
+    letter-spacing: -0.34px;
+    text-transform: uppercase;
+    margin-bottom: 8px;
+  }
+  .titleIp {
+    font-weight: $weight-semibold;
+    font-size: 14px;
+    color: $gray;
+    letter-spacing: -0.41px;
+  }
+  .value {
+    font-weight: $weight-regular;
+    font-size: 14px;
+    color: $black;
+    letter-spacing: -0.41px;
+    a {
+      color: $blue;
+    }
+  }
+}
+.cloudImg {
+  width: 96px;
+  margin-top: 16px;
+}

+ 6 - 0
src/components/MigrationDetail/package.json

@@ -0,0 +1,6 @@
+{
+  "name": "MigrationDetail",
+  "version": "0.0.0",
+  "private": true,
+  "main": "./MigrationDetail.js"
+}

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio