Commit graph libervia-backend/sat_frontends
Author SHA1 Message Date
Goffi
216b3246e8 frontends (tools/jid): remove old pyjamas code + type hints 2023-05-15 17:19:54 +02:00
Goffi
5ba4239fcc core: don't use meta_ prefix anymore for action_extra in action_new signal. 2023-05-15 16:20:50 +02:00
Goffi
1d0a1b66d9 core (bridge): action_new now use serialised dict for extra data. 2023-05-15 16:20:45 +02:00
Goffi
6a6f15707a massive refactoring to switch from camelCase to snake_case:
historically, Libervia (SàT before) was using camelCase as allowed by PEP8 when using a
pre-PEP8 code, to use the same coding style as in Twisted.

However, snake_case is more readable and it's better to follow PEP8 best practices, so it
has been decided to move on full snake_case. Because Libervia has a huge codebase, this
ended with a ugly mix of camelCase and snake_case.

To fix that, this patch does a big refactoring by renaming every function and method
(including bridge) that are not coming from Twisted or Wokkel, to use fully snake_case.

This is a massive change, and may result in some bugs.
2023-04-08 13:54:42 +02:00
Goffi
ac229db809 cli (info/disco): Add external services in results:
rel 418
2023-04-07 15:18:05 +02:00
Goffi
d52af77c44 jp (blog): new --attachment argument to attach files or external data to a blog post 2023-03-23 15:43:48 +01:00
Goffi
c3f97ec712 component AP gateway: handle attachments 2023-03-23 15:42:21 +01:00
Goffi
684401a3d8 cli (blog, pubsub): encryption argument for Pubsub Targeted Encryption:
add a new `--encrypt-for` argument to `blog/set` `blog/edit` `pubsub/set` and `pubsub/edit`

rel 382
2022-10-31 13:48:01 +01:00
Goffi
5623d2c4ad cli (file/send): add --encrypt argument to request encryption:
rel 378
2022-10-31 04:09:38 +01:00
Goffi
2f94daec1a cli (pubsub/set,edit) add --sign argument:
`signature` subcommands have also been moved just before `secret` subcommands.

rel 381
2022-10-30 01:06:58 +02:00
Goffi
58f0d26692 cli (pubsub/signature): add sign command:
this command can be used to sign any pubsub item.

rel 381
2022-10-30 01:06:58 +02:00
Goffi
8ec64e41fd cli (pubsub): new signature subcommands:
A first `check` command can be used to check signature using the signature JSON data.
More commands should follow to check or sign items.

rel 381
2022-10-28 18:47:17 +02:00
Goffi
c400bc8217 cli (blog/set): new --sign argument:
rel 381
2022-10-28 18:47:17 +02:00
Goffi
48d1f2fc21 cli (pubsub/set, edit): add --encrypt flag:
rel 380
2022-10-15 20:38:33 +02:00
Goffi
b9f5c6b844 cli (pubsub): new secret subcommands:
commands are added to `share`, `revoke` and `rotate` secrets of an encrypted pubsub node.

rel 380
2022-10-15 20:38:30 +02:00
Goffi
f99544e881 cli (pubsub/get): add --no-decrypt flag to disable automatic decryption:
rel 380
2022-10-15 20:37:00 +02:00
Goffi
ba9a4ef31b cli (blog): add --encrypt argument on publication commands to e2ee a blog post:
rel 380
2022-10-15 20:37:00 +02:00
Goffi
cb44cb1991 cli (file/get): handle full JSON attachment following change in backend:
rel 379
2022-10-06 16:02:05 +02:00
Goffi
d557e06fbd cli (message/send): new --attach argument to send an attachment:
rel 379
2022-10-06 16:02:05 +02:00
Goffi
4bae534e0f cli (event): update commands following changes in events:
- commands have been update to match changes in bridge method.
- arguments have been completely reworked for `create` and `modify` commands, making it
  possible to fine tune events.
- `list` has been removed in favor of `get` which can now display several events at once

rel 372
2022-09-22 00:01:48 +02:00
Goffi
a74f9327f2 core, CLI (base), tools (common/data_format): typing/core readability 2022-09-21 22:20:43 +02:00
Goffi
68fb304032 cli (pubsub/attachment/set): update reactions handling:
- reactions data has been updated following changes in XEP-0470 plugin
- it is now possible to remove a reaction using uppercase `-R`
- short option from `--replace` has been removed, as it is more handy to use `-R` to
  remove reactions

rel 371
2022-08-31 17:07:03 +02:00
Goffi
7ddf0241c6 plugin XEP-0424: rename bridge method:
``messRetract`` is renamed to ``messageRetract`` for consistency with other message bridge
methods.
2022-08-31 17:07:03 +02:00
Goffi
0aa9613693 cli (blog, pubsub): new attachments subcommands:
`pubsub/attachments` subcommands has a `get` and a `set` subcommand to manage attachments
of a pubsub item.

`blog` has the same subcommands, the only difference is that if `--node` is not specified,
the default blog namespace will be used.

rel 370
2022-07-20 17:55:11 +02:00
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