diff --git a/CHANGELOG.md b/CHANGELOG.md index 52eeb33..66fbe2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,26 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -## [Unreleased] - [1.1.0] - 2021-08-21 +## [Unreleased] + +### Added + +- Add Follow Activity block type + +### Fixed + +- Fix Activiy type follow +- Fix Classification, Lowercase issues + +### Change + +- Change `Unlik` to `Unlike` +- Change key `timestamp` to `date` +- Chanage Icons, Colors of Classification func +- Change Displayed activities to all on latest activities + + +## [1.1.0] - 2021-08-27 ### Added diff --git a/package.json b/package.json index c48e7c8..76e6610 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "saferwall-ui", - "version": "1.0.0", + "version": "1.1.0", "private": true, "scripts": { "dev": "vue-cli-service serve", diff --git a/public/assets/icons/classification.svg b/public/assets/icons/classification.svg index db7b9a9..b6947cd 100644 --- a/public/assets/icons/classification.svg +++ b/public/assets/icons/classification.svg @@ -1,15 +1,15 @@ - - - - + + + + - - - + + + - - - - + + + + \ No newline at end of file diff --git a/src/common/classification.js b/src/common/classification.js index 6db72da..96d8d11 100644 --- a/src/common/classification.js +++ b/src/common/classification.js @@ -1,23 +1,23 @@ export const defaultclass = { title: 'Unknown', icon: 'unsafe', - color: 'yellow' + color: 'orange' } export const classes = { - 'Label.BENIGN': { + 'label.benign': { title: 'Benign', - icon: 'unsafe', - color: 'red' + icon: 'safe', + color: 'green' }, - 'Label.MALICIOUS': { + 'label.malicious': { title: 'Malicious', - icon: 'unsage', + icon: 'danger', color: 'red' }, } export const getClass = (c) => { - return classes[c] || defaultclass + return classes[(c + "").toLowerCase()] || defaultclass } diff --git a/src/common/components/LatestActivities.vue b/src/common/components/LatestActivities.vue index 2c20c24..28f5f1f 100644 --- a/src/common/components/LatestActivities.vue +++ b/src/common/components/LatestActivities.vue @@ -16,7 +16,7 @@ import ListActivities from "./ListActivities.vue"; export default { data: () => ({ activities: [], - paginator: new Paginator("users/activities"), + paginator: new Paginator("users/activities").setLimit(100), }), components: { ListActivities, @@ -34,7 +34,7 @@ export default { this.paginator.nextPage().then((data) => { if (data.items) this.activities = [...this.activities, ...data.items].filter( - (v, i, l) => l.indexOf(v) === i + (v, i, l) => l.filter((r) => r.id === v.id).length <= 1 ); }); }, diff --git a/src/common/components/elements/ActivityBlock.vue b/src/common/components/elements/ActivityBlock.vue index b963be6..6372b37 100644 --- a/src/common/components/elements/ActivityBlock.vue +++ b/src/common/components/elements/ActivityBlock.vue @@ -1,51 +1,40 @@