Commit Graph

513 Commits

Author SHA1 Message Date
Peter Jaszkowiak
c47c47f7e3 Use less memory to build translation files (#6070)
* Change languages build to use less memory

Add graceful-fs so no ned to worry about fs limits

* Specify encoding for fs.readFile

Use eachLimit since graceful-fs handles that now
2017-11-16 17:43:52 -05:00
Peter Jaszkowiak
f5385e38bf Add /me* route which redirects to /user/[userslug]* (#6063)
* Add `/me*` route which redirects to the current user's information

- `/me` -> `/user/[usertslug]`
- `/me/bookmarks` -> `/user/[userslug]/bookmarks`
- `/me/settings` -> `/user/[userslug]/settings`

etc

* Add tests for `/me/*`
2017-11-16 17:38:26 -05:00
Barış Soner Uşaklı
b1ea137292 closes #6046 2017-11-07 12:39:34 -05:00
Peter Jaszkowiak
e609e497b3 Provide more error information to logs
Provides full stack instead of just message
2017-11-01 18:59:48 -06:00
Baris Usakli
47143a4a09 Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2017-10-30 15:29:26 -04:00
Barış Soner Uşaklı
a11058bce2 closes #6004 2017-10-26 10:32:24 -04:00
Barış Soner Uşaklı
41fbf7117d Merge remote-tracking branch 'refs/remotes/origin/master' into develop 2017-10-25 18:21:54 -04:00
Barış Soner Uşaklı
056e4f0601 #6004 2017-10-25 09:08:03 -04:00
Barış Soner Uşaklı
ce3e1f31ab fix for #6004 2017-10-24 17:55:45 -04:00
Julian Lam
9cbf1597cd Merge remote-tracking branch 'origin/master' into develop 2017-10-12 14:01:14 -04:00
Baris Usakli
68bcfb2883 closes #5975 2017-10-12 13:54:53 -04:00
Julian Lam
cd6dcff38b Split up customJS into customHTML and customJS for better organisation (#5981)
* WIP

* fixed customJS not actually working in footer

* Moving scripts to footer, #5980

* Added upgrade scripts for #5980
2017-10-12 13:38:27 -04:00
Julian Lam
6852c92ed6 Merge remote-tracking branch 'origin/develop' 2017-10-03 13:37:43 -04:00
Peter Jaszkowiak
dc87d7fc0f Use .js instead of .jst
Fix #5934
2017-09-23 12:51:20 -06:00
Julian Lam
dea372a5c5 fixes #5932 2017-09-14 10:15:05 -04:00
Barış Soner Uşaklı
5cc39e8546 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
# Conflicts:
#	package.json
#	src/views/admin/manage/ip-blacklist.tpl
2017-08-24 19:29:15 -04:00
Peter Jaszkowiak
abffc29128 Use Benchpress (#5901)
* Use Benchpress

* Use Benchpress.compileParse

* Error for template load failure

* Use benchpressjs package

* Compile templates on demand

* Fix user settings page

* Fix admin search to exclude `.jst` files

* Fix 500-embed

So ajaxify can still show an error if the server goes down
2017-08-24 19:26:50 -04:00
Barış Soner Uşaklı
0498832317 closes #5888 2017-08-22 10:28:35 -04:00
Julian Lam
6ec1bfd660 added artificial delay on reset route so that the heat death of the universe will arrive before you manage to identify a valid reset code 2017-08-16 12:51:02 -04:00
Baris Usakli
4ac8d29f06 closes #5847 2017-08-01 13:17:03 -04:00
Barış Soner Uşaklı
493cd16f39 closes #5848 2017-07-31 16:48:28 -04:00
Julian Lam
f59f48c6e1 use setImmediate 2017-07-25 14:11:54 -04:00
Julian Lam
c9c27b86c4 added back logic to strip leading slashes, but after the fix to app.all 2017-07-25 13:50:37 -04:00
Baris Usakli
e9639833c5 add router.all 2017-07-25 12:11:11 -04:00
Julian Lam
233297367b strip leading slashes from path if double-slash is accidentally used, stripping trailing slash from relative path retrieved from config.json 2017-07-25 10:39:57 -04:00
Baris Usakli
dc110e2e3f closes #5818 2017-07-11 13:44:51 -04:00
Baris Usakli
59aeee6516 remove addExpiresHeaders 2017-07-10 15:26:58 -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
Baris Usakli
7538210b07 #5772
load correct timeago settings on cold load instead of after page load
2017-07-06 14:09:59 -04:00
Marc-Aurèle DARCHE
6248e5562f Fix /apple-touch-icon not sending uploaded file
This fixes the following error:

$ wget https://nodebb.yourdomain/apple-touch-icon

28/6 09:57:06 [28332] - error: /apple-touch-icon
 Error: ENOENT: no such file or directory, stat '/home/sweet/nodebb/public/assets/uploads/system/touchicon-orig.png'
    at Error (native)
2017-06-28 15:02:17 +02:00
Barış Soner Uşaklı
b64ba40c67 closes #5772 2017-06-26 17:27:48 -04:00
Barış Soner Uşaklı
22131640fd closes #5749 2017-06-08 17:17:46 -04:00
psychobunny
50367a971e req should be req. 👍 2017-06-07 20:18:04 -04:00
Barış Soner Uşaklı
08aaabd33c closes #5642 2017-05-27 23:32:55 -04:00
Baris Usakli
062bced3dd cleanup and tests 2017-05-25 16:40:07 -04:00
Barış Soner Uşaklı
f57b5f4e4c refactor 2017-05-24 15:07:13 -04:00
Barış Soner Uşaklı
29135dfed3 timeago locale test 2017-05-23 23:32:38 -04:00
Barış Soner Uşaklı
01e2263c01 more tests 2017-05-12 17:53:23 -04:00
Barış Soner Uşaklı
608a7d120c error handler tests 2017-05-10 21:02:36 -04:00
Barış Soner Uşaklı
3a1eba2537 merge 2017-05-08 13:49:35 -04:00
psychobunny
b3bd70235a refactor ban messaging; add ban duration to message; use bootbox instead of alert 2017-05-05 19:31:49 -04:00
Barış Soner Uşaklı
4900f21dd5 fix crash in header 2017-04-24 13:30:01 -04:00
barisusakli
33e8ecc1f4 closes #5404 2017-04-22 19:07:57 -04:00
Peter Jaszkowiak
64bf542d17 Fix HTML lang attribute using the defaultLang
Themes need `lang="{function.localeToHTML, userLang, defaultLang}"` in
their header.tpl file
2017-04-21 23:56:19 -06:00
Julian Lam
d18cfced96 Merge remote-tracking branch 'origin/master' into develop 2017-04-12 23:57:14 -04:00
Peter Jaszkowiak
1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
psychobunny
5985a8a7a3 closes #5574 2017-04-06 18:06:10 -04:00
psychobunny
e121a5a798 closes #5574 2017-04-06 17:57:01 -04:00