Commit Graph

19352 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
e80b81010c fix: #8272 user link in digest email 2020-04-24 22:02:10 -04:00
Julian Lam
23a0b8c54c fix(openapi): v14 test fix 2020-04-24 17:45:40 -04:00
Julian Lam
a1b050e28d feat: let's start testing node v14 👿 2020-04-24 17:11:00 -04:00
Barış Soner Uşaklı
9ffdab02d0 fix: tag of /api/unread/total 2020-04-24 12:37:21 -04:00
Julian Lam
5a1c6ee7ed fix: response hook logic
After some more thought, a response hook should be checking for
whether headers are sent, and executing (or not executing) the
default logic in that case.

Before, we were relying on hooks to call data.next() to continue
execution, but it makes more sense to have the listener either
send a response or not, and handle the behaviour afterwards.
2020-04-24 11:51:33 -04:00
Julian Lam
ccc6118d30 Testing suite integration for openapi spec (#8263)
* feat: testing suite integration for openapi spec

The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.

* fix(openapi): removed debug stuff from tests

* fix(openapi): fixed some tests

* fix(openapi): added additional check to tests, test fixes

* fix(openapi): better tests, fixed spec errors

* fix(openapi): bad conditional in test

* fix: oops

* fix(openapi): more tests fixing

* fix(openapi): more tests

* fix(openapi): fix some more tests

* fix: verbose'd an info log

* fix: topic pagination route returns schema-optimized pagination block

* fix(openapi): more test/spec fixes

* fix(openapi): accidentally sending in authenticated jar for anon routes

* fix(openapi): more test/spec fixes

* fix(openapi): more spec fixes

* fix: timestampReadable Invalid Date

* fix(openapi): more tests... almost there

* fix(openapi): more tests fixing

* fix(openapi): finally all tests passing

* fix(openapi): added reverse test to compare response to spec

... and fixed all the tests that broke

* fix: remove tests related to group covers, as route is gone

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): object cache is not present for psql

* fix: tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
2020-04-23 21:50:08 -04:00
Julian Lam
6edf02d4a5 fix: remove upload picture test (avatars) 2020-04-23 19:57:41 -04:00
Julian Lam
442fe65f5a fix: remove tests related to group covers, as route is gone 2020-04-23 19:47:39 -04:00
Barış Soner Uşaklı
4eafe0f057 fix: #8269, return array of topics from hook 2020-04-23 11:32:24 -04:00
Misty (Bot)
267567a086 Latest translations and fallbacks 2020-04-21 09:34:14 +00:00
Misty (Bot)
c1429fbbf1 Latest translations and fallbacks 2020-04-20 09:30:00 +00:00
Opliko
47e7e9572c Add loading=lazy tag to avatars
There is no reason why avatars should be a blocking reasorce, and browsers are now adding support for lazy loading of images (and iframes). According to [caniuse.com](https://caniuse.com/#feat=loading-lazy-attr) 62% of users use a browser that supports this attribute.

So there doesn't seem to be any downside to just adding this attribute here. It won't affect browsers that don't support it and might speed up page loads on browsers that do.
2020-04-19 13:33:23 -04:00
Opliko
6e5ebb6184 feat: manifest.json improvements from #8126 (#8264)
* feat: manifest.json improvements from #8126

* Fix short title placeholder

* use lowercase letters for hex colors
2020-04-19 13:32:49 -04:00
Renovate Bot
51eccef58b chore(deps): pin dependency @apidevtools/swagger-parser to 9.0.1 2020-04-19 10:16:07 -04:00
Julian Lam
d09c6ae0de fix(deps): actually, swagger-parser is a dev dependency 2020-04-19 10:12:55 -04:00
Julian Lam
f172073551 fix(deps): missing @apidevtools/swagger-parser 2020-04-19 10:12:04 -04:00
Barış Soner Uşaklı
153456278b feat: show error if json is invalid 2020-04-17 13:24:52 -04:00
Julian Lam
d342a28c16 fix(openapi): remove account and group upload routes
re: #8260
2020-04-17 10:10:13 -04:00
Julian Lam
ef52461fb6 fix: remove dead picture upload code #8260 2020-04-17 10:08:18 -04:00
Julian Lam
058a15dbb2 fix(openapi): more fleshing out 2020-04-16 22:46:27 -04:00
Julian Lam
bae88e089a fix(openapi): fleshed out admin routes 2020-04-16 21:57:04 -04:00
Julian Lam
5bcaf71501 fix: path.resolve to logs file 2020-04-16 20:46:03 -04:00
Julian Lam
8387178b25 feat(openapi): merging openapi-test branch into master 2020-04-16 20:39:15 -04:00
Barış Soner Uşaklı
ba6d3fd372 fix: only trigger infinitescroll on scroll end 2020-04-16 12:21:40 -04:00
Barış Soner Uşaklı
c7ea84a2ae fix: wrong data returned in available.groups 2020-04-15 22:40:32 -04:00
Julian Lam
ab4bd7e146 fix(openapi): added some descriptions 2020-04-15 14:44:05 -04:00
Misty (Bot)
d678793cd4 Latest translations and fallbacks 2020-04-15 09:40:29 +00:00
renovate[bot]
b0c30ceba0 fix(deps): update dependency nodebb-theme-persona to v10.1.37 (#8258)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-15 01:35:56 -04:00
Julian Lam
2395d2be2e fix(openapi): added PostsObject component 2020-04-14 20:58:17 -04:00
Renovate Bot
28777f676c fix(deps): update dependency archiver to v4 2020-04-14 16:59:02 -04:00
Julian Lam
803d083e0b Revert "Remove nodejs 12 from compatible list"
This reverts commit 14aed18449.
2020-04-14 13:50:16 -04:00
renovate[bot]
492360673d fix(deps): update dependency mongodb to v3.5.6 (#8256)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-14 11:24:24 -04:00
Julian Lam
1b425ef108 fix: no focus on find user modal 2020-04-14 10:18:20 -04:00
Julian Lam
bcbf98aa4c fix: accidental fp precision on flag and acp dash graphs 2020-04-14 10:16:02 -04:00
xinbenlv
14aed18449 Remove nodejs 12 from compatible list
https://community.nodebb.org/topic/14670/consider-add-to-documentation-node-version
2020-04-13 21:19:35 -04:00
Peter Jaszkowiak
e68156e1f2 fix(deps): bump dependencies (#8239)
* fix(deps): bump dependencies

* fix(deps): commander@5

* fix(deps): use @nodebb/mubsub
2020-04-13 15:50:20 -04:00
Julian Lam
f2f6fbf15a fix: #8232, unresolvable session mismatch on register cancel 2020-04-13 13:26:27 -04:00
Barış Soner Uşaklı
e440d617d4 fix: pin jquery to 3.4.1, #8252 2020-04-13 11:40:29 -04:00
Jonson Petard
e6a1741c2e Support package manager: cnpm and pnpm (#8222)
* feat: support pnpm, cnpm

* feat: store supportedPackageManager in default package.json

* feat: store supportedPackageManager in src/cli/package-install.js

Co-authored-by: a632079 <a632079@qq.com>
2020-04-13 09:59:52 -04:00
hb90dev
3ce885fff2 fixes sitemap base url issue when using with subfolder (#8247)
* fixes sitemap base url issue when using with subfolder

* fixes sitemap base url issue when using with subfolder

* uses directly relative path

* removes prefix variable
2020-04-13 09:57:24 -04:00
Barış Soner Uşaklı
d77036dbd1 fix: #8249, don't send move notifications for deleted posts/topics 2020-04-13 09:52:18 -04:00
Misty (Bot)
d387cc231e Latest translations and fallbacks 2020-04-10 09:29:03 +00:00
Renovate Bot
30a2598364 chore(deps): update dependency husky to v4.2.5 2020-04-09 18:49:39 -04:00
renovate[bot]
92b55ef580 fix(deps): update dependency jsesc to v3.0.1 (#8243)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-09 17:23:22 -04:00
Renovate Bot
0a65011833 chore(deps): update dependency husky to v4.2.4 2020-04-09 12:55:28 -04:00
Renovate Bot
a9e686397e chore(deps): update dependency lint-staged to v10.1.3 2020-04-09 10:30:27 -04:00
Julian Lam
23dd2727f2 fix(openapi): finished moving all category objects out 2020-04-08 22:15:49 -04:00
Julian Lam
c939f8c66d fix(openapi): changed some descriptions 2020-04-08 22:15:40 -04:00
Julian Lam
55d0a9ffea fix(openapi): added CategoryObject component 2020-04-08 22:06:22 -04:00
Julian Lam
646fac1e53 fix(openapi): removed repeated breadcrumb blocks in favour of $ref 2020-04-08 17:06:26 -04:00