Commit Graph

59 Commits

Author SHA1 Message Date
Anton Grigoryev
342503e07a Feat: Client-side hooks - replace window.trigger (#9679)
* feat/clientside-hooks: replace window.trigger with hooks.fire

* feat(clientside-hooks): Move hooks require to the top

* fix: simplifying complex logical expression

* fix: client-side hook for translator - post-review fixes
2021-08-13 16:58:37 -04:00
Baris Usakli
6c404b81fb fix: use the correct attribute name for widgets 2019-11-14 11:25:35 -05:00
Aziz Khoury
13efbc9967 feat: change widget-* to data-widget-* (#7703)
* change widget-* to data-widget-*, original pr#5444 but backward compatible

* lint
2019-06-24 13:45:37 -04:00
Baris Usakli
c343b93a37 optimize ajaxify
- do not call $.timeago twice on topic load and for widgets
- do not use toLocaleString for each timeago string, use a single
Intl.DateTimeFormat instance instead
- do not call format for empty timeago strings, ie a post that isnt
edited doesnt have a timeago string
- do not call isTouchDevice for every element
- remove app.replaceSelfLinks, this is superceded with /me route
- store references to jquery objects in navigator instead of creating
them on every scroll
2018-11-17 14:07:56 -05:00
Julian Lam
964fd20213 removed addNoReferrer usage as it is done server-side now 2018-02-20 16:42:13 -05:00
Barış Soner Uşaklı
2b95dfde91 remove extra hook 2018-01-16 09:11:52 -05:00
Julian Lam
f138d3cb70 adding noopener and noreferrer to links in widgets 2018-01-15 15:29:33 -05:00
Barış Soner Uşaklı
772872fb03 trigger action:windows.loaded on coldload if widgets are already rendered 2018-01-13 18:10:47 -05:00
Chế Tiệp Chân Khoa
1f5d14dda4 place some code under the right loop (#5945) 2017-09-29 09:27:41 -04:00
Baris Usakli
4e7447c9d6 remove ajaxify.widgets.reposition 2017-07-10 14:05:48 -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
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
Peter Jaszkowiak
c18808fdeb ESlint no-useless-concat, no-mixed-spaces-and-tabs 2017-02-18 14:42:15 -07:00
Peter Jaszkowiak
a038c66549 ESlint quotes 2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
b09b3aef7f ESlint no-undef, remove global comments 2017-02-17 22:03:55 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
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=`
2017-01-14 22:38:40 -07:00
barisusakli
e86708cb0c add cid to widgets.render
init date pickers in widgets ACP
2016-12-13 14:11:56 +03:00
barisusakli
600082adc7 closes #5116 2016-10-14 10:59:16 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
HeeL
3fa1c1f927 Fix space-infix-ops linter rule 2016-10-13 11:42:29 +02:00
barisusakli
3c52327c0b closes #5098 2016-10-11 10:43:53 +03:00
barisusakli
c758f59014 closes #2302 2016-05-03 17:17:38 +03:00
Julian Lam
dc035c11f3 updated widget code to work better with sidebar areas 2015-11-10 14:40:27 -05:00
barisusakli
a1c407acd0 closes #3530 2015-09-10 17:13:36 -04:00
psychobunny
b73a26f7a6 fixes reload button and probably a bunch of other things in ACP 2015-07-08 17:12:06 -04:00
psychobunny
a285e0734d closes #3274 2015-06-29 15:16:36 -04:00
psychobunny
412c5360a6 allow timeago to be cast on other elements as well, ex. small 2015-03-16 17:22:44 -04:00
barisusakli
e6c0794061 create tooltips for users on widgets 2015-03-12 17:46:49 -04:00
Barış Soner Uşaklı
53db052cca timeago widgets 2015-02-23 12:55:44 -05:00
barisusakli
06b2a6ff68 closes #2717 2015-02-11 21:09:43 -05:00
A Catty Alpaca
f0ed816edb fix generated widgets areas glitching on small screens
because columns should always be in rows
2014-12-23 23:49:15 +01:00
psychobunny
2a2490541f some minor linting elsewhere 2014-10-04 18:56:33 -04:00
psychobunny
bf852d8329 closes #2078 2014-10-04 18:30:21 -04:00
psychobunny
ecd00bb679 refactored widgets api call to render all at once rather than one area at a time, closes https://github.com/NodeBB/NodeBB/issues/2062 2014-09-16 10:12:12 -04:00
barisusakli
341a0c8190 closes #1855 2014-07-20 14:35:25 -04:00
psychobunny
5b6acbad1e optimized widget call by bundling all queries into one for #1428; fixes active users widget crash
also fixes b3819fd076 properly
2014-07-09 19:23:10 -04:00
psychobunny
c6183f1a82 closes #1428 2014-07-09 15:41:03 -04:00
psychobunny
ecbb05ccca widgets.render doesn't actually use the url 2014-07-09 15:20:59 -04:00
barisusakli
ab6429c578 closes #1734 2014-06-22 17:08:55 -04:00
psychobunny
22d459d4cc temporary fixes for chrome users who have cookies disabled 2014-06-02 14:58:27 -04:00
psychobunny
cad10a3f9e implemented caching for widgets 2014-05-30 17:38:03 -04:00
psychobunny
bfa3b0f22f global header widgets 2014-05-28 16:30:29 -04:00
barisusakli
351e376812 hide area if there are no widgets 2014-05-28 16:24:10 -04:00
psychobunny
9c2bb027d3 fire action:widgets.loaded regardless of callback 2014-05-26 12:26:41 -04:00
psychobunny
6aeec3a399 action:widgets.loaded 2014-05-26 11:38:04 -04:00
Micheil Smith
3e82cab398 Add missing new lines at end of files. 2014-04-10 20:56:53 +01:00
barisusakli
34b73e15e6 dont add dupes to widgetLocations
this prevents widgets from being executed multiple times
2014-04-09 16:35:51 -04:00