Commit Graph

7721 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
bd640a1107 Topic await errors (#7727)
* feat: derp await

* feat: restore user.getSettings

* feat: cleanup

* feat: make tid const

* feat: cleanup

* fix: tests

* feat: deprecate filter:controllers.topic.get

* feat: rewrite post-index logic

* feat: change calculation to match others

* fix: use .async

* feat: remove try/catch wrapper
2019-07-03 12:48:26 -04:00
Misty (Bot)
11b5eb6481 Latest translations and fallbacks 2019-07-01 09:26:48 +00:00
Misty (Bot)
76910ad5b6 Latest translations and fallbacks 2019-06-30 09:25:59 +00:00
Misty (Bot)
9e9a2a5048 Latest translations and fallbacks 2019-06-29 09:25:57 +00:00
Julian Lam
a0c0ef1ba4 feat: ACP analytics API route (#7725)
* feat: added API route for retrieving analytics via REST API

* feat: sets is now optional, can pass in multiple sets

* fix: moved expand and added json button to panel header

* fix: matching api params to socket method

* fix: update json api button url on graph change

* fix: updated default counts based on passed in units
2019-06-28 14:59:55 -04:00
Baris Usakli
a5de54f877 fix: indents 2019-06-27 12:08:51 -04:00
Baris Usakli
ee4d78cae3 feat: closes #7718 2019-06-27 12:05:31 -04:00
Julian Lam
af17c6e31c fix: remove debug code that should not have made it in 2019-06-26 14:32:03 -04:00
Julian Lam
69fae1a7e4 fix: output span in buildAvatar helper instead of div
In not-so-rare circumstances, the avatar generated is wrapped in
an anchor so that when clicked, it goes to the user profile.

Unfortunately, html 4 spec doesn't like block level elements
inside anchors (since an anchor is an inline element), and even
though we define html5 doctype, browsers still reorder the div
and anchor, beats me as to why.

So I can trick the browser by using a span. The css already styles
it as inline-block so no further fixes are required.
2019-06-26 12:14:14 -04:00
Barış Soner Uşaklı
f24c14d712 feat: ability to sort watched topics, closes #3735 2019-06-25 15:50:05 -04:00
Misty (Bot)
5738ebeb54 Latest translations and fallbacks 2019-06-25 09:26:48 +00:00
Barış Soner Uşaklı
a39f0ef592 fix: #5570, create per category user post zsets 2019-06-24 15:21:43 -04: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
Barış Soner Uşaklı
e1c05e59c9 fix: restrict drag drop to pin icon, closes #7702
https://github.com/NodeBB/NodeBB/issues/6081
2019-06-24 09:59:31 -04:00
Barış Soner Uşaklı
b53a60c278 feat: show best & latest posts on profile 2019-06-22 22:52:10 -04:00
Julian Lam
289dada5f7 fix(deps): update to eslint@6 2019-06-22 21:23:32 -04:00
Misty (Bot)
54e6ac2a99 Latest translations and fallbacks 2019-06-20 09:26:46 +00:00
Misty (Bot)
91a2e1a90e Latest translations and fallbacks 2019-06-17 09:27:10 +00:00
Barış Soner Uşaklı
25ea634787 fix: #7659 add option to change cookie link url 2019-06-13 11:54:39 -04:00
Julian Lam
1894cd9b81 fix: middle vertical-align for .avatar elements 2019-06-13 10:07:52 -04:00
Julian Lam
2523889990 refactor: replace avatar conditional code with buildAvatar helper (#7681)
* feat: helper for building avatars

* feat: benchpress truefalse globals, componentPrefix in buildAvatar

* refactor: remove componentPrefix

* feat: changes to buildAvatar helper

- removed extra .avatar-xl class in generics.less
- added support for component override
- "size" can be a number now

* fix: prevent overflow of alt text in avatars

* fix: update doc on buildAvatar helper
2019-06-13 09:54:18 -04:00
Aziz Khoury
a6436716ea feat: hooks can now return promise or call callbacks
* hooks can now return promise or call callbacks, either way works

* cleanups

* moar cleanups and fix callback 1st null arg

* rm unnessesary spread
2019-06-10 12:05:27 -04:00
Misty (Bot)
232b35f938 Latest translations and fallbacks 2019-06-10 09:26:24 +00:00
Misty (Bot)
23502c9074 Latest translations and fallbacks 2019-06-09 09:25:55 +00:00
Misty (Bot)
8ee5d32d4f Latest translations and fallbacks 2019-06-08 09:26:04 +00:00
Barış Soner Uşaklı
5fa5e999f8 Plugin metrics (#7626)
* feat: add enable/disable checkbox for plugin usage

* feat: submit plugin data to packages.nodebb.org

only submit in production mode
submit once every 24 hours
dont submit for plugins that have "private": true in plugin.json
enabled on new installs
disabled on existing installs

* fix: hash not working after first send

fix statusCode

* fix: remove url

* feat: show compatibilty

* feat: add install question for submit plugin usage
2019-06-07 14:10:44 -04:00
Misty (Bot)
25d289c6f6 Latest translations and fallbacks 2019-06-07 09:27:12 +00:00
Misty (Bot)
86da15bedd Latest translations and fallbacks 2019-06-06 09:26:45 +00:00
Misty (Bot)
99120676bb feat: fallback strings for ACP events 2019-06-05 15:52:52 -04:00
Julian Lam
c7f95ccecc feat: design revamp of ACP events page (#7664)
* feat: design revamp of ACP events page

- minor UX changes
- new filter controls, filters moved to sidebar
- form usable without js
- start/end filters NOT programmed yet

* feat: events ACP limit by date and perPage

* feat: pre-fill applied filters on template render

* fix: missing translation for ACP events perPage filter

* fix: added some comments to explain setHours behaviour

* fix: stop - start + 1

* fix: socket tests

* fix: +inf, not just inf

* fix: tests, because I am an idiot
2019-06-04 17:25:09 -04:00
Barış Soner Uşaklı
4b843ba16f fix: #7567, allow invite and approval at the same time 2019-06-04 11:10:20 -04:00
Misty (Bot)
a097b19293 Latest translations and fallbacks 2019-06-02 09:26:02 +00:00
Julian Lam
868dedd194 revert: accidental removal of some needed translation source strings 2019-05-31 12:00:12 -04:00
Barış Soner Uşaklı
8aef689f05 fix: no need for moderate bit for global mods and admins 2019-05-30 20:12:04 -04:00
Barış Soner Uşaklı
035f624758 Remove implicit mod privs. closes #6345 (#7648)
* feat: add upgrade script to give mods privs

* feat: give all privileges when making a moderator

* feat: remove implicit privs

* feat: give global mods default privs

* feat: more priv fixes

* feat: use lodash

* fix: remove implicit mod priv from topic delete

* fix: more privs

* fix: posts.canEdit

* fix: canDelete and canEdit

* fix: tests, remove console.log

* feat: shorter functions

* feat: add tests

* fix: uids

* fix: redis random test fail
2019-05-30 19:30:47 -04:00
Barış Soner Uşaklı
ebb32e7891 fix: attribute name so it works for both templates 2019-05-30 19:30:25 -04:00
Barış Soner Uşaklı
0721bee146 feat: on category search reveal children and parents 2019-05-30 18:27:22 -04:00
Barış Soner Uşaklı
6cebc7f069 feat: #7627, close chat on ajaxify on mobile 2019-05-29 22:14:26 -04:00
Julian Lam
5cd9e1bf86 fix: #7644 2019-05-28 13:42:00 -04:00
Misty (Bot)
1d26aac8b8 Latest translations and fallbacks 2019-05-27 09:26:32 +00:00
Misty (Bot)
b09749ff00 Latest translations and fallbacks 2019-05-26 09:26:13 +00:00
Misty (Bot)
64a20f5616 Latest translations and fallbacks 2019-05-25 09:25:59 +00:00
Barış Soner Uşaklı
157b921e14 fix: #7634, make strip exif configurable 2019-05-23 20:38:49 -04:00
Barış Soner Uşaklı
e65ddc98b5 fix: https://github.com/barisusakli/nodebb-plugin-dbsearch/issues/53 2019-05-23 08:51:47 -04:00
Misty (Bot)
4da9a1eb38 Latest translations and fallbacks 2019-05-23 09:29:23 +00:00
Julian Lam
a97e97b9c3 fix: incorrect pathname format for app.previousUrl 2019-05-22 13:15:59 -04:00
Barış Soner Uşaklı
106d52a47f fix: #7598, use notice element instead of alert 2019-05-22 12:35:56 -04:00
Misty (Bot)
d95e644720 Latest translations and fallbacks 2019-05-22 09:29:55 +00:00
Misty (Bot)
c6449c106b Latest translations and fallbacks 2019-05-20 09:28:53 +00:00
Misty (Bot)
b692dd87cd Latest translations and fallbacks 2019-05-19 09:26:09 +00:00