390 Commits (520d6954c13205b767c7701c6f7c6f70c03f0a06)

Author SHA1 Message Date
Peter Jaszkowiak 05b68391dd Use `/assets` for client assets
- Route `/assets` -> `build/public`, falling back on `public`
- Moved destinations for `nodebb.min.js`, `acp.min.js`, `admin.css`, `stylesheet.css`, `templates`, and `sounds` to `build/public`
- r.js modules previously routed through express are now symlinked into `public/build/src/modules`
- minfiles no longer served from a memory cache
- use config `views_dir` setting everywhere template directory is used
- fix cache buster `v=v=`
8 years ago
Peter Jaszkowiak b4b3be3d97 Cache bust translations, query param name 8 years ago
Peter Jaszkowiak 2f07c18c5a All hail the glorious translation prebuilding 8 years ago
Julian Lam 81ca10d72e Merge pull request #5332 from pitaj/async@2
async v2 upgrade
8 years ago
Peter Jaszkowiak ec544518e8 Use async v2 8 years ago
Julian Lam 29c7ae7645 Merge remote-tracking branch 'origin/master' into develop 8 years ago
Barış Soner Uşaklı c4d4d2385b closes #3973 closes #5303 8 years ago
Julian Lam c640bdf2b9 Merge branch 'master' into develop 8 years ago
Peter Jaszkowiak 0b4c39338e Translation bootbox wrapper
- Replaced minfied bootbox file with unminified one since it's minified at build anyways
- Removed existing override
- Made translator more verbose in dev mode; it now warns about missing translations
8 years ago
barisusakli 9ace5c6e17 moved next() of out try/catch 8 years ago
barisusakli 1fed01fe43 ability to filter search by tags 8 years ago
Julian Lam 76bcc1c327 Merge branch 'flagging-refactor' into develop 8 years ago
barisusakli 009da723c5 meta.configs tests 8 years ago
Julian Lam 451c2838d0 Merge remote-tracking branch 'origin/master' into flagging-refactor 8 years ago
barisusakli c32e6aaabb use build module instead of forking 8 years ago
Julian Lam e227f5842a Merge remote-tracking branch 'origin/master' into flagging-refactor 8 years ago
barisusakli 1c6cee207f meta/settings test 8 years ago
Julian Lam dc508fa0cb Merge remote-tracking branch 'origin/master' into flagging-refactor 8 years ago
barisusakli 0b9829850c closes #5273 8 years ago
Julian Lam 5d63c0aa3b Merge remote-tracking branch 'origin/master' into flagging-refactor 8 years ago
Julian Lam 5dd892bd01 a bunch of changes here... allowing user profiles to be flagged, #5232 8 years ago
Peter Jaszkowiak 5223bb5191 Merge branch 'master' of github.com:nodebb/nodebb 8 years ago
barisusakli afef79a81e closes #5241 8 years ago
Peter Jaszkowiak fd4d53e42c Remove unnecesary admin search indexing 8 years ago
barisusakli d3fff28de5 use base_dir 8 years ago
barisusakli 31168c669b closes #5231 8 years ago
barisusakli 12d46ca441 remove async.series 8 years ago
barisusakli f7b77c5341 removed file.exists from getFromFile 8 years ago
barisusakli 259d49e392 all procs should load the js from file 8 years ago
barisusakli ef87a2b7d7 closes #5219 8 years ago
Julian Lam 9bab0b53b0 re: #5211, broke out meta.css.minify to accept targets, made build output marginally nicer looking 8 years ago
barisusakli 71c7ef9109 fix test 8 years ago
barisusakli 4f0e93732a #5211
remove passing js/css between procs
8 years ago
Julian Lam 299fcb99f1 more progress on #5211 8 years ago
Julian Lam e6c9c89342 closes #5197 8 years ago
Anil Mandepudi 6b23dd574e Use postcss-clean to minify css instead of less (#5179)
* use postcss-clean to minify css instead of less

* alphabetical order

* white space

* white space

* Update css.js
8 years ago
Anil Mandepudi f7b64d655a Fix issue where CSS files imported along with less files are not getting minified (#5178) 8 years ago
Julian Lam 66aea0eed1 closes #5167 8 years ago
barisusakli b44f3f4811 closes #5150 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
Barış Soner Uşaklı 5dbcd9cf3f pass string to validator 8 years ago
Barış Soner Uşaklı 9d0dc35703 closes #5081 8 years ago
psychobunny 5d28dbb0a4 closes #5027 9 years ago
Peter Jaszkowiak 59ed13b581 Rewrite translator for efficiency and clarity (#5013)
* Rewrite translator for efficiency and clarity

* Fixed failing tests

* Gorram tabs

* Move cache to Translator class, simplify creation

* Documentation and linting

* Use new translator API where it makes sense

* Revert 499fbe21fdd5b7f2735a27e76a300f69039cfbd3 (except translator.d.ts)

* promise polyfill for node<4

* Set `load` on the prototype

* Comment on Translator#translate

* Delete translator.d.ts

* Support translations added by plugins
9 years ago
barisusakli d4c512cb3f handle the case where the object is not set at all #5018 9 years ago
barisusakli 7269d45e84 closes #5018 9 years ago
Julian Lam 4410385e8f Merge pull request #5012 from phit/patch-1
Use mousetrap.js minified version
9 years ago
barisusakli c01a2bfa33 default sounds to off, show correct setting in user settings page 9 years ago
phit 00a06e9253 Use mousetrap.js minified version
didn't see a reason it shouldn't use the minified version
9 years ago
pichalite 3ef7c57a63 make jquery ui a r.js module 9 years ago
barisusakli 6d34bb4657 closes #2166 9 years ago
barisusakli 07fe5057e1 make sure validator.escape() receives strings only 9 years ago
psychobunny 0afa55517f fixed app.loadJQueryUI; minified jquery-ui.js; removed jqueryui from cold load payload; fixed broken image paths 9 years ago
Julian Lam 785f4fc5a0 updating to jQuery 3.x on frontend and ACP 9 years ago
barisusakli 8f408faf46 organize middlewares
removed app.locals.middleware
middlewares can be required anywhere, ie in controllers
9 years ago
barisusakli 5c83075806 moved variables parse to ajaxify.js 9 years ago
barisusakli e5ecb333f9 closes #4978 9 years ago
Julian Lam 2428d5e442 Update bootstrap in ACP
Also fixed #4872 by moving user creation modal to root level
(outside of .panel)
9 years ago
Mathias Schreck ce9ee62fa0 Handle callback errors 9 years ago
Julian Lam bc961e2157 removing reload, closes #4936, closes #4929 9 years ago
Julian Lam 7902987900 added jqueryUI to list of prefetched resources, and updated its loader to not use $.getScript(). Updated require.js files to use ?v= in the url argument for cache buster 9 years ago
pichalite b7b909bcc0 remove unused autosize lib 9 years ago
pichalite 8ef7ca4bdb update chart.js to new version 9 years ago
Julian Lam e407dbfdd4 fix module bridging output to log the correct number 9 years ago
barisusakli bb7303834f remove csrf r.js module 9 years ago
Julian Lam cf7540d41c appeasing Travis CI, 'cause fuck code reuse, right? 9 years ago
Julian Lam 55bcc28e0e closes #4831 9 years ago
Julian Lam ba412f4a56 fully completed #4658 9 years ago
Julian Lam 149565169b closes #4658 9 years ago
AdJones 693e724802 Fixing issue where the relative path was ignored for express modules (#4621)
* Fixing issue where the relative path was ignored for express modules

* Fixing issue where the relative path was ignored for express modules (without the console log lines!)
9 years ago
boomzilla 52e4a37df8 When forking a topic, updates user bookmarks in the topic to keep the last read position (#4554)
from inadvertently being too far down the topic due to post indices decreasing because
some posts were moved to a new topic.
9 years ago
Julian Lam 1d7a5f58e2 fixes #4576 9 years ago
psychobunny d83a1987eb fix routing of rjs modules 9 years ago
psychobunny d24b15a584 closes #4523 9 years ago
psychobunny c88ed66312 closes #4502 9 years ago
Julian Lam ba44db5b5b updated dependency check logic to better handle missing dependencies 9 years ago
Julian Lam b6a10c7729 removed console log 9 years ago
Julian Lam 94a505a6bb removed symlink logic and using route bridging instead.
Also allowed plugins to define modules from their plugin.json
9 years ago
Julian Lam f91f705f90 Merge branch 'master' into fix-vendors 9 years ago
psychobunny 12ed4d2af5 remove PostCSS log 9 years ago
psychobunny 359b1fbe1a cleanup 9 years ago
psychobunny e2bc5f241a optimizing process.send for js minification 9 years ago
psychobunny acd24d856f run tasks in series to speed up startup time 9 years ago
psychobunny e134689324 we were accidentally including client-side LESS on the ACP 9 years ago
psychobunny fc65b144b1 running less compilation in series 9 years ago
Julian Lam 3e2231d2cb Fixing viewport shuffling due to image load
Introduced new method ".loadImages()" in posts client side lib
to handle viewport height changes when loading images. Requires
nodebb-plugin-markdown@5.0.0

@BenLubar @boomzillawtf
9 years ago
Julian Lam 8013f124da fixes #4471 9 years ago
psychobunny 000d5b61c7 fix for retrieving css cache 9 years ago
psychobunny baeed22f20 grunt: only compile ACP less if that was changed, and vice versa with theme/plugin less 9 years ago
barisusakli 91efab3c6d closes #4437 9 years ago
Julian Lam f7e4387748 closes #4380 9 years ago
barisusakli b6e22b7723 closes #4367 9 years ago
Julian Lam 184a2c4540 IP blacklist functionality -- re: #4367
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
9 years ago
psychobunny a6429af6c7 added cache buster to favicon 9 years ago
psychobunny aa2af345f9 removed unused deps 9 years ago
psychobunny 329a7a1e08 @barisusakli fixing minfile caching for multiple processes 9 years ago
Julian Lam 432c3d777d Merge branch 'master' into fix-vendors 9 years ago
Julian Lam 7bc9e4439a removed .gitignore from list of sound files 9 years ago
Julian Lam 3f2872979f added buzz 9 years ago
Julian Lam 44aae7daa5 removed hammer, updated semver, added mousetrap 9 years ago
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
9 years ago
psychobunny e069150625 closes #2165 9 years ago
psychobunny 933115a853 almost had a heartattack when I saw 121 changed files in this conflict
# Conflicts:
#	src/meta/templates.js
9 years ago
psychobunny 914fc1543e meta/templates.js refactor 9 years ago
psychobunny da5494fdf1 allow recursive base templates
ex. custom theme based off lavender which is based off vanilla
9 years ago
Julian Lam dd050c8177 added new hook that is called before templates are compiled 9 years ago
Julian Lam eb8b6af7fb Fix global mod priv check and styling for flags page 9 years ago
barisusakli 3336365e53 closes #4024 9 years ago
barisusakli c2e1426e57 fix syntax error, and actually show error if minification fails 9 years ago
Julian Lam baaad13286 reverted latest change to translator match regex
- Fixes issue with parentheses in translations (closes #4107)
- No longer marking translation keys invalid if they contain HTML,
  as that was probably not performant. Instead, parameters will
  simply be escaped via the StringJS library.
9 years ago
Julian Lam afbbb33878 fixed #4093 9 years ago
psychobunny e017ad432f closes #3810 9 years ago
psychobunny 1853cc3cc1 better messaging for each minification process 9 years ago
psychobunny f94cd21f83 #3875 filter:scripts.get now acts like filter:admin.scripts.get; does not get minified 9 years ago
psychobunny 42c0b973f1 closes #3134 9 years ago
psychobunny 5e4ef52911 some more cleanup 9 years ago
psychobunny 3cc5e1473f cleanup / lint before diving in 9 years ago
psychobunny f17fa3ca11 minify flag not actually being used 9 years ago
Julian Lam 96fe6d288f Allowing theme to be re-ordered like plugins. 9 years ago
Barış Soner Uşaklı ab4d4478e3 added rewards essentials 9 years ago
Julian Lam 4147e0cb94 closes #3719 9 years ago
Aziz Khoury b4c8301596 [minor] meta tag, content-type shouldnt be escaped
so `text/html; charset=UTF-8` and not `text&#x2F;html; charset=UTF-8`
9 years ago
Schamper 6b21e34c76 Also clean the minifier process options if the --debug option is used 9 years ago
Julian Lam 34725ec3e5 Fixes #3852
Added meta data to user profile pages, and also added noEscape
option to meta tag input. If set, validator escaping won't be
run on that value.
9 years ago
Julian Lam 8304740bd5 fixing crash on settings save 9 years ago
Julian Lam 3a34901cdb on settingsv2 save, reload should be required 9 years ago
barisusakli 46c2563164 removed rooms.js removed browsing users, removed chat syncing across sockets
use lastonline for online detection
9 years ago
Julian Lam ceaa3a334d Squashed commit of the following:
commit 3a39e5e6bd3c357d78d8ec1dad6e3a64c18ee3ab
Author: Julian Lam <julian@designcreateplay.com>
Date:   Tue Nov 3 20:15:10 2015 -0500

    minor tweak

commit ed3c25ba8b431a2b730aae78a43cfa934521a5d4
Merge: d9cde96 d7a0adc
Author: Julian Lam <julian@designcreateplay.com>
Date:   Tue Nov 3 20:12:32 2015 -0500

    Merge branch 'master' of https://github.com/acardinale/NodeBB into acardinale-master

commit d7a0adc5c883c5fa3207f3adcd0661246221e7c9
Author: Andrea Cardinale <a.cardinale@webandtech.it>
Date:   Wed Sep 30 10:32:25 2015 +0200

    Get registry (if it's set) from config.json in suggest method (client-side)
9 years ago
barisusakli 9040a1a063 concat minimize most common routes 9 years ago
barisusakli edf545cd2c dont load sound data on cold load 9 years ago
barisusakli 7f72d80292 fix require 9 years ago
barisusakli c3b8d0b328 check err first 9 years ago
barisusakli ca294fc6ec closes #3663 9 years ago
Julian Lam 839edc80b1 updated action:settings.set hook 10 years ago
Julian Lam ebed9d641c Add new ACP option to upload Touch Icon, #3668
Also added a number of fixes for mobile enhancements, such
as serving a manifest.json file for Android devices, and
serving proper link tags for all uploaded touch icons.

This commit also creates a new template helper for link tags.
10 years ago
barisusakli fbfb39f967 moved socket connection out of app.js 10 years ago
barisusakli a64cbbc6df #3573 10 years ago
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: #3573
10 years ago
psychobunny 265a16af1a some old left over branding code 10 years ago
barisusakli b4d465223a if there is no description tag add one, fix missing winston 10 years ago
psychobunny 54ec105986 random attempt to fix bad dep check 10 years ago
psychobunny 25a419e458 Merge branch 'master' into v0.8.x 10 years ago
barisusakli eaefd9d24c remove meta/title.js and meta.title.build #3481 10 years ago
psychobunny a217b42cb1 bonus two for #3481 - chats/username route 10 years ago
psychobunny 22fc257e36 bonus for #3481 - groups/group route 10 years ago
psychobunny 89b8622cfa other routes done, closes #3481 10 years ago
psychobunny 0e0d8474a4 page titles for user pages #3481 10 years ago
barisusakli d644542143 clearer text 10 years ago
Fokke Zandbergen 36c27633b9 Only use semver.satisfies on valid ranges
So it doesn't alarm when you use a package straight from git e.g.
10 years ago
barisusakli 274844a07f check _resolved 10 years ago