WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a479aa8

Browse files
committed
feat(deps): Update dependencies
This commit updates numerous project dependencies to their latest versions as reflected in the file. These updates bring in the latest features, bug fixes, and security patches from the respective libraries. Key updates include: - Django 5.1.2 -> 5.1.3 - celery 5.5.1 -> 5.5.2 - cryptography 44.1.0 -> 44.2.0 - djangorestframework 3.16.1 -> 3.16.2 - gunicorn 22.0.0 -> 23.0.0 - psycopg 3.2.3 -> 3.2.4 - ruff 0.14.2 -> 0.14.8 - sentry-sdk 2.42.1 -> 2.47.0 - seleniumbase 4.43.2 -> 4.44.20 - And many other packages. The and packages were removed, and and were added.
1 parent 2e1a564 commit a479aa8

File tree

23 files changed

+793
-706
lines changed

23 files changed

+793
-706
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ clean: ## clean development tree
3434

3535
i18n: ## update translation files
3636
cd src/hope_portal && uv run manage.py makemessages --locale es --locale fr --locale ar --locale pt --ignore '~*'
37-
uv run manage.py compilemessages -v 0
37+
uv run manage.py compilemessages
3838

3939

4040
reset_migrations: ## reset database migrations. WARNING!!: Use only until first deployment

README.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,11 @@ If the user answer to all the questions it would be redirected to a page with he
1717
There is a safety guard that allows each registration number to be attempt only a limited number of times per day.
1818

1919

20-
## Contributing
21-
22-
### Requirements
23-
24-
- [uv](https://docs.astral.sh/uv/)
25-
- [direnv](https://direnv.net/)
20+
## Translations
2621

27-
### Checkout and configure development environment
22+
You can contribute to the Portal translation at https://app.transifex.com/unicef-hope/hope-beneficiary-portal/dashboard/
2823

29-
```shell
3024

31-
git checkout https://github.com/unicef/hope-beneficiary-portal.git
32-
cd hope-beneficiary-portal
33-
uv venv .venv
34-
uv sync
35-
36-
./manage.py env --develop > .envrc # create initial development configuration
37-
direnv allow . # enable enviroment
38-
createdb hope_portal # create postgres database on localhost
25+
## Contributing
3926

40-
```
27+
Check https://unicef.github.io/hope-beneficiary-portal/contributing/

docs/_theme/overrides/.gitkeep

Whitespace-only changes.

docs/src/contributing.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,53 @@
77

88
## Checkout and configure development environment
99

10-
```shell
10+
``` shell
1111

1212
git checkout https://github.com/unicef/hope-beneficiary-portal.git
1313
cd hope-beneficiary-portal
1414
uv venv .venv
1515
uv sync
16-
16+
pre-commit install
1717
./manage.py env --develop > .envrc # create initial development configuration
1818
direnv allow . # enable enviroment
1919
createdb hope_portal # create postgres database on localhost
2020

2121
```
2222

23+
### Develop Frontend
24+
25+
This project uses [Tailwind CSS](https://tailwindcss.com/) and [django-tailwind](https://github.com/timonweb/django-tailwind)
26+
to manege theme and CSS. If you need to work on the UI you can either:
27+
28+
- Run `./manage.py tailwind start` in another shell
29+
30+
OR
31+
32+
- Run `./manage.py tailwind dev` instead of `./manage.py runserver`
33+
34+
35+
Both the solutions will monitor the filesystem fo any changes on the source tree and rebuild the CSS if needed.
36+
37+
!!! note
38+
If you want to make the browser auto-reload the current page on source changes just add this entry to your `.envrc`:
39+
40+
export EXTRA_MIDDLEWARES="django_browser_reload.middleware.BrowserReloadMiddleware,"
41+
42+
43+
44+
2345
## Running the tests
2446

2547
To run the tests, you can use the following command:
2648

27-
```shell
49+
``` shell
2850
pytest
2951
```
3052

3153
## Code style
3254

3355
This project uses `ruff` to enforce code style. You can run the linter with the following command:
3456

35-
```shell
57+
``` shell
3658
ruff check .
3759
```

mkdocs.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,19 @@ exclude_docs: |
1919
markdown_extensions:
2020
- admonition
2121
- pymdownx.magiclink
22+
- pymdownx.inlinehilite
23+
- pymdownx.snippets
24+
- pymdownx.tabbed:
25+
alternate_style: true
2226
- pymdownx.superfences:
2327
custom_fences:
2428
- name: mermaid
2529
class: mermaid
2630
format: !!python/name:pymdownx.superfences.fence_code_format
31+
- pymdownx.highlight:
32+
anchor_linenums: true
33+
pygments_lang_class: true
34+
2735

2836
theme:
2937
name: "material"
@@ -36,6 +44,8 @@ theme:
3644
- content.action.edit
3745
- content.code.annotate
3846
- content.code.copy
47+
- content.code.select
48+
- content.tabs.link
3949
- content.tooltips
4050
- header.autohidex
4151
- navigation.footer
@@ -73,8 +83,12 @@ plugins:
7383
scripts:
7484
- docs/_scripts/copy_logos.py
7585
- docs/_scripts/get_settings.py
86+
7687
watch:
77-
- src/
88+
- docs/src
89+
- docs/_theme
90+
- docs/_scripts
91+
- mkdocs.yaml
7892

7993
hooks:
8094
- docs/_hooks/hooks.py

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ dev = [
8383
"ruff",
8484
"seleniumbase",
8585
"tox>=4.2",
86-
"transifex-python",
8786
]
8887

8988
docs = [
@@ -107,7 +106,8 @@ docs = [
107106
"mkdocs-simple-hooks>=0.1.5",
108107
"mkdocstrings[python]>=0.24.1",
109108
"mkdocstrings-python",
110-
"pymdown-extensions>=10.7.1",
109+
"pymdown-extensions>=10.16.1",
110+
"watchdog>=6",
111111
]
112112

113113
type-check = [

src/hope_portal/LOCALE/ar/LC_MESSAGES/django.po

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
msgid ""
88
msgstr ""
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-11-02 13:38+0000\n"
10+
"POT-Creation-Date: 2025-11-05 15:08+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -355,7 +355,7 @@ msgstr "اتصل"
355355
msgid "Admin"
356356
msgstr "مسؤل"
357357

358-
#: ui/templates/includes/footer.html:12
358+
#: ui/templates/includes/footer.html:13
359359
#, fuzzy, python-format
360360
#| msgid "Copyright © %(year)s - All right reserved by UNICEF"
361361
msgid "Copyright © %(year)s All right reserved by UNICEF"
@@ -374,17 +374,17 @@ msgstr "خلف"
374374
msgid "Sorry cannot find your data"
375375
msgstr "عذرا، لا يمكن العثور على بياناتك"
376376

377-
#: ui/templates/pages/flow/info.html:23
377+
#: ui/templates/pages/flow/info.html:37
378378
#, fuzzy
379379
#| msgid "Programs"
380380
msgid "Program"
381381
msgstr "برنامج"
382382

383-
#: ui/templates/pages/flow/info.html:59
383+
#: ui/templates/pages/flow/info.html:73
384384
msgid "Done"
385385
msgstr "تم"
386386

387-
#: ui/templates/pages/flow/info.html:63
387+
#: ui/templates/pages/flow/info.html:77
388388
msgid "Create account"
389389
msgstr "إنشاء حساب"
390390

@@ -424,27 +424,27 @@ msgstr ""
424424
msgid "Please provide Registration number provided at registration time."
425425
msgstr "يرجى تقديم رقم التسجيل المقدم في وقت التسجيل."
426426

427-
#: ui/templates/pages/index.html:10
427+
#: ui/templates/pages/index.html:13
428428
msgid "Beneficiary Portal"
429429
msgstr "بوابة المستفيدين"
430430

431-
#: ui/templates/pages/index.html:13
431+
#: ui/templates/pages/index.html:17
432432
msgid "Enter using..."
433433
msgstr "أدخل باستخدام..."
434434

435-
#: ui/templates/pages/index.html:16
435+
#: ui/templates/pages/index.html:20
436436
msgid "Registration Number"
437437
msgstr "رقم التسجيل"
438438

439-
#: ui/templates/pages/index.html:17
439+
#: ui/templates/pages/index.html:21
440440
msgid "SMS"
441441
msgstr "رسالة قصيرة"
442442

443-
#: ui/templates/pages/index.html:18
443+
#: ui/templates/pages/index.html:22
444444
msgid "Email"
445445
msgstr "بريد إلكتروني"
446446

447-
#: ui/templates/pages/index.html:19 ui/templates/registration/login.html:12
447+
#: ui/templates/pages/index.html:23 ui/templates/registration/login.html:12
448448
#: ui/templates/registration/login.html:23
449449
msgid "Login"
450450
msgstr "تسجيل الدخول"
42 Bytes
Binary file not shown.

src/hope_portal/LOCALE/en/LC_MESSAGES/django.po

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@ msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2025-11-02 10:56+0000\n"
12-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14-
"Language-Team: LANGUAGE <[email protected]>\n"
15-
"Language: \n"
12+
"PO-Revision-Date: 2025-11-05 13:21+0000\n"
13+
"Language-Team: Spanish (https://app.transifex.com/unicef-hope/teams/300750/es/)\n"
1614
"MIME-Version: 1.0\n"
1715
"Content-Type: text/plain; charset=UTF-8\n"
1816
"Content-Transfer-Encoding: 8bit\n"
19-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
17+
"Language: es\n"
18+
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
2019

2120
#: config/fragments/unfold.py:91
2221
msgid "Programs"
@@ -301,8 +300,8 @@ msgstr ""
301300
#: ui/templates/admin/login.html:18 ui/templates/unfold/login.html:18
302301
#, python-format
303302
msgid ""
304-
"You are authenticated as %(username)s, but are not authorized to access this "
305-
"page. Would you like to login to a different account?"
303+
"You are authenticated as %(username)s, but are not authorized to access this"
304+
" page. Would you like to login to a different account?"
306305
msgstr ""
307306

308307
#: ui/templates/admin/login.html:34 ui/templates/unfold/login.html:34
@@ -383,8 +382,7 @@ msgstr ""
383382
#: ui/templates/pages/flow/start_auth.html:4
384383
msgid ""
385384
"\n"
386-
" After a successful identification, you can ask for your username and "
387-
"password.\n"
385+
" After a successful identification, you can ask for your username and password.\n"
388386
msgstr ""
389387

390388
#: ui/templates/pages/flow/start_email.html:4

src/hope_portal/LOCALE/es/LC_MESSAGES/django.po

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-11-02 13:38+0000\n"
11+
"POT-Creation-Date: 2025-11-05 15:08+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -344,7 +344,7 @@ msgstr "Contacto"
344344
msgid "Admin"
345345
msgstr "Administración"
346346

347-
#: ui/templates/includes/footer.html:12
347+
#: ui/templates/includes/footer.html:13
348348
#, fuzzy, python-format
349349
#| msgid "Copyright © %(year)s - All right reserved by UNICEF"
350350
msgid "Copyright © %(year)s All right reserved by UNICEF"
@@ -363,17 +363,17 @@ msgstr "Atrás"
363363
msgid "Sorry cannot find your data"
364364
msgstr "Lo sentimos, no podemos encontrar sus datos"
365365

366-
#: ui/templates/pages/flow/info.html:23
366+
#: ui/templates/pages/flow/info.html:37
367367
#, fuzzy
368368
#| msgid "Programs"
369369
msgid "Program"
370370
msgstr "Programas"
371371

372-
#: ui/templates/pages/flow/info.html:59
372+
#: ui/templates/pages/flow/info.html:73
373373
msgid "Done"
374374
msgstr "Hecho"
375375

376-
#: ui/templates/pages/flow/info.html:63
376+
#: ui/templates/pages/flow/info.html:77
377377
msgid "Create account"
378378
msgstr "Crear cuenta"
379379

@@ -416,27 +416,27 @@ msgstr ""
416416
"Por favor, proporcione el número de registro que se le dio al momento de "
417417
"registrarse."
418418

419-
#: ui/templates/pages/index.html:10
419+
#: ui/templates/pages/index.html:13
420420
msgid "Beneficiary Portal"
421421
msgstr "Portal del beneficiario"
422422

423-
#: ui/templates/pages/index.html:13
423+
#: ui/templates/pages/index.html:17
424424
msgid "Enter using..."
425425
msgstr "Entrar usando..."
426426

427-
#: ui/templates/pages/index.html:16
427+
#: ui/templates/pages/index.html:20
428428
msgid "Registration Number"
429429
msgstr "Número de Registro"
430430

431-
#: ui/templates/pages/index.html:17
431+
#: ui/templates/pages/index.html:21
432432
msgid "SMS"
433433
msgstr "SMS"
434434

435-
#: ui/templates/pages/index.html:18
435+
#: ui/templates/pages/index.html:22
436436
msgid "Email"
437437
msgstr "Correo Electrónico"
438438

439-
#: ui/templates/pages/index.html:19 ui/templates/registration/login.html:12
439+
#: ui/templates/pages/index.html:23 ui/templates/registration/login.html:12
440440
#: ui/templates/registration/login.html:23
441441
msgid "Login"
442442
msgstr "Iniciar Sesión"

0 commit comments

Comments
 (0)