Commit graph

1040 commits

Author SHA1 Message Date
95a524ac24 Preparing release 5.0.1 2021-10-20 00:57:57 +02:00
cbd5f82f4d Update changelog 2021-10-20 00:57:45 +02:00
6f87e641b9
Include all files in MANIFEST.in so they are published to PyPI (#872) 2021-10-20 00:52:49 +02:00
cfbce99f19 Fix Weblate 2021-10-19 23:30:34 +02:00
c81c30ff93
Fix weblate (#867)
* Translated using Weblate (French)

Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/

* Translated using Weblate (Turkish)

Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
2021-10-19 23:26:27 +02:00
Oğuz Ersen
ed0f70d4e7
Translated using Weblate (Turkish)
Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/tr/
2021-10-19 23:01:34 +02:00
f09c3355f2
Translated using Weblate (French)
Currently translated at 100.0% (263 of 263 strings)

Translation: I Hate Money/I Hate Money
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/fr/
2021-10-19 23:01:34 +02:00
3fd69f2267
Prepare 5.0 (#866)
* Update changelog.

Based on the work done in #570 and #834 by @Natim and @Glandos.

* Update contributing.rst release instructions.

* Update documentation configuration.

* Update translations

* Update translation strings

* Preparing release 5.0.0

* Back to development: 5.0.1
2021-10-19 23:01:29 +02:00
Weblate (bot)
2542781218
Translated using Weblate (Kannada) (#863)
Currently translated at 26.9% (71 of 263 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money

Co-authored-by: a-g-rao <athrigrao@gmail.com>
2021-10-19 00:25:07 +02:00
Glandos
7a15051996
Make multiple currency optional (#864)
* Make multiple currency optional
Fixes #848

A description is provided in project settings to make the feature self explanatory.

* I forgot the description.
Let's update translation altogether.

* black format
2021-10-18 23:46:53 +02:00
6ba8ec211f
Update dockerhub.yml 2021-10-17 20:31:59 +02:00
Youe Graillot
ec0a3aa070
Fix docker image and docker image test (#852)
* Github Action build and push to dockerhub

* CI updates docker description

* Convert rst readme to markdown

* Update CONTRIBUTORS

* Revert "CI updates docker description"

This reverts commit 33e2e7b5c2.

* Revert "Convert rst readme to markdown"

This reverts commit dc25f8dbe4.

* CI deploy on master branch

* CI test image

* Fix empty SESSION_COOKIE_SECURE

* Dockerfile : sanitize ENV

* entrypoint.sh : sort

* docker-compose.yml

* CI test with docker compose

* CI reorganize

* Default SESSION_COOKIE_SECURE to True

* Add some comments for readability.

Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2021-10-17 16:21:42 +02:00
Weblate (bot)
a7d133bc3a
Translations update from Weblate (#862)
* Translated using Weblate (Turkish)

Currently translated at 100.0% (262 of 262 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

* Translated using Weblate (Kannada)

Currently translated at 22.8% (60 of 263 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money

Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Co-authored-by: a-g-rao <athrigrao@gmail.com>
2021-10-17 13:11:26 +02:00
Weblate (bot)
1b826689e5
Translated using Weblate (Kannada) (#861)
Currently translated at 18.9% (49 of 258 strings)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money

Co-authored-by: a-g-rao <athrigrao@gmail.com>
2021-10-14 23:48:59 +02:00
zorun
6a0533e517
Add some documentation about security (#858)
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2021-10-14 23:45:22 +02:00
Glandos
b44bef33db
regenerate translations (#860) 2021-10-14 22:15:54 +02:00
Baptiste Jonglez
d5981c014b Update changelog 2021-10-14 01:00:44 +02:00
HarshVT8999
5ea8a66704 Update messages.po 2021-10-14 00:15:36 +02:00
a-g-rao
35820e0486 Translated using Weblate (Kannada)
Currently translated at 16.2% (42 of 258 strings)

Added translation using Weblate (Kannada)

Co-authored-by: a-g-rao <athrigrao@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/kn/
Translation: I Hate Money/I Hate Money
2021-10-14 00:14:52 +02:00
Glandos
e2286676f1 Flash messages must be dimissed manually 2021-10-14 00:09:20 +02:00
Baptiste Jonglez
19b5b13663 demo: create Demo project without currency
This matches the default settings of both the web interface and the API
regarding currencies.
2021-10-14 00:07:41 +02:00
Baptiste Jonglez
dc793effce Update API doc 2021-10-14 00:07:41 +02:00
Baptiste Jonglez
ff2a5cc147 Add API test cases related to currencies 2021-10-14 00:07:41 +02:00
Baptiste Jonglez
17b4255d82 API tests: allow to set currency, but don't set any by default 2021-10-14 00:07:41 +02:00
Baptiste Jonglez
421cfbe645 project: set XXX as default default_currency for API backwards compatibility
The new support for currency broke backwards compatibility on the API:

    $ curl -X POST $URL/api/projects -d 'name=yay&id=yay&password=yay&contact_email=yay@notmyidea.org'
    {"default_currency": ["This field is required."]}

This is a case we were not testing (will be fixed in subsequent commits)

To fix this, simply set default_currency to XXX by default.
2021-10-14 00:07:41 +02:00
Glandos
7d9226745f
Change token path authentication to /PROJECT/join/TOKEN (#843) 2021-10-13 22:00:38 +02:00
HarshVT8999
cb8f6aaafb
Changed Font Size of the Logo (#828)
Co-authored-by: Alexis Métaireau <alexis@notmyidea.org>
2021-10-11 19:30:00 +02:00
Youe Graillot
2c487dd4b7
Continuous integration build and push to dockerhub (#851)
* Github Action build and push to dockerhub
* Update CONTRIBUTORS
2021-10-11 19:24:36 +02:00
2bcc41bdb3
Add optional support for a simple CAPTCHA. (#844)
* Add optional support for a simple CAPTCHA.
* formatting
* add test case
* Flake8

Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-10-11 17:39:24 +02:00
Baptiste Jonglez
e626a1cbea Implement security best practices using Flask-Talisman 2021-10-10 22:06:33 +02:00
zorun
7554842b1f
Add URL validation to external link to prevent XSS (#846)
Co-authored-by: Baptiste Jonglez <git@bitsofnetworks.org>
2021-10-10 18:39:03 +02:00
Baptiste Jonglez
c1ef4033b6 Better document configuration files location and override 2021-10-10 18:34:24 +02:00
Glandos
bbe00ebb57
Include project code into project authentication token (#802)
Fix #780 

This a breaking change, the API for authentication is different, as it now requires `project_id`. Token is generated with only the project_id (so it's shorter than before), and signature is done by mixing password with secret key. Thus, it expires on every project code change.
2021-10-10 14:43:40 +02:00
Baptiste Jonglez
c13c4c7e3c Fix duplicate entry in changelog 2021-10-10 11:56:28 +02:00
Frank.wu
879936a4c4 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (258 of 258 strings)

Co-authored-by: Frank.wu <me@wuzhiping.top>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/zh_Hans/
Translation: I Hate Money/I Hate Money
2021-10-10 11:48:07 +02:00
phlostically
1c1f1ae893 Translated using Weblate (Esperanto)
Currently translated at 86.8% (224 of 258 strings)

Co-authored-by: phlostically <phlostically@mailinator.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/eo/
Translation: I Hate Money/I Hate Money
2021-10-10 11:48:07 +02:00
Christian H
6044947a90 Translated using Weblate (German)
Currently translated at 98.4% (254 of 258 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
2021-10-10 11:48:07 +02:00
Роман Прокопов
bf3a3bce33 Translated using Weblate (Russian)
Currently translated at 81.3% (210 of 258 strings)

Co-authored-by: Роман Прокопов <pochta.romana.iz.vyborga@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/ru/
Translation: I Hate Money/I Hate Money
2021-10-10 11:48:07 +02:00
Daniel Neto
60149cd486 Formatting changes after running make black 2021-09-19 19:04:49 +02:00
Daniel Neto
7bf7db24bd #838: Add decima weight round test cases 2021-09-19 19:04:49 +02:00
Daniel Neto
49abd7fedd Fix #838: Round weight to 2 decimal cases 2021-09-19 19:04:49 +02:00
PPNplus
1842fba115 Translated using Weblate (Thai)
Currently translated at 17.8% (46 of 258 strings)

Added translation using Weblate (Thai)

Co-authored-by: PPNplus <ppnplus@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/th/
Translation: I Hate Money/I Hate Money
2021-09-16 22:02:32 +02:00
Clonewayx
74053fb8fe Translated using Weblate (Czech)
Currently translated at 23.2% (60 of 258 strings)

Co-authored-by: Clonewayx <fillip1@seznam.cz>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/cs/
Translation: I Hate Money/I Hate Money
2021-09-16 22:02:32 +02:00
dependabot[bot]
bfd1f3fbc4 Bump sphinx from 4.1.2 to 4.2.0
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.1.2 to 4.2.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.1.2...v4.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-16 21:46:57 +02:00
Baptiste Jonglez
011df29913 Simplify exception checking in import test 2021-09-07 23:15:40 +02:00
Baptiste Jonglez
7ad83c7e79 Add more import test cases related to currencies 2021-09-07 23:15:40 +02:00
zorun
3cbe276a69 Simplify import code
Co-authored-by: Glandos <bugs-github@antipoul.fr>
2021-09-07 23:15:40 +02:00
Baptiste Jonglez
4bf9308908 Add currency to import and export formats 2021-09-07 23:15:40 +02:00
Baptiste Jonglez
6448d0d7df Move CurrencyConverter mocking to the base test class
This mock was already applied to all tests, because it was done statically
in the TestCurrencyConverter class definition.  But it was really not
clear that it's applied everywhere.

Moving this to the setUp() function makes it much clearer.

Also, remove useless redefinition in other tests.
2021-09-07 23:15:40 +02:00
Michał Kowalski
748d30ba87 Translated using Weblate (Polish)
Currently translated at 82.9% (214 of 258 strings)

Co-authored-by: Michał Kowalski <norbertkowalski1994@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/i-hate-money/i-hate-money/pl/
Translation: I Hate Money/I Hate Money
2021-09-04 16:53:39 +02:00