Commit Graph

535 Commits

Author SHA1 Message Date
rugk 045a356c09 test: remove one more jQuery call 2026-03-19 17:23:09 +00:00
rugk 543dc39202 test: remove jQuery from CopyToClipboard even more
Co-Authored-By: Copilot
2026-03-19 17:18:17 +00:00
rugk fbd697245d refactor: remove jQuery from initializers 2026-03-19 17:15:46 +00:00
rugk e094c39186 fix: fix nullable problems found via AttachmentViewer test 2026-03-19 17:03:09 +00:00
rugk 2cf32c1c75 style(jsdoc): fix typing 2026-03-18 13:57:21 +00:00
rugk 2678d2c2b2 test: fix test & implementation error with missing buttons (ids) in UI 2026-03-03 11:08:45 +00:00
rugk dbd380332c style: fix ESLint no-return-assign 2026-03-03 10:12:32 +00:00
rugk d5bf7674ff style: use template literal 2026-03-03 10:07:52 +00:00
rugk b11541a8e4 test: more test fixes
Co-Authored-By: Copliot
2026-03-01 16:19:34 +00:00
rugk 48678638d0 refactor: more null checks introduced by Copilot for fixing tests 2026-03-01 15:20:20 +00:00
rugk 71c6efd3bb wipfeat(i18n): improve error logging for missing translation 2026-03-01 15:16:05 +00:00
rugk 8d360cd6be wipfix: fix more nullabe problems 2026-03-01 15:05:44 +00:00
rugk 38baa8edbe wipfix(i18n): make sure to check for string
Likely introdued in https://github.com/PrivateBin/PrivateBin/pull/1730
2026-03-01 15:04:22 +00:00
rugk 393eb070e9 fix: manually fix exceptions occuring when loading main page 2026-03-01 14:58:18 +00:00
rugk 8bca112251 wipfix: fix variable shadowing problem 2026-03-01 14:29:38 +00:00
rugk 5b008ac5d9 refactor: remove more jQuery references 2026-03-01 14:26:41 +00:00
rugk d8b377dd80 style: remove JQuery fallback 2026-03-01 15:03:16 +01:00
rugk a4ca27d9a3 Potential fix for pull request finding 'Duplicate character in character class'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-02-26 17:57:04 +01:00
rugk 7528639fde Potential fix for pull request finding 'Duplicate character in character class'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-02-26 17:55:31 +01:00
rugk d285a9dfee refactor: remove more jQuery
Co-Authored-By: CoPilot
2026-02-25 20:04:32 +00:00
rugk 84e7cbdfbf test: guard due to test error (fatal memory crash)
Co-Authored-By: Copilot
2026-02-25 18:58:50 +00:00
rugk a6e250f825 refactor: remove more jQuery stuff 2026-02-25 10:09:14 +00:00
rugk 14cba7f4c1 refactor: first step removing jQuery
You are a Frontend engineer specialized in refactoring legacy codebases.
Your task is to solve https://github.com/PrivateBin/PrivateBin/issues/198 aka refactor the JavaScript Frontend code to remove all uses of jQuery in order to modernize the codebase.

**Important notes:**
 - The file to modify is #file:privatebin.js.
 - The mocha tests should stay compatible and continue to run.
 - Do not refactor anything else except what is needed for removing jQuery.

Co-Authored-By: Copilot
2026-02-25 09:53:04 +00:00
rugk 1cc811644f docs: improve JSDoc 2026-02-23 16:00:31 +00:00
rugk 5fd974e247 style: fix/remove trailing comma 2026-02-23 16:00:22 +00:00
rugk 30f80d055b wipfix: fix JS syntax errors 2026-02-23 15:54:56 +00:00
rugk 5dab2392b9 Merge branch 'master' into xss/jsImprove 2026-02-23 16:48:21 +01:00
rugk 69e37c2c04 refactor: introduce purifyHtmlConfigStrictSubset 2026-02-23 16:45:31 +01:00
rugk dcaa019599 refactor: use modern spread syntax for combining object
Given it's 2026 this really should be supported by all browsers now: https://caniuse.com/mdn-javascript_operators_spread,mdn-javascript_operators_spread_spread_in_arrays,mdn-javascript_operators_spread_spread_in_function_calls,mdn-javascript_operators_spread_spread_in_object_literals
2026-02-23 16:36:46 +01:00
rugk 7e506c7f83 refactor: drastically simplify JS "has HTML" extension again
Co-authored-by: El RIDO <elrido@gmx.net>
2026-02-23 16:31:13 +01:00
Stephan Kristyn 5d22847ef1 ES6 Compat code broke everything. Reverting. E2E testing wth multiple files works 2026-02-12 13:48:49 +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 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 ec656a5456 credit Persian translation & enable use of Persian plurals 2026-02-06 19:15:02 +01:00
Ali Fani 6a0fd6fb44 Add Persian (fa) language support and update supported languages list 2026-02-06 11:23:14 +03:30
El RIDO a1c8966a36 Merge branch 'master' into linter-semicolon-insertion 2026-01-28 07:33:58 +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 0ed48c455f address unneeded defensive code lint
IMHO this check is actually necessary, as we do call the function with an empty argument. So we need a guard there, but we could simplify it a bit, by making the argument an empty array by default. I still kept the check for undefined (line 3249, first check) in case the caller passes us an undefined variable.

See: https://github.com/PrivateBin/PrivateBin/security/quality/rules/js%2Funneeded-defensive-code - Copilot suggested to simply remove the if-condition and its else block, which I think is wrong.
2026-01-25 09:26:14 +01:00
Ribas160 b1f57bddd1 Fix eslint errors 2025-12-14 09:18:56 +02:00
Ribas160 ed9b3d1aa0 fix: The content format is not reset on create a new or clone document 2025-12-14 09:08:48 +02:00
Ribas160 54d002d26f fix: Attachment disappears after a "paste" in the message area 2025-12-09 15:43:59 +02:00
El RIDO aa931c7a5c enable Swedish translations 2025-12-02 06:40:07 +01:00
rugk ad55131831 refactor: use given HTML config for DOMPurify 2025-11-15 09:57:39 +00:00
rugk f6893d338b refactor: use DOMParser for checking if translation is HTML 2025-11-13 13:34:51 +00:00
El RIDO e427458cd0 Merge branch 'master' into advisory-fix-1 2025-11-11 22:00:09 +01:00
Mikhail Romanov ff5aee85b4 Insert file names as break-separated text nodes
Co-authored-by: El RIDO <elrido@gmx.net>
2025-11-11 20:05:32 +02:00
Ribas160 9c71fbcc70 Use pure JavaScript to create a div element 2025-11-11 17:45:27 +02:00
Ribas160 14b68af528 Insert drag and drop file names as a text, not html 2025-11-10 17:59:18 +02:00