343 Commits (165b0f856581b0404ad1680e9f1a9e01c9677cb9)

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

This reverts commit 46050ace1a.

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

This reverts commit 9f291c07d3.

* feat: closes #10719, 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 julianlam/nodebb-plugin-support-forum#14

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

* feat: Allow defining active plugins in config

resolves #10766

* 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 <[email protected]>
Co-authored-by: Barış Soner Uşaklı <[email protected]>
3 years ago
Julian Lam cf8f62aed9
feat: remove colors in favour of chalk (#10142)
* feat: remove colors in favour of chalk

* fix: bad conversion from colors to chalk in src/cli/index.js

* fix: padWidth calculation to account for control characters

* fix: termWidth calculation, but swapped one problem for another

* fix: formatItem, implement my own padRight to take control characters into account
3 years ago
Barış Soner Uşaklı 13878e9f14 fix: #9730, show warning if plugin is active but not installed 4 years ago
Barış Soner Uşaklı 14a6c349c2 feat: show time info for upgrade scripts 4 years ago
Peter Jaszkowiak dab3b23575 chore: eslint no-var, vars-on-top 4 years ago
Peter Jaszkowiak b56d9e12b5 chore: eslint prefer-arrow-callback 4 years ago
Peter Jaszkowiak 707b55b6a5 chore: eslint prefer-template 4 years ago
Barış Soner Uşaklı 872bacf1c4
Admin/users (#8762)
* feat: wip admin/users

* feat: more work

* feat: more fixes

* feat: #8662, verified/unverified user groups

* feat: add filter

* feat: change user search to use filters array

* refactor: remove unused search call

* fix: tests

* fix: cant join system groups

* fix: upgrade script
4 years ago
Peter Jaszkowiak 1aa336d837
refactor: shared constants (#8707)
define plugin name and theme name regexs in one location for consistency

define various shared paths in one place for consistency
4 years ago
Julian Lam 2adae87949 fix: progress bar clobbering upgrade script name 5 years ago
Julian Lam ac75c9a052 fix: tweak upgrade script progress bar to only update 100 times in total 5 years ago
Julian Lam de8eebbd7c fix: upgrade scripts not run properly if schemaDate is present
Only affected VERY old installs that don't use schemaLog
5 years ago
Barış Soner Uşaklı 33c5988c34 refactor: rewrite src/upgrade.js with async/await 5 years ago
Barış Soner Uşaklı 231d34d0aa fix: upgrade script 5 years ago
Barış Soner Uşaklı 8887f0edaa fix: don't allow duplicate upgrade script names 5 years ago
Julian Lam 6f504c4142
Remove allowFileUploads ACP option (#8324)
* feat: allow awaitable upgrade scripts

* feat: allowFileUploads removal upgrade script

* refactor: remove unnecessary ACP option `allowFileUploads`

* fix: updated upgrade script template to not use callback arg

* fix: upgrade script as per @baris

* fix: add missing await

* fix: add missing await
5 years ago
Barış Soner Uşaklı 8e23dec84b fix: lint 5 years ago
Barış Soner Uşaklı 38322ec308 fix: #7949, delete old user notifs 5 years ago
Barış Soner Uşaklı bd026cb1ae fix: upgrade scripts 5 years ago
Barış Soner Uşaklı a4dec7e3ab fix: #7860, allow running single upgrade scripts from plugins 6 years ago
Julian Lam d0ee312cd3 feat: use fewer system resources to draw the progress bar
There's reason to believe that upgrade scripts will run faster
if the system isn't spending a non-insignificant amount of
resources simply drawing the progress bar. Closes #7711

Some context: https://github.com/npm/npm/issues/11283
6 years ago
renovate[bot] 64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
6 years ago
Barış Soner Uşaklı 26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
6 years ago
Barış Soner Uşaklı 6c5e99171e closes #6309 7 years ago
Barış Soner Uşaklı c3f56e2ab5 closes #6197 7 years ago
Julian Lam 6d15861a55 removed pluralisation @pitaj 7 years ago
Julian Lam acc58d707c Updated plugin checking logic
* Fixes #6183
* Also changed a bunch of console.logs to process.stdout.write,
  so the command line output is cleaner
7 years ago
Barış Soner Uşaklı 13e56ad5f3 make sure unfilled is not negative 7 years ago
Peter Jaszkowiak dbdc05404d Use console.log instead of process.stdout.write (#6123)
* Use console.log instead of process.stdout.write

* Don't break the installer
7 years ago
Peter Jaszkowiak ae24bca16e CLI refactor with commander (#6058)
* 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
7 years ago
Baris Usakli 6778cce265 add new zset 7 years ago
Julian Lam ec3bb1c727 allowing plugins to define upgrade scripts 7 years ago
Peter Jaszkowiak 1c5bdcb670 Enable running multiple upgrades at once (#5984) 7 years ago
Julian Lam 88a763e08b changes to upgrade script progress bars to work better on narrow terminals, fixes #5732 8 years ago
Julian Lam 3467071a7d fixed extra line break in upgrade scripts introduced in 5516352758 8 years ago
Julian Lam 12e3369522 Tweaked upgrade script instructions 8 years ago
Peter Jaszkowiak 8a87311d5c Remove annoying jslint comment
Use an rc file instead
8 years ago
barisusakli 5516352758 closes #5612 8 years ago
Julian Lam 7a0db03d99 Merge branch 'upgrade-progress-bar' into develop 8 years ago
Julian Lam 82bfa752b9 Removed outdated list of available upgrade scripts 8 years ago
Julian Lam 33082d90cc updated logic to make it a bit simpler to implement per upgrade script 8 years ago
Julian Lam 1cd50a8c30 Merge branch 'develop' into upgrade-progress-bar 8 years ago
barisusakli e63559b6fd closes #5484 8 years ago
barisusakli 886768ba84 check both date and upgrade count 8 years ago
barisusakli 05e9e88a15 fix lint 8 years ago
barisusakli 1cf775a4b8 upgrade script fixes 8 years ago
barisusakli 520d6954c1 test node 7 8 years ago
barisusakli f4b8cb7217 added missing return 8 years ago
barisusakli 6d1702c600 wait for calls to finish 8 years ago
Julian Lam 42b5cdaae3 progress bars! omg 8 years ago