Commit Graph

5262 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
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
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ı
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
Barış Soner Uşaklı
25ea634787 fix: #7659 add option to change cookie link url 2019-06-13 11:54:39 -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
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
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ı
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
Barış Soner Uşaklı
e65ddc98b5 fix: https://github.com/barisusakli/nodebb-plugin-dbsearch/issues/53 2019-05-23 08:51:47 -04: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
Julian Lam
7e5cb72a59 fix: #7618 save pathname into app.previousUrl ins. of entire url 2019-05-17 17:47:36 -04:00
Julian Lam
a41769e61c feat: update meta tags on ajaxify (#7580), fixes #7544
* feat: wip -- refresh meta tags on ajaxify

* feat: wrapped up meta tags update on ajaxify feature

* fix: removed commented-out line

* fix: removed another commented-out line
2019-05-16 09:41:56 -04:00
Barış Soner Uşaklı
dfab231afd Copy group privs (#7610)
* feat: ability to copy a groups privileges

ability to copy a group's privileges to all categories, or children of current category

* feat: switch to dropdown

added copy from category to groups

* fix: indents
2019-05-15 20:56:23 -04:00
yossizahn
1703233f48 fix: #7586, switchTimeagoLanguage shouldn't discriminate against languages w/o shorthands 2019-05-10 10:47:22 -04:00
Barış Soner Uşaklı
bf6fc502c4 fix: #7564 2019-05-01 11:10:44 -04:00
Barış Soner Uşaklı
c940a73359 fix: #7539 2019-04-29 10:28:56 -04:00
Barış Soner Uşaklı
9385c8e3ee feat: #7319 2019-04-29 09:52:30 -04:00
Barış Soner Uşaklı
32cf07d732 fix: #7464 2019-04-26 16:39:27 -04:00
Barış Soner Uşaklı
f86d74d8b9 fix: #7424 2019-04-25 22:18:12 -04:00
Barış Soner Uşaklı
09681e6ccf fix: #7562 2019-04-25 21:43:21 -04:00
Julian Lam
c38db4f765 feat: #7515
This reverts commit 81f8cfe3da.
2019-04-10 14:00:39 -04:00
Barış Soner Uşaklı
81f8cfe3da Revert "feat: #7515"
This reverts commit ac889db16b.
2019-04-09 12:21:46 -04:00
Barış Soner Uşaklı
ac889db16b feat: #7515 2019-04-09 10:59:01 -04:00
Julian Lam
3871a02ccc fix: resolve CORS error on uploading via URL
On uploading a new profile picture via URL, a CORS error presents
itself during the .toDataUrl() call due to misconfigured CORS
handling in the library. The change here allows cropper.js to
check crossorigin attribute in image and handle appropriately.

Also, the error handling is improved so the error is caught on
Firefox, as it sends a different error message than on Chrome.
2019-04-04 10:20:45 -04:00
Barış Soner Uşaklı
2ee2cd528f feat: #7501 2019-04-02 11:56:03 -04:00
Barış Soner Uşaklı
e906bea470 fix: escape search snippet closes #7506 2019-03-29 20:05:55 -04:00
Barış Soner Uşaklı
1f3554ff00 fix: #7503 2019-03-27 18:21:35 -04:00
Andrew Rodrigues
78e0b9834c fix: #7485 2019-03-23 03:45:21 -04:00
Andrew Rodrigues
24dcae2193 feat: manual password expiry. closes #7471 2019-03-20 16:34:22 -04:00
Julian Lam
c289b904e6 fix: #7473 2019-03-19 15:42:42 -04:00
Andrew Rodrigues
c37b2f2ed3 fix: #7378 2019-03-19 14:56:31 -04:00
Andrew Rodrigues
dcdd41c7ce fix: #7454 2019-03-19 14:23:53 -04:00
Andrew Rodrigues
962b7f73d3 fix: #7472 2019-03-19 14:01:31 -04:00
Baris Usakli
7211dde7b9 feat: #7358 2019-03-09 12:35:36 -05:00
Baris Usakli
777ca03264 fix: #7432 2019-03-08 13:23:00 -05:00
Julian Lam
d3a10628e7 fix: broken 50% border radius on emails, failing tests 2019-02-22 12:01:18 -05:00
Julian Lam
3a7f1c192b fix: failing tests from revamped-emails branch 2019-02-21 12:55:09 -05:00