Last active 6 months ago


Last active 11 months ago
View more

Recent activity

[PATCH nix-configs] Update hyperlink to m7.rs in README a month ago

From Ersei Saggi to ~misterio/public-inbox

This is because sourcehut misrendered the link to include the trailing
parenthesis and caused the link to point to "https://m7.rs)" instead of
m7.rs proper.
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index fc2e2dca..723b16e5 100644
--- a/README.md
+++ b/README.md
@@ -118,7 +118,7 @@ Some of the services I host:
- navidrome
- deluge
[message trimmed]

Re: [PATCH core.sr.ht] Do not inject dir=auto using BeautifulSoup 2 months ago

From Ersei Saggi to ~sircmpwn/sr.ht-dev

I'll go and send v2 patches for those eventually (after break). As for
the files, that's certainly going to be interesting. I think that the
files should remain as LTR? If we use dir=auto on the file display view,
then it would mess with the column limit bar.

I don't think there's an elegant way to do this, as W3C didn't envision
a way to have dir=auto propagate to every element. Running the auto
direction code would be best done client-side, but I doubt that is in
line with Sourcehut's ethos.

I'll have to identify all elements in the templates that render
user-controlled text and insert dir=auto for those. As for the files, I
think they should remain LTR for now until a solution can be found for
the column limits.

[PATCH v3 git.sr.ht] Improve performance in rendering large files by 90% 2 months ago

From Ersei Saggi to ~sircmpwn/sr.ht-dev

In conjunction with the rest of the patches, and the patch that removes
the beautifulsoup integration that sets dir="auto" programmatically,
rendering files with many lines on Sourcehut will go from ~4.5 seconds
to ~300ms (the 4.5 seconds was reduced from 6.5 before my patch that
improves template rendering).

This patch depends on:

The following patches depend on the patch above:
[message trimmed]

[PATCH paste.sr.ht] Switch to dir="auto" and improve performance on file renderer 2 months ago

From Ersei Saggi to ~sircmpwn/sr.ht-dev

Same changes from the patches sent to git.sr.ht with an external line
counter and other small changes as well as a 512KB limit on file sizes
being rendered
 pastesrht/blueprints/public.py     |  8 +++++++-
 pastesrht/templates/new-paste.html |  2 ++
 pastesrht/templates/paste.html     | 30 +++++++++++++++++++++++++-----
 pastesrht/templates/pastes.html    |  1 +
 4 files changed, 35 insertions(+), 6 deletions(-)

diff --git a/pastesrht/blueprints/public.py b/pastesrht/blueprints/public.py
index 08debee..497914e 100644
--- a/pastesrht/blueprints/public.py
+++ b/pastesrht/blueprints/public.py
[message trimmed]

[PATCH builds.sr.ht] Use dir="auto" 2 months ago

From Ersei Saggi to ~sircmpwn/sr.ht-dev

 buildsrht/templates/jobs.html         | 1 +
 buildsrht/templates/secret_share.html | 1 +
 buildsrht/templates/secrets.html      | 2 ++
 3 files changed, 4 insertions(+)

diff --git a/buildsrht/templates/jobs.html b/buildsrht/templates/jobs.html
index 1d5496a..a6fe69b 100644
--- a/buildsrht/templates/jobs.html
@@ -25,6 +25,7 @@
[message trimmed]

[PATCH lists.sr.ht] Use dir="auto" 2 months ago

From Ersei Saggi to ~sircmpwn/sr.ht-dev

 listssrht/templates/archive.html         | 1 +
 listssrht/templates/create-mirror.html   | 3 +++
 listssrht/templates/create.html          | 2 ++
 listssrht/templates/settings-access.html | 1 +
 listssrht/templates/settings-info.html   | 2 ++
 listssrht/templates/user-lists.html      | 1 +
 6 files changed, 10 insertions(+)

diff --git a/listssrht/templates/archive.html b/listssrht/templates/archive.html
index 95c934e..d8fd2ac 100644
--- a/listssrht/templates/archive.html
+++ b/listssrht/templates/archive.html
@@ -127,6 +127,7 @@
[message trimmed]

[PATCH man.sr.ht] Set dir=auto on text inputs 2 months ago

From Ersei Saggi to ~sircmpwn/sr.ht-dev

 mansrht/templates/create.html | 1 +
 mansrht/templates/select.html | 1 +
 mansrht/templates/user.html   | 1 +
 3 files changed, 3 insertions(+)

diff --git a/mansrht/templates/create.html b/mansrht/templates/create.html
index 6bc8132..adb86d3 100644
--- a/mansrht/templates/create.html
+++ b/mansrht/templates/create.html
@@ -17,6 +17,7 @@
          <label for="name">Name</label>
[message trimmed]