metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonellistonball <...@git.apache.org>
Subject [GitHub] incubator-metron pull request #484: METRON-623: Management UI
Date Fri, 24 Mar 2017 13:59:53 GMT
Github user simonellistonball commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/484#discussion_r107719953
  
    --- Diff: metron-interface/metron-config/src/app/sensors/sensor-parser-config-readonly/sensor-parser-config-readonly.component.html
---
    @@ -0,0 +1,106 @@
    +<!--
    +  Licensed to the Apache Software
    +	Foundation (ASF) under one or more contributor license agreements. See the
    +	NOTICE file distributed with this work for additional information regarding
    +	copyright ownership. The ASF licenses this file to You under the Apache License,
    +	Version 2.0 (the "License"); you may not use this file except in compliance
    +	with the License. You may obtain a copy of the License at
    +
    +  http://www.apache.org/licenses/LICENSE-2.0
    +
    +  Unless required by applicable law or agreed to in writing, software distributed
    +	under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
    +	OR CONDITIONS OF ANY KIND, either express or implied. See the License for
    +  the specific language governing permissions and limitations under the License.
    +  -->
    +<metron-config-metron-modal [backgroundMasked]="false">
    +
    +    <div class="metron-slider-pane fill load-right-to-left dialog1x">
    +      <div>
    +      <div class="row">
    +        <div class="col-xs-12 form-title">{{selectedSensorName}}
    +          <i class="fa fa-times pull-right close-button" aria-hidden="true" (click)="goBack()"></i>
    +        </div>
    +      </div>
    +
    +      <div *ngFor="let item of editViewMetaData">
    +        <div [ngSwitch]="item.type">
    +
    +          <div *ngSwitchCase="'SEPARATOR'" class="row form-seperator">
    +          </div>
    +
    +            <div  *ngSwitchCase="'SPACER'" class="row">
    +                <div class="col-xs-12">&nbsp;</div>
    +            </div>
    +
    +          <div  *ngSwitchCase="'TITLE'" class="row">
    +            <div class="col-xs-12 form-sub-title">{{ item.value }}</div>
    +          </div>
    +
    +          <div *ngSwitchDefault class="row">
    +            <div *ngIf="item.label!=''" class="col-xs-6 form-label" [ngClass]="{'form-value
font-weight-bold': item.boldTitle}">{{ item.label }}</div>
    +            <div *ngIf="item.model == 'sensorParserConfigHistory'" class="col-xs-6
 px-0 pull-left form-value">{{ sensorParserConfigHistory[item.value] ? sensorParserConfigHistory[item.value]
: "-" }}</div>
    +            <div *ngIf="item.model == 'kafkaTopic'" class="col-xs-6  px-0 pull-left
form-value">{{ kafkaTopic[item.value] ? kafkaTopic[item.value] : "-" }}</div>
    +            <div *ngIf="item.model == 'topologyStatus'" class="col-xs-6  px-0  pull-left
form-value">{{ topologyStatus[item.value] ? topologyStatus[item.value] : "-" }}</div>
    +            <div *ngIf="item.model == 'grokStatement' && sensorParserConfigHistory['parserName']
=== 'Grok'" style="border: none">
    +              <div class="col-xs-12 form-sub-title">Grok Statement</div>
    +              <div id="collapseGrok" class="col-xs-12  pull-left form-value panel-collapse
collapse"></div>
    +              <div class="col-xs-12  pull-left form-value grok" [innerHtml]="grokStatement"></div>
    +              <a *ngIf="grokStatement.length>0" class="collapsed blue-label font-weight-bold
col-xs-8 col-xs-push-4" data-toggle="collapse" href="#collapseGrok" aria-expanded="false"
aria-controls="collapseGrok"  #grokLink (click)="grokLink.text=(grokLink.text==='show more')?'show
less':'show more'">show more</a>
    +              <div class="px-1"> <div class="col-xs-12 form-seperator"></div>
</div>
    +            </div>
    +            <div *ngIf="item.model == 'transforms'">
    +
    +              <div id="collapseTransform" class="col-xs-12  pull-left form-value panel-collapse
collapse">
    +                <div class="form-sub-sub-title">Transforms</div>
    +                <div>
    +                  <div *ngFor="let results of transformsConfigKeys" >
    +                    <div class="form-label">{{ results }}</div>
    +                    <div class="form-value">{{ transformsConfigMap[results] }}</div>
    +                  </div>
    +                </div>
    +              </div>
    +
    +              <div class="transforms">
    +                <div class="col-xs-12 form-sub-sub-title">Transforms</div>
    +                <div class="col-xs-12 form-label " [innerHtml]="getTransformsOutput()"></div>
    +              </div>
    +              <a *ngIf="transformsConfigKeys.length>0"  class="collapsed blue-label
font-weight-bold col-xs-8 col-xs-push-4" data-toggle="collapse" href="#collapseTransform"
aria-expanded="false" aria-controls="collapseTransform" #transformLink (click)="transformLink.text=(transformLink.text==='show
more')?'show less':'show more'">show more</a>
    +            </div>
    +            <div *ngIf="item.model == 'threatTriageRules'" class="threat-triage-rules">
    +              <div class="col-xs-6 form-label">AGGREGATOR</div><div class="col-xs-6
form-value">{{sensorEnrichmentConfig.threatIntel.triageConfig.aggregator}}</div>
    +              <div id="collapseThreatTriage" class="col-xs-12  pull-left form-value
panel-collapse collapse">
    +                <div>
    +                  <div class="col-xs-6 form-sub-sub-title">NAME</div><div
class="col-xs-6 form-sub-sub-title">SCORE</div>
    +                  <div *ngFor="let riskLevelRule of rules" >
    +                    <div class="col-xs-6 form-label">{{ getDisplayName(riskLevelRule)
}}</div>
    +                    <div class="col-xs-6 form-value">{{ riskLevelRule.score }}</div>
    +                  </div>
    +                </div>
    +              </div>
    +              <div  class="col-xs-12 form-label threatIntel">{{ getRuleDisplayName()
}}</div>
    +              <a *ngIf="rules.length>0" class="collapsed blue-label font-weight-bold
col-xs-8 col-xs-push-4" data-toggle="collapse" href="#collapseThreatTriage" aria-expanded="false"
aria-controls="collapseThreatTriage"  #threatTriageLink (click)="threatTriageLink.text=(threatTriageLink.text==='show
more')?'show less':'show more'">show more</a>
    --- End diff --
    
    should this be encapsulated in a controller function?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message