{% extends 'layouts/fluid.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('build/report-vendors.css') }}" >
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% set sourceknowledge_domains = sk_domains() %}
{{ encore_entry_script_tags('report-vendors')}}
<script src="{{ asset('build/common-public.js') }}"></script>
<script type="text/javascript">
window.engageVars = window.engageVars || {};
window.engageVars.reportConstants = {
SK_DOMAIN: "{{ sourceknowledge_domains }}",
};
// alerts/list.html.twig
window.engageVars.alertConstants = {
ALERT_LABELS: {{ constant('App\\Entity\\Scan::ALERT_LABELS')|json_encode | raw }},
STATUS_RESOLUTION_LABELS: {{ constant('App\\Entity\\Scan::STATUS_RESOLUTION_LABELS')|json_encode | raw }},
STATUS_UNKNOWN: {{ constant('App\\Entity\\Scan::STATUS_UNKNOWN') }},
STATUS_PENDING_RESOLUTION: {{ constant('App\\Entity\\Scan::STATUS_PENDING_RESOLUTION') }},
ALERTS_LIST_URL: '{{ path('alerts_list') }}',
RESOLUTION_UPDATE_URL: '{{ path('resolution_update') }}',
DEVICE_LABELS : {{ constant('App\\Entity\\Scan::DEVICE_TYPE_LABELS')|json_encode|raw }}
};
// alerts/list.html.twig
window.engageVars.campaignConstants = {
STATUS_LABELS: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LABELS')|json_encode | raw }},
CAMPAIGN_STATUS_LIVE: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LIVE')}},
CAMPAIGN_STATUS_PAUSED: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_PAUSED')}},
};
// search/list.html.twig
window.engageVars.searchConstants = {
STATUS_LABELS: {{ constant('App\\Entity\\Scan::SEARCH_LABELS')|json_encode | raw }},
STATUS_RESOLUTION_LABELS: {{ constant('App\\Entity\\Scan::STATUS_RESOLUTION_LABELS')|json_encode | raw }},
STATUS_UNKNOWN: {{ constant('App\\Entity\\Scan::STATUS_UNKNOWN') }},
STATUS_LANDING_OK: {{ constant('App\\Entity\\Scan::STATUS_LANDING_OK') }},
STATUS_FILTERED: {{ constant('App\\Entity\\Scan::STATUS_FILTERED') }},
SEARCH_LIST_URL: '{{ path('search_list') }}',
RESOLUTION_UPDATE_URL: '{{ path('resolution_update') }}',
ORDER_OF_STATUS: {{ constant('App\\Entity\\Scan::ORDER_OF_STATUS')|json_encode | raw }},
SOURCE_LABELS: {{ constant('App\\Entity\\Scan::FLAG_TRAFFIC_LABELS')|json_encode | raw }},
SK_DOMAIN: "{{ sourceknowledge_domains }}",
};
// search/list.html.twig
window.engageVars.campaignConstants = {
STATUS_LABELS: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LABELS')|json_encode | raw }},
CAMPAIGN_STATUS_LIVE: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_LIVE')}},
CAMPAIGN_STATUS_PAUSED: {{ constant('App\\Entity\\GeoEdgeExtraInfo::CAMPAIGN_STATUS_PAUSED')}},
};
// targets/list.html.twig combined with scans/list
window.engageVars.scanConstants = {
STATUS_LABELS: {{ constant('App\\Entity\\Scan::STATUS_LABELS')|json_encode | raw }},
STATUS_UNKNOWN: {{ constant('App\\Entity\\Scan::STATUS_UNKNOWN') }},
STATUS_LANDING_OK: {{ constant('App\\Entity\\Scan::STATUS_LANDING_OK')}},
STATUS_FILTERED: {{ constant('App\\Entity\\Scan::STATUS_FILTERED') }},
STATUS_LANDING_ISSUE: {{ constant('App\\Entity\\Scan::STATUS_LANDING_ISSUE') }},
STATUS_INVALID_SCAN : {{ constant('App\\Entity\\Scan::STATUS_INVALID_SCAN') }},
TARGETS_LIST_URL: '{{ path('targets_list') }}',
};
// targets/list
window.engageVars.tagConstants = {
TYPE_LABELS: {{ constant('App\\Model\\Tag::TYPE_LABELS') | json_encode | raw }},
TYPE_LABELS_SHORT: {{ constant('App\\Model\\Tag::TYPE_LABELS_SHORT') | json_encode | raw }},
TYPE_DL: {{ constant('App\\Model\\Tag::TYPE_DL') }},
TYPE_HP: {{ constant('App\\Model\\Tag::TYPE_HP') }},
TYPE_ML: {{ constant('App\\Model\\Tag::TYPE_ML') }}
};
</script>
{% endblock %}
{% block page_header %}
{% block report_header %}
<h1>{% block title %}GeoEdge Integration{% endblock %}</h1>
{% endblock %}
{% endblock %}
{% block page_content %}
<div id="js_spin_loader" style="display:none" >
<div class="d-flex justify-content-center loading">
<div class="spinner-border " role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
{% block report_content %}
{% endblock %}
<script src="{{ asset('build/report-controls.js') }}"></script>
{% endblock %}