Commit Graph

45 Commits (e41042eeea1bc8da2cf24379465c740dcfe786b9)

Author SHA1 Message Date
Opliko 23cb67a112 feat: Allow defining active plugins in config ()
* Revert "Revert "feat: cross origin opener policy options ()""

This reverts commit 46050ace1a.

* Revert "Revert "chore(i18n): fallback strings for new resources: nodebb.admin-settings-advanced""

This reverts commit 9f291c07d3.

* feat: closes , don't trim children if category is marked section

* feat: fire hook to allow plugins to filter the pids returned in a user profile

/cc 

* fix: use `user.hidePrivateData();` more consistently across user retrieval endpoints

* feat: Allow defining active plugins in config

resolves 

* fix: assign the db result to files properly

* test: add tests with plugins in config

* feat: better theme change handling

* feat: add visual indication that plugins can't be activated

* test: correct hooks

* test: fix test definitions

* test: remove instead of resetting nconf to avoid affecting other tests

* test: ... I forgot how nconf worked

* fix: remove negation

* docs: improve wording of error message

* feat: reduce code duplication

* style: remove a redundant space

* fix: remove unused imports

* fix: use nconf instead of requiring config.json

* fix: await...

* fix: second missed await

* fix: move back from getActiveIds to getActive

* fix: use paths again?

* fix: typo

* fix: move require into the function

* fix: forgot to change back to getActive

* test: getActive returns only id

* test: accedently commented out some stuff

* feat: added note to top of plugins page if \!canChangeState

Co-authored-by: Julian Lam <julian@nodebb.org>
Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
Barış Soner Uşaklı 0e72512509 test: fix function name
Barış Soner Uşaklı d375dcb873 test: submitUsage
Barış Soner Uşaklı 30cce14204 test: fix tpl test
Barış Soner Uşaklı d27c9696e3
feat: add node 16 ()
* feat: add node 16

* fix: check errors in fork

* test: add use-spawn

* test: another test

* Revert "test: another test"

This reverts commit 606efe26fe1decd5d9269d63d5b649441ba2203b.

* test: another test

* fix: lint

* fix: remove spawn-wrap

* test: comment out plugin installs

* fix: lint

* test: uncomment all tests except npm i

* fix: lint

* test: bring back tests

* test: remove leftover override
Barış Soner Uşaklı 084c985117 feat: guard against multiple resolves
Barış Soner Uşaklı 5fe97b9c2e revert: sync hooks
Barış Soner Uşaklı 1029a06a87 test: fix tests
Barış Soner Uşaklı 01956af43a feat: remove sync hooks support
Barış Soner Uşaklı 34b9aaedee
feat: allow sync function ()
* feat: allow sync function

* fix: remove async
Barış Soner Uşaklı e725beaa4a Revert "feat: allow filter functions that return promises or the data directly"
This reverts commit e6c52cf26c.
Barış Soner Uşaklı e6c52cf26c feat: allow filter functions that return promises or the data directly
Barış Soner Uşaklı 46270f9f20 feat: bring back static hook timeout
Barış Soner Uşaklı 39b0e0fb91 fix: tests
Peter Jaszkowiak 23f212a4c0 chore: eslint prefer-destructuring
Peter Jaszkowiak dab3b23575 chore: eslint no-var, vars-on-top
Peter Jaszkowiak b56d9e12b5 chore: eslint prefer-arrow-callback
Peter Jaszkowiak 707b55b6a5 chore: eslint prefer-template
Barış Soner Uşaklı 647d3ba810 fix: removed methods
Julian Lam 885e0ebfde Revert "fix: bypass nbbpm for now"
This reverts commit 33c1bd5f01.
Barış Soner Uşaklı 33c1bd5f01 fix: bypass nbbpm for now
Barış Soner Uşaklı 3a23ddaba5 feat: move plugin tests to separate file
Barış Soner Uşaklı a6bb9f4364 fix: , run plugin tests for installed plugins
Barış Soner Uşaklı 01d1ae78c8 fix: , bubble errors from static hooks
Aziz Khoury a6436716ea feat: hooks can now return promise or call callbacks
* hooks can now return promise or call callbacks, either way works

* cleanups

* moar cleanups and fix callback 1st null arg

* rm unnessesary spread
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 ()
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: , linting 😬
Barış Soner Uşaklı 2bd02a7ae1 disable timeout on plugin installs
Barış Soner Uşaklı 15e9bbac92 closes
Barış Soner Uşaklı b778c8433a change hook name
Barış Soner Uşaklı b55087dab7 closes
Peter Jaszkowiak dfad76120d Support npm@5 and yarn ()
* Support npm@5 and yarn

Use package.default.json
Partial 

- Overwrite package.json with package.default.json values
- `dependencies` field is merged with package.default.json version taking precidence
- `./nodebb upgrade` automatically does those things and runs `git pull`
- use `./nodebb upgrade --dev` to avoid the `git pull`

* added logic to preserve extraneous plugins installed in node_modules/

* Don't automatically git pull

* Simplify package-install, run it on upgrade just in case
Peter Jaszkowiak dc324b36b2 Add test for Plugins.showInstalled
Peter Jaszkowiak 90da6d889d Only load necessary plugin data
Fix tests to work in this case
Add more verbose messages to plugins/data
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
Peter Jaszkowiak 52f2028206 ESlint no-multiple-empty-lines
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments
Barış Soner Uşaklı c4d4d2385b closes closes
barisusakli a4ebb7f56e test plugin static assets
barisusakli 50a2a7abbe plugins/install tests
barisusakli 2d10490ca3 more plugin tests
Sergii Paryzhskyi e515b791da Fix eslint rules ()
* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
barisusakli 1a63672e66 more test fixes
barisusakli bfcef27c47 plugin tests