ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-2363 WIP on open pages with JDBC drivers downloads.
Date Fri, 22 Jan 2016 11:12:35 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 7ecefe176 -> b42e2fbea


IGNITE-2363 WIP on open pages with JDBC drivers downloads.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/b42e2fbe
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/b42e2fbe
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/b42e2fbe

Branch: refs/heads/ignite-843-rc2
Commit: b42e2fbea43700bb6085ea9f74e497d9163fb370
Parents: 7ecefe1
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Fri Jan 22 18:12:24 2016 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Fri Jan 22 18:12:24 2016 +0700

----------------------------------------------------------------------
 .../configuration/summary/summary.controller.js | 32 ++++++++++++++++++--
 .../src/main/js/public/stylesheets/style.scss   |  6 +++-
 .../main/js/views/configuration/summary.jade    |  1 +
 3 files changed, 36 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/b42e2fbe/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
b/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
index a2148d9..75d1926 100644
--- a/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
+++ b/modules/control-center-web/src/main/js/app/modules/states/configuration/summary/summary.controller.js
@@ -18,8 +18,8 @@
 import JSZip from 'jszip';
 
 export default [
-    '$scope', '$http', '$common', '$loading', '$table', '$filter', 'ConfigurationSummaryResource',
'JavaTypes',
-    function($scope, $http, $common, $loading, $table, $filter, Resource, JavaTypes) {
+    '$scope', '$http', '$common', '$loading', '$table', '$filter', '$timeout', 'ConfigurationSummaryResource',
'JavaTypes',
+    function($scope, $http, $common, $loading, $table, $filter, $timeout, Resource, JavaTypes)
{
         const ctrl = this;
         const igniteVersion = '1.5.0.final';
 
@@ -264,5 +264,33 @@ export default [
             // Download archive.
             saveAs(blob, cluster.name + '-configuration.zip');
         };
+
+        $scope.openJdbcDownloadLinksVisible = function() {
+            return true; // TODO
+        };
+
+        $scope.openJdbcDownloadLinks = function() {
+            const refs = [
+                'http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html',
+                'http://www-01.ibm.com/support/docview.wss?uid=swg21363866',
+                'https://www.microsoft.com/en-us/download/details.aspx?id=11774'
+            ];
+
+            refs.forEach((ref) => {
+                $timeout(() => {
+                    const fake_link = document.createElement('a');
+
+                    fake_link.style.display = 'none';
+
+                    document.body.appendChild(fake_link);
+
+                    fake_link.setAttribute('href', ref);
+                    fake_link.setAttribute('target', '_blank');
+                    fake_link.click();
+
+                    document.body.removeChild(fake_link);
+                }, 100);
+            });
+        };
     }
 ];

http://git-wip-us.apache.org/repos/asf/ignite/blob/b42e2fbe/modules/control-center-web/src/main/js/public/stylesheets/style.scss
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/public/stylesheets/style.scss b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
index 02c3410..3f1e588 100644
--- a/modules/control-center-web/src/main/js/public/stylesheets/style.scss
+++ b/modules/control-center-web/src/main/js/public/stylesheets/style.scss
@@ -435,10 +435,14 @@ h1, h2, h3, h4, h5, h6 {
     margin-bottom: 0;
 }
 
-button, a.btn {
+button, .btn {
     margin-right: 5px;
 }
 
+i.btn {
+    margin-right: 0;
+}
+
 .btn {
     padding: 3px 6px;
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/b42e2fbe/modules/control-center-web/src/main/js/views/configuration/summary.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/summary.jade b/modules/control-center-web/src/main/js/views/configuration/summary.jade
index f59b83a..3dbf3c9 100644
--- a/modules/control-center-web/src/main/js/views/configuration/summary.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/summary.jade
@@ -68,6 +68,7 @@ mixin ignite-form-field-tooltip(message)
                         div(bs-popover data-template-url='/configuration/summary-project-structure.html',
data-placement='bottom', data-trigger='click' data-auto-close='true')
                             i.fa.fa-sitemap
                             label.tipLabel Project structure
+                    button.btn.btn-primary(id='proprietary-jdbc-drivers' ng-click='openJdbcDownloadLinks()'
bs-tooltip='' data-title='Open JDBC drivers download pages' data-placement='bottom') Download
JDBC drivers
                     hr
                 .panel-group(bs-collapse ng-init='panels.activePanels=[0,1]' ng-model='panels.activePanels'
data-allow-multiple='true')
                     .panel.panel-default


Mime
View raw message