Commit Graph

4592 Commits

Author SHA1 Message Date
rugk
13ecf7e7cb test: fix PasteStatus tests by creating pastesuccess notification 2026-03-20 09:06:35 +00:00
rugk
c2bfcc17fd test: explicitly include fs dependency 2026-03-20 08:16:04 +00:00
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
784f381e28 test: change all other tests to not use jQuery 2026-03-19 16:53:30 +00:00
rugk
414a87c025 test: use native non jquery for TopNav too fixing most tests of it 2026-03-18 16:09:46 +00:00
rugk
cc431a3f14 test: use document.documentElement.innerHTML for setting test HTML 2026-03-18 14:09:15 +00:00
rugk
3820fdf765 style: remove manual cleanup 2026-03-18 13:58:49 +00:00
rugk
0f3831b423 style: use web APIs to set document instead of jQuery for compatibility 2026-03-18 13:58:24 +00:00
rugk
2cf32c1c75 style(jsdoc): fix typing 2026-03-18 13:57:21 +00:00
rugk
1104873830 test: fix tests error again 2026-03-18 13:57:09 +00:00
rugk
2678d2c2b2 test: fix test & implementation error with missing buttons (ids) in UI 2026-03-03 11:08:45 +00:00
rugk
3de6dc9f68 test: use cleanup function everywhere instead of jsdom manually 2026-03-03 11:01:30 +00:00
rugk
778df44b0b test: manually remove useless cleanup stuff 2026-03-03 11:00:25 +00:00
rugk
69533d493b Merge branch 'master' of https://github.com/PrivateBin/PrivateBin into js/removeJQuery 2026-03-03 10:28:27 +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
3a08f1866d chore: use correct base href 2026-03-03 10:02:22 +00:00
rugk
194eb93d00 chore: stay on ES2018 for now 2026-03-03 10:00:48 +00:00
rugk
bbeab997c4 chore: ignore jsconfig.json when exporting 2026-03-03 09:58:48 +00:00
rugk
0155f99e58 test: import privatebin.js 2026-03-01 18:41:16 +00:00
rugk
47aa7aae36 test: Copilot generated new simpler test cases 2026-03-01 16:30:07 +00:00
rugk
b11541a8e4 test: more test fixes
Co-Authored-By: Copliot
2026-03-01 16:19:34 +00:00
rugk
ea4f5ba920 test: Copilots tries at fixing tests 2026-03-01 15:22:05 +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
El RIDO
1ba8aa15aa Merge pull request #1800 from PrivateBin/dependabot/npm_and_yarn/js/multi-770cfcd984
chore(deps): bump minimatch in /js
2026-02-28 09:08:05 +01:00
El RIDO
7aa30ad243 Merge pull request #1799 from PrivateBin/dependabot/github_actions/actions/upload-artifact-7
chore(deps): bump actions/upload-artifact from 6 to 7
2026-02-28 09:05:00 +01:00
dependabot[bot]
7057c216fd chore(deps): bump minimatch in /js
Bumps  and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together.

Updates `minimatch` from 3.1.2 to 3.1.5
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

Updates `minimatch` from 9.0.6 to 9.0.9
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
- dependency-name: minimatch
  dependency-version: 9.0.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-28 04:28:46 +00:00
dependabot[bot]
380fe5b2c3 chore(deps): bump actions/upload-artifact from 6 to 7
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-27 11:52:45 +00:00
rugk
132121f2e1 Merge pull request #1798 from PrivateBin/dependabot/github_actions/dawidd6/action-download-artifact-16
chore(deps): bump dawidd6/action-download-artifact from 15 to 16
2026-02-26 18:02:35 +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
dependabot[bot]
e680917be9 chore(deps): bump dawidd6/action-download-artifact from 15 to 16
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 15 to 16.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](fe9d59ce33...2536c51d3d)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-version: '16'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 11:52:41 +00: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
0fe51a91a4 test: add npm lint command 2026-02-25 18:57:30 +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
e2d900eb02 test: add basic JSConfig to make VSCode type-check the JS file 2026-02-25 09:51:16 +00:00
rugk
32ab4dade5 Merge pull request #1790 from PrivateBin/devcontainer/phpunit
fix(devcontainer): try making VSCode test extension work (PHPUnit/Mocha)
2026-02-25 09:50:27 +01:00
rugk
ee4d5975f8 Merge pull request #1730 from PrivateBin/xss/jsImprove
Simplify parsing untrusted code and strengthen DOMPurify config
2026-02-25 08:08:28 +01:00