Explorar o código

HUE-7879 [core] Avoid leaking of Security CSS into Hue

Enrico Berti %!s(int64=7) %!d(string=hai) anos
pai
achega
dca1c56

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
apps/security/src/security/static/security/css/security.css


+ 306 - 307
apps/security/src/security/static/security/less/security.less

@@ -17,311 +17,310 @@
 */
 @import (reference) "cui/extra-variables.less";
 
-.hue-tree {
-  width: 100%;
-  overflow-y: scroll;
-  min-height: 100px;
-}
-
-.hue-tree ul {
-  list-style-type: none;
-  padding: 0;
-}
-
-.tree {
-  margin-left: 0;
-}
-
-.node-row {
-  margin: 4px;
-  padding: 2px;
-  border: 1px dashed @cui-white;
-}
-
-.node-row:hover {
-  background: @cui-gray-050;
-}
-
-.node-row a, .node-row i {
-  cursor: pointer;
-}
-
-.node-row a.striked {
-  text-decoration: line-through;
-  color: @cui-red-400;
-}
-
-.fa.striked {
-  color: @cui-red-400!important;
-}
-
-.node-row.selected {
-  background: @cui-gray-050 !important;
-}
-
-.acl-panel {
-  border-left: 1px solid @cui-gray-100;
-  padding-top: 6px;
-  padding-left: 12px;
-}
-
-.acl-panel .nav-tabs {
-  margin-bottom: 0;
-}
-
-.acl-panel h4:not(:first-child) {
-  margin-top: 20px;
-}
-
-.acl-panel-content {
-  padding: 6px;
-  overflow-y: scroll;
-}
-
-.acl-block-title {
-  background-color: @cui-purple-gray-050;
-  font-weight: bold;
-  padding: 3px;
-  margin-top: 14px;
-  margin-bottom: 4px;
-}
-
-.acl-block {
-  background-color: @cui-gray-050;
-  padding: 3px;
-  margin-bottom: 4px;
-}
-
-.acl-block .checkbox, .acl-block .radio {
-  margin-left: 6px;
-}
-
-.acl-block-airy {
-  padding: 6px;
-}
-
-.acl-block-airy input {
-  margin-bottom: 0;
-}
-
-.acl-block-section {
-  margin-top: 10px;
-}
-
-.acl-block-section input {
-  margin-left: 14px;
-}
-
-.span6 .acl-block input[type='text'] {
-  width: 25%;
-}
-
-.span6 .acl-block input[type='text'] {
-  width: 21%;
-}
-
-.acl-actions {
-  padding: 5px;
-  text-align: center;
-  color: @cui-gray-400;
-  font-size: 20px;
-}
-
-.acl-actions span:hover {
-  color: @cui-gray-600;
-}
-
-.path {
-  height: 34px!important;
-  font-size: 14px;
-}
-
-.path-container {
-  background-color: @cui-white;
-  padding-top: 8px;
-}
-
-.path-container .btn-inverse {
-  height: 34px;
-  width: 34px;
-  font-size: 14px;
-  line-height: 34px;
-}
-
-.fake-pre {
-  display: block;
-  padding: 9.5px;
-  margin: 0 0 10px;
-  font-size: 12px;
-  line-height: 20px;
-  word-break: break-all;
-  word-wrap: break-word;
-  font-family: @font-family-monospace;
-  background-color: @cui-gray-050;
-  border: 1px solid @cui-gray-400;
-  border: 1px solid rgba(0, 0, 0, 0.15);
-  -webkit-border-radius: 2px;
-  -moz-border-radius: 2px;
-  border-radius: 2px;
-}
-
-.tree-toolbar {
-  padding: 3px;
-  border-bottom: 1px solid @cui-gray-100;
-}
-
-.tree-toolbar .fa {
-  margin-left: 5px;
-}
-
-.tree-toolbar .fa-spin {
-  color: @cui-gray-400;
-  margin-right: 6px;
-}
-
-.tree-toolbar input {
-  margin-bottom: 0;
-  height: 25px;
-  min-height: 25px;
-}
-
-.tree-toolbar .pull-right {
-  margin-top: -5px;
-}
-
-.inline-block {
-  display: inline-block;
-}
-
-.force-word-break {
-  word-break: break-all;
-}
-
-.pointer {
-  cursor: pointer;
-}
-
-.rwx {
-  width: 90px;
-  text-align: right;
-  padding-right: 10px;
-}
-
-.waiting {
-  font-size: 196px;
-  color: @cui-gray-300;
-}
-
-h1.emptyMessage {
-  margin-top: 50px;
-  color: @cui-gray-500;
-  line-height: 60px;
-}
-
-.acl-panel .waiting {
-  font-size: 130px;
-}
-
-.acl-panel h1.emptyMessage {
-  margin-top: 0;
-  line-height: 54px;
-}
-
-.fa-caret {
-  padding-top: 2px;
-}
-
-.select2-search-field .select2-input {
-  margin-bottom: 0;
-  min-height: 18px;
-  height: 18px;
-}
-
-#createRoleModal, #bulkActionsModal, #grantPrivilegeModal {
-  width: 800px;
-  left: 50%;
-  margin-left: -400px!important;
-}
-
-
-.big-btn {
-  background-color: @cui-purple-gray-050;
-  height: 100px;
-  width: 90%;
-  text-align: center;
-  display: inline-block;
-  margin-right: 10px;
-  padding: 10px;
-  padding-top: 20px;
-  cursor: pointer;
-  border: 1px solid @cui-purple-gray-050;
-  -webkit-border-radius: 3px;
-  -moz-border-radius: 3px;
-  border-radius: 3px;
-}
-
-.big-btn:hover, .big-btn.selected {
-  background-color: @cui-gray-300;
-}
-
-.big-btn.selected {
-  border-color: @cui-gray-400;
-}
-
-.big-btn i{
-  font-size: 40px;
-  color: @cui-gray-700;
-}
-
-.modal-panel {
-  max-height: 120px;
-  overflow-y: scroll;
-}
-
-.bulk-action-description {
-  display: none;
-}
-
-.big-btn:hover .bulk-action-description, .big-btn.selected .bulk-action-description {
-  display: block;
-}
-
-.fa-database-open:before {
-  content:"\f1c0"
-}
-
-.fa-database-open {
-  color: @cui-gray-700!important;
-}
-
-.actionbar-main {
-  padding: 0!important;
-  padding-bottom: 10px!important;
-}
-
-#grantPrivilegeModal .privilege-actions {
-  display: none;
-}
-
-@media (min-width: 1680px) {
-  .span6 .acl-block .with-grant-checkbox {
-    float: none;
-  }
-}
-.new-line-if-small {
-  height: 35px;
-  line-height: 35px;
-  vertical-align: middle;
-}
-
-.new-line-if-small label {
-  float: left;
-  margin-right: 6px;
-  margin-top: 7px;
-}
-
-.typeahead.dropdown-menu {
-  max-height: 300px;
-  overflow-y: auto;
-}
+.security-components {
 
+  .hue-tree {
+    width: 100%;
+    overflow-y: scroll;
+    min-height: 100px;
+  }
+
+  .hue-tree ul {
+    list-style-type: none;
+    padding: 0;
+  }
+
+  .tree {
+    margin-left: 0;
+  }
+
+  .node-row {
+    margin: 4px;
+    padding: 2px;
+    border: 1px dashed @cui-white;
+  }
+
+  .node-row:hover {
+    background: @cui-gray-050;
+  }
+
+  .node-row a, .node-row i {
+    cursor: pointer;
+  }
+
+  .node-row a.striked {
+    text-decoration: line-through;
+    color: @cui-red-400;
+  }
+
+  .fa.striked {
+    color: @cui-red-400!important;
+  }
+
+  .node-row.selected {
+    background: @cui-gray-050 !important;
+  }
+
+  .acl-panel {
+    border-left: 1px solid @cui-gray-100;
+    padding-top: 6px;
+    padding-left: 12px;
+  }
+
+  .acl-panel .nav-tabs {
+    margin-bottom: 0;
+  }
+
+  .acl-panel h4:not(:first-child) {
+    margin-top: 20px;
+  }
+
+  .acl-panel-content {
+    padding: 6px;
+    overflow-y: scroll;
+  }
+
+  .acl-block-title {
+    background-color: @cui-purple-gray-050;
+    font-weight: bold;
+    padding: 3px;
+    margin-top: 14px;
+    margin-bottom: 4px;
+  }
+
+  .acl-block {
+    background-color: @cui-gray-050;
+    padding: 3px;
+    margin-bottom: 4px;
+  }
+
+  .acl-block .checkbox, .acl-block .radio {
+    margin-left: 6px;
+  }
+
+  .acl-block-airy {
+    padding: 6px;
+  }
+
+  .acl-block-airy input {
+    margin-bottom: 0;
+  }
+
+  .acl-block-section {
+    margin-top: 10px;
+  }
+
+  .acl-block-section input {
+    margin-left: 14px;
+  }
+
+  .span6 .acl-block input[type='text'] {
+    width: 25%;
+  }
+
+  .span6 .acl-block input[type='text'] {
+    width: 21%;
+  }
+
+  .acl-actions {
+    padding: 5px;
+    text-align: center;
+    color: @cui-gray-400;
+    font-size: 20px;
+  }
+
+  .acl-actions span:hover {
+    color: @cui-gray-600;
+  }
+
+  .path {
+    font-size: 14px;
+  }
+
+  .path-container {
+    background-color: @cui-white;
+    padding-top: 8px;
+  }
+
+  .path-container .btn-inverse {
+    font-size: 14px;
+  }
+
+  .fake-pre {
+    display: block;
+    padding: 9.5px;
+    margin: 0 0 10px;
+    font-size: 12px;
+    line-height: 20px;
+    word-break: break-all;
+    word-wrap: break-word;
+    font-family: @font-family-monospace;
+    background-color: @cui-gray-050;
+    border: 1px solid @cui-gray-400;
+    border: 1px solid rgba(0, 0, 0, 0.15);
+    -webkit-border-radius: 2px;
+    -moz-border-radius: 2px;
+    border-radius: 2px;
+  }
+
+  .tree-toolbar {
+    padding: 3px;
+    border-bottom: 1px solid @cui-gray-100;
+  }
+
+  .tree-toolbar .fa {
+    margin-left: 5px;
+  }
+
+  .tree-toolbar .fa-spin {
+    color: @cui-gray-400;
+    margin-right: 6px;
+  }
+
+  .tree-toolbar input {
+    margin-bottom: 0;
+    height: 25px;
+    min-height: 25px;
+  }
+
+  .tree-toolbar .pull-right {
+    margin-top: -5px;
+  }
+
+  .inline-block {
+    display: inline-block;
+  }
+
+  .force-word-break {
+    word-break: break-all;
+  }
+
+  .pointer {
+    cursor: pointer;
+  }
+
+  .rwx {
+    width: 90px;
+    text-align: right;
+    padding-right: 10px;
+  }
+
+  .waiting {
+    font-size: 196px;
+    color: @cui-gray-300;
+  }
+
+  h1.emptyMessage {
+    margin-top: 50px;
+    color: @cui-gray-500;
+    line-height: 60px;
+  }
+
+  .acl-panel .waiting {
+    font-size: 130px;
+  }
+
+  .acl-panel h1.emptyMessage {
+    margin-top: 0;
+    line-height: 54px;
+  }
+
+  .fa-caret {
+    padding-top: 2px;
+  }
+
+  .select2-search-field .select2-input {
+    margin-bottom: 0;
+    min-height: 18px;
+    height: 18px;
+  }
+
+  #createRoleModal, #bulkActionsModal, #grantPrivilegeModal {
+    width: 800px;
+    left: 50%;
+    margin-left: -400px!important;
+  }
+
+
+  .big-btn {
+    background-color: @cui-purple-gray-050;
+    height: 100px;
+    width: 90%;
+    text-align: center;
+    display: inline-block;
+    margin-right: 10px;
+    padding: 10px;
+    padding-top: 20px;
+    cursor: pointer;
+    border: 1px solid @cui-purple-gray-050;
+    -webkit-border-radius: 3px;
+    -moz-border-radius: 3px;
+    border-radius: 3px;
+  }
+
+  .big-btn:hover, .big-btn.selected {
+    background-color: @cui-gray-300;
+  }
+
+  .big-btn.selected {
+    border-color: @cui-gray-400;
+  }
+
+  .big-btn i{
+    font-size: 40px;
+    color: @cui-gray-700;
+  }
+
+  .modal-panel {
+    max-height: 120px;
+    overflow-y: scroll;
+  }
+
+  .bulk-action-description {
+    display: none;
+  }
+
+  .big-btn:hover .bulk-action-description, .big-btn.selected .bulk-action-description {
+    display: block;
+  }
+
+  .fa-database-open:before {
+    content:"\f1c0"
+  }
+
+  .fa-database-open {
+    color: @cui-gray-700!important;
+  }
+
+  .actionbar-main {
+    padding: 0!important;
+    padding-bottom: 10px!important;
+  }
+
+  #grantPrivilegeModal .privilege-actions {
+    display: none;
+  }
+
+  @media (min-width: 1680px) {
+    .span6 .acl-block .with-grant-checkbox {
+      float: none;
+    }
+  }
+  .new-line-if-small {
+    height: 35px;
+    line-height: 35px;
+    vertical-align: middle;
+  }
+
+  .new-line-if-small label {
+    float: left;
+    margin-right: 6px;
+    margin-top: 7px;
+  }
+
+  .typeahead.dropdown-menu {
+    max-height: 300px;
+    overflow-y: auto;
+  }
+
+}

+ 1 - 1
apps/security/src/security/templates/hdfs.mako

@@ -29,7 +29,7 @@ ${ commonheader(_('Hadoop Security'), "security", user, request) | n,unicode }
 
 ${ layout.menubar(section='hdfs', is_embeddable=is_embeddable) }
 
-<span id="securityHdfsComponents">
+<span id="securityHdfsComponents" class="security-components">
 
 <script type="text/html" id="aclDisplay">
   <div data-bind="visible: status() != 'deleted'">

+ 1 - 1
apps/security/src/security/templates/hive.mako

@@ -29,7 +29,7 @@ ${ commonheader(_('Hadoop Security'), "security", user, request) | n,unicode }
 
 ${ layout.menubar(section='hive1', is_embeddable=is_embeddable) }
 
-<span id="securityHiveComponents">
+<span id="securityHiveComponents" class="security-components">
 
 <script type="text/html" id="role">
   <div class="acl-block-title">

+ 1 - 1
apps/security/src/security/templates/sentry.mako

@@ -29,7 +29,7 @@ ${ commonheader(_('Hadoop Security'), "security", user, request) | n,unicode }
 
 ${ layout.menubar(section=component, is_embeddable=is_embeddable) }
 
-<span id="securityComponents">
+<span id="securityComponents" class="security-components">
 
 <script type="text/html" id="role">
   <div class="acl-block-title">

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio