From 7bfcb1caffbb3f635d737c40bd6b6d73731c8e75 Mon Sep 17 00:00:00 2001
From: "R. Miles McCain"
Date: Tue, 28 Apr 2020 10:15:35 -0400
Subject: [PATCH 1/7] Add reference to a17t
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 626edd0..246240e 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
Getting started ยป
- Screenshots • Features • Roadmap
+ Screenshots • Features • Design
@@ -39,6 +39,8 @@ _A real service page, where you can see higher-level details about a site._
Not shown: management view, session view, full service view. (You'll need to install Shynet for yourself to see those!)
+> **Shynet is built using [a17t](https://github.com/milesmcc/a17t),** an atomic design library. Customization and extension is simple; [learn more about a17t](https://github.com/milesmcc/a17t).
+
## Features
#### Architecture
From 3c74331a74194cdd34559595045befc46131df2a Mon Sep 17 00:00:00 2001
From: "R. Miles McCain"
Date: Tue, 28 Apr 2020 10:18:43 -0400
Subject: [PATCH 2/7] Fix x-padding on smaller screen sizes (fixes #7)
---
shynet/dashboard/templates/base.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shynet/dashboard/templates/base.html b/shynet/dashboard/templates/base.html
index 282ac69..f32caa4 100644
--- a/shynet/dashboard/templates/base.html
+++ b/shynet/dashboard/templates/base.html
@@ -20,8 +20,8 @@
{% block body %}
-
-
+
+
From dd6a9d1eaf331e6fb762a717a25144ef06359fea Mon Sep 17 00:00:00 2001
From: "R. Miles McCain"
Date: Tue, 28 Apr 2020 10:19:05 -0400
Subject: [PATCH 3/7] Bump version
---
shynet/shynet/settings.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shynet/shynet/settings.py b/shynet/shynet/settings.py
index 413cad4..531a40c 100644
--- a/shynet/shynet/settings.py
+++ b/shynet/shynet/settings.py
@@ -14,7 +14,7 @@ import os
from django.contrib.messages import constants as messages
# Increment on new releases
-VERSION = "v0.2.1"
+VERSION = "v0.2.2"
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
From 73dad4cb6b65e1b49e05120f861d5796bd7b16d9 Mon Sep 17 00:00:00 2001
From: 0xflotus <0xflotus@gmail.com>
Date: Tue, 28 Apr 2020 16:53:35 +0200
Subject: [PATCH 4/7] Add syntax highlighting to GUIDE.md (#10)
I enabled Syntax Highlighting in GUIDE.md for better readability
---
GUIDE.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/GUIDE.md b/GUIDE.md
index 8763768..9cf2a05 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -31,7 +31,7 @@ Before continuing, please be sure to have the latest version of Docker installed
3. Configure an environment file for Shynet. (For example, create a file called `.env`.) Be sure to swap out the variables below with the correct values for your setup. (The comments refer to the lines that follow. Note that Docker is weird with quotes, so it tends to be better to omit them from your env file.)
-```
+```properties
# Database
DB_NAME=
DB_USER=
@@ -58,7 +58,7 @@ SCRIPT_USE_HTTPS=True
For more advanced deployments, you may consider adding the following settings to your environment file. **The following settings are optional, and not required for simple deployments.**
-```env
+```properties
# Email settings
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
@@ -129,7 +129,7 @@ If you are going to be running Shynet through a reverse proxy, please use the [B
8. Configure an environment file for Shynet. (For example, create a file called `.env`.) Be sure to swap out the variables below with the correct values for your setup. (The comments refer to the lines that follow. Note that Docker is weird with quotes, so it tends to be better to omit them from your env file.)
-```
+```properties
# Database
DB_NAME=
DB_USER=
@@ -156,7 +156,7 @@ SCRIPT_USE_HTTPS=True
For more advanced deployments, you may consider adding the following settings to your environment file. **The following settings are optional, and not required for simple deployments.**
-```env
+```properties
# Email settings
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
@@ -196,4 +196,4 @@ ONLY_SUPERUSERS_CREATE=False
---
-**Next steps:** while out of the scope of this short guide, next steps include setting up Shynet behind a reverse proxy (be it your own [Nginx server](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) or [Cloudflare](https://cloudflare.com)), making it run in the background, and integrating it on your sites. Integration instructions are available on each service's management page.
\ No newline at end of file
+**Next steps:** while out of the scope of this short guide, next steps include setting up Shynet behind a reverse proxy (be it your own [Nginx server](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) or [Cloudflare](https://cloudflare.com)), making it run in the background, and integrating it on your sites. Integration instructions are available on each service's management page.
From 653594ca486bfc6a8ade9b40464301a45e8c0385 Mon Sep 17 00:00:00 2001
From: "R. Miles McCain"
Date: Tue, 28 Apr 2020 10:57:46 -0400
Subject: [PATCH 5/7] Update roadmap section (mention 2FA, see #2)
---
README.md | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 246240e..42d7f91 100644
--- a/README.md
+++ b/README.md
@@ -103,14 +103,7 @@ You can find installation instructions in the [Getting Started Guide](GUIDE.md#i
## Roadmap
-The following features are planned:
-
-* **Rollups** (aggregate old data to save space)
-* **Anomaly detection** (get email alerts when you get a traffic spike or dip)
-* **Interactive traffic heatmap** (see where in the world your visitors are coming from)
-* **Better collaboration interface** (the current interface is... a draft)
-* **Data deletion tool** (easily prune user data by specifying an ID or IP)
-* **Differential privacy** (explore and share your data without revealing any personal information)
+To see the upcoming planned features, check out the repository's [roadmap project](https://github.com/milesmcc/shynet/projects/1). Upcoming features include data aggregation through rollups, anomaly detection, detailed data exports, two-factor authentication, and a data deletion tool.
## In the Wild
From bb1860b5c86147fbc6729d173df31d55a7be1fbe Mon Sep 17 00:00:00 2001
From: "R. Miles McCain"
Date: Tue, 28 Apr 2020 11:02:20 -0400
Subject: [PATCH 6/7] Add code of conduct
---
CODE_OF_CONDUCT.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 76 insertions(+)
create mode 100644 CODE_OF_CONDUCT.md
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..6bae9a4
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,76 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, sex characteristics, gender identity and expression,
+level of experience, education, socio-economic status, nationality, personal
+appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or
+reject comments, commits, code, wiki edits, issues, and other contributions
+that are not aligned to this Code of Conduct, or to ban temporarily or
+permanently any contributor for other behaviors that they deem inappropriate,
+threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by contacting the project team at shynet@sendmiles.email. All
+complaints will be reviewed and investigated and will result in a response that
+is deemed necessary and appropriate to the circumstances. The project team is
+obligated to maintain confidentiality with regard to the reporter of an incident.
+Further details of specific enforcement policies may be posted separately.
+
+Project maintainers who do not follow or enforce the Code of Conduct in good
+faith may face temporary or permanent repercussions as determined by other
+members of the project's leadership.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
+available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
+
+[homepage]: https://www.contributor-covenant.org
+
+For answers to common questions about this code of conduct, see
+https://www.contributor-covenant.org/faq
From c896a4c15003a7a3574fa0206cef21ba5640b189 Mon Sep 17 00:00:00 2001
From: "R. Miles McCain"
Date: Tue, 28 Apr 2020 11:03:51 -0400
Subject: [PATCH 7/7] Mention CoC in README
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 42d7f91..df2c8b5 100644
--- a/README.md
+++ b/README.md
@@ -111,7 +111,7 @@ These sites use Shynet to monitor usage without violating visitors' privacy: [Po
## Contributing
-Are you interested in contributing to Shynet? Just send a pull request! Maybe once the project matures there will be more detailed contribution guidelines, but for now just send the code this way. Just know that by contributing, you agree to share all of your contributions under the same license as the project (see [LICENSE](LICENSE)).
+Are you interested in contributing to Shynet? Just send a pull request! Maybe once the project matures there will be more detailed contribution guidelines, but for now just send the code this way and we'll make sure it meets our standards together. Just know that by contributing, you agree to share all of your contributions under the same license as the project (see [LICENSE](LICENSE)). And always be sure to follow the [Code of Conduct](https://github.com/milesmcc/shynet/blob/master/CODE_OF_CONDUCT.md).
## License