Commit Graph

370 Commits (0417e5f16cf52a4f1e6081a1a9f1c5619108a592)

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ı 6d38eab69a refactor: update dates
Peter Jaszkowiak 707b55b6a5 chore: eslint prefer-template
Peter Jaszkowiak 4ee0f1459d chore: eslint import/newline-after-import
Barış Soner Uşaklı 07fe959ce5 chore: remove test code
Barış Soner Uşaklı b8cafefce2 fix: winston usages
Barış Soner Uşaklı 8383992dcc feat: move export functions into child processes
Barış Soner Uşaklı cb662e15ce feat: improve grunt restart/rebuild speed
Barış Soner Uşaklı 03827fa695 feat: resetting theme will reset skin
async/await cli/reset
Barış Soner Uşaklı 75d7ae9272 refactor: async/await
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 😬
Peter Jaszkowiak 9a32118418 Enable `require.main.require` in tests ()
Barış Soner Uşaklı 85c60316ed
upgrade to winston 3.1, closes ()
* upgrade to winston 3.1

* fix winston in web/install and tests
Peter Jaszkowiak c93651b2d1 Fix alternate config file support ()
Peter Jaszkowiak 3299324534 Fix console colors with `app.js`
Closes 
Peter Jaszkowiak ae24bca16e CLI refactor with commander ()
* CLI refactor with commander

- Modularized the functionality
- All functionality done directly from `./nodebb` now
(still available from `app` for backwards compatibility)
- Moved all CLI code from `./nodebb` to `src/cli`
- Fixed `nodebb.bat` to work from any location, like `./nodebb`, and
also hides command output
- Overwrite some commander methods to add CLI color support
- Added `./nodebb info` for quick info including git hash, NodeBB
version, node version, and some database info
- Refactored `./nodebb reset` to allow multiple resets at once
- Changed `./nodebb restart` to essentially stop and start, as Windows
doesn't support signals
- Added `-l, --log` option which works on `./nodebb start` and `./nodebb
restart` to show logging, like `./nodebb slog`
- Expanded `-d, --dev` option which works on them as well, like
`./nodebb dev`
- Improvements to self-help. `./nodebb build -h` will output all
possible targets
- `./nodebb reset` explains usage better

* Fix some style inconsistencies

* Fix prestart being required before modules installed

* Fix travis failures

* Fix `help` command to output help for subcommands

* Pick steps of the upgrade process to run

* Fix formatting for upgrade help

* Fix web installer
Peter Jaszkowiak e609e497b3 Provide more error information to logs
Provides full stack instead of just message
Barış Soner Uşaklı 2aaf6900d1 closes
Peter Jaszkowiak 1c5bdcb670 Enable running multiple upgrades at once ()
Peter Jaszkowiak 1c35213934 Fix and forking while debugging ()
* Fix forking while debugging

Debugger address in use no longer happens

* Fix cropper error
Baris Usakli 8fae8cea83 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Baris Usakli 18db0734b0 newline
Baris Usakli bc0645dc26 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Julian Lam f56578ab50 remove reset tokens if target user email changes
Peter Jaszkowiak 90296b92cd Override winston to use console.log instead of stdout
Julian Lam d98b3e8056 automatically lowercasing env vars in nconf, fixes
Julian Lam 29e868b002 closes
Barış Soner Uşaklı aabfe8f41f fix lint
Barış Soner Uşaklı 3c8460fee0 disable timeout
barisusakli 236758b712 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
barisusakli 9e3d8a8090 one more fix
barisusakli 27a76fcfc9 closes
Peter Jaszkowiak 484a800327 Merge branch master into develop
Peter Jaszkowiak 75d291183d Fix using nodebb in other CWDs
Julian Lam 74728a1328 Merge branch 'develop' into upgrades-refactor
Julian Lam 5b8c9503c3 refactor upgrade scripts to use individual files in src/upgrades/ as source of schema changes
Peter Jaszkowiak 64a6322002 ESlint no-extra-boolean-cast
and no-shadow-restricted-names
Peter Jaszkowiak a038c66549 ESlint quotes
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak 2e031f3759 ESlint comma-spacing
Peter Jaszkowiak 277a7fb8b4 ESlint key-spacing, no-trailing-spaces
Peter Jaszkowiak 3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
Peter Jaszkowiak b09b3aef7f ESlint no-undef, remove global comments
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle
Julian Lam 7ba111acdd Merge pull request from NodeBB/assets-route
/assets/uploads
Peter Jaszkowiak aaacdb8413 Fix , uploads path config setting
- Finish moving uploads route to `/assets/uploads`
- Remove `upload_url` config setting, it was broken
Julian Lam a48c914a16 explicitly cast jobsDisabled as Boolean
Peter Jaszkowiak 360a35d0a6 Resolve merge conflicts
Peter Jaszkowiak 553567c3b2 Refactor `nodebb`, move `build.js`, add `--dev`
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`