update docs

This commit is contained in:
Giuliano Bellini s294739 2023-06-08 12:05:22 +02:00
parent cda7894394
commit e74e6ec765
5 changed files with 39 additions and 22 deletions

View file

@ -5,14 +5,29 @@ All Sniffnet releases with the relative changes are documented in this file.
## [1.2.1] - 2023-06-xx
- Considerably improved the app packaging strategy (see [#246](https://github.com/GyulyVGC/sniffnet/pull/246) for more details), fixing various related issues ([#199](https://github.com/GyulyVGC/sniffnet/issues/199), [#220](https://github.com/GyulyVGC/sniffnet/issues/220), [#223](https://github.com/GyulyVGC/sniffnet/issues/223), [#224](https://github.com/GyulyVGC/sniffnet/issues/224), [#225](https://github.com/GyulyVGC/sniffnet/issues/225), [#242](https://github.com/GyulyVGC/sniffnet/issues/242))
- Considerably refined the app packaging strategy (see [#246](https://github.com/GyulyVGC/sniffnet/pull/246) for more details), fixing various related issues ([#199](https://github.com/GyulyVGC/sniffnet/issues/199), [#220](https://github.com/GyulyVGC/sniffnet/issues/220), [#223](https://github.com/GyulyVGC/sniffnet/issues/223), [#224](https://github.com/GyulyVGC/sniffnet/issues/224), [#225](https://github.com/GyulyVGC/sniffnet/issues/225), [#242](https://github.com/GyulyVGC/sniffnet/issues/242))
- Added button to clear all the current search filters quickly in inspect page
- Added Swedish translation 🇸🇪 ([#213](https://github.com/GyulyVGC/sniffnet/pull/213))
- Updated existing translations to v1.2 (German - [#191](https://github.com/GyulyVGC/sniffnet/pull/191), Spanish - [#203](https://github.com/GyulyVGC/sniffnet/pull/203), Persian - [#193](https://github.com/GyulyVGC/sniffnet/pull/193), Korean - [#205](https://github.com/GyulyVGC/sniffnet/pull/205), Polish - [#244](https://github.com/GyulyVGC/sniffnet/pull/244), Romanian - [#241](https://github.com/GyulyVGC/sniffnet/pull/241), Russian - [#187](https://github.com/GyulyVGC/sniffnet/pull/187), Turkish - [#192](https://github.com/GyulyVGC/sniffnet/pull/192), Ukrainian - [#216](https://github.com/GyulyVGC/sniffnet/pull/216), and Chinese - [#214](https://github.com/GyulyVGC/sniffnet/pull/214))
- Updated most of the existing translations to v1.2:
- German - [#191](https://github.com/GyulyVGC/sniffnet/pull/191)
- Spanish - [#203](https://github.com/GyulyVGC/sniffnet/pull/203)
- Persian - [#193](https://github.com/GyulyVGC/sniffnet/pull/193)
- Korean - [#205](https://github.com/GyulyVGC/sniffnet/pull/205)
- Polish - [#244](https://github.com/GyulyVGC/sniffnet/pull/244)
- Romanian - [#241](https://github.com/GyulyVGC/sniffnet/pull/241)
- Russian - [#187](https://github.com/GyulyVGC/sniffnet/pull/187)
- Turkish - [#192](https://github.com/GyulyVGC/sniffnet/pull/192)
- Ukrainian - [#216](https://github.com/GyulyVGC/sniffnet/pull/216)
- Chinese - [#214](https://github.com/GyulyVGC/sniffnet/pull/214)
- Renamed "Administrative entity" to "Autonomous System name" to avoid confusion
- Improved filter columns relative width to avoid the "Application protocol" label being cut when displayed in Swedish
- Footer URLs have been updated to include links to Sniffnet's official website and GitHub Sponsor page
- Updated docs including installation instruction for Aarch Linux ([#185](https://github.com/GyulyVGC/sniffnet/pull/185))
- Minor improvements to code readability ([#248](https://github.com/GyulyVGC/sniffnet/pull/248)) and docs (([#235](https://github.com/GyulyVGC/sniffnet/pull/235)))
- Minor improvements to packets and bytes number format
- Minor improvements to:
- code readability ([#248](https://github.com/GyulyVGC/sniffnet/pull/248))
- docs ([#235](https://github.com/GyulyVGC/sniffnet/pull/235))
- Solved a minor problem that caused flags to be slightly misaligned in inspect page table
## [1.2.0] - 2023-05-18

View file

@ -64,9 +64,9 @@ You can install Sniffnet in one of the following ways:
<summary>from GitHub releases&ensp;<img alt="" src="https://img.shields.io/github/downloads/gyulyvgc/sniffnet/total?color=success&logo=github"/></summary>
You can install Sniffnet through the installers available in the [latest release](https://github.com/GyulyVGC/sniffnet/releases). <br>
You can install Sniffnet through the installers available in the [latest release](https://github.com/GyulyVGC/sniffnet/releases/latest). <br>
Choose from a Windows installer, a macOS disk image, a DEB package, or an RPM package (depending on your operating system). <br>
Here for your convenience you can find the direct link to the downloads:
Below, for your convenience, you can find the direct link to the downloads.
### Windows

View file

@ -1,3 +1,10 @@
use iced::widget::Tooltip;
use iced::{Length, Renderer};
use iced_native::svg::Handle;
use iced_native::widget::tooltip::Position;
use iced_native::widget::Svg;
use maxminddb::{geoip2, MaxMindDBError, Reader};
use crate::countries::flags_pictures::{
AD, AE, AF, AG, AI, AL, AM, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI,
BJ, BL, BM, BN, BO, BQ, BR, BROADCAST, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK,
@ -22,12 +29,6 @@ use crate::translations::translations_2::{
local_translation, unknown_translation, your_network_adapter_translation,
};
use crate::{Language, StyleType};
use iced::widget::Tooltip;
use iced::{Length, Renderer};
use iced_native::svg::Handle;
use iced_native::widget::tooltip::Position;
use iced_native::widget::Svg;
use maxminddb::{geoip2, MaxMindDBError, Reader};
pub const COUNTRY_MMDB: &[u8] = include_bytes!("../../resources/DB/GeoLite2-Country.mmdb");

View file

@ -179,17 +179,17 @@ mod tests {
use super::*;
#[rstest]
#[case("123", BytesNotification {
#[case("123", BytesNotification {
previous_threshold: 123, threshold: Some(123), byte_multiple: ByteMultiple::B, ..BytesNotification::default() })]
#[case("500k", BytesNotification {
#[case("500k", BytesNotification {
previous_threshold: 500_000, threshold: Some(500_000),byte_multiple: ByteMultiple::KB, ..BytesNotification::default() })]
#[case("420 m", BytesNotification {
#[case("420 m", BytesNotification {
previous_threshold: 420_000_000, threshold: Some(420_000_000),byte_multiple: ByteMultiple::MB, ..BytesNotification::default() })]
#[case("foob@r", BytesNotification{
threshold: Some(800000),
..Default::default()
})]
#[case(" 888 g", BytesNotification {
#[case(" 888 g", BytesNotification {
previous_threshold: 888_000_000_000, threshold: Some(888_000_000_000),byte_multiple: ByteMultiple::GB, ..BytesNotification::default() })]
fn test_can_instantiate_bytes_notification_from_string(
#[case] input: &str,
@ -252,18 +252,18 @@ mod tests {
}
#[rstest]
#[case("123", PacketsNotification {
#[case("123", PacketsNotification {
previous_threshold: 123,
threshold: Some(123),
..PacketsNotification::default() })]
#[case("8888", PacketsNotification {
#[case("8888", PacketsNotification {
previous_threshold: 8888,
threshold: Some(8888),
..PacketsNotification::default() })]
#[case("420 m", PacketsNotification {
#[case("420 m", PacketsNotification {
threshold: Some(750),
..PacketsNotification::default() })]
#[case("foob@r", PacketsNotification {
#[case("foob@r", PacketsNotification {
threshold: Some(750),
..PacketsNotification::default() })]
fn test_can_instantiate_packet_notification_from_string(

View file

@ -1,11 +1,12 @@
use crate::countries::flags_pictures::{
CN, DE, ES, FLAGS_WIDTH_SMALL, FR, GB, GR, IR, IT, KR, PL, PT, RO, RU, SE, TR, UA,
};
use iced::{Length, Renderer};
use iced_native::svg::Handle;
use iced_native::widget::Svg;
use serde::{Deserialize, Serialize};
use crate::countries::flags_pictures::{
CN, DE, ES, FLAGS_WIDTH_SMALL, FR, GB, GR, IR, IT, KR, PL, PT, RO, RU, SE, TR, UA,
};
/// This enum defines the available languages.
#[derive(PartialEq, Eq, Clone, Copy, Debug, Serialize, Deserialize, Hash)]
pub enum Language {