Commit graph

1247 commits

Author SHA1 Message Date
Peter Maksymowsky
470c19fe4d
List supported currencies in API under api/currencies (#961)
* List supported currencies in API under api/currencies

* Added test for /currencies route
2021-12-13 23:25:25 +01:00
Weblate (bot)
915c832acc
Translations update from Hosted Weblate (#958)
Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Co-authored-by: Christian H <sunrisechain@gmail.com>
2021-12-03 23:33:06 +01:00
Glandos
b9fee9e886
Rework flash messages (#943) 2021-12-01 22:42:20 +01:00
bd116320e4
Use flask run rather than custom manage command (#952) 2021-11-30 11:51:14 +01:00
dependabot[bot]
b4a81967b8
Bump sphinx from 4.3.0 to 4.3.1 (#954)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.3.0...v4.3.1)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-30 11:50:48 +01:00
Weblate (bot)
58d8a24047
Translations update from Hosted Weblate (#953)
* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Christian H <sunrisechain@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (German)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/de/
Translation: I Hate Money/I Hate Money

Co-authored-by: Jannik Lang <jannik.lang@posteo.de>
Co-authored-by: Christian H <sunrisechain@gmail.com>
2021-11-30 11:49:59 +01:00
Youe Graillot
db1379be34
Legal link fixes (#950)
* fix default legal link value in docker

* fix footer-right overflow
2021-11-28 18:45:45 +01:00
Weblate (bot)
d0a8668de6
Translations update from Hosted Weblate (#947)
* Translated using Weblate (French)

Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Alexis Metaireau <alexis@notmyidea.org>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money

* Translated using Weblate (Italian)

Currently translated at 75.0% (199 of 265 strings)

Co-authored-by: Paolo Campetto <fbok61hw@anonaddy.me>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/it/
Translation: I Hate Money/I Hate Money

Co-authored-by: Alexis Metaireau <alexis@notmyidea.org>
Co-authored-by: Paolo Campetto <fbok61hw@anonaddy.me>
2021-11-26 09:02:53 +01:00
Glandos
521838ace4
small css cleanup by using bootstrap classes (#945) 2021-11-26 00:06:36 +01:00
Glandos
e929181128
Remove notification showing the id of the project after creation (#944) 2021-11-25 14:30:17 +01:00
Youe Graillot
acb2799575
Production ready docker (#919)
* /healthcheck endpoint usefull for monitoring, ci test also uses this
* customizable PORT with environment variable
* customizable PUID/PGID, reduce attack surface and allow better integration in rootless environments
* size optimization
* update to python 3.10
* add postgresql compatibility
* PUID/PGID default as root to not break current user environments
2021-11-25 08:23:23 +01:00
ef3944ccad
Send an email when the project is created via the API. (#938) 2021-11-25 00:49:17 +01:00
1698841f6d
Do not require a captcha when using the API (#931)
* Do not require a captcha when using the API

This was trickier than expected, due to some side effects : when the
captcha is set to `True` via configuration, it doesn't change the
behavior directly of the ProjectForm class, but does so only when the
project form is used in the `web.py` module.

So, when just using the API (and not using the web.py module, for
instance during tests — manual or functional), no problem was shown,
and everything was working properly.

But at soon as somebody sees the "/" endpoint, the captcha was
required, by both the API and the `web.py` module.

This fixes it by adding a way to bypass the captcha with a new
`bypass_captcha` property on the form.

Prior to this commit, things were done by activating or deactivating a
"captcha" property on the class on-the-fly, which caused side-effects.

This is now using subclasses, which makes the code simpler to
understand, and less prone to side-effects.

Thanks @zorun for the idea.
2021-11-25 00:44:21 +01:00
Nikos Epping
05ac991a55
Allow clicking buttons behind messages div (#929) 2021-11-24 21:56:14 +01:00
68552a6034
Allow connecting to upper-case project IDs. (#934)
Fix #933.
2021-11-23 19:09:50 +01:00
Weblate (bot)
bd9ebd1d60
Translated using Weblate (Indonesian) (#936)
Currently translated at 95.0% (252 of 265 strings)

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/id/
Translation: I Hate Money/I Hate Money

Co-authored-by: whenwesober <naomi16i_1298q@cikuh.com>
2021-11-23 10:39:55 +01:00
2adc2bf0be
Check that project creation via the API doesn't required a captcha. (#926)
Fixes #922
2021-11-21 17:39:42 +01:00
beac10be0b
Always authentify projects using a lowercase ID. (#925)
Fixes #920
2021-11-21 17:13:26 +01:00
Glandos
4d6a5aaa27
add tests for python 3.10 (#921)
This also raises pytest and flask-cors version to work with python 3.10. Changes are non invasive.
2021-11-15 22:33:32 +01:00
Glandos
9bffe72607 Upgrade jquery 2021-11-13 22:33:18 +01:00
dependabot[bot]
c904f5a972
Bump sphinx from 4.2.0 to 4.3.0 (#915)
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-11 15:28:50 +01:00
dependabot[bot]
702a53e4d8
Update flask-wtf requirement from <1,>=0.14.3 to >=0.14.3,<2 (#912)
Updates the requirements on [flask-wtf](https://github.com/wtforms/flask-wtf) to permit the latest version.
- [Release notes](https://github.com/wtforms/flask-wtf/releases)
- [Changelog](https://github.com/wtforms/flask-wtf/blob/main/docs/changes.rst)
- [Commits](https://github.com/wtforms/flask-wtf/compare/0.14.3...v1.0.0)

---
updated-dependencies:
- dependency-name: flask-wtf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-08 23:27:11 +01:00
Weblate (bot)
e1a8f8596a
Translated using Weblate (Turkish) (#913)
Currently translated at 100.0% (265 of 265 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-11-08 23:26:46 +01:00
Glandos
023d22dbcd Merge branch 'Glandos-fix_weblate' 2021-11-06 14:43:29 +01:00
Glandos
95f589f00e Merge remote-tracking branch 'weblate/master' into fix_weblate 2021-11-06 14:38:17 +01:00
7def528582
Add a configuration file for readthedocs.io (#907) 2021-11-01 20:38:27 +01:00
e5819c013d
Update README.md 2021-11-01 20:10:27 +01:00
9ac4418486
Convert all the rst files to markdown. (#906)
Update sphinx to work with the new format.

https://myst-parser.readthedocs.io/en/latest/sphinx/use.html#automatically-create-targets-for-section-headers
was a valuable resource along the way.

Fixes #902.
2021-11-01 20:09:55 +01:00
Glandos
c59aaadcde
sidebar_table_layout switches to flex column layout (#905)
* Fixes #896

sidebar_table_layout switches to flex column layout
remove all 'float' buttons, replace them with nice flexboxes.
bill_table needs a flex-basis because with a very small width, it has a 0 height. I don't really know why, but adding a flex-basis: auto shows it.

* ensure new bill is on top of pagination
2021-11-01 20:08:48 +01:00
2ff1ba4ed1 Fix wrongly commited conflicting files 2021-11-01 18:38:58 +01:00
0a5814fbd9
Translated using Weblate (French)
Currently translated at 100.0% (264 of 264 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
2021-11-01 18:26:02 +01:00
35a74100cb
Rename all strings to "participants", clean old and small weird stuff (#871)
* Rename all strings to "participants".
* Update the tests with the new strings
* Update tests
2021-11-01 18:25:57 +01:00
cdc98a6706
Make the "Add a new bill" button visible on small resolutions. Fixes #896 (#904)
The clearfix should be applied before the pagination blocks.
2021-11-01 17:52:51 +01:00
zorun
6750e4f429
Update release documentation (#893)
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2021-10-30 21:23:27 +02:00
Weblate (bot)
67ae812d84
Translated using Weblate (French) (#898)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Glandos <bugs-github@antipoul.fr>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
Translation: I Hate Money/I Hate Money

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-10-30 18:09:06 +02:00
JocelynDelalande
18aebb618f
Avoid showcase-guy to point his finger at nothing (#901)
That occured on some screen sizes.
2021-10-30 17:36:42 +02:00
JocelynDelalande
5ab12f41bd
Consistently use questions in bill form (#900)
* Consistently use questions in bill form

* fixup
2021-10-30 17:35:43 +02:00
Glandos
ff4de78b56
Reduce the size of showcase images (#899)
Fixes #875

Original showcase images are kept in another directory, and compressed
in webp in the distributed directory.
Since they won't change so much, let's keep them in git.
2021-10-30 17:30:59 +02:00
Oğuz Ersen
7f5977a738 Translated using Weblate (Turkish)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
Translation: I Hate Money/I Hate Money
2021-10-28 21:41:33 +02:00
Baptiste Jonglez
1edca9227c Back to development: 5.1.2 2021-10-26 23:58:56 +02:00
Baptiste Jonglez
a7d78c1c50 Preparing release 5.1.1 2021-10-26 23:58:12 +02:00
Baptiste Jonglez
80cd303a3c Update changelog 2021-10-26 23:57:52 +02:00
Baptiste Jonglez
7c375ce617 Back to development: 5.1.1 2021-10-26 23:49:25 +02:00
Baptiste Jonglez
85c104f6d0 Preparing release 5.1.0 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
180f3ef3fb Rebuild translation files 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
6366bad188 Update changelog for release 5.1.0 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
68a4aa05e8 Add missing configuration variables (ENABLE_CAPTCHA and LEGAL_LINK) 2021-10-26 23:46:27 +02:00
Baptiste Jonglez
f68263328c Improve performance of balance and statistics computation (see #889) 2021-10-23 17:20:19 +02:00
d2c96c5bc6
Enhance Docker documentation. (#882)
* Enhance Docker documentation.

Fixes #868

* Adress @zorun feedback.

* Update installation.rst
2021-10-22 17:56:41 +02:00
53c88c3b13
Add a LEGAL_LINK setting. Fixes #761 (#883) 2021-10-21 19:16:32 +02:00