Commit graph libervia-backend/sat_frontends
Author SHA1 Message Date
Goffi
9ce0f943cc cli (blog/get): verbose level of 2 now shows extra field 2022-07-14 12:55:30 +02:00
Goffi
44849a1fda cli (blog/set): show ID of published item 2022-07-14 12:55:30 +02:00
Goffi
b533b3e56c li (blog): new repeat subcommand, to re-publish a blog post:
rel 370
2022-07-14 12:55:19 +02:00
Goffi
eb4c766489 cli (pubsub): new reference subcommand to send references/mentions to pubsub items:
rel 369
2022-07-10 16:15:09 +02:00
Goffi
e84436adfd cli: helper method to retrieve profile's jid:
rel 369
2022-07-10 16:15:09 +02:00
Goffi
5a021e63a1 CLI (identity): add description to identity set:
rel 368
2022-06-29 12:13:49 +02:00
Goffi
a44acbc1bb cli (message/retract): message retractation command:
rel 367
2022-06-17 14:15:23 +02:00
Goffi
ab0739c35f cli: new blocking commands:
commands to list blocked entities, block or unblock one or more entities

rel 367
2022-05-27 12:15:04 +02:00
Goffi
da7a90abd2 CLI: don't fail when calling getContacts with a component profile 2022-05-13 19:15:30 +02:00
Goffi
d20e609a5c plugins XEP-0060, XEP-0376, XEP-0465, CLI: PAM + PSS implementation:
- update psSubscriptionsGet to use serialised return value
- implement XEP-0376 Pubsub Account Management
- implement XEP-0465 Public Pubsub Subscriptions
- CLI `pubsub` commands updated accordingly, and added `--public` flags to `subscribe`,
  `Subscriptions` and `node Subscriptions get`

⚠ `XEP-0465` is speculative, the XEP has been accepted by council but not published yet.
As is should be the next one, and current latest one is `XEP-0464`, `XEP-0465` has been
anticipated.

rel 365
2022-05-13 18:38:05 +02:00
Goffi
feee36791b plugin XEP-0060: use serialised options in psSubscribe + triggers update 2022-05-13 18:29:42 +02:00
Goffi
b48081e679 jp (xmlui): add PasswordWidget 2022-03-22 17:00:42 +01:00
Goffi
23640ed33f cli (blog/get): fix default output when a value is None 2022-01-25 17:27:39 +01:00
Goffi
14d00a9dda merge bookmark @ 2021-11-12 17:21:24 +01:00
Goffi
2cc637cdfe cli (base): use XTERM_VERSION to detect XTerm:
Using `TERM` is not good as it is used by other terminal emulators which are incompatible
with ANSI sequences (seen with `cool-retro-term`).
2021-11-06 18:53:00 +01:00
Goffi
1419f29df6 cli (debug/theme): display currently used background 2021-11-06 17:09:28 +01:00
Goffi
b1529c1ebf cli (base): better background detection:
- ANSI escape code detection is only used on terminals known to be compatible (currently
  xterm, konsole, and all VTE based ones)
- `COLORFGBG` environment variable is used as fallback
- if both methods fail, `dark` is used

This should avoid problems with incompatible terminals (e.g. on QTerminal, users had to
press `[ENTER]` each time).

fix 406
2021-11-06 17:08:50 +01:00
Goffi
d7d40a6d50 merge bookmark @ 2021-09-26 16:41:49 +02:00
Goffi
3433657ccf jp (common): add neovim (nvim) default arguments 2021-09-26 16:35:49 +02:00
Goffi
7a211da470 CLI (pubsub/cache): search implementation
rel 361
2021-09-08 17:58:48 +02:00
Goffi
44a54978b9 CLI: move format_time to common + add timezone 2021-09-08 17:58:48 +02:00
Goffi
50d7cb2a51 merge bookmark @ 2021-09-08 11:20:37 +02:00
Goffi
f29a6bfa17 bridge (dbus/frontend): reintrospect signature in case of guess error:
When a "Unable to guess signature […]" `ValueError` is raised during a method call, the
signatures are re-introspected. This should fix this issue when a frontend is launched
just after to the backend (this happens notably with tests).
2021-09-08 11:16:21 +02:00
Goffi
2152d57887 CLI: use global constants for output names 2021-09-08 11:13:35 +02:00
Goffi
33fc985410 merge branche "@" 2021-09-01 13:47:17 +02:00
Goffi
25a31896cb cli: call bridge.getReady() after bridge connection 2021-09-01 13:46:43 +02:00
Goffi
fe502fc0fc merge branche "@" 2021-08-28 15:32:58 +02:00
Goffi
547eb9feba bridge: bridge can now be set using environment variable:
The `LIBERVIA_BRIDGE_NAME` environment variable can now be used to specify the bridge to
use. If set and different from empty string, the environment has precedence over config
file value.

For `pb` bridge, the following environment variable can also be used:

- LIBERVIA_BRIDGE_PB_CONNECTION_TYPE
- LIBERVIA_BRIDGE_PB_HOST
- LIBERVIA_BRIDGE_PB_PORT
2021-08-28 15:26:02 +02:00
Goffi
436696f28c merge branche "@" 2021-08-27 14:51:40 +02:00
Goffi
c8572b8f21 CLI: fix section used for config following name change 2021-08-27 14:46:52 +02:00
Goffi
1d6cead380 jp (pubsub/cache/purge): fix conflict with subtype short option 2021-08-02 21:52:17 +02:00
Goffi
0caebd3803 frontends (tools/misc): FlagsHandler.__getitems__ now returns attribute 2021-07-29 22:51:01 +02:00
Goffi
47968678a6 jp (pubsub): new cache subcommand with commands to get, sync, purge and reset pubsub cache 2021-07-29 22:51:01 +02:00
Goffi
02727e26d9 jp (pubsub/delete): make notification the default, --notify option is replaced by --no-notification 2021-07-29 22:51:01 +02:00
Goffi
d10ce3ad7a jp (base): add flag for use_pubsub to add cache skipping option 2021-07-29 22:51:01 +02:00
Goffi
f2a06bbcbf plugin XEP-0060: getItems extra is now serialised dict 2021-07-28 23:01:15 +02:00
Goffi
4421eefbf3 merge changes from main branch 2021-06-17 13:05:58 +02:00
Goffi
7adbf3ead8 core, frontends: fix invalid translatable strings.
Some f-strings where used in translatable text, this has been fixed by using explicit
`format()` call (using a script based on `tokenize`).

As tokenize messes with spaces, a reformating tool (`black`) has been applied to some
files afterwards.
2021-06-14 18:35:12 +02:00
Goffi
6c2d81696c doc: fix remaining SàT references/typos + add libervia-cli missing commands 2021-06-11 09:21:41 +02:00
Goffi
8b3d900922 cli: update constants to use new name 2021-06-09 17:29:29 +02:00
Goffi
9442835ddb jp: fix background guessing when stdin is redirected 2021-06-04 15:23:24 +02:00
Goffi
6c853262e1 bridge (dbus): use Tx DBus for backend part of D-Bus bridge:
Due to recent SQLAlchemy integration, Libervia is now using AsyncIO loop exclusively as
main loop, thus GLib's one can't be used anymore (event if it could be in a separate
thread).
Furthermore Python-DBus is known to have design flaws mentioned even in the official
documentation.

Tx DBus is now used to replace Python-DBus, but only for the backend for now, as it will
need some work on the frontend before we can get completely rid of it.
2021-06-03 15:21:43 +02:00
Goffi
4e36667134 tools (common/utils): new methods to parse and generate file size with symbols:
- `parseSize` lets parse a size which can be either a int, or a string with a symbol like
  `Mio`
- `getSizeMultiplier` returns a tuple of size with it's multiplier symbol
- `getHumanSize` returns a string with size and adapted multiplier.
2021-05-05 15:37:33 +02:00
Goffi
fb01bd4bcc jp (pubsub, blog): rename commands implementation 2021-05-01 18:39:34 +02:00
Goffi
8f7c74e3b3 jp (blog/get): fix comments node parsing 2021-05-01 18:38:58 +02:00
Goffi
e07aa31cfe jp (list): implement set and delete subcommands. 2021-04-22 18:21:33 +02:00
Goffi
1ab5488e0d frontends (primitivus): SECTION_NAME is now CONFIG_SECTION 2021-04-01 13:57:20 +02:00
Goffi
24a4b12ac4 frontends: use new EXIT_BACKEND_NOT_FOUND exit code:
- new EXIT_BACKEND_NOT_FOUND (5) is used when frontend can't find backend with the bridge.
  It differs from EXIT_BRIDGE_ERROR (3) which is used when something went wrong when
  connecting to backend.
- use this exit code in quick app and in jp
2021-03-23 21:21:00 +01:00
Goffi
881a638821 bridge (pb): connection can be set to used either UNIX socket or TCP socket:
all settings are to be put in `[DEFAULT]` section
- `bridge_pb_connection_type` can be set to `unix_socket` or `socket`
- for `socket`, `bridge_pb_host` and `bridge_pb_port` can be specified
2021-03-21 22:00:55 +01:00
Goffi
8768429efc primivitus: updated constants following global renaming, config section is now tui instead of primitivus 2021-03-21 18:16:52 +01:00