Commit Graph

552 Commits

Author SHA1 Message Date
Julian Lam
697a6597f3 fix: #7444 Re-factor handling of og:image tags (#7463)
* fix: display proper site logo or og-image with sizes in head

* fix: refactor og:image logic, #7444

- Updated logic to set additional og:image tags based on more
  factors
- logo.png fallback

* feat: save image sizes on post upload, re: #7444

* fix: awaiting addTags in topic controller

* fix: pass strings to meta tags object

* fix: sending absolute image url to meta tag

* fix: removed unneeded async and requiring sync db

* feat: upgrade to calculate image sizes for all post uploads tracked

* fix: tests
2019-03-18 12:09:10 -04:00
Julian Lam
6c1f9c3c46 fix: restored email logo to all outgoing emails 2019-02-22 15:03:31 -05:00
Julian Lam
02a8ed9b11 feat: textcomplete over jquery-textcomplete, closes #7309 2019-01-28 13:05:46 -05:00
Peter Jaszkowiak
e1ca2d81f9 refactor: use loash when possible (#7230) 2019-01-12 14:28:53 -05:00
Baris Usakli
934e1854d3 remove unnecessary escape 2019-01-02 13:48:22 -05:00
Baris Usakli
0d409610c4 fix: #7181 2019-01-02 13:33:15 -05:00
Julian Lam
a07d9898df fix: #7071 buildSkinAsset won't rebuild continuously 2018-12-06 16:10:24 -05:00
Baris Usakli
67ac8e3d06 closes #7053 2018-12-04 19:58:12 -05:00
Barış Soner Uşaklı
ec0c50d4e0 fix: #7041 2018-12-01 16:59:20 -05:00
Peter Jaszkowiak
ba619c7ec8 style(eslint): match operator-linebreak preferences 2018-11-30 13:38:59 -05:00
Barış Soner Uşaklı
63c0a9a3b7 closes #6928 2018-11-21 15:32:12 -05:00
Barış Soner Uşaklı
1ce15e69ab dont require search and moustrap on topic page until needed 2018-11-18 10:32:08 -05:00
Barış Soner Uşaklı
c02d584b53 reduce initial js payload/requests 2018-11-17 20:50:07 -05:00
Barış Soner Uşaklı
9fecad138c limit number of js files minified, dont crash upgrade script of widget-settings is not found 2018-11-15 14:54:12 -05:00
Julian Lam
a5022ce425 fix: #6922, skin assets not including plugin LESS files 2018-11-07 19:18:11 -05:00
renovate[bot]
64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
2018-11-07 15:53:14 -05:00
Julian Lam
501b3a79ca Refactor skins to be built on server-side (#6849)
* WIP

* using bootswatch from npm instead of bootswatch CDN url

* feat: on-demand client css building for skins

* added ability for client-side to select a skin

* updated loading and saving logic of bootstrapSkin on client side user settings

* fix: broken test for #6849
2018-11-07 13:44:35 -05:00
Barış Soner Uşaklı
c27be9db5a Recent refactor (#6879)
* wip

* fix inf scroll

* remove duplicated code

* remove dupe code in /unread

* use topicList

* update tag page to use topicList

* fix tests

* combine ifs

* remove more dupe code

* disable timeout
2018-10-27 06:26:50 -04:00
Baris Usakli
138154a71c move modules 2018-10-23 15:03:32 -04:00
Barış Soner Uşaklı
7a44424214 parse '123' to 123 if it has no default 2018-10-22 20:59:13 -04:00
Barış Soner Uşaklı
d07e3e6d97 if not in defaults use string 2018-10-22 20:08:31 -04:00
Barış Soner Uşaklı
4fff5e9baf closes #6855 2018-10-22 19:31:27 -04:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Barış Soner Uşaklı
85c60316ed upgrade to winston 3.1, closes #6590 (#6838)
* upgrade to winston 3.1

* fix winston in web/install and tests
2018-10-16 13:07:13 -04:00
Sebastian G. Marinescu
e35d4a7d85 closes #6283 2018-07-17 15:55:41 -04:00
Peter Jaszkowiak
04d31fe1d4 Precompile all templates
- Benchpress compilation is 33x faster now
- Native module with JS fallback and pre-built binaries
- Dev template build is <1sec now
- Minified template build is ~5sec (uglify accounts for almost all)
2018-07-15 00:12:37 -06:00
Peter Jaszkowiak
65b4bafb16 Fix @scoped themes 2018-07-06 13:00:18 -04:00
Peter Jaszkowiak
7cd8274c0f Add series flag for ./nodebb build 2018-07-06 13:00:18 -04:00
Julian Lam
cb8e62cd7c fixes #6626 2018-07-03 15:47:28 -04:00
Barış Soner Uşaklı
c2b0be1f2c if stack is undefined fallback to message and then to hardcoded string 2018-07-02 17:11:38 -04:00
Peter Jaszkowiak
70ff2d9b88 Support scoped theme packages 2018-06-11 10:10:16 -04:00
Barış Soner Uşaklı
0c60351960 add error log for invalid clientIP 2018-06-08 13:19:12 -04:00
Barış Soner Uşaklı
0630915cad when settings are saved publish it to all nodes
add runJobs value to nconf, only true on nodes that should run jobs ie
isPrimary and jobs are not disabled
2018-06-06 19:55:15 -04:00
Barış Soner Uşaklı
81328806a0 closes #6511 2018-05-31 00:16:56 -04:00
Barış Soner Uşaklı
c1fb3c2da4 closes #6525 2018-05-27 12:45:33 -04:00
Barış Soner Uşaklı
871cbedac1 dont require meta before db.init 2018-05-16 15:53:54 -04:00
Barış Soner Uşaklı
5461f9fa5f don't crash if there is no pluginData 2018-04-24 10:26:23 -04:00
Andrew Rodrigues
73bc96528a better to use theme_templates_path instead 2018-04-23 17:21:49 -04:00
Andrew Rodrigues
ebd0899714 closes #6471 2018-04-23 17:11:35 -04:00
Julian Lam
90a99fe158 closes #6442 2018-04-11 15:02:48 -04:00
Julian Lam
8fcf57dfad stripped double relative path from og urls, #6442 2018-04-11 14:41:10 -04:00
Peter Jaszkowiak
ce09813bf0 Show failed minify file and fix username editing privilege (#6445)
* Fix global mods and admins being unable to change usernames

* Message file which failed to minify
2018-04-10 16:06:25 -04:00
Barış Soner Uşaklı
50f4fd5345 remove dupe code in minify_js 2018-04-05 11:34:33 -04:00
Peter Jaszkowiak
a00f1f9a81 Use uglify-es for ES6 support (#6402) 2018-03-26 15:37:53 -04:00
Peter Jaszkowiak
dcf1865b54 Fix ACP alerts to use same system as client (#6396)
* Fix PostCSS warning message

* Fix disconnect indicator styling

Would increase size of quick actions when active

* Use same alert system in ACP and client

- Remove snackbar
- Add styling and fix template for ACP (based on Persona)
2018-03-26 11:55:01 -04:00
Julian Lam
2b95b13397 closes #6328 2018-02-16 16:59:35 -05:00
Barış Soner Uşaklı
15e9bbac92 closes #6311 2018-02-15 14:52:49 -05:00
Julian Lam
598675d597 outputting friendly warning if build target contains commas 2018-01-19 13:27:09 -05:00
psychobunny
c0cf9e64fd remove lodash from built modules, use utils.debounce instead 2018-01-16 16:03:51 -05:00