Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify timezone #673

Merged
merged 298 commits into from
Apr 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
298 commits
Select commit Hold shift + click to select a range
59789fd
Increased default timeout to 20s
adri9valle Apr 4, 2019
032a9b5
Remove progress bar when restart a cluster or node
adri9valle Apr 4, 2019
3b38380
Show custom message when wazuh is restarting on wazuh not ready yet div
adri9valle Apr 4, 2019
7d9e46b
When change manager to cluster show correct message if do not refresh…
adri9valle Apr 4, 2019
b7c817c
Use head toaster for ossec.conf errors
adri9valle Apr 4, 2019
23792d7
fix first page
adri9valle Apr 4, 2019
2f3a920
Yarn pretty
adri9valle Apr 4, 2019
4f75ef9
Yarn lint
adri9valle Apr 4, 2019
3b1a5ad
Redesign rule details cards
adri9valle Apr 4, 2019
5bf59a5
Add filter directive to rules and decoders
adri9valle Apr 4, 2019
daf19fc
Resolving conflicts
adri9valle Apr 4, 2019
a2d2c01
Add node selector
adri9valle Apr 4, 2019
efcfdaf
Fix event.stopPropagation
adri9valle Apr 5, 2019
5c9839b
Add cursor pointer
adri9valle Apr 5, 2019
925de3d
Loads the node configuration when entry to the configuration
adri9valle Apr 5, 2019
e709c7e
Fix duplicate nav-bar in configuration active response
adri9valle Apr 5, 2019
7ea6365
When change the node, loads the configuration properly
adri9valle Apr 5, 2019
925a015
Fix no present configuration in configuration > alerts
adri9valle Apr 5, 2019
16e738b
Fix several no present configuration blocks
adri9valle Apr 5, 2019
1574341
Cursor pointer added to the table
adri9valle Apr 5, 2019
fab9413
Merge pull request #644 from wazuh/node-selector
adri9valle Apr 5, 2019
c9b57ed
Line wrapping in xml editor
juankaromo Apr 5, 2019
7547013
Remove restart button on save succesfully
adri9valle Apr 5, 2019
ae46f52
Merge branch 'alpha-fixes' of http://www.github.com/wazuh/wazuh-splun…
adri9valle Apr 5, 2019
7fd7fc0
md-chips fix
juankaromo Apr 5, 2019
3819191
Merge branch 'alpha-fixes' of https://github.com/wazuh/wazuh-splunk i…
juankaromo Apr 5, 2019
ce5b7ed
Disable operator changing on same tags groups in tags filter
juankaromo Apr 8, 2019
3cbc239
Add filters to custom rules or decoders
adri9valle Apr 8, 2019
8ad741b
Merge branch 'alpha-fixes' of http://www.github.com/wazuh/wazuh-splun…
adri9valle Apr 8, 2019
c5483e0
Change the way to fetch sca config
adri9valle Apr 8, 2019
0598874
Fix filter input in cdb list
adri9valle Apr 8, 2019
2013441
Remove several console.error and unnecesary toasts
adri9valle Apr 8, 2019
9fe6169
Refactor app frontend to equalize Kibana app
juankaromo Apr 8, 2019
c64df38
Fix 'Page not found' for security reasons
adri9valle Apr 9, 2019
155feea
Change array.prototype.push
adri9valle Apr 9, 2019
41c95e5
Load angular-chart.js
juankaromo Apr 9, 2019
ee4fb6e
Merge branch 'alpha-fixes' of https://github.com/wazuh/wazuh-splunk i…
juankaromo Apr 9, 2019
ddf82b9
Remove logger
adri9valle Apr 9, 2019
8bd608f
No show compliance card on editing rules
juankaromo Apr 9, 2019
aeb9271
Merge branch 'alpha-fixes' of http://www.github.com/wazuh/wazuh-splun…
adri9valle Apr 9, 2019
daeca55
Fix when a rule is overwrited
adri9valle Apr 9, 2019
d0d282d
Fix sections titles in configuration state
adri9valle Apr 10, 2019
17707f4
Docker config on demand
adri9valle Apr 10, 2019
a1c0807
Remove SCA dashboard
adri9valle Apr 10, 2019
dca259e
Add docker icon to the overview and agents welcome
adri9valle Apr 10, 2019
742a01b
Show or hide 'More info about this section'
adri9valle Apr 10, 2019
d5ff557
Several fixex in agents > management > configuration
adri9valle Apr 10, 2019
057fc0f
Remove toast when fails
adri9valle Apr 10, 2019
61bd314
Remove API error messages from wz-no-config directive
adri9valle Apr 10, 2019
7684007
Change message in when configuration not available
adri9valle Apr 10, 2019
e88e9f1
Remove breadcrumb and overview in Overview welcome
pablotr9 Apr 11, 2019
1f0b74a
Change next and prev buttons in the tables
adri9valle Apr 11, 2019
d0efcf8
Set the same blue that Kibana uses in the metrics
adri9valle Apr 11, 2019
e88078a
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 11, 2019
3f62ebc
Add sub-tabs nav-bar
pablotr9 Apr 11, 2019
9e3c808
Editing configuration requests changes
adri9valle Apr 11, 2019
50ffcff
Spinning in the restart button while Wazuh is restarting
adri9valle Apr 11, 2019
b5db873
Set the same order for the elements in the welcome cards
adri9valle Apr 11, 2019
1d776fb
Fix cluster-monitoring style
pablotr9 Apr 11, 2019
c09c2fa
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 11, 2019
9025595
Welcome cards style and tooltips
adri9valle Apr 11, 2019
b599fd3
Repeated titles and fix agent config breadcrumbs
adri9valle Apr 11, 2019
b06737c
Add a sub-nav-bar to change between rules, decoders, and lists
adri9valle Apr 11, 2019
18a66f1
Management and logs style
pablotr9 Apr 11, 2019
001da54
Set the same columns order that Kibana has(Ruleset)
adri9valle Apr 11, 2019
dc0c234
Fix box padding ruleset
adri9valle Apr 11, 2019
fba0e94
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 11, 2019
dc395ff
Remove welcome from the breadcrumb.(agents)
adri9valle Apr 11, 2019
7ad1694
Fix active/disconnected status near the agent name
adri9valle Apr 11, 2019
f5fe602
Change header style in the welcome state.
adri9valle Apr 11, 2019
ce58dd3
Missing metrics with clicked name and path and several style changes
adri9valle Apr 11, 2019
bad1679
When an entry is edited, do not hide add a new entry
adri9valle Apr 11, 2019
1f3387b
Inputs width must fill all the column
adri9valle Apr 11, 2019
1695734
Remove md-subheader class
adri9valle Apr 11, 2019
311f495
Change the x style
adri9valle Apr 12, 2019
2932ea2
Change loading ring
adri9valle Apr 12, 2019
541d2de
Dev-tools fixes
pablotr9 Apr 12, 2019
e9924ae
Catch when no logs
adri9valle Apr 12, 2019
de94bb2
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 12, 2019
61892c6
Settings index style
adri9valle Apr 12, 2019
9f2f020
Change order nav-bar settings
adri9valle Apr 12, 2019
cdaf83b
Fix settins.api
adri9valle Apr 12, 2019
7f44608
Change the way to add a new group
adri9valle Apr 12, 2019
64473b2
Change settings titles
adri9valle Apr 12, 2019
25f15b2
Welcome message when there is not an API saved
adri9valle Apr 12, 2019
3f65a43
Change the expand icon
adri9valle Apr 12, 2019
e9bfebc
Change formatted icon
adri9valle Apr 12, 2019
64562af
Change set, delete, check and edit API icons
adri9valle Apr 12, 2019
83fb208
Mg-Groups fixes
pablotr9 Apr 12, 2019
fda25a9
Change menu icons
adri9valle Apr 12, 2019
f26978e
Remove {} from chips
adri9valle Apr 12, 2019
7d454c1
Fix load bar
adri9valle Apr 12, 2019
dd2525e
Remove index filter from chips
adri9valle Apr 12, 2019
64154d9
Equaliza ow-general dashboard
adri9valle Apr 12, 2019
629ec5c
Equaliza ow-gdpr dashboard
adri9valle Apr 12, 2019
c6d732a
Equalize ow-pci dashboards
adri9valle Apr 12, 2019
2a2f9d7
Several changes in reporting
adri9valle Apr 12, 2019
0b491f7
minor fix
pablotr9 Apr 12, 2019
b1c6e77
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 12, 2019
3190308
Fix all subtab navbar padding
pablotr9 Apr 15, 2019
24ba3aa
Add new vizz to agent-general
pablotr9 Apr 15, 2019
c0df758
Change switch style in extensions
adri9valle Apr 15, 2019
2854ba6
Change switch style in the rest of the code
adri9valle Apr 15, 2019
8929af9
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 15, 2019
ffe08fe
Fix extension switching
adri9valle Apr 15, 2019
8360a0a
Add new vizz
pablotr9 Apr 15, 2019
d3edd75
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 15, 2019
3de9b9a
Change report icons and added md-tooltip
adri9valle Apr 15, 2019
08976f1
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 15, 2019
b2de055
Removed style tag, added class
adri9valle Apr 15, 2019
de8937b
Add class for the log switch
adri9valle Apr 15, 2019
79ddfdd
Change fa-download icons
adri9valle Apr 15, 2019
2caba98
Added map to aws
adri9valle Apr 15, 2019
261e183
Change the configuration pencil icon
adri9valle Apr 15, 2019
de36b8e
Change col-resize lib
adri9valle Apr 15, 2019
bd355a1
Improve overwritted rules detection
adri9valle Apr 15, 2019
5e3ba6f
Do not show pagination for one page tables (#661)
adri9valle Apr 15, 2019
330f57d
Add docker as extension
adri9valle Apr 16, 2019
a8e4097
Add agent-sca vizz
pablotr9 Apr 16, 2019
045678a
Sort tables by count
pablotr9 Apr 16, 2019
62a89af
Add ow docker
adri9valle Apr 16, 2019
b0e8bee
Add ag docker
adri9valle Apr 16, 2019
1209db3
Prettier
adri9valle Apr 16, 2019
72975f2
Resolving conflicts
adri9valle Apr 16, 2019
85b71c8
Merge pull request #665 from wazuh/docker
adri9valle Apr 16, 2019
4f6729e
Add SCA overview dashboard
pablotr9 Apr 16, 2019
7732db7
Add eye icon to view the file content, added readOnly parameter
adri9valle Apr 16, 2019
58e0c8b
Resolving conflicts
adri9valle Apr 16, 2019
65213a1
Add visualization to ow-sca
pablotr9 Apr 16, 2019
be2d975
Fix aws geomap
pablotr9 Apr 16, 2019
78ef6c0
Show rules and decoders content
adri9valle Apr 16, 2019
b707c8b
Improve style
adri9valle Apr 16, 2019
e75acf4
Prettier
adri9valle Apr 16, 2019
0f86b64
Merge pull request #667 from wazuh/show-file-content
adri9valle Apr 16, 2019
ff98a87
Missing AWS Services configuration
pablotr9 Apr 16, 2019
48fdcef
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 16, 2019
f967fa2
Split log and commands
adri9valle Apr 16, 2019
9ae2500
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 16, 2019
1cc76e0
Fix ag-fim icons
adri9valle Apr 16, 2019
a3ecc65
Bump revision
Apr 16, 2019
d5eaf45
Fix remove filter
adri9valle Apr 17, 2019
4fe85d0
Add directive to use eui svgs
adri9valle Apr 17, 2019
889f646
Use directive to set expand svg icons
adri9valle Apr 17, 2019
4b18274
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
4602ea9
Add tootlip to the svg
adri9valle Apr 17, 2019
22df65d
Change icons in wz-table and other several html files
adri9valle Apr 17, 2019
8091811
Use wz-svg in menu and api
adri9valle Apr 17, 2019
21f337d
Use svg instead of fa-compass
adri9valle Apr 17, 2019
9ece1a6
Fix height
adri9valle Apr 17, 2019
fb55745
Fix clean keys
pablotr9 Apr 17, 2019
4f113c9
Change refresh icons
adri9valle Apr 17, 2019
916ad01
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
ad166d7
Rename name as container docker
adri9valle Apr 17, 2019
c51b7c1
Change expand icon in docker
adri9valle Apr 17, 2019
45bf0b3
Change icons cdb lists
adri9valle Apr 17, 2019
2825da4
Change download and plus icons
adri9valle Apr 17, 2019
535c0e7
Fix csv download
adri9valle Apr 17, 2019
0bedbe6
Fix breadcrumb-submenu style
pablotr9 Apr 17, 2019
68047cf
Fix ellipsis in tables
adri9valle Apr 17, 2019
ad41974
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
1969be7
Fix input style cdb list
adri9valle Apr 17, 2019
753a78a
Add loupe to input searchbar
pablotr9 Apr 17, 2019
2566747
Change and fix several styles
adri9valle Apr 17, 2019
866a543
Fix agents sca view
adri9valle Apr 17, 2019
89b1b91
Fix several margins
adri9valle Apr 17, 2019
1fe9c89
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
7fab3ae
Fix float icon in warning message
adri9valle Apr 17, 2019
5e39372
Change style
adri9valle Apr 17, 2019
87a3778
Add sca navbar
adri9valle Apr 17, 2019
5bb83eb
Fix flick & input loupe icon
pablotr9 Apr 17, 2019
1ed96e8
Fix cluster view
adri9valle Apr 17, 2019
d071dae
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 17, 2019
c78fa35
Fix flick when hiding a column
pablotr9 Apr 17, 2019
8c29199
Merge
pablotr9 Apr 17, 2019
76b875c
Bump revision
Apr 17, 2019
02f6d11
Remove console.log ow-pm
adri9valle Apr 22, 2019
1329574
Percent while report is generating
pablotr9 Apr 22, 2019
e46e24f
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 22, 2019
f6b29d2
Fix nosortable table fields
adri9valle Apr 22, 2019
e0e13bb
Add ow-fim vizz
pablotr9 Apr 22, 2019
f9e7627
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 22, 2019
9f7d1b7
Fix duplicated values in indexed data
adri9valle Apr 22, 2019
316e4e4
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 22, 2019
c642537
Add ag-audit & ow-audit vizz
pablotr9 Apr 22, 2019
55e3a6a
Merge branch 'request-fixes' of https://github.com/wazuh/wazuh-splunk…
pablotr9 Apr 22, 2019
243f7da
Fix implicit chips
adri9valle Apr 22, 2019
46cdedc
Merge changes
adri9valle Apr 22, 2019
31a301d
Add ow-osquery & ag-osquery vizz
pablotr9 Apr 22, 2019
b9450e3
Change jquery-ui
adri9valle Apr 23, 2019
cf1482c
Fix id width
adri9valle Apr 23, 2019
027bc00
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 23, 2019
01fa223
Fix show mail configuration
adri9valle Apr 23, 2019
3240067
Merge pull request #672 from wazuh/show-email-conf
adri9valle Apr 23, 2019
c619650
Show appropriate error message for every wrong inserted form field
adri9valle Apr 23, 2019
16cc248
Fix typo
adri9valle Apr 23, 2019
444d151
Fix top menu bar should be updated indicating that there's no API sel…
adri9valle Apr 23, 2019
8d40512
Fix hide/show columns when using keyEquivalence
adri9valle Apr 23, 2019
08c1846
Add fetching data -> ow - Security Information Management
adri9valle Apr 23, 2019
b40f50e
Fix filter when changin between sub-states
adri9valle Apr 23, 2019
3f036c1
Add fetching data -> ow - Auditing and Policy Monitoring
adri9valle Apr 23, 2019
c54a29a
Fix mg-logs style
pablotr9 Apr 23, 2019
da54d5c
Add fetching data -> ow - Threat Detection and Response
adri9valle Apr 23, 2019
a6861f5
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 23, 2019
6a35563
Fix cluster-monitoring style
pablotr9 Apr 23, 2019
caeda7f
Add fetching data -> ow - Regulatory Compliance
adri9valle Apr 24, 2019
bac190a
Remove unused vizz
pablotr9 Apr 24, 2019
81a0a5d
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 24, 2019
fe9b261
Add fetching data -> ag - Security Information Management
adri9valle Apr 24, 2019
1f41fa3
Fix osquery table
pablotr9 Apr 24, 2019
8a86988
Fix wz-table-directive keyEquivalences for custom columns
adri9valle Apr 24, 2019
b76848e
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 24, 2019
1f41e79
Fix fetching data ow-osquery
adri9valle Apr 24, 2019
10a7b6e
Add fetching data -> ag - Regulatory Compliance
adri9valle Apr 24, 2019
ca8901c
Remove button flicks in rules/decoders
pablotr9 Apr 24, 2019
f49995e
Remove duplicated ID
pablotr9 Apr 24, 2019
da9159a
Add fetching data -> ag - Auditing and Policy Monitoring
adri9valle Apr 24, 2019
5a038d2
Add fetching data -> ag - Threat Detection and Response
adri9valle Apr 24, 2019
04598e3
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 24, 2019
2d19865
Fix when coming back to dashboard and the filters are removed
adri9valle Apr 24, 2019
19ad438
Fix color
adri9valle Apr 24, 2019
9454a46
Fix dropdown style
adri9valle Apr 24, 2019
1956064
Update overview SCA dashboard
pablotr9 Apr 24, 2019
aa1d014
Created function to set offset
adri9valle Apr 24, 2019
5d3e647
Added offet in agents inventory
adri9valle Apr 24, 2019
80899a9
Added offset and fixed agents overview
adri9valle Apr 24, 2019
79b9867
Added offset to agents sca
adri9valle Apr 24, 2019
1f090da
Add offset to agents welcome
adri9valle Apr 25, 2019
87a1eef
Add offset to reporting
adri9valle Apr 25, 2019
a9296ae
Added offset to agents registration date
adri9valle Apr 25, 2019
dccea39
Fixed agent rootcheck scan and offset applied
adri9valle Apr 25, 2019
e6a5eb5
Add SingleValue and GaugeChart visualization
pablotr9 Apr 25, 2019
3ac946c
Fix ag-fim filter bar style
pablotr9 Apr 25, 2019
e0e3211
Minor fix ow-sca
pablotr9 Apr 25, 2019
4d6bcd9
Add trellis-layout option to pieChart
pablotr9 Apr 25, 2019
a8dc1e2
Update ag-sca Dashboard
pablotr9 Apr 25, 2019
2e7555a
Add no scans avaible and refresh button ag-sca
adri9valle Apr 25, 2019
ebde0ee
Resolving conflicts
adri9valle Apr 25, 2019
d131239
Change expand icon sca
adri9valle Apr 25, 2019
eebe69c
Add status if the check is not passed
adri9valle Apr 25, 2019
64f5c4e
Show reason why check was not passed
adri9valle Apr 25, 2019
0e2dd4f
Update ag-openscap dashboard
pablotr9 Apr 25, 2019
fab2236
Change title
adri9valle Apr 25, 2019
1a79b3a
Fix ag-ciscat dashboard
pablotr9 Apr 25, 2019
0720b21
Merge branch 'request-fixes' of http://www.github.com/wazuh/wazuh-spl…
adri9valle Apr 25, 2019
14cedb8
Resolving conflicts
adri9valle Apr 25, 2019
7c15460
Added no passed check to SCA general table
adri9valle Apr 25, 2019
e2f9319
Added angular charts to SCA
adri9valle Apr 25, 2019
6fc231f
Added angular chart to agents
adri9valle Apr 25, 2019
29219f2
Resolving conflicts
adri9valle Apr 26, 2019
2abcf4a
Resolving conflicts
adri9valle Apr 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<!-- Table -->
<div ng-if="!loading" layout="row" class="wz-margin-10">
<wazuh-table flex path="'/agents'" custom-columns="true"
keys="['id',{value:'name',size:2},'ip','status','group','os.name','os.version','version', 'dateAdd', 'lastKeepAlive']"
keys="['id',{value:'name',size:2},'ip','status','group','os.name','os.version','version', {value: 'dateAdd', offset: true}, {value: 'lastKeepAlive', offset: true}]"
allow-click="true" rows-per-page="17"></wazuh-table>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ define([
$tableFilterService,
agentData,
$mdDialog,
$groupHandler
$groupHandler,
$dateDiffService
) {
this.scope = $scope
this.submittedTokenModel = $urlTokenModel.getSubmittedTokenModel()
Expand All @@ -56,6 +57,7 @@ define([
this.wzTableFilter = $tableFilterService
this.$mdDialog = $mdDialog
this.groupHandler = $groupHandler
this.setBrowserOffset = $dateDiffService.setBrowserOffset

try {
const parsedResult = agentData.map(item =>
Expand Down Expand Up @@ -142,6 +144,14 @@ define([
})
this.scope.reloadList = () => this.reloadList()

this.scope.offsetTimestamp = (text, time) => {
try {
return text + this.setBrowserOffset(time)
} catch (error) {
return ''
}
}

this.scope.loadCharts = (id) => {
setTimeout(() => {
const chart = new Chart(document.getElementById(id),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,79 +52,78 @@
<div class="layout-column md-padding wz-width-25" ng-repeat="policy in configAssess">
<span class="wz-headline-title">{{policy.name}}</span>
<md-divider class="wz-margin-top-10"></md-divider>
<canvas id="{{policy.policy_id}}" class=" wz-margin-top-10 chart chart-doughnut" ng-init="loadCharts(policy)" height="150">
<canvas id="{{policy.policy_id}}" class=" wz-margin-top-10 chart chart-doughnut" ng-init="loadCharts(policy)"
height="150">
</div>
</div>
</div>
</div>

<div layout="row" class="wz-margin-top-10 wz-margin-right-8 wz-margin-left-8"
ng-if="showPolicies && (!agent || !agent.os)">
<div flex class="euiCallOut euiCallOut--warning">
<div class="euiCallOutHeader">
<svg class="euiIcon euiIcon--medium euiCallOutHeader__icon" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"
viewBox="0 0 16 16">
<defs>
<path id="help-a"
d="M13.6 12.186l-1.357-1.358c-.025-.025-.058-.034-.084-.056.53-.794.84-1.746.84-2.773a4.977 4.977 0 0 0-.84-2.772c.026-.02.059-.03.084-.056L13.6 3.813a6.96 6.96 0 0 1 0 8.373zM8 15A6.956 6.956 0 0 1 3.814 13.6l1.358-1.358c.025-.025.034-.057.055-.084C6.02 12.688 6.974 13 8 13a4.978 4.978 0 0 0 2.773-.84c.02.026.03.058.056.083l1.357 1.358A6.956 6.956 0 0 1 8 15zm-5.601-2.813a6.963 6.963 0 0 1 0-8.373l1.359 1.358c.024.025.057.035.084.056A4.97 4.97 0 0 0 3 8c0 1.027.31 1.98.842 2.773-.027.022-.06.031-.084.056l-1.36 1.358zm5.6-.187A4 4 0 1 1 8 4a4 4 0 0 1 0 8zM8 1c1.573 0 3.019.525 4.187 1.4l-1.357 1.358c-.025.025-.035.057-.056.084A4.979 4.979 0 0 0 8 3a4.979 4.979 0 0 0-2.773.842c-.021-.027-.03-.059-.055-.084L3.814 2.4A6.957 6.957 0 0 1 8 1zm0-1a8.001 8.001 0 1 0 .003 16.002A8.001 8.001 0 0 0 8 0z">
</path>
</defs>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#help-a" fill-rule="evenodd"></use>
</svg>
<span class="euiCallOutHeader__title">This agent is never connected.</span>
<div layout="row" class="wz-margin-top-10 wz-margin-right-8 wz-margin-left-8"
ng-if="showPolicies && (!agent || !agent.os)">
<div flex class="euiCallOut euiCallOut--warning">
<div class="euiCallOutHeader">
<svg class="euiIcon euiIcon--medium euiCallOutHeader__icon" aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"
viewBox="0 0 16 16">
<defs>
<path id="help-a"
d="M13.6 12.186l-1.357-1.358c-.025-.025-.058-.034-.084-.056.53-.794.84-1.746.84-2.773a4.977 4.977 0 0 0-.84-2.772c.026-.02.059-.03.084-.056L13.6 3.813a6.96 6.96 0 0 1 0 8.373zM8 15A6.956 6.956 0 0 1 3.814 13.6l1.358-1.358c.025-.025.034-.057.055-.084C6.02 12.688 6.974 13 8 13a4.978 4.978 0 0 0 2.773-.84c.02.026.03.058.056.083l1.357 1.358A6.956 6.956 0 0 1 8 15zm-5.601-2.813a6.963 6.963 0 0 1 0-8.373l1.359 1.358c.024.025.057.035.084.056A4.97 4.97 0 0 0 3 8c0 1.027.31 1.98.842 2.773-.027.022-.06.031-.084.056l-1.36 1.358zm5.6-.187A4 4 0 1 1 8 4a4 4 0 0 1 0 8zM8 1c1.573 0 3.019.525 4.187 1.4l-1.357 1.358c-.025.025-.035.057-.056.084A4.979 4.979 0 0 0 8 3a4.979 4.979 0 0 0-2.773.842c-.021-.027-.03-.059-.055-.084L3.814 2.4A6.957 6.957 0 0 1 8 1zm0-1a8.001 8.001 0 1 0 .003 16.002A8.001 8.001 0 0 0 8 0z">
</path>
</defs>
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#help-a" fill-rule="evenodd"></use>
</svg>
<span class="euiCallOutHeader__title">This agent is never connected.</span>
</div>
</div>
</div>
</div>

<div ng-if="configAssess.length" layout="row" class="wz-padding-top-0" ng-if="agent && agent.os">
<md-card flex="" class="wz-md-card _md flex">
<md-card-content>
<span class="wz-headline-title"><i class="fa fa-fw fa-shield"></i> Configuration assessment</span>
<md-divider class="wz-margin-top-10"></md-divider>
<table class="table table-condensed table-layout-fixed table-hover table-vertical-align-middle">
<thead>
<th class="wz-nowrap">Policy</th>
<th class="wz-nowrap">Description</th>
<th class="wz-nowrap">Last scan</th>
<th class="wz-nowrap">Pass</th>
<th class="wz-nowrap">Fail</th>
<th class="wz-nowrap">Not applicable</th>
<th class="wz-nowrap">Score</th>
</thead>
<tbody>
<tr class="wz-word-wrap" ng-repeat="policy in configAssess track by $index">
<td ng-click="loadPolicyChecks(policy.policy_id, policy.name)" class="wz-text-link cursor-pointer">
{{policy.name}}</td>
<td>{{policy.description}}</td>
<td>{{policy.end_scan}}</td>
<td>{{policy.pass}}</td>
<td>{{policy.fail}}</td>
<td>{{policy.invalid}}</td>
<td>{{policy.score}}%</td>
</tr>
</tbody>
</table>
</md-card-content>
</md-card>
</div>

<div ng-if="!configAssess.length" layout="row" class="wz-padding-top-0" ng-if="agent && agent.os">
<md-card flex="60" class="wz-md-card center">
<md-card-content class="wazuh-column">
<span class="wz-headline-title">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
No scans available.
<div ng-if="configAssess.length" layout="row" class="wz-padding-top-0" ng-if="agent && agent.os">
<md-card flex="" class="wz-md-card _md flex">
<md-card-content>
<span class="wz-headline-title"><i class="fa fa-fw fa-shield"></i> Configuration assessment</span>
<md-divider class="wz-margin-top-10"></md-divider>
<button class="btn wz-button-empty wz-margin-top-15" ng-click="refreshScans()" aria-label="Refresh">
<wz-svg icon="refresh"></wz-svg>
&nbsp;Refresh
</button>
</span>
</md-card-content>
</md-card>
</div>
<table class="table table-condensed table-layout-fixed table-hover table-vertical-align-middle">
<thead>
<th class="wz-nowrap">Policy</th>
<th class="wz-nowrap">Description</th>
<th class="wz-nowrap">Last scan</th>
<th class="wz-nowrap">Pass</th>
<th class="wz-nowrap">Fail</th>
<th class="wz-nowrap">Not applicable</th>
<th class="wz-nowrap">Score</th>
</thead>
<tbody>
<tr class="wz-word-wrap" ng-repeat="policy in configAssess track by $index">
<td ng-click="loadPolicyChecks(policy.policy_id, policy.name)" class="wz-text-link cursor-pointer">
{{policy.name}}</td>
<td>{{policy.description}}</td>
<td>{{policy.end_scan}}</td>
<td>{{policy.pass}}</td>
<td>{{policy.fail}}</td>
<td>{{policy.invalid}}</td>
<td>{{policy.score}}%</td>
</tr>
</tbody>
</table>
</md-card-content>
</md-card>
</div>

<div ng-if="!configAssess.length" layout="row" class="wz-padding-top-0" ng-if="agent && agent.os">
<md-card flex="60" class="wz-md-card center">
<md-card-content class="wazuh-column">
<span class="wz-headline-title">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
No scans available.
<md-divider class="wz-margin-top-10"></md-divider>
<button class="btn wz-button-empty wz-margin-top-15" ng-click="refreshScans()" aria-label="Refresh">
<wz-svg icon="refresh"></wz-svg>
&nbsp;Refresh
</button>
</span>
</md-card-content>
</md-card>
</div>
</div>

<!-- Policies checks table -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ define([
$tableFilterService,
reportingEnabled,
BASE_URL,
extensions
extensions,
$dateDiffService
) {
this.urlTokenModel = $urlTokenModel
this.rootScope = $rootScope
Expand All @@ -60,7 +61,17 @@ define([
this.configAssess = configAssess
this.notification = $notificationService
this.api = $currentDataService.getApi()
this.setBrowserOffset = $dateDiffService.setBrowserOffset
this.csvReq = $csvRequestService

this.scope.offsetTimestamp = (text, time) => {
try {
return text + this.setBrowserOffset(time)
} catch (error) {
return ''
}
}

this.wzTableFilter = $tableFilterService
this.baseUrl = BASE_URL
this.scope.noScansPng = `${
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<md-card flex class="wz-md-card">
<md-card-content>
<span class="wz-headline-title"><i class="fa fa-fw fa-cubes"></i> Packages</span>
<span class="color-grey pull-right">Last scan: {{syscollector.packagesDate}}</span>
<span class="color-grey pull-right">Last scan: {{setBrowserOffset(syscollector.packagesDate)}}</span>
<md-divider class="wz-margin-top-10"></md-divider>
<div layout="row" class="wz-margin-top-10">
<label class="wz-icon-loupe" style="margin-bottom: -16px;">
Expand Down Expand Up @@ -113,7 +113,7 @@
<md-card flex class="wz-md-card">
<md-card-content>
<span class="wz-headline-title"><i class="fa fa-fw fa-terminal"></i> Processes</span>
<span class="color-grey pull-right">Last scan: {{syscollector.processesDate}}</span>
<span class="color-grey pull-right">Last scan: {{setBrowserOffset(syscollector.processesDate)}}</span>
<md-divider class="wz-margin-top-10"></md-divider>
<div layout="row" class="wz-margin-top-10">
<label class="wz-icon-loupe" style="margin-bottom: -16px;">
Expand Down Expand Up @@ -151,7 +151,7 @@
</md-card-content>
<md-card-content ng-if="syscollector.netiface && syscollector.netiface.items.length">
<span class="wz-headline-title"><i class="fa fa-fw fa-sitemap"></i> Network interfaces</span>
<span class="color-grey pull-right">Last scan: {{syscollector.netiface.items[0].scan.time}}</span>
<span class="color-grey pull-right">Last scan: {{setBrowserOffset(syscollector.netiface.items[0].scan.time)}}</span>
<md-divider class="wz-margin-top-10"></md-divider>

<table class="table table-striped table-condensed table-layout-fixed">
Expand Down Expand Up @@ -199,7 +199,7 @@
</md-card-content>
<md-card-content class="wz-margin-bottom-40-inv" ng-if="syscollector.ports && syscollector.ports.items.length">
<span class="wz-headline-title"><i class="fa fa-fw fa-exchange"></i> Network ports</span>
<span class="color-grey pull-right">Last scan: {{syscollector.ports.items[0].scan.time}}</span>
<span class="color-grey pull-right">Last scan: {{setBrowserOffset(syscollector.ports.items[0].scan_time)}}</span>
<md-divider class="wz-margin-top-10"></md-divider>
<wazuh-table flex ng-if="agent && agent.os && agent.os.platform === 'windows'" path="'/syscollector/' + agent.id + '/ports'"
row-sizes="[4]" keys="[{value:'process',nosortable:true},{value:'local.ip',nosortable:true}, {value:'local.port',nosortable:true},'state','protocol']">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ define(['../../module', 'FileSaver'], function(module) {
$reportingService,
reportingEnabled,
$currentDataService,
$csvRequestService
$csvRequestService,
$dateDiffService
) {
this.scope = $scope
this.scope.reportingEnabled = reportingEnabled
Expand All @@ -48,6 +49,7 @@ define(['../../module', 'FileSaver'], function(module) {
this.reportingService = $reportingService
this.api = $currentDataService.getApi()
this.csvReq = $csvRequestService
this.setBrowserOffset = $dateDiffService.setBrowserOffset
}

/**
Expand All @@ -64,6 +66,7 @@ define(['../../module', 'FileSaver'], function(module) {
*/
$onInit() {
try {
this.setBrowserOffset("2019/04/24 10:59:03")
this.scope.downloadCsv = (path, name) => this.downloadCsv(path, name)
this.scope.hasSize = obj =>
obj && typeof obj === 'object' && Object.keys(obj).length
Expand Down Expand Up @@ -116,6 +119,8 @@ define(['../../module', 'FileSaver'], function(module) {
this.scope.loadingReporting = data.status
})

this.scope.setBrowserOffset = date => this.setBrowserOffset(date)

return
} catch (error) {
this.notification.showErrorToast(error.message || error)
Expand Down Expand Up @@ -162,7 +167,8 @@ define(['../../module', 'FileSaver'], function(module) {
? this.processesDate.items[0].scan_time
: 'Unknown'
}
if (!this.scope.$$phase) this.scope.$digest()
console.log("tss ", this.scope.syscollector)
this.scope.$applyAsync()
return
} catch (error) {
throw new Error(error.message || error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Find more information about this on the LICENSE file.
*/

define(['../../module'], function(app) {
define(['../../module'], function (app) {
'use strict'

class AgentsOverview {
Expand Down Expand Up @@ -72,27 +72,27 @@ define(['../../module'], function(app) {

this.scope.agentOS =
this.scope.agent &&
this.scope.agent.os &&
this.scope.agent.os.name &&
this.scope.agent.os.codename &&
this.scope.agent.os.version
this.scope.agent.os &&
this.scope.agent.os.name &&
this.scope.agent.os.codename &&
this.scope.agent.os.version
? `${this.scope.agent.os.name || '-'} ${this.scope.agent.os
.codename || '-'} ${this.scope.agent.os.version || '-'}`
.codename || '-'} ${this.scope.agent.os.version || '-'}`
: 'Unknown'

this.scope.syscheck =
this.agent.length > 0 &&
typeof this.agent[1] === 'object' &&
typeof this.agent[1].data === 'object' &&
!this.agent[1].data.error
typeof this.agent[1] === 'object' &&
typeof this.agent[1].data === 'object' &&
!this.agent[1].data.error
? this.agent[1].data.data
: (this.scope.syscheck = { start: 'Unknown', end: 'Unknown' })
this.scope.id = this.stateParams.id
this.scope.rootcheck =
this.agent.length > 1 &&
typeof this.agent[2] === 'object' &&
typeof this.agent[2].data === 'object' &&
!this.agent[2].data.error
typeof this.agent[2] === 'object' &&
typeof this.agent[2].data === 'object' &&
!this.agent[2].data.error
? this.agent[2].data.data
: { start: 'Unknown', end: 'Unknown' }
if (!this.scope.agent.error) {
Expand Down Expand Up @@ -150,6 +150,15 @@ define(['../../module'], function(app) {
: group
}


this.scope.offsetTimestamp = (text, time) => {
try {
return text + this.dateDiffService.setBrowserOffset(time)
} catch (error) {
return ''
}
}

this.scope.cancelAddGroup = () =>
(this.scope.addingGroupToAgent = false)

Expand All @@ -171,7 +180,7 @@ define(['../../module'], function(app) {
this.scope.editGroup = false
this.notification.showSuccessToast(
`Agent ${this.scope.agent.name}(${
this.scope.agent.id
this.scope.agent.id
}) has been added to group ${group}.`
)
if (!this.scope.$$phase) this.scope.$digest()
Expand Down
Loading