Commit graph

76 commits

Author SHA1 Message Date
6e692ecb62
Fixed login/logout glitches 2025-03-25 18:03:36 +01:00
c80a953890
Merge pull request from blacklight/dependabot/npm_and_yarn/frontend/npm_and_yarn-6507dfe0dd
Bump the npm_and_yarn group across 1 directory with 2 updates
2025-03-25 12:08:54 +01:00
dependabot[bot]
b2a9e9dbcb
Bump the npm_and_yarn group across 1 directory with 2 updates
Bumps the npm_and_yarn group with 2 updates in the /frontend directory: [esbuild](https://github.com/evanw/esbuild) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `esbuild` from 0.24.2 to 0.25.1
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.24.2...v0.25.1)

Updates `vite` from 6.1.1 to 6.2.3
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.3/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.3/packages/vite)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: vite
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-25 11:08:10 +00:00
954d7cc1fa
Create dependabot.yml 2025-03-25 12:07:43 +01:00
c6d1aef24a
Restrict GET /gpsdata to location history points associated to devices owned by the current user. 2025-03-24 01:59:55 +01:00
fe336be258
 Added foreign key definitions to Sequelize models.
We need the constraints to be explicitly defined on the table
definitions too, otherwise JOINs won't work.
2025-03-24 01:57:55 +01:00
3e88272277
Always add error stack when an endpoint fails. 2025-03-24 01:41:46 +01:00
21a6ffb717
Added TOC to README 2025-03-24 00:59:18 +01:00
7516ac97f5
Extended README 2025-03-24 00:56:45 +01:00
aa26b3751b
 New README screenshot 2025-03-24 00:10:55 +01:00
42840236b0
 Fixed two type errors. 2025-03-23 23:51:40 +01:00
d49f8ec013
Fixed preRequestHandler route setup.
The map is a static object defined on the root `Route` class.

This means that any changes made by its derived classes (e.g. by
specifying the `@authenticate` annotation on some methods) will impact
the object for all the other derived classes too.

To prevent clashes, the structure of the map has been changed from:

```
method -> preRequestHandler
```

to:

```
RouteClass.name -> method -> preRequestHandler
```
2025-03-23 23:44:20 +01:00
595d9528d5
Added dynamic SVG map marker. 2025-03-23 23:43:39 +01:00
2f51d3843c
 Set favicon 2025-03-23 23:41:43 +01:00
53a9a2afeb
Support description for location points. 2025-03-23 20:23:26 +01:00
eb9e6abd22
Simplified and better documented .env.example options. 2025-03-10 18:57:49 +01:00
89d2e83298
Fixed Typescript errors 2025-03-10 02:33:16 +01:00
b5b1e03e35
UI for removing points 2025-03-10 02:26:33 +01:00
2dd3a54a8a
Increased API body size to 10MB. 2025-03-10 01:34:27 +01:00
0d7e199e37
Added POST/DELETE /gpsdata endpoints.
Also, added deviceId to location_history table.
2025-03-10 01:33:33 +01:00
dced03fd5a
Fixed migration file for Postgres 2025-03-10 01:31:40 +01:00
95925b0289
Added support for API tokens. 2025-03-09 14:04:41 +01:00
5f39251acc
Fixed Typescript build errors. 2025-03-09 11:13:20 +01:00
7e6ac7583d
Frontend support for user devices. 2025-03-09 10:59:39 +01:00
3d01aed1c5
Backend support for user devices. 2025-03-09 10:58:40 +01:00
4d7f60236f
Added unique constraints to db schema. 2025-03-09 10:57:16 +01:00
0e5a08cc49
Split common.scss into multiple style files. 2025-03-09 10:56:09 +01:00
ac327e2d4c
 Extracted Header component from main App view 2025-03-08 01:29:14 +01:00
703b12428b
 Added support for dropdowns 2025-03-08 01:28:18 +01:00
ecbe472acc
 Handle onUpdate/onDelete cascade constraints 2025-03-08 01:28:02 +01:00
e9f4a78784
A more robust way to detect umzug migration files via glob. 2025-03-07 22:49:08 +01:00
eb4e92c53c
[Dockerfile] Cleanup dev dependencies after build 2025-03-07 22:48:28 +01:00
2dd6c9f6b4
Moved db and migrations management to umzug. 2025-03-07 22:07:59 +01:00
55083bb1b3
Simplify return payload of /auth.
Return only `.token` instead of `.session.token`.
2025-03-07 01:50:56 +01:00
a837ae06bd
Added Docker support. 2025-03-07 00:19:45 +01:00
bb0da62ea0
A more robust logic to parse user roles on setRoles. 2025-03-06 23:55:49 +01:00
06566f504b
Added Remember me checkbox on login page. 2025-03-06 23:55:27 +01:00
1e1da54087
Always clear cookies on logout / auth failure. 2025-03-06 23:53:46 +01:00
61f2cde690
Sync db tables before initializing the constraints. 2025-03-06 23:51:12 +01:00
9c5db733fd
Apply default value for location_history table. 2025-03-06 23:50:43 +01:00
99de342af3
Support for users and authentication [frontend]. 2025-03-06 00:42:54 +01:00
c4e0c67e34
Support for users and authentication [backend]. 2025-03-04 21:29:05 +01:00
533ebe960f
Refactored backend.
- Add versioning to API endpoints.
- Refactored $db and $repos as global variables.
- Extracted routes into separate components with deferred registration.
- Support for a different db URL for location data than the one used by
  the application.
- Added sqlite and passport dependencies (passport will soon be used to
  handle authentication).
2025-03-01 11:45:13 +01:00
f349b2c5be
Added separate Makefile for frontend 2025-02-28 02:26:55 +01:00
1d8d748a0a
Split Makefile tasks into backend and frontend 2025-02-28 01:56:20 +01:00
962858c053
apk add make to the Docker image used for the build. 2025-02-28 01:45:39 +01:00
bba4055774
Fixed build execution in Makefile 2025-02-28 01:44:53 +01:00
56f8557d15
[CI/CD] Added build step. 2025-02-28 01:39:02 +01:00
0703c7ac40
Fixed tsc type error. 2025-02-28 01:28:28 +01:00
fa313c8f53
Made points resolution configurable. 2025-02-28 01:16:34 +01:00