8819a0ed4c
Added CommandStream
to the main Application
.
...
The stream will be used to communicate command messages from the
application to its runner.
2023-08-13 23:51:21 +02:00
06111587f7
Added CommandStream
class.
...
This abstraction is used to write and read commands over a UNIX socket.
2023-08-13 23:37:51 +02:00
c89f992867
Added StopCommand
and RestartCommand
.
2023-08-13 23:36:36 +02:00
b1f244a812
Added ControllableProcess
class.
...
This class can be used to easily control the execution of underlying
processes.
2023-08-13 23:33:08 +02:00
efef9d7bc0
Added commands
module.
2023-08-13 23:21:36 +02:00
97adc3f775
Moved application argument parser to an external platypush.cli
module.
2023-08-13 22:27:16 +02:00
1819ee75ef
s/Application.stop_app/Application.stop/g
2023-08-13 22:23:15 +02:00
827b564006
Using a single constant for DEFAULT_REDIS_QUEUE.
...
Also, catch `AttributeError` on `self._proc.terminate` in the
`HttpBackend`, since the process may already have been terminated and
set to null by another worker process.
2023-08-13 22:20:16 +02:00
4062ddbcf0
More improvements to the inspect
plugin.
...
- Support for distinct `type` field on constructor and method arguments.
- Added `has_varargs` field.
- Added `required` field.
- Better logic for parsing arguments `default` values.
2023-08-08 20:47:27 +02:00
9beb0a7af3
Skip :type:
annotations from docstring args documentation.
2023-08-08 20:47:27 +02:00
2a30f060b4
Parse the arguments list from obj_type.__init__.__doc__
too.
2023-08-08 20:47:27 +02:00
1474685cc0
[Automatic] Updated UI files
2023-08-06 22:51:57 +00:00
26b4dcba46
Reduced padding of ConfirmDialog body element.
2023-08-07 00:50:10 +02:00
5184543a3e
Normalize the size of the camera frame container from window size.
...
If the window is smaller than the camera resolution, then we should
scale down the container size accordingly.
2023-08-07 00:38:19 +02:00
dd313c6371
[Automatic] Updated UI files
2023-08-06 21:50:25 +00:00
2f007888fc
[Automatic] Updated UI files
2023-08-06 21:48:33 +00:00
609a8c6052
[Automatic] Updated UI files
2023-08-06 21:46:44 +00:00
276a9a7421
[Automatic] Updated UI files
2023-08-06 21:44:51 +00:00
715cdcfcff
More consistent style for the buttons on the tokens settings page.
2023-08-06 23:42:50 +02:00
bd49e460d5
More style improvements for the user settings panel.
2023-08-06 23:36:06 +02:00
6eed558342
More improvements on the users settings panel.
2023-08-06 23:14:54 +02:00
1d47b35219
Updated UI dependencies
2023-08-06 20:38:46 +02:00
237e0c47cb
Redesigned config panel UI.
2023-08-06 18:49:03 +02:00
53aeb0b3b1
Better documentation for the Redis server + LINT fixes.
...
1. Added documentation to the README on the possible options to run the
Redis service.
2. Show a relevant message to the user if the application is run with
`--start-redis` and Redis couldn't start.
3. Some LINT/black chores on some files that hadn't been touched in a
while.
2023-08-02 22:17:11 +02:00
e4756eb639
Replaced deprecated flask.escape
with markupsafe.escape
.
2023-07-25 00:26:15 +02:00
91cd08cdff
Adapted tests to use a locally started Redis instance.
2023-07-24 10:37:07 +02:00
7a20fec52f
[ #60 ] Added --workdir
and --logsdir
command-line options.
...
Also, the application is now using `XDG_CONFIG_HOME` and
`XDG_DATA_HOME` if available to lookup the configuration file and
working directory.
Closes : #60
2023-07-24 03:29:08 +02:00
c1d66abb89
[ #60 ] Added --workdir
and --logsdir
command-line options.
...
Closes : #60
2023-07-24 03:20:18 +02:00
5fd40af285
Revert "Added explicit --help option."
...
This reverts commit 1304be0718
.
2023-07-24 02:38:12 +02:00
1304be0718
Added explicit --help option.
...
argparse.ArgumentParser doesn't seem to add the option automatically
anymore.
2023-07-24 02:11:42 +02:00
e9a568fdd2
Unified interface to retrieve the Redis bus configuration.
...
A common `utils.get_redis_conf` has been created to handle the cascade
fallback logic used to retrive the default Redis configuration.
2023-07-24 01:04:13 +02:00
77ffefdccb
Added a Config.set
method.
...
A useful interface to change configuration values at runtime.
2023-07-24 00:48:07 +02:00
dd862db29a
[chore] LINT fixes
2023-07-24 00:35:03 +02:00
3e3d47aa44
Check first the configuration of the Redis plugin and then that of the backend.
2023-07-24 00:26:49 +02:00
315a89fb65
Added a default
parameter to Config.get
.
2023-07-23 23:31:57 +02:00
37dcaba7a1
Refactored structure of main application and startup scripts.
...
The main application class has been moved from __init__ to the app
module.
__init__ will contain instead the relevant global variables and the
modules and objects exposed to external integrations - such as
`get_plugin` and `get_backend`, or the `main` itself.
This will make future integrations much easier - the global __init__
doesn't contain any business logic now, it can import anything without
fearing circular dependencies, and it can limit its exposed objects to
those that we want to expose to 3rd-party integrations and scripts.
It will also make it easier to extend the main entry point with
additional logic - such as a supervisor or an embedded Redis server.
2023-07-23 23:12:36 +02:00
0dc380fa94
Removed dependency from prctl.
...
Also, black'd and LINT-fixed some files that hadn't been touched in a
while.
2023-07-23 19:17:30 +02:00
15a34ebac9
Upgraded Docker base image.
...
Debian base image bumped from Bullseye -> Bookworm.
2023-07-23 17:25:52 +02:00
cfdecd5703
[ #267 ] Don't show the PWA popup again after the user dismisses it.
...
Plus, upgraded a bunch of frontend libraries.
Closes : #267
2023-07-23 02:44:17 +02:00
454228c56e
Upgraded UI dependencies
2023-07-23 02:42:14 +02:00
dependabot[bot]
33699fcac8
Bump word-wrap from 1.2.3 to 1.2.5 in /platypush/backend/http/webapp
...
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap ) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases )
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5 )
---
updated-dependencies:
- dependency-name: word-wrap
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-22 21:48:53 +00:00
dependabot[bot]
505cba44b8
Bump webpack from 5.70.0 to 5.88.2 in /platypush/backend/http/webapp
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.70.0 to 5.88.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.70.0...v5.88.2 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-22 21:46:59 +00:00
1d98f54c54
Bump version: 0.50.2 → 0.50.3
2023-07-22 23:36:04 +02:00
66981bd00b
Updated email addresses and black'd some old source files.
2023-07-22 23:02:44 +02:00
3eda0c6f17
[ #268 ] Implemented XMPP integration.
2023-07-22 22:36:36 +02:00
63afd90701
Serialize exceptions in the default JSON serializers.
...
This allows us to easily pass errors in internal JSON payloads, and
ensure that these are serialized consistently across all the
integrations.
2023-07-22 15:14:05 +02:00
cef9d0e007
Always serialize exception names when logging/returning request exceptions.
2023-07-22 15:13:17 +02:00
d49e5b1f6a
Expose Config.workdir
property.
...
This is a useful proxy to avoid using `Config.get('workdir')` string
lookup.
2023-07-22 15:11:58 +02:00
c846c61493
Refactored Config.__init__
.
...
The constructor of the `Config` class had grown too big. It's much more
manageable if split into multiple sub-constructor helpers.
2023-07-15 13:38:07 +02:00
0a3d6add83
Support ./config.yaml
as a config file location.
2023-07-15 01:29:41 +02:00