Commit Graph

512 Commits

Author SHA1 Message Date
Julian Lam
90a99fe158 closes #6442 2018-04-11 15:02:48 -04:00
Julian Lam
8fcf57dfad stripped double relative path from og urls, #6442 2018-04-11 14:41:10 -04:00
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
2018-04-10 16:06:25 -04:00
Barış Soner Uşaklı
50f4fd5345 remove dupe code in minify_js 2018-04-05 11:34:33 -04:00
Peter Jaszkowiak
a00f1f9a81 Use uglify-es for ES6 support (#6402) 2018-03-26 15:37:53 -04:00
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)
2018-03-26 11:55:01 -04:00
Julian Lam
2b95b13397 closes #6328 2018-02-16 16:59:35 -05:00
Barış Soner Uşaklı
15e9bbac92 closes #6311 2018-02-15 14:52:49 -05:00
Julian Lam
598675d597 outputting friendly warning if build target contains commas 2018-01-19 13:27:09 -05:00
psychobunny
c0cf9e64fd remove lodash from built modules, use utils.debounce instead 2018-01-16 16:03:51 -05:00
Julian Lam
3df2ab7cb9 exposing lodash as a client-side module 2018-01-16 12:22:55 -05:00
Barış Soner Uşaklı
4b5c87e93f send stack instead of message 2018-01-15 12:08:54 -05:00
Barış Soner Uşaklı
7b04b4876d closes #6241 2018-01-15 11:31:38 -05:00
Peter Jaszkowiak
7d7c51f8e9 Fix acp.min.js ENOENT error on CI tests
Hopefully
2018-01-15 00:10:24 -07:00
Peter Jaszkowiak
ed9166b796 Refactor template compilation
Always use persona as a fallback for templates
2018-01-14 23:26:35 -07:00
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
2018-01-06 14:06:42 -05:00
Julian Lam
9b5e0f9e95 updated upgrade logic to not break ACP restart flow 2018-01-02 14:45:21 -05:00
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
2017-12-20 15:56:14 -05:00
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
2017-12-19 12:07:45 -05:00
Barış Soner Uşaklı
691fc2c6fd closes #5812 2017-12-14 08:47:33 -05:00
Baris Usakli
3551d7d68e closes #4804 2017-12-04 14:56:14 -05:00
Barış Soner Uşaklı
a7a3f3619b dont allow login with invalid ip, escape ip display on user/info page 2017-11-30 14:24:17 -05:00
Barış Soner Uşaklı
fe3a75812f closes #6113 closes #6114 2017-11-27 14:07:59 -05:00
Barış Soner Uşaklı
3f2a1d3e8e check error first #6116 2017-11-27 13:26:49 -05:00
Peter Jaszkowiak
9b11413d14 Bundle admin scripts, remove CDN scripts (#6122)
Close #6120
2017-11-27 12:42:10 -05:00
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
2017-11-23 10:55:03 -05:00
Julian Lam
2fa4b2918e removing premature return 😆 2017-11-22 15:03:07 -05:00
Julian Lam
c3c22cfdcc closes #6107 2017-11-22 14:14:19 -05:00
Barış Soner Uşaklı
eb47a81c46 remove package.default.json 2017-11-21 14:43:59 -05:00
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
2017-11-21 10:51:20 -05:00
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
2017-11-16 17:43:52 -05:00
Barış Soner Uşaklı
fae8ee83e8 closes #6039 2017-11-05 09:54:59 -05:00
Peter Jaszkowiak
bbdc55cb3a Better fix for #5993 (#6034)
* Better fix for #5993

Also a nice newline so the line doesn't get overwritten when running `./nodebb upgrade`

* Optimizations for custom homepage

Move it into a separate module
2017-11-04 10:51:44 -04:00
Barış Soner Uşaklı
845f01f297 dont set meta.config to null 2017-11-02 18:39:36 -04:00
Julian Lam
7e0d0e0eb5 Merge remote-tracking branch 'origin/develop' 2017-11-02 14:13:48 -04:00
Peter Jaszkowiak
dfad76120d Support npm@5 and yarn (#6010)
* Support npm@5 and yarn

Use package.default.json
Partial #6008

- 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
2017-11-02 14:12:05 -04:00
Peter Jaszkowiak
e609e497b3 Provide more error information to logs
Provides full stack instead of just message
2017-11-01 18:59:48 -06:00
Peter Jaszkowiak
adc47fd053 Use relative linking (#6011)
* Use relative linking

* Add copyFile method and tests

Closes #5988

* Fix relative linking on Windows

Hard links and junctions don't work with relative paths

* Fix tests

* Revert ghange to gitignore
2017-10-31 22:18:15 -04:00
Baris Usakli
47143a4a09 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2017-10-30 15:29:26 -04:00
Julian Lam
cb80c7729b linting 2017-10-30 11:41:44 -04:00
Dr Luke Angel
999a7abc5d updated equality operator
small update to equality operator
2017-10-27 22:21:48 -07:00
Dr Luke Angel
4854888fcf update blacklist.js to strip ports from v4
Blacklist.test in blacklist.js to strip port from ipv4.
my site was passing in 
24.18.192.75:52506
and nodebb was giving 
28/10 04:34:41 [6680] - error: /login
 Error: ipaddr: the address has neither IPv6 nor IPv4 format
So i updated the client Ip to strip the port number if its a v4 IP
2017-10-27 22:16:01 -07:00
Peter Jaszkowiak
62ae171432 Merge remote-tracking branch 'origin/master' into develop 2017-10-23 17:13:35 -06:00
Barış Soner Uşaklı
e7318a1cea Mongo cache (#6002)
* cache mongodb objects

remove user settings cache since it is cached at the object level

* removed indexOf from isMemberOfSets

* change has to get, change maxAge to 0
2017-10-23 18:31:16 -04:00
Peter Jaszkowiak
46fafb20b9 Remove string.js dependency 2017-10-13 21:02:41 -06:00
Peter Jaszkowiak
1c35213934 Fix #5970 and forking while debugging (#5965)
* Fix forking while debugging

Debugger address in use no longer happens

* Fix cropper error
2017-10-09 11:40:36 -04:00
Julian Lam
6852c92ed6 Merge remote-tracking branch 'origin/develop' 2017-10-03 13:37:43 -04:00
RoiEX
1fd160a4e6 Add Support for Firefox OSD 2017-10-03 09:43:33 -04:00
Barış Soner Uşaklı
b70f328520 closes #5948 2017-10-02 19:27:57 -04:00
Peter Jaszkowiak
da9da8190f Bump dependencies
Bumping eslint & configs meant making some linting fixes

For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
2017-10-02 09:24:27 -04:00