Commit graph

154 commits

Author SHA1 Message Date
El RIDO
ddd2d72064
replaced the term "paste" with the more generic "document"
Some of the references to "paste" in code or comments got changed as well, but to clarify the intended usage of the terms:

- A PrivateBin document can consist of a paste text (key "paste" in the encrypted payload) and one or several attachments and discussion entries.
- Internally the root document is called a "Paste" and each discussion entry is called a "Discussion".
- When referring to a whole document with one paste and optional discussion(s), we call it just "document".
- When talking about a particular JSON payload type in the internal logic, i.e. during storage or transmission, we call them a paste or discussion to distinguish which type we refer to.

closes #397
2025-07-24 10:46:31 +02:00
Ribas160
5d119768c3
JavaScript unit tests for new SI units added, privatebin.js SRI updated 2025-07-24 00:33:38 +03:00
Ribas160
863cb89ad9
Switch from binary bytes to SI-units 2025-07-23 21:06:20 +03:00
El RIDO
e82be3bd9d
Merge pull request #1600 from PrivateBin/bootstrap-5.3.7
Upgrade libraries: bootstrap 5.3.7, kjua 0.10.0 & base-x 5.0.1
2025-07-22 12:10:10 +02:00
El RIDO
47d7f5bc60
addressing false positive jsverify rngState 0dc9b3f5704ad26e18 2025-07-22 12:09:19 +02:00
El RIDO
f68650ce5f
upgrade bootstrap to 5.3.7 2025-07-22 09:45:15 +02:00
El RIDO
4daf0a2307
"0" is not a valid base58 encoding as leading zeros are trimmed, "1" is valid and decodes to 0x00 2025-07-21 12:29:11 +02:00
El RIDO
734b85eb08
remove more v1 remnants
kudos @Ribas160
2025-07-21 12:28:40 +02:00
El RIDO
f7cf389f36
remove v1 backend support and version checks in the frontend 2025-07-05 17:21:12 +02:00
El RIDO
6d5323e351
drop legacy paste format support
remove support for ZeroBin & v1 pastes and base64 & rawinflate libraries
2025-07-05 11:06:30 +02:00
Ribas160
38955754f3 Fixed hightlight file upload on bootstrap5 template 2025-07-04 18:18:00 +03:00
Ribas160
692e7af196 - window.confirm fallbacks for page template removed
- page template removed from configuration-test-generator
2025-07-03 13:13:42 +03:00
Ribas160
a2ca2ecb37 Use 1024 based file size units to follow consistency 2025-06-28 14:00:50 +03:00
Ribas160
d01c37c59d Show file name and size on download page 2025-06-26 18:12:22 +03:00
Ribas160
095a5be0b6 Allow multiple files 2025-06-02 14:35:54 +03:00
El RIDO
e68430e9c5
clarify comments 2025-02-28 21:38:30 +01:00
El RIDO
d0303dce9c
clarify comments 2025-02-28 21:36:51 +01:00
El RIDO
9f82eb64cb
clarify test descriptions 2025-02-28 21:25:40 +01:00
El RIDO
4e518b3fce
update jsdom dependency, fix tests 2025-02-27 08:16:30 +01:00
El RIDO
64b0e33574
update jsdom dependency, fix tests 2025-02-11 08:10:25 +01:00
El RIDO
e4d1f4a26d
update jsdom dependency, disable test 2025-02-11 07:52:23 +01:00
El RIDO
3b6b97429d
update jsdom dependency, fix tests 2025-02-07 08:54:55 +01:00
El RIDO
dc983621ac
update jsdom dependency, fix tests 2025-02-07 08:19:09 +01:00
El RIDO
ac63b91a1b
fix prompt test
rngState 883a6d2e518704c9fb fails on a single \n (line feed)

password inputs can't contain carriage returns *or* line feeds
2025-02-06 08:48:36 +01:00
El RIDO
db15ae8b43
fix prompt test
rngState 003ad8214ef0579cb6 fails on a single \n (line feed)

password inputs can't contain carriage returns *or* line feeds
2025-02-06 08:43:02 +01:00
El RIDO
740fd90db9
update jsdom & jsdom-global development dependency, fix cookie test 2025-02-06 08:39:25 +01:00
ribas160
48eb6ef87a Custom clipboard object added to the unit tests 2025-01-10 16:24:49 +02:00
Ribas160
6c651ea676 CopyToClipboard unit tests 2025-01-07 17:40:18 +02:00
El RIDO
4076a831eb
Merge branch 'master' into keyboard-trap 2025-01-05 07:23:41 +01:00
ribas160
7b57d7b289 - trash icon added to bootstrap-icons.svg
- made delete link a separate button
- unit tests updated
2025-01-04 22:53:32 +02:00
El RIDO
9028ddbb97
update all language files & SRI hashes
all tests pass, still need to replicate template changes and do manual testing to validate the UX
2024-11-24 12:49:21 +01:00
El RIDO
f9f8f18781
helper interacts with rawText call 2024-05-18 21:55:14 +02:00
El RIDO
5e5b394291 fix rawText test and split parts into hideAllButtons test 2024-05-18 20:02:54 +02:00
Ankiiisharma
bae6e6ff25 Added test case to verify rawText
Added test case to verify rawText manipulates button visibility correctly
2024-05-18 00:09:23 +05:30
El RIDO
81ad352c8c
improve TopNav.getExpiration test 2024-05-09 16:11:15 +02:00
El RIDO
63b2526ee7
"Send" button now labeled "Create", fixes #946 2024-02-12 21:50:11 +01:00
El RIDO
4e62e1f6ef address jsverify rngState 87ab3f64de258190c7, fixes #1139 2024-01-08 08:09:29 +01:00
El RIDO
405479642f add YOURLS API samples for extractUrl validation 2024-01-07 17:45:01 +01:00
El RIDO
fd82b937a9 refactor URL generators 2024-01-07 16:06:24 +01:00
El RIDO
d493ba7337 refactor URL generators 2024-01-07 15:47:29 +01:00
El RIDO
37ee3b1c7c refactor URL generators 2024-01-07 14:10:43 +01:00
El RIDO
cc0b6e387a avoid use of bleeding edge function
only supported in Firefox & Chrome >= 120 & node >= 19.9.0 & 18.17.0
2024-01-04 23:23:47 +01:00
El RIDO
a80bd4e4ea fix url filter, IDN URL unit test 2024-01-04 23:08:17 +01:00
El RIDO
5c97443d1d
add basic RTL support, drop default language key 2023-09-19 07:29:00 +02:00
El RIDO
7a6f36a789
disable failing part of the test 2022-02-23 06:04:05 +01:00
El RIDO
a0f8a667ae
deprecated functions, fix test partially 2022-02-20 21:07:04 +01:00
El RIDO
77ee40909f
record defaults during initialization, fixes #682 2021-04-05 13:24:53 +02:00
El RIDO
5fd829aa09
adding unit tests for TopNav.resetInput(), triggering bug described in #682 2021-04-05 12:50:23 +02:00
El RIDO
5ec72f1d89
address false positive jsverify RngState 080d2f5b13a86e97c4 2020-10-04 14:08:27 +02:00
El RIDO
cb0faf690c
DOMpurify strips line tabulation characters (\u000b), adresses jsverifyRngState 8f6fbd749c3852ea01 2020-06-07 07:58:07 +02:00