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
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
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
rugk
d988632486
Merge pull request #1795 from PrivateBin/dependabot/js
...
Enable Dependabot for JavaScript dependencies
2026-02-25 08:05:51 +01:00
rugk
e8dce7aa36
chore: remove sqlite as it apparently was already installed
2026-02-24 14:24:07 +00:00
rugk
9620031f30
test: pin version of PHPUnit
2026-02-24 13:43:56 +00:00
rugk
7283bcaec0
test(devcontainer): properly install PHP extensions for testing
2026-02-24 13:43:34 +00:00
rugk
285f592e70
test(phpunit): fix PHPUnit different CWD with a custom command
...
As per https://github.com/recca0120/vscode-phpunit/issues/385#issuecomment-3947799942
Also needed to set `XDEBUG_MODE`.
Generally works, but now I get test failures.
2026-02-24 12:37:47 +00:00
rugk
4192751004
Merge remote-tracking branch 'origin/master' into devcontainer/phpunit
2026-02-24 12:13:31 +00:00
rugk
d874ea71a2
test: fix tests
2026-02-24 12:06:46 +00:00
rugk
bf32c7ea64
Enable Dependabot for JavaScript dependencies
2026-02-24 12:30:15 +01: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
rugk
965c4e666e
style(devcontainer): re-add omments to VSCode extensions
2026-02-23 15:27:50 +00:00
rugk
72c8769bcb
wipfix: try providing path to local node_module mocha
2026-02-23 15:19:09 +00:00
rugk
6ea75a7d6e
chore: remove now unneeded global nyc installation
2026-02-23 15:02:52 +00:00
rugk
35a593723d
test: record/install mocha & nyc in package.json
2026-02-23 15:00:42 +00:00
rugk
809a79bd3e
fix(devcontainer): make it possible to run mocha tests in VSCode using different extension
...
Indeed https://github.com/maty21/mocha-sidebar/issues/181#issuecomment-1016768595 seems to work and pointed me to a better extension.
This works better than maty.vscode-mocha-sidebar which could not find nyc.
2026-02-23 14:44:21 +00:00
rugk
47c986a781
fix(test): fix directory separator actually being used everywhere
2026-02-23 13:55:16 +00:00
rugk
422f149c52
feat(devcontainer): try provide --bootstrap arg and use global phpunit
2026-02-23 13:40:10 +00:00
rugk
4e437b4ac7
feat(devcontainer): add/auto-install vscode-phpunit extension
2026-02-23 13:38:43 +00:00