530 Commits (7950b254a62fa4af84d58982fa56dcaba921e10f)

Author SHA1 Message Date
Barış Soner Uşaklı 9c022afae1
Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
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ı 85c60316ed
upgrade to winston 3.1, closes #6590 (#6838)
* upgrade to winston 3.1

* fix winston in web/install and tests
6 years ago
Sebastian G. Marinescu e35d4a7d85 closes #6283 7 years ago
Peter Jaszkowiak 04d31fe1d4 Precompile all templates
- Benchpress compilation is 33x faster now
- Native module with JS fallback and pre-built binaries
- Dev template build is <1sec now
- Minified template build is ~5sec (uglify accounts for almost all)
7 years ago
Peter Jaszkowiak 65b4bafb16 Fix @scoped themes 7 years ago
Peter Jaszkowiak 7cd8274c0f Add series flag for `./nodebb build` 7 years ago
Julian Lam cb8e62cd7c fixes #6626 7 years ago
Barış Soner Uşaklı c2b0be1f2c if stack is undefined fallback to message and then to hardcoded string 7 years ago
Peter Jaszkowiak 70ff2d9b88 Support scoped theme packages 7 years ago
Barış Soner Uşaklı 0c60351960 add error log for invalid clientIP 7 years ago
Barış Soner Uşaklı 0630915cad when settings are saved publish it to all nodes
add runJobs value to nconf, only true on nodes that should run jobs ie
isPrimary and jobs are not disabled
7 years ago
Barış Soner Uşaklı 81328806a0 closes #6511 7 years ago
Barış Soner Uşaklı c1fb3c2da4 closes #6525 7 years ago
Barış Soner Uşaklı 871cbedac1 dont require meta before db.init 7 years ago
Barış Soner Uşaklı 5461f9fa5f don't crash if there is no pluginData 7 years ago
Andrew Rodrigues 73bc96528a better to use theme_templates_path instead 7 years ago
Andrew Rodrigues ebd0899714 closes #6471 7 years ago
Julian Lam 90a99fe158 closes #6442 7 years ago
Julian Lam 8fcf57dfad stripped double relative path from og urls, #6442 7 years ago
Peter Jaszkowiak ce09813bf0 Show failed minify file and fix username editing privilege (#6445)
* Fix global mods and admins being unable to change usernames

* Message file which failed to minify
7 years ago
Barış Soner Uşaklı 50f4fd5345 remove dupe code in minify_js 7 years ago
Peter Jaszkowiak a00f1f9a81 Use uglify-es for ES6 support (#6402) 7 years ago
Peter Jaszkowiak dcf1865b54 Fix ACP alerts to use same system as client (#6396)
* Fix PostCSS warning message

* Fix disconnect indicator styling

Would increase size of quick actions when active

* Use same alert system in ACP and client

- Remove snackbar
- Add styling and fix template for ACP (based on Persona)
7 years ago
Julian Lam 2b95b13397 closes #6328 7 years ago
Barış Soner Uşaklı 15e9bbac92 closes #6311 7 years ago
Julian Lam 598675d597 outputting friendly warning if build target contains commas 7 years ago
psychobunny c0cf9e64fd remove lodash from built modules, use utils.debounce instead 7 years ago
Julian Lam 3df2ab7cb9 exposing lodash as a client-side module 7 years ago
Barış Soner Uşaklı 4b5c87e93f send stack instead of message 7 years ago
Barış Soner Uşaklı 7b04b4876d closes #6241 7 years ago
Peter Jaszkowiak 7d7c51f8e9 Fix `acp.min.js` ENOENT error on CI tests
Hopefully
7 years ago
Peter Jaszkowiak ed9166b796 Refactor template compilation
Always use persona as a fallback for templates
7 years ago
Peter Jaszkowiak 4387d5d466 Ensure installed correct version of modules on startup, bump dependencies (#6207)
* Ensure installed correct version of modules

* Bump dependencies

* Bump promise-polyfill

* Fix emailer test

* Fix auto-install regression

introduced in 9b5e0f9e95
7 years ago
Julian Lam 9b5e0f9e95 updated upgrade logic to not break ACP restart flow 7 years ago
Peter Jaszkowiak be00a1c013 Support for using yarn instead of npm, include unread counts on cold load (#6179)
* Close #6178

* Support for package managers besides npm

- Also fixes issue where upgrade-plugins wouldn't work
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ı 691fc2c6fd closes #5812 7 years ago
Baris Usakli 3551d7d68e closes #4804 7 years ago
Barış Soner Uşaklı a7a3f3619b dont allow login with invalid ip, escape ip display on user/info page 7 years ago
Barış Soner Uşaklı fe3a75812f closes #6113 closes #6114 7 years ago
Barış Soner Uşaklı 3f2a1d3e8e check error first #6116 7 years ago
Peter Jaszkowiak 9b11413d14 Bundle admin scripts, remove CDN scripts (#6122)
Close #6120
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
Julian Lam 2fa4b2918e removing premature return 😆 7 years ago
Julian Lam c3c22cfdcc closes #6107 7 years ago
Barış Soner Uşaklı eb47a81c46 remove package.default.json 7 years ago
Peter Jaszkowiak 4fcedc6f31 Enable imports in custom email templates (#6052)
* Enable imports in custom email templates

* Compile emails on config change

* Add error logging

* Add emailer tests

* Fix tests

* Only build when config changes
7 years ago
Peter Jaszkowiak c47c47f7e3 Use less memory to build translation files (#6070)
* Change languages build to use less memory

Add graceful-fs so no ned to worry about fs limits

* Specify encoding for fs.readFile

Use eachLimit since graceful-fs handles that now
7 years ago
Barış Soner Uşaklı fae8ee83e8 closes #6039 7 years ago