Commit graph

51 commits

Author SHA1 Message Date
Alexis Métaireau
bfd573ae36 [tests] Enable make test to run js+py tests
It will run both the Python and JS tests. Test suites can still be run
independently with the `make testjs` and `make testpy` commands.
2024-04-01 11:12:44 +02:00
Yohan Boniface
73c5a963d9 chore: split lint and format recipes 2024-03-25 19:28:20 +01:00
Yohan Boniface
9d407c6b06 i18n 2024-03-25 13:52:48 +01:00
Yohan Boniface
8a9e845910 chore: do not call test and compilemessages command in make build
Those commands are documented in the release process, so they have
already run at this stage.
2024-02-09 18:39:13 +01:00
David Larlet
5da9b67b2a
Merge branch 'master' into dependabot/pip/django-5.0.1 2024-01-30 14:01:55 -05:00
David Larlet
65f1cdd6b4
lint: use eslint with a browserslist configuration 2024-01-29 16:44:04 -05:00
David Larlet
a159914c53
deps: adaptations for Django 5.x 2024-01-29 14:29:24 -05:00
Yohan Boniface
6d358a1f71 chore: make sure linters only run inside umap/ folder
No venv/, no node_modules/, not tmp/…
2024-01-17 18:44:08 +01:00
Alexis Métaireau
396cbd34b4 build: Update makefile testjs to open the browser 2023-12-18 08:16:17 +00:00
Alexis Métaireau
f3c67b54b6 [docs] Add some testing information 2023-12-15 17:00:50 +00:00
Alexis Métaireau
51c3ee3ce4 [ci] Add support for Github Actions
This runs the tests for different python versions,
with different working sets, and also run
a linter.
2023-11-24 23:31:18 +01:00
Yohan Boniface
c35c6ee78c test: allow to run playwright tests directly with py.test cli 2023-09-04 15:00:51 +02:00
David Larlet
95bf685159 Setup to create integration tests with Playwright 2023-09-04 11:03:28 +02:00
Yohan Boniface
a50c42dd24 Add make minor command 2023-08-15 16:49:04 +02:00
David Larlet
e03bbeadfc
1.3.6 2023-07-01 11:44:24 -04:00
Yohan Boniface
9056b8603f Use svg for 16 px icons too
Those icons would need more love to better factorize the way
they are used:
- the size of the HTML element including the icon is not consistent
- some icons are on the default file but could be in the white one

To be done in a later step
2023-06-28 21:39:43 +02:00
Yohan Boniface
4a43c653f1 Switch 24-white.png to 24-white.svg 2023-06-28 07:34:07 +02:00
Yohan Boniface
df90340937 Switch 24.png to 24.svg 2023-06-27 14:04:02 +02:00
David Larlet
be5d27d292
Lint template files with djLint 2023-06-20 10:00:02 -04:00
David Larlet
70e3852c0c
Prettify template files with djlint 2023-06-20 09:40:32 -04:00
David Larlet
44d3e64d56
Add a publish command to the Makefile 2023-06-17 09:50:36 -04:00
David Larlet
9ad47f8ef9
Customize the build process with hatch 2023-06-17 09:36:50 -04:00
David Larlet
e23f1dd3c2
From to setup.cfg+setuptools to pyproject.toml+hatch 2023-06-17 09:09:36 -04:00
Yohan Boniface
e1d3a95cce Allow to make vendors without Makefile
So we can use a lighter node image in Docker
2023-06-05 13:19:14 +02:00
Yohan Boniface
40f694f460 Make Docker happy with Makefile syntax 2023-06-05 11:48:46 +02:00
Yohan Boniface
309db975af
Merge branch 'master' into master 2023-06-02 17:34:49 +02:00
David Larlet
0cd1cf4ffc
Merge pull request #1094 from umap-project/use-dompurify
Use DOMPurify to escape malicious input from user
2023-05-30 15:49:29 -04:00
David Larlet
0a75998f11
Apply Lebab for template conversions 2023-05-30 14:53:53 -04:00
David Larlet
fd3f854a9c
Use DOMPurify to escape malicious input from user 2023-05-30 14:22:04 -04:00
David Larlet
56ce9ae22c
Apply Lebab for let/const conversions
As far as I understand, it default to `let` in these cases because the tool cannot figure out if a `const` is possible. It has to be checked manually:

```
./node_modules/lebab/bin/index.js --replace "umap/static/umap/js/*.js" --transform let
umap/static/umap/js/umap.xhr.js:
228:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.ui.js:
83:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.slideshow.js:
15:  warning  Unable to transform var  (let)
83:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.popup.js:
100:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.permissions.js:
14:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.layer.js:
195:  warning  Unable to transform var  (let)
436:  warning  Unable to transform var  (let)
568:  warning  Unable to transform var  (let)
584:  warning  Unable to transform var  (let)
989:  warning  Unable to transform var  (let)
1088:  warning  Unable to transform var  (let)
1098:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.js:
124:  warning  Unable to transform var  (let)
223:  warning  Unable to transform var  (let)
343:  warning  Unable to transform var  (let)
376:  warning  Unable to transform var  (let)
406:  warning  Unable to transform var  (let)
849:  warning  Unable to transform var  (let)
732:  warning  Unable to transform var  (let)
948:  warning  Unable to transform var  (let)
959:  warning  Unable to transform var  (let)
878:  warning  Unable to transform var  (let)
1085:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.icon.js:
145:  warning  Unable to transform var  (let)
184:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.forms.js:
453:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.features.js:
15:  warning  Unable to transform var  (let)
101:  warning  Unable to transform var  (let)
143:  warning  Unable to transform var  (let)
373:  warning  Unable to transform var  (let)
429:  warning  Unable to transform var  (let)
890:  warning  Unable to transform var  (let)
949:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.core.js:
149:  warning  Unable to transform var  (let)
175:  warning  Unable to transform var  (let)
umap/static/umap/js/umap.controls.js:
665:  warning  Unable to transform var  (let)
876:  warning  Unable to transform var  (let)
1249:  warning  Unable to transform var  (let)
```
2023-05-30 14:16:09 -04:00
Yohan Boniface
7c2b7ac309 Simplify exlude of folder when running make messages 2023-05-30 17:52:32 +02:00
Yohan Boniface
eaef600a97 Add missing edit-in-osm icon
fix #1096
2023-05-30 15:58:29 +02:00
David Larlet
838bd73458 Install and apply Lebab for JS arrows’ conversions 2023-05-12 14:04:59 -04:00
David Larlet
f43742212b Apply PrettierJS to the whole codebase 2023-05-12 13:57:03 -04:00
Duvel
c6677ce0c8
Copy statement didn't work in build container 2022-11-27 16:25:04 +01:00
Aleksejs Popovs
c4415e1e99 Vendor leaflet.locatecontrol 2022-11-24 13:55:09 -05:00
Yohan Boniface
cc14796c6c chore: use setup.cfg 2021-12-30 11:16:00 +01:00
Yohan Boniface
eb3d115a96 bump deps 2019-02-06 19:38:19 +01:00
Yohan Boniface
fb85a6c93c i18n 2018-09-08 17:01:22 +02:00
Yohan Boniface
d81f014c53 rename make ui in make vendors
o
2018-07-07 23:15:26 +02:00
Yohan Boniface
c2d2751cdf i18n 2018-07-07 23:08:33 +02:00
Yohan Boniface
2eb909ba3d i18n 2018-07-07 23:03:10 +02:00
Yohan Boniface
1ec47894f3 i18n 2018-07-07 17:22:38 +02:00
Yohan Boniface
afe55fbf3c Update transifex after merge + now also commit js locales 2018-06-02 16:17:42 +02:00
Yohan Boniface
8655061817 Rename in JS/CSS: storage_ => umap_ storage- => umap- 2018-06-02 15:47:57 +02:00
Yohan Boniface
1eadf4b7ed JS tests pass 2018-06-02 14:44:59 +02:00
Yohan Boniface
19d2b39423 Leaflet.Storage is now integrated inside this repository 2018-06-02 12:21:40 +02:00
Yohan Boniface
53c738abaf Merge leaflet_storage tests 2018-05-19 11:54:08 +02:00
Yohan Boniface
cb470198e6 Merge leaflet_storage locales 2018-05-19 11:12:19 +02:00
Yohan Boniface
e55d03bd5e Django 2.0
And update other deps
2018-05-19 10:05:18 +02:00