Commit graph

692 commits

Author SHA1 Message Date
Ribas160
ec2d230d1b
refactor: deduplicate OS-specific hotkey detection into a shared helper 2026-05-29 15:43:41 +03:00
Ribas160
5d946c52a7
feat: Show OS-specific copy hotkey hint 2026-05-27 00:28:32 +03:00
Ribas160
f0a08f8b57
fix: hide shortcut hint text on small screens 2026-05-16 11:46:48 +03:00
Ribas160
5bbe713b9c
fix: move copy to clipboard button outside of prettymessage block 2026-05-15 13:28:34 +03:00
El RIDO
b77639849c
Merge pull request #1838 from tmchow/osc/1833-status-alert-alignment
fix(bootstrap5): left-align status alert text after handleNotification rerender
2026-05-03 16:37:50 +02:00
Trevin Chow
92ea78005b fix(bootstrap5): add gap-2 between status alert icon and message text
Removing justify-content-between left the icon and text touching with no
spacing after handleNotification rerenders the alert into two flex
children. Add gap-2 (0.5rem) on the parent so they get a small visual
break consistent with Bootstrap 5 alert conventions.

The deleted-paste case (icon + text inline inside the inner div, plus the
"Start over" button as the second child) keeps its original spacing
because PHP_EOL provides the icon-text separation; gap-2 only adds 0.5rem
between the inner div and the right-aligned button, which reads cleanly.
2026-04-29 15:13:33 -07:00
Trevin Chow
7f61ff139c fix(bootstrap5): left-align status alert text after handleNotification rerender (#1833)
Drop `justify-content-between` from `#status` so the alert icon and text
stay together on the left when JS rerenders the alert via
`Alert.showStatus`. The deleted-paste case still needs the "Start over"
button on the right, so move the anchor onto the button via `ms-auto`
instead of relying on the parent flex layout.

Closes #1833
2026-04-29 02:12:14 -07:00
El RIDO
e24614169d
Merge branch 'master' into zlib-1.3.2 2026-04-29 07:09:23 +02:00
El RIDO
a455c962d5
update DOMpurify library from 3.4.0 to 3.4.1 2026-04-23 07:15:03 +02:00
El RIDO
67baf8cca4
update DOMpurify library from 3.3.2 to 3.4.0 2026-04-18 09:28:58 +02:00
El RIDO
fbfe87d993
avoid mjs for now, inject map, Buffer is node-only 2026-04-04 10:22:10 +02:00
El RIDO
43a729b1f9
updating zlib to 1.3.2 2026-04-03 18:15:54 +02:00
El RIDO
604e61beaa
update DOMpurify library from 3.3.0 to 3.3.2 2026-03-07 09:00:06 +01:00
Stephan Kristyn
cfea0fb20e Now leaving styling to customer if he wants the filename and filesize as a hyperlink or outside the hyperlink 2026-02-11 19:03:34 +01:00
Stephan Kristyn
755be747a6 Refactoring the way DOM element is created and styled. Now leaving styling to customer 2026-02-11 18:41:44 +01:00
Stephan Kristyn
89838a4871 Removing unnecessary alterations-3 2026-02-10 18:37:21 +01:00
Stephan Kristyn
7467840644 Removing unnecessary alterations-2 2026-02-10 18:34:30 +01:00
Stephan Kristyn
42d516c07a Removing unnecessary alterations 2026-02-10 18:30:42 +01:00
Stephan Kristyn
9ab16674aa Adding Bootstrap Classname to dynamically created child element 2026-02-10 18:22:17 +01:00
Stephan Kristyn
e2b4b8a7f8 Adding new DOM element, CSS and JS code 2026-02-10 14:36:03 +01:00
El RIDO
a4eaa77b82
address semicolon insertion lint
> Code that uses automatic semicolon insertion inconsistently is hard to read and maintain.

See: https://github.com/PrivateBin/PrivateBin/security/quality/rules/js%2Fautomatic-semicolon-insertion
2026-01-25 09:41:52 +01:00
El RIDO
b4db5f8e57
apply null coalescing operator, strict equality, avoid aliases, prefer empty 2025-11-20 08:19:14 +01:00
El RIDO
3a23117ebf
Refactored translation of exception messages 2025-11-19 09:36:40 +01:00
El RIDO
fd2c2ae0c5
update DOMpurify library from 3.2.7 to 3.3.0 2025-10-25 10:52:40 +02:00
El RIDO
b7286cf99a
fix bootstrap template password peek display 2025-10-13 18:51:15 +02:00
El RIDO
06496a1b0e
update bootstrap CSS library from 5.3.7 to 5.3.8 2025-10-09 09:24:08 +02:00
El RIDO
ed9bdc4272
update DOMpurify library from 3.2.6 to 3.2.7 2025-10-09 08:57:20 +02:00
El RIDO
23624d693c
shorten show password message
as per suggestion of @rugk during review
2025-10-06 22:08:04 +02:00
El RIDO
d50231a531
apply suggestions to use existing bootstrap icons
as per discussion in https://github.com/PrivateBin/PrivateBin/pull/1647#discussion_r2345917795
2025-10-05 09:47:39 +02:00
Karthik Kasturi
f9c958da90 Password peek 🫣 2025-09-11 21:34:12 +00:00
Karthik Kasturi
24afa5a1d8 removed CSP tag from shortenerproxy.php 2025-09-11 18:17:30 +01:00
Karthik Kasturi
4a39a2ad0f refactor: added AbstractProxy base class for shortener proxies 2025-08-15 23:28:44 +01:00
Karthik Kasturi
0808052acf Added shlink integration 2025-08-15 00:07:51 +01:00
Karthik Kasturi
059e64adb1 Auto Shortening URLs 2025-08-14 00:29:28 +01:00
Karthik Kasturi
397d006479
Updated bootstrap.php to include scripts as defer 2025-08-08 12:44:53 +05:30
Karthik Kasturi
4f8fc4873a
Update scripts to defer 2025-08-04 03:09:04 +05:30
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
El RIDO
e50a809855
upgrade base-x to 5.0.1 2025-07-22 10:32:08 +02:00
El RIDO
f3e2c53729
upgrade kjua to 0.10.0 2025-07-22 09:49:48 +02:00
El RIDO
f68650ce5f
upgrade bootstrap to 5.3.7 2025-07-22 09:45:15 +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
3d3d80c60b Remove page template 2025-07-02 17:38:13 +03:00
Ribas160
207b5ccc5f Page template scripts loading order fix 2025-06-30 09:46:05 +03:00
El RIDO
964b4da50a
Merge pull request #1545 from PrivateBin/fixes
Fixes for zlib caching & handling undefined globals
2025-06-27 16:49:00 +02:00
El RIDO
8d720e4990
Merge branch 'master' into dompurify-3.2.6 2025-06-07 10:41:48 +02:00
El RIDO
34028229c8
Merge branch 'master' into fixes 2025-06-07 10:37:23 +02:00
Ribas160
095a5be0b6 Allow multiple files 2025-06-02 14:35:54 +03:00
El RIDO
dededc9935
upgrade DOMpurify library to 3.2.6 2025-05-20 07:51:50 +02:00
El RIDO
bace4695ac
update zlib js suffix, as a cache breaker 2025-05-18 20:21:34 +02:00
El RIDO
31162e8011
upgrading DOMpurify library to 3.2.5 2025-04-06 08:30:49 +02:00