Commit Graph

15454 Commits

Author SHA1 Message Date
Julian Lam
efea8f8e99 closes #5784 2017-07-18 14:59:06 -04:00
Baris Usakli
18181260e7 closes #5836 2017-07-18 13:36:21 -04:00
Baris Usakli
43a70270ef closes #5835 2017-07-18 11:31:18 -04:00
Misty (Bot)
018d5d7819 Latest translations and fallbacks 2017-07-18 09:24:12 +00:00
Stjepan Osojnički
9b491e4c2e Add post images hook (#5828)
* Add post images hook

This hook would allow plugins to manipulate images inside posts  after images are manipulated by nodebb (for example, delay loading). Without this hook we can manipulate images by searching post data for them and manipulate that data, but any change on that level is either erased by nodebb once image loading starts (if delay is turned on) or it disables native image behaviour by changing image code so native behaviour is not triggered.
Hook at this place works for both delayed loading turned on and off.
Usage for this kind of hook was talked about here: https://community.nodebb.org/topic/10960/opening-uploaded-images-in-modal-windows

* trying to fix Travis error

* Update images.js

Hook moved out of wrapImagesInLinks function to places where images are actually loaded. One of the places is inside unloadImage function but in place where loading is happening because of failed if check (delayImageLoading not se in users configuration).
2017-07-17 18:16:48 -04:00
Barış Soner Uşaklı
eecc680761 style 2017-07-17 18:16:23 -04:00
dbolack-ab
c1452db0ba Adds the filter:uploadStored hook which fires after the file is saved… (#5798)
* Adds the filter:uploadStored hook which fires after the file is saved in the async waterfall and passes:
                       var storedFile = {
                       url: nconf.get('relative_path') + upload.url,
                       path: upload.path,
                       name: uploadedFile.name,
               }
               plugins.fireHook( 'filter:uploadStored', { uploadedFile: uploadedFile, storedFile: storedFile } );

* Corrections per PR. Should match style guide.

* Correction attempts take 2.

Per:

/home/travis/build/NodeBB/NodeBB/src/controllers/uploads.js

  234:5    error  Missing semicolon                            semi

  235:3    error  Expected indentation of 3 tabs but found 2   indent

  235:19   error  There should be no spaces inside this paren  space-in-parens

  235:105  error  There should be no spaces inside this paren  space-in-parens

  236:3    error  Expected indentation of 3 tabs but found 2   indent

* next() shouldn't fire twice, but I see no documentation suggesting that the paramaters will fire correctly.

Previous comments imply it is preferred to have fireHook fire fof the callback rather than having it happen next,  so I'm wrapping next in an anonymous function to ensure it passes the parameters.

If this is not the preferred method, please provide a thorough correction.

* Meh. Figuring out this style requirement is so hit and miss.

* Corrected for proper callback? technique.

Might blow up on style. Will watch.
2017-07-17 18:15:24 -04:00
Barış Soner Uşaklı
b983be2919 fix colspans in category privilege tab 2017-07-17 15:29:36 -04:00
Barış Soner Uşaklı
8e8507c9e6 up widget essentials 2017-07-16 15:35:22 -04:00
Barış Soner Uşaklı
cc4f4e7282 style changes 2017-07-15 16:57:41 -04:00
Barış Soner Uşaklı
67ca1881bd closes #5831 2017-07-15 16:24:46 -04:00
Baris Usakli
0a4b76357a #5830 2017-07-14 17:29:53 -04:00
Baris Usakli
9dee81b37f closes #5830 2017-07-14 17:29:31 -04:00
Baris Usakli
f8bfe79cf4 remove tid from recent_tids 2017-07-14 16:23:20 -04:00
Misty (Bot)
3a0bc15a7a Incremented version number - v1.5.2 2017-07-14 12:56:02 -04:00
Baris Usakli
5a9ae8f4c7 rearrange menu items 2017-07-13 17:18:01 -04:00
Baris Usakli
6ba913d6e6 up themes 2017-07-13 14:02:42 -04:00
Misty (Bot)
0e4fba7c6c Latest translations and fallbacks 2017-07-13 09:23:25 +00:00
Barış Soner Uşaklı
5888a5ffc4 closes #5010
init plugin hooks before resetting widgets, the areas are returned by
`filter:widgets.getAreas`
2017-07-12 20:10:19 -04:00
Barış Soner Uşaklı
4056283fd5 always return array 2017-07-12 19:47:08 -04:00
Barış Soner Uşaklı
0f5be5ae25 remove plugin.hook check 2017-07-12 19:44:35 -04:00
Barış Soner Uşaklı
e6d0dde7b4 up dbsearch 2017-07-12 19:35:20 -04:00
Barış Soner Uşaklı
bca79da8c6 closes #4197
add in-topic search support to dbsearch
prevent multiple click handlers on in-topic search widget(each click was
causing multiple scrolls)
fix index
2017-07-12 19:29:41 -04:00
Barış Soner Uşaklı
e613064b06 closes #5819 2017-07-12 17:21:21 -04:00
Misty (Bot)
d478deb4fe Latest translations and fallbacks 2017-07-12 09:23:22 +00:00
Barış Soner Uşaklı
71e3fea55b closes #5802 2017-07-11 19:18:47 -04:00
Baris Usakli
0e0d961f7c dont change templateData 2017-07-11 16:40:04 -04:00
Baris Usakli
0b101fa3eb composer-default 2017-07-11 16:18:20 -04:00
Julian Lam
701ba73883 updated homepage route logic so that it is all contained in the local function (and plugin hook receives all entries, including custom) @barisusakli 2017-07-11 15:40:47 -04:00
Baris Usakli
593ea572c9 up markdown 2017-07-11 14:32:57 -04:00
Baris Usakli
12d53c95ca up composer 2017-07-11 14:14:55 -04:00
Baris Usakli
2d875a99cb fix data 2017-07-11 13:59:29 -04:00
Baris Usakli
dc110e2e3f closes #5818 2017-07-11 13:44:51 -04:00
Julian Lam
45d940ad2b added one more client-side hook for search @barisusakli 2017-07-10 16:34:18 -04:00
Baris Usakli
59aeee6516 remove addExpiresHeaders 2017-07-10 15:26:58 -04:00
Baris Usakli
e036e26238 closes #5813 2017-07-10 14:55:57 -04:00
Baris Usakli
4e7447c9d6 remove ajaxify.widgets.reposition 2017-07-10 14:05:48 -04:00
Baris Usakli
bece6808a2 up themes for widgets refactor 2017-07-10 13:04:01 -04:00
Barış Soner Uşaklı
923bd86662 Widgets refactor (#5817)
* widgets refactor

render widgets server side
widgets can use all the data the template can use

* fix tests
2017-07-10 12:54:45 -04:00
Julian Lam
65329b9bd7 closes nodebb-plugin-markdown#85 2017-07-10 12:21:23 -04:00
Barış Soner Uşaklı
80ea9e9797 fix lint 2017-07-10 00:37:48 -04:00
Barış Soner Uşaklı
6485108dfd faster getReplies 2017-07-10 00:28:15 -04:00
Barış Soner Uşaklı
feecf0b61c dont make db call if guest 2017-07-09 21:08:03 -04:00
Barış Soner Uşaklı
e9360347ea less padding, closes #5811 2017-07-09 16:08:06 -04:00
Misty (Bot)
2b3a88365c Latest translations and fallbacks 2017-07-09 09:23:16 +00:00
Misty (Bot)
b117f1169e Latest translations and fallbacks 2017-07-08 09:23:18 +00:00
Barış Soner Uşaklı
34d9b57b26 fix wrong function name, change dom to data @julianlam 2017-07-07 18:12:42 -04:00
Julian Lam
3ddf332e0c added two new client-side hooks for search to allow plugins to add fields 2017-07-07 15:48:35 -04:00
Baris Usakli
e0de922ede Revert "widgets refactor"
This reverts commit 9e94edb5aa.
2017-07-07 15:35:06 -04:00
Baris Usakli
9e94edb5aa widgets refactor
render widgets server side
widgets can use all the data the template can use
2017-07-07 15:33:16 -04:00