Commit Graph

128 Commits (aa44894db205ee88a8a8f7ee8d7b1fafa060081a)

Author SHA1 Message Date
Julian Lam 31606578f5 putting cache buster back in header template arguments
Julian Lam c2f6717e88 adding cache-buster to template globals
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
barisusakli 0cfd05d839 closes
barisusakli 37e8856861 new middleware to add slug to topic and category
Julian Lam 7111adb3c2 fixed subfolder installs again (a bit), also stopped apple-touch-icon from clobbering /apple-touch-icon
barisusakli 9564b6fda2 closes
psychobunny 6ea4d89edc fixed search routes
psychobunny 4793b6b4f9 fixed invalid path for apple-touch-icon
psychobunny faf3de7e27 added a check for res.locals.isAPI inside res.render, instead of doing it all over the place in code
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
psychobunny e84dd4fd94 Merge remote-tracking branch 'origin/master' into webserver.js-refactor
Conflicts:
	public/templates/accountedit.tpl
	public/templates/header.tpl
	src/routes/meta.js
	src/webserver.js
psychobunny a3a0aabd22 return error if template doesn't exist
psychobunny c24c2a5422 search and reset routes, the very last of the views to be refactored :shipit:
psychobunny 8802fc5a33 fixing link tags; misc bug fixes
psychobunny d3aead7c13 changing renderHeader function signature to req, res, next
psychobunny 48b9289002 use the proper footer for admin
psychobunny d360320441 finally got admin header and footer working 👍
psychobunny eed97648b1 started moving admin mdw into middleware/admin.js; res.render post-processing to append admin footer/header
psychobunny 209bcaba8c middleware.updateLastOnlineTime; middleware.prepareAPI (reinstated)
psychobunny 94aeb3ab22 notifications route; added middleware.authenticate to user/uploadpicture api route
psychobunny 5b8e8e4b67 deprecating use of templates.setGlobal on server side in favour of passing in api.config into res.locals (still needs work)
psychobunny 138b12e815 re-added linkTags into header; clean up
psychobunny d75bc9578b deprecating middleware.prepareAPI in favour of using app.all('*') in /api namespace
psychobunny 8df33e65ac fixing bug in topics causing meta tags to revert on subsequent refresh
psychobunny dbbbe21883 re-implementing meta and link tags part 1
psychobunny 6820e9e662 random jshinting expedition
psychobunny 6c3c669e31 moved middleware out of webserver.js and into middleware.js