Commit graph

9057 commits

Author SHA1 Message Date
Harsh Sachdeva
05a51633e2 chore: update README.md - add Contributors section
Signed-off-by: Harsh Sachdeva <sachdevaharsh2003@gmail.com>
2025-08-24 18:47:30 +05:30
Vitor Mattos
31da4499ea
Merge pull request #5348 from LibreSign/chore/added-log-to-track-mcfly
chore: add log to track McFly
2025-08-22 21:02:58 -03:00
Vitor Mattos
817ec598e5
chore: add log to track McFly
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-22 20:22:37 -03:00
Vitor Mattos
d4d6fb81f6
Merge pull request #5346 from LibreSign/dependabot/npm_and_yarn/sha.js-2.4.12
chore(deps): Bump sha.js from 2.4.11 to 2.4.12
2025-08-22 20:18:53 -03:00
Vitor Mattos
7fe38b310d
Merge pull request #5349 from LibreSign/dependabot/composer/mpdf/mpdf-8.2.6
chore(deps): Bump mpdf/mpdf from 8.2.5 to 8.2.6
2025-08-22 14:39:11 -03:00
dependabot[bot]
ceb3ec7c19
chore(deps): Bump mpdf/mpdf from 8.2.5 to 8.2.6
Bumps [mpdf/mpdf](https://github.com/mpdf/mpdf) from 8.2.5 to 8.2.6.
- [Release notes](https://github.com/mpdf/mpdf/releases)
- [Changelog](https://github.com/mpdf/mpdf/blob/development/CHANGELOG.md)
- [Commits](https://github.com/mpdf/mpdf/compare/v8.2.5...v8.2.6)

---
updated-dependencies:
- dependency-name: mpdf/mpdf
  dependency-version: 8.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 16:29:58 +00:00
dependabot[bot]
3d037637c7
chore(deps): Bump sha.js from 2.4.11 to 2.4.12
Bumps [sha.js](https://github.com/crypto-browserify/sha.js) from 2.4.11 to 2.4.12.
- [Changelog](https://github.com/browserify/sha.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/sha.js/compare/v2.4.11...v2.4.12)

---
updated-dependencies:
- dependency-name: sha.js
  dependency-version: 2.4.12
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 02:43:44 +00:00
Nextcloud bot
e469d09e84
fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-08-22 02:24:15 +00:00
David Lima
d4066dcf67
chore: changelog
[skip ci]

Signed-off-by: David Lima <antdavidlima@gmail.com>
2025-08-21 15:45:31 -03:00
Nextcloud bot
399d241054
fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-08-21 02:23:42 +00:00
Vitor Mattos
198a6fc966
Merge pull request #5329 from LibreSign/feat/add-request-header
feat: add request header
2025-08-20 14:45:45 -03:00
Vitor Mattos
f061db18ca
Merge pull request #5327 from LibreSign/chore/remove-unecessary-check-if-node-exists
chore: remove unecessary check if node exists
2025-08-20 14:44:21 -03:00
Vitor Mattos
579cd68c4b
chore: move return to catch to be more clear
https://github.com/LibreSign/libresign/pull/5327#discussion_r2288622171

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 14:36:38 -03:00
Vitor Mattos
7a4f366ad1
fix: remove unused argument
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:37 -03:00
Vitor Mattos
6e0601b078
fix: split errors
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:37 -03:00
Vitor Mattos
fb6fefe6a2
fix: unit tests
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:37 -03:00
Vitor Mattos
aeb10a69fc
chore: make the catch more specific
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:36 -03:00
Vitor Mattos
48cd6edf74
chore: use newest method to get node by id
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:36 -03:00
Vitor Mattos
4c9304df31
fix: adjust condition
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:36 -03:00
Vitor Mattos
adde54861c
chore: cover class with more tests
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:36 -03:00
Vitor Mattos
77d7708000
chore: method simplified
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:36 -03:00
Vitor Mattos
1bf82b8994
chore: remove unecessary code
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:36 -03:00
Vitor Mattos
bbfefe6161
fix: cs
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
414e929040
fix: update tests after refactor methods
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
07217c7128
chore: remove unecessary nodeExists
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
0a72ab59f0
chore: remove unecessary nodeExists
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
88e91e0f7b
chore: remove unecessary check if folder exists
The newFolder already do this

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
7969f1aa4c
chore: make the catch more specific
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
653e032478
chore: remove unecessary call to nodeExists
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
1101c8d46a
chore: remove unecessary check if node exists
The method get already do this and throw an exception when the file
don't exists.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
66b4578730
chore: simplify code
The method newFile already check if the file exists and work as expected
when exists.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:35 -03:00
Vitor Mattos
ce9498914c
chore: method renamed and simplified, removed unecessary code
Was removed unnecessary code.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:10:34 -03:00
Vitor Mattos
af61cbc07e
fix: psalm issue
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:09:50 -03:00
Vitor Mattos
27d43191b9
feat: add request header
Available since Nextcloud 32

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 09:09:50 -03:00
Vitor Mattos
721030313a
Merge pull request #5331 from LibreSign/chore/bump-dependencies
chore: bump dependencies
2025-08-20 00:25:25 -03:00
Vitor Mattos
b7ca7cb02f
fix: update mock constructor
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-20 00:00:24 -03:00
Vitor Mattos
a7d9b0ee40 chore: bump dependencies
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-19 16:40:32 -03:00
Vitor Mattos
8cd6ae4723
Merge pull request #5323 from LibreSign/fix/prevent-show-add-signers-early
fix: prevent show add signers early
2025-08-19 15:57:45 -03:00
Nextcloud bot
209c6842f3
fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-08-19 02:24:26 +00:00
Nextcloud bot
88fff0bf3c
fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-08-18 02:22:20 +00:00
Vitor Mattos
a0676822e0
Merge pull request #5322 from LibreSign/fix/always-return-the-owner-file
fix: always return the owner of the file to be signed
2025-08-16 12:01:59 -03:00
Vitor Mattos
7de2bf5cc0
fix: prevent show add signers early
Currently, some buttons are displayed **too early** when opening the sidebar in the Files app.
These buttons only make sense after all the necessary data has been loaded from the LibreSign API.

A few seconds later, once the API response arrives, the application can correctly determine whether the buttons should be displayed or not.

The problem:

* Buttons appear before the API response.
* This causes users to see options that should not be available yet.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-16 10:07:51 -03:00
Vitor Mattos
a828838888
fix: always return the owner of the file to be signed
To don't throw exceptions at the app file_version, we need to always
return the owner of the file .signed.pdf.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-15 18:31:05 -03:00
Vitor Mattos
c367e3adfd
Merge pull request #5313 from LibreSign/chore/bump-dependencies
chore: bump dependencies
2025-08-13 21:44:33 -03:00
Vitor Mattos
b35082ad48 fix: make compatible with newest version of JSignPdf package
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-13 21:21:11 -03:00
Vitor Mattos
277b33c86d chore: bump dependencies
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-13 20:29:41 -03:00
Vitor Mattos
10b8f3a166
Merge pull request #5316 from LibreSign/fix/configure-check-with-poppler
fix: configure check with poppler
2025-08-13 11:08:32 -03:00
Vitor Mattos
cff6a52ab1
chore: rename var
Remove override var and used a new name to return value

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-13 10:40:24 -03:00
Adam Serbinski
84d68a501a
fix: ConfigurationCheck failure on poppler-utils
By default, PHP-FPM clears all environment variables in workers. The result of this is that the "which" command, previously used to determine that pdfsig and pdfinfo commands are available on the system would return NULL instead of the path to the commands.

We solve this by instead simply executing the command "pdfinfo -v" or "pdfsig -v" and checking the return value. A return value of anything besides "0" indicates that the command failed.

Signed-off-by: Adam Serbinski <37986043+ASerbinski@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-08-13 10:40:11 -03:00
Nextcloud bot
abf7fafbd1
fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-08-13 02:33:32 +00:00