Commit Graph

687 Commits (04d31fe1d4f09fef60ee0c07a3982d30fd12992c)

Author SHA1 Message Date
Julian Lam 299fcb99f1 more progress on
barisusakli ce7513c347 allow cookieDomain from config.json
barisusakli 1a63672e66 more test fixes
barisusakli 817cd29f00 try require from root
barisusakli b8a3ca98cb added callback to webserver.listen
wait for webserver to be ready to run tests
added topic restore test
added test to load topic via controller
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
barisusakli 102beb5f93 closes
barisusakli d60ab3c74c removed cacheStaticFiles
barisusakli b0b6c66f77 fix unix domain socket
barisusakli 80c98e5ecf closes
barisusakli 5cd6614d03 refactor
barisusakli 89f550ce7c moved middleware requires
barisusakli df7cfe2146 missing favicon dep
barisusakli 8f408faf46 organize middlewares
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
Anil Mandepudi c666a7efda add static:assets.prepare hook ()
* add static:assets.prepare hook

add static:assets.prepare hook to be called before css minification so that themes/plugins can modify less vars.

* change parameter
Julian Lam 437770538c work-in-progress commit for
Julian Lam f1deaa6fa5 Exposing middleware to app/req, organisation.
Organisation -- moved 404 and error controllers into the
controllers file instead of as local variables in routes/index
Julian Lam 2ddcaa9ce1 added new hook for hotswap preparation
Julian Lam 94a505a6bb removed symlink logic and using route bridging instead.
Also allowed plugins to define modules from their plugin.json
Julian Lam f91f705f90 Merge branch 'master' into fix-vendors
psychobunny acd24d856f run tasks in series to speed up startup time
psychobunny baeed22f20 grunt: only compile ACP less if that was changed, and vice versa with theme/plugin less
Julian Lam 184a2c4540 IP blacklist functionality -- re:
Squashed commit of the following:

commit 5c42fd732d091fa66cf5b45a2af5e1697cc1efcd
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Mar 14 17:29:45 2016 -0400

    allowing blacklist.test to be called synchronously

commit 979faf2dba5e6f6e2ae1bd07341e63678438daf1
Author: Julian Lam <julian@nodebb.org>
Date:   Mon Mar 14 17:01:14 2016 -0400

    added plain ipv6 support and finished middleware logic

commit d4b72fc1aadff34df3ed7dec52ca8d3c3728a078
Author: Julian Lam <julian@designcreateplay.com>
Date:   Fri Mar 11 16:05:31 2016 -0500

    WIP IP Banning logic middleware

commit f08b2553890c5522b6a1eaf521fe4e94df40574a
Author: Julian Lam <julian@designcreateplay.com>
Date:   Fri Mar 11 15:26:27 2016 -0500

    tweaks to ACP, rule validator

commit 868abacaa494e6b8a88bd4ea429b1b066a9ecb2e
Author: Julian Lam <julian@designcreateplay.com>
Date:   Fri Mar 11 13:50:05 2016 -0500

    IP Banning ACP page, styling, save&load functionality
Julian Lam e1323c0295 Updated js code so vendors can be added to the modules folder, so
they can be required properly and we can finally get rid of that
really annoying "mismatched anonymous" error in Require.js.

First module to make the transition: Chart.js
psychobunny 42c0b973f1 closes
psychobunny f17fa3ca11 minify flag not actually being used
Julian Lam f77f39e937 Fixed
Also updated port local variable to be a Number, since all of the
conditional checks assume it is a number, when all along it has
been a string.... heh.
barisusakli ca294fc6ec closes
Julian Lam 160cf93802 Fix regression caused by 4f766ac
Julian Lam 4f766ac7b5 Updated cache buster logic
Removed css and script busters in favour of a uuid/guid cache
buster that is generated when the app starts.

This change means that in the event your NodeBB crashes often,
users will not be able to rely on their browser cache to serve
an unchanged style/js file, but if that's the case, you've
got bigger problems anyway.

re: 
Julian Lam 7e6703c18e more line ending conversion
barisusakli 93fd938913 removed setTimeout
barisusakli 3063da83ef argument fix for static/action hooks
Julian Lam a462b10f94 nevermind... (@barisusakli 🧌)
Julian Lam 379bdd12e0 fixed improper parsing of url in loader, and updated mongo init to not send anything in cb except err. Also updated webserver init so that it doesn't expect stuff from static:app.preload
barisusakli 2286d1137b remove tab
barisusakli d946a2fcbd closes
wait for templates to compile even if using clustering
fix emitter.all
upgrade.check error first
removed plugins.ready, using callback on plugins.init
removed webserver.init, using webserver.listen
psychobunny 2fbe7a8190 webserver: only start listening _after_ everything is compiled
barisusakli 0d6772c30b warning/errors on invalid ports config
Julian Lam 4fffe4da94 moved plugin route reloading outside of plugin initialisation, so plugins can add a hook listener before core routes have been added
Fokke Zandbergen f0836f4107 Skip setTimeout if it doesn't exist (<= 0.10.36)
psychobunny e5c842d923 ability to send in extensions (comma delimited) to --from-file
psychobunny eb6754c5eb nice, I figured out how to speed up grunt watch
psychobunny 540facaaab try (I give up, grunt-watch seems so unpredictable... on windows anyways)
Julian Lam aa62c52580 closed
Julian Lam 3deb423c55 testing socket availability before attempting to bind
Julian Lam 68e761bed0 if using sockets, reset the umask back to the old value after listening
Julian Lam b565f3ac0a closed
barisusakli 64c0e1df61 settimeout
barisusakli 9e9b138afb removed unused code
barisusakli 64e13df14c removed node cluster spawn procs on ports
barisusakli 1723894e5a merge
Julian Lam d430ef3983 second pass,
Julian Lam d5e473609c first pass,
barisusakli 1abe35092b cluster socket.io fixes
close proxy server on loader.stop
changed handles to object
barisusakli 785790c414 moved handle close to fork worker
barisusakli d1fcb50c7d cluster sticky session
psychobunny 3aa18ebb12 no need to inform attempt to listen to address
barisusakli 5c3af6f549 removed webserver.init
barisusakli 363057cf49 closes
barisusakli 20314991a4 tmp error check
Julian Lam 1a90de7dd6 added new --from-file flag that will load js/css from the precompiled file instead of recompiling it on startup
Julian Lam b7ba6a0d8f fixed - each individual thread will create its own logrotate write handler, because if one is closed, everything crashes in a cascade effect because we're calling .write() after .end(), bleh.
Julian Lam 7597c654a0 refactored plugin and auth init a bit, and fixed issue where successive reloads caused old login strategies to be inadvertently preserved
Julian Lam dab3667773 re: , auth re-routing
Julian Lam 7255ce3dbe primary worker support, and added notif pruning to primary worker jobs
Julian Lam fae169697e removing listener for templates compilation, in order to resolve race condition that was causing slow servers to not actually end up binding to the port as expected
Julian Lam 2d0877f80e better handling of port in use errors with cluster
Julian Lam 08abbe19bc zero downtime and reload support with cluster module
Julian Lam de41896770 restart handling and crash detection
barisusakli 298f14ad27 removed cluster from app.js
barisusakli 0f46051fcf Merge remote-tracking branch 'origin/cluster-loader' into cluster
Julian Lam 58a73b52b5 work-in-progress commit to get cluster module working with loader.js
barisusakli cbe3b5b6dc testing
Julian Lam 2bfa7d5b97 closed
Julian Lam 0c4a788698 added callbacks to css and js reloading, issue
Julian Lam ba91d7aba6 proof-of-concept for hot-swapping of routes
barisusakli 24ebf20d7e first commit
psychobunny f6cf36ca29 emit nodebb:ready
psychobunny 646f0f00b3 move "NodeBB Ready" message to when it's actually ready
Julian Lam 970b259e06 fixed
Julian Lam a32fd3f6f9 fixed
Julian Lam df8728c785 allowing plugins to define new sounds -- woot.
Also moving the core sounds into a separate package, soundpack-default
Julian Lam 7a993eb2ca closed
Julian Lam f3a78c2b6f - first pass
psychobunny 3ae8aa1c55 helpers.js (client/server); closes
Julian Lam 17dd113a94 fixed issue where plugin css and js wasn't loaded -- also less files no longer blow up
Julian Lam 8c7b474e8b moved fontawesome CSS into stylesheet.css, and updating the js and css middlewares to compile at app start, not on first load
Julian Lam 2b8a7c73ac daily digest emails! resolved
psychobunny 941c3b2d7e added emitter class; express.listen only after background tasks complete; closes
psychobunny 6563a72b5b fixed emailer templates
psychobunny 1ef95bd09e Merge remote-tracking branch 'origin/master' into webserver.js-refactor
Conflicts:
	app.js
	public/templates/category.tpl
	public/templates/popular.tpl
	public/templates/recent.tpl
	public/templates/unread.tpl
	src/routes/plugins.js
	src/webserver.js
Julian Lam f00f7c8818 fixed apple-touch-icon for subfolder installs
Julian Lam 5a8a3627d2 bringing subfolder installations to v0.4.0 - JUST FOR @PLANNER
Julian Lam 5880590425 removing "pluginCSS", "css" in plugins is now included directly into stylesheet.css. This is a breaking change.
fixes 
psychobunny 178edd150a moved action:app.load out of webserver; passing in app, mdw, and controllers into action:app.load. now we can create routes dynamically ;)
psychobunny 8f7a7fec7d more cleanup; commenting out custom plugin routes until its fixed properly
psychobunny c0cd6148f4 one final push, cleanup + organize + lint; made feeds/meta/plugins routes follow same pattern as other route files
psychobunny 1dbc47b890 deps cleanup
psychobunny d471ea2d5b app.create_route removed