--
cgit v1.2.3
From e1cd1214ac54473634707fb558a889f89a917501 Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Mon, 12 Oct 2020 01:49:15 +0100
Subject: Make dark blue darker to separate from blurple
---
pydis_site/static/css/home/timeline.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pydis_site/static/css/home/timeline.css b/pydis_site/static/css/home/timeline.css
index 13a6e0ca..e7e0b264 100644
--- a/pydis_site/static/css/home/timeline.css
+++ b/pydis_site/static/css/home/timeline.css
@@ -58,7 +58,7 @@ button, input, textarea, select {
}
.pastel-dark-blue {
- background-color: #6982FF !important;
+ background-color: #576297 !important;
}
.video-container {
--
cgit v1.2.3
From 96860be9cbe6d3dba680e8ef9ac9db410bfd8e19 Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Mon, 12 Oct 2020 01:49:54 +0100
Subject: Fix line endings
---
pydis_site/static/images/timeline/cd-icon-picture.svg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pydis_site/static/images/timeline/cd-icon-picture.svg b/pydis_site/static/images/timeline/cd-icon-picture.svg
index c2e297ac..015718a8 100755
--- a/pydis_site/static/images/timeline/cd-icon-picture.svg
+++ b/pydis_site/static/images/timeline/cd-icon-picture.svg
@@ -69,4 +69,4 @@
id="path6014"
inkscape:label="lower_snake"
inkscape:connector-curvature="0"
- style="fill:#ffffff" />
\ No newline at end of file
+ style="fill:#ffffff" />
--
cgit v1.2.3
From 924f54a83246fa0ec201daac0b391a2f59fe9aff Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Mon, 12 Oct 2020 09:52:11 +0100
Subject: Align server icons better
---
pydis_site/static/css/home/timeline.css | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/pydis_site/static/css/home/timeline.css b/pydis_site/static/css/home/timeline.css
index e7e0b264..fd364d38 100644
--- a/pydis_site/static/css/home/timeline.css
+++ b/pydis_site/static/css/home/timeline.css
@@ -3510,8 +3510,19 @@ mark {
}
.cd-timeline__img img {
- width: 30px;
- height: 30px;
+ width: 50px;
+ height: 50px;
+ margin-left: 2px;
+ margin-top: 2px;
+}
+
+@media (max-width: 64rem) {
+ .cd-timeline__img img {
+ width: 30px;
+ height: 30px;
+ margin-left: 2px;
+ margin-top: 2px;
+ }
}
@media (min-width: 64rem) {
--
cgit v1.2.3
From 26274d5e5ca61237158d35feb77e99f02f9495d2 Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Mon, 12 Oct 2020 10:39:16 +0100
Subject: Update font sizing
Co-authored-by: scragly <29337040+scragly@users.noreply.github.com>
---
pydis_site/static/css/home/timeline.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pydis_site/static/css/home/timeline.css b/pydis_site/static/css/home/timeline.css
index fd364d38..73698c7c 100644
--- a/pydis_site/static/css/home/timeline.css
+++ b/pydis_site/static/css/home/timeline.css
@@ -3594,7 +3594,7 @@ mark {
flex-grow: 0;
will-change: transform;
margin: 0;
- font-size: 0.8em;
+ font-size: 0.9em;
--line-height-multiplier: 1.2
}
.cd-timeline__content::before {
--
cgit v1.2.3
From 730efe6cff7b61610d97bc6d3401acf5617bd17b Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Sun, 18 Oct 2020 19:38:32 +0100
Subject: Exclude deleted messages from total message count
---
pydis_site/apps/api/models/bot/metricity.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py
index 25b42fa2..cdfbb499 100644
--- a/pydis_site/apps/api/models/bot/metricity.py
+++ b/pydis_site/apps/api/models/bot/metricity.py
@@ -33,7 +33,7 @@ class Metricity:
def total_messages(self, user_id: str) -> int:
"""Query total number of messages for a user."""
- self.cursor.execute("SELECT COUNT(*) FROM messages WHERE author_id = '%s'", [user_id])
+ self.cursor.execute("SELECT COUNT(*) FROM messages WHERE author_id = '%s' AND NOT is_deleted", [user_id])
values = self.cursor.fetchone()
if not values:
--
cgit v1.2.3
From d0853d28b34789756d03f414dc33fa84bc774142 Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Sun, 18 Oct 2020 19:42:39 +0100
Subject: Split query into multiple lines for total messages
---
pydis_site/apps/api/models/bot/metricity.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/pydis_site/apps/api/models/bot/metricity.py b/pydis_site/apps/api/models/bot/metricity.py
index cdfbb499..eed1deb4 100644
--- a/pydis_site/apps/api/models/bot/metricity.py
+++ b/pydis_site/apps/api/models/bot/metricity.py
@@ -33,7 +33,10 @@ class Metricity:
def total_messages(self, user_id: str) -> int:
"""Query total number of messages for a user."""
- self.cursor.execute("SELECT COUNT(*) FROM messages WHERE author_id = '%s' AND NOT is_deleted", [user_id])
+ self.cursor.execute(
+ "SELECT COUNT(*) FROM messages WHERE author_id = '%s' AND NOT is_deleted",
+ [user_id]
+ )
values = self.cursor.fetchone()
if not values:
--
cgit v1.2.3
From ecdd657f92feab725833a5a2a09bd8df6d0d6499 Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Sun, 18 Oct 2020 21:05:56 +0100
Subject: Increase harakiri timeout
---
docker/uwsgi.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker/uwsgi.ini b/docker/uwsgi.ini
index 3f35258c..643a0b42 100644
--- a/docker/uwsgi.ini
+++ b/docker/uwsgi.ini
@@ -23,7 +23,7 @@ procname-prefix-spaced = pydis_site :
### Worker options
# Kill workers if they take more than 30 seconds to respond.
-harakiri = 30
+harakiri = 300
### Startup settings
# Exit if we can't load the app
--
cgit v1.2.3
From b53ac936d947ffed135bf5ebde50e043a56adbb2 Mon Sep 17 00:00:00 2001
From: scragly <29337040+scragly@users.noreply.github.com>
Date: Mon, 19 Oct 2020 22:25:02 +1000
Subject: Allow requesting API data from internal DNS
---
pydis_site/settings.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 1ae97b86..2b9f77fb 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -80,6 +80,7 @@ else:
'api.pydis.com',
'admin.pydis.com',
'staff.pydis.com',
+ 'api.site',
]
)
SECRET_KEY = env('SECRET_KEY')
--
cgit v1.2.3
From 2845c8f553a837c1aaaf1cd016036cfcc9d7be62 Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Wed, 21 Oct 2020 23:03:15 +0100
Subject: Reset harakiri timeout
---
docker/uwsgi.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker/uwsgi.ini b/docker/uwsgi.ini
index 643a0b42..3f35258c 100644
--- a/docker/uwsgi.ini
+++ b/docker/uwsgi.ini
@@ -23,7 +23,7 @@ procname-prefix-spaced = pydis_site :
### Worker options
# Kill workers if they take more than 30 seconds to respond.
-harakiri = 300
+harakiri = 30
### Startup settings
# Exit if we can't load the app
--
cgit v1.2.3
From 2d7f789652216f9684c6cd7ee85854f0bfb1af0b Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Thu, 22 Oct 2020 00:49:18 +0100
Subject: Fix some icon sizing in timeline CSS
---
pydis_site/static/css/home/timeline.css | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/pydis_site/static/css/home/timeline.css b/pydis_site/static/css/home/timeline.css
index 73698c7c..07e17e15 100644
--- a/pydis_site/static/css/home/timeline.css
+++ b/pydis_site/static/css/home/timeline.css
@@ -3497,8 +3497,8 @@ mark {
align-items: center;
-ms-flex-negative: 0;
flex-shrink: 0;
- width: 40px;
- height: 40px;
+ width: 30px;
+ height: 30px;
border-radius: 50%;
box-shadow: 0 0 0 4px hsl(0, 0%, 100%), inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
box-shadow: 0 0 0 4px var(--color-white), inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05)
@@ -3509,17 +3509,23 @@ mark {
color: white;
}
+@media (max-width: 64rem) {
+ .cd-timeline__img i {
+ font-size: 0.9em;
+ }
+}
+
.cd-timeline__img img {
- width: 50px;
- height: 50px;
+ width: 40px;
+ height: 40px;
margin-left: 2px;
margin-top: 2px;
}
@media (max-width: 64rem) {
.cd-timeline__img img {
- width: 30px;
- height: 30px;
+ width: 20px;
+ height: 20px;
margin-left: 2px;
margin-top: 2px;
}
@@ -3532,7 +3538,7 @@ mark {
-ms-flex-order: 1;
order: 1;
margin-left: calc(5% - 30px);
- will-change: transform
+ will-change: transform;
}
.cd-timeline__block:nth-child(even) .cd-timeline__img {
--
cgit v1.2.3
From fd0dbb28ab5e3c25332edc1f494a19f9d40ae79a Mon Sep 17 00:00:00 2001
From: Joe Banks
Date: Thu, 22 Oct 2020 00:49:33 +0100
Subject: Add Core Dev Q&A to timeline
---
pydis_site/templates/home/timeline.html | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/pydis_site/templates/home/timeline.html b/pydis_site/templates/home/timeline.html
index 5c71f3a7..ce25b139 100644
--- a/pydis_site/templates/home/timeline.html
+++ b/pydis_site/templates/home/timeline.html
@@ -478,6 +478,25 @@