Commit Graph

9064 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
3f2a1d3e8e check error first #6116 2017-11-27 13:26:49 -05:00
Barış Soner Uşaklı
caaa72b752 closes #6124 2017-11-27 12:52:08 -05:00
Peter Jaszkowiak
9b11413d14 Bundle admin scripts, remove CDN scripts (#6122)
Close #6120
2017-11-27 12:42:10 -05:00
Barış Soner Uşaklı
d96674da64 add test for composer fix 2017-11-23 19:13:43 -05:00
Barış Soner Uşaklı
71895f3736 closes #6079 2017-11-23 14:19:26 -05:00
Peter Jaszkowiak
ae24bca16e CLI refactor with commander (#6058)
* CLI refactor with commander

- Modularized the functionality
- All functionality done directly from `./nodebb` now
(still available from `app` for backwards compatibility)
- Moved all CLI code from `./nodebb` to `src/cli`
- Fixed `nodebb.bat` to work from any location, like `./nodebb`, and
also hides command output
- Overwrite some commander methods to add CLI color support
- Added `./nodebb info` for quick info including git hash, NodeBB
version, node version, and some database info
- Refactored `./nodebb reset` to allow multiple resets at once
- Changed `./nodebb restart` to essentially stop and start, as Windows
doesn't support signals
- Added `-l, --log` option which works on `./nodebb start` and `./nodebb
restart` to show logging, like `./nodebb slog`
- Expanded `-d, --dev` option which works on them as well, like
`./nodebb dev`
- Improvements to self-help. `./nodebb build -h` will output all
possible targets
- `./nodebb reset` explains usage better

* Fix some style inconsistencies

* Fix prestart being required before modules installed

* Fix travis failures

* Fix `help` command to output help for subcommands

* Pick steps of the upgrade process to run

* Fix formatting for upgrade help

* Fix web installer
2017-11-23 10:55:03 -05:00
Peter Jaszkowiak
c731661a39 Remove external sources from installer page (#6101)
* Remove external sources from installer page

* Remove bootstrap.min.css

* Make spinner display consistently cross-platform

* Change spinner to look better
2017-11-23 10:50:10 -05:00
Baris Usakli
aecbcd9e89 add verbose message for field whitelist 2017-11-22 16:26:35 -05:00
Julian Lam
2fa4b2918e removing premature return 😆 2017-11-22 15:03:07 -05:00
Julian Lam
c3c22cfdcc closes #6107 2017-11-22 14:14:19 -05:00
Baris Usakli
5ca3b535e7 closes #6105 2017-11-22 12:19:08 -05:00
Baris Usakli
dbf815ed47 closes #6103 2017-11-22 12:10:40 -05:00
Muhammad Osama Arshad
64895310a9 fix #5973 2017-11-22 09:50:58 +05:00
Barış Soner Uşaklı
eb47a81c46 remove package.default.json 2017-11-21 14:43:59 -05:00
Peter Jaszkowiak
74ceb78800 Upvote notification frequency selection (#6087)
Closes #5963

- Notify on every upvote
- Notify on every tenth upvote
- Notify logarithmically (on 10, 100, 1000...)
- Disable upvote notifications
2017-11-21 14:14:14 -05:00
Peter Jaszkowiak
4fcedc6f31 Enable imports in custom email templates (#6052)
* Enable imports in custom email templates

* Compile emails on config change

* Add error logging

* Add emailer tests

* Fix tests

* Only build when config changes
2017-11-21 10:51:20 -05:00
Barış Soner Uşaklı
12ca1c4e7a closes #6093 2017-11-20 19:58:56 -05:00
Baris Usakli
2065f895d5 closes #6037 2017-11-17 15:26:36 -05:00
Baris Usakli
ea3fde332b notification email fixes
add new notification image
fix url to user settings, no need for userslug to be passed in
2017-11-17 14:13:55 -05:00
Julian Lam
bc6364f4c0 fixed #6082 2017-11-17 12:00:43 -05:00
Peter Jaszkowiak
11b9cb7688 Fix #6076, action:home.get:* returned to previous functionality (#6077)
Added tests to confirm `buildHeader` is used and `/api` works
2017-11-17 08:11:33 -05:00
Barış Soner Uşaklı
c839d1cbc0 closes #6080 closes #6078 2017-11-17 08:10:25 -05:00
aStonedPenguin
610a1c943f Add unread-class to category children (#6071)
* Add unread-class to category children

* unused variables

* Move child unread-class to a better place

* comma?

¯\_(ツ)_/¯

* feedback
2017-11-16 18:40:39 -05:00
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ı
5da24b4120 https://github.com/NodeBB/NodeBB/issues/6073 2017-11-16 10:55:59 -05:00
Julian Lam
321998dd4f Merge branch 'develop' 2017-11-16 10:11:20 -05:00
Barış Soner Uşaklı
dd176dd5f2 Notification delivery (#6072)
* ability for users to choose how they receive notifications

add type field to more notifications, the type field is used to
determine what to do based on user
setting(none,notification,email,notificationemail)

* change var name to types

* cleanup

* add event types for privileged users

* remove unused language keys

* fix uids check

* changed if statements

* upgrade script to preserver old settings
2017-11-15 21:35:10 -05:00
Baris Usakli
1eca1f1da9 add missing require 2017-11-15 14:49:04 -05:00
Baris Usakli
38e52a65be fix breadcrumbs and home /api route not loading 2017-11-15 14:48:28 -05:00
Baris Usakli
9e5a8856d1 fix wrong sorting option in acp 2017-11-15 14:01:20 -05:00
Baris Usakli
30ae0a5499 another process.nextTick 2017-11-15 13:06:23 -05:00
Baris Usakli
e187a0def2 fix method name 2017-11-15 11:50:44 -05:00
Baris Usakli
12546cb9ad break up sync operation 2017-11-15 11:35:25 -05:00
yariplus
7ac01b4c06 Fixes https://github.com/NodeBB/nodebb-rewards-essentials/issues/6 Fixes https://github.com/NodeBB/nodebb-rewards-essentials/issues/11 2017-11-14 14:11:25 -05:00
Barış Soner Uşaklı
67bc58f04c wait for state to be updated 2017-11-12 08:45:08 -05:00
Barış Soner Uşaklı
b6211fdc04 closes #6053 2017-11-10 10:20:47 -05:00
Barış Soner Uşaklı
6c755869cd add back missing onSettingsLoaded 2017-11-09 14:24:47 -05:00
Baris Usakli
5604c62776 use the first set for sorting 2017-11-08 16:32:34 -05:00
Baris Usakli
4fdc1b99c6 remove unnecessary variable 2017-11-08 16:32:16 -05:00
Baris Usakli
eeedba697b closes #5804 2017-11-08 14:06:52 -05:00
Barış Soner Uşaklı
b1ea137292 closes #6046 2017-11-07 12:39:34 -05:00
acardinale
5ed6b5c414 Add User (uid) Welcome Notification (#6045) 2017-11-07 09:17:27 -05:00
acardinale
78e65ab8c8 Fix if cover URL is external URL (#6026)
* Fix if cover URL is external URL

Currently, when cover:url is an external URL, it's concat with relative path

* Fix if cover URL is external URL

Currently, when cover:url is an external URL, it's concat with relative path [fix barisusakli]

* Fix missing '

* Add User (uid) Welcome Notification

* Revert "Fix missing '"

This reverts commit 2da2d98ae2.

* Revert "Revert "Fix missing '""

This reverts commit f4fca746e8.

* Revert "Add User (uid) Welcome Notification"

This reverts commit 831e291e78.

* Fix eslint doesnt like nesting ternary operators

* fix space after if
2017-11-06 14:45:58 -05:00
Barış Soner Uşaklı
e4ea4d5134 move composer routes to its own file 2017-11-05 14:05:21 -05:00
Barış Soner Uşaklı
fae8ee83e8 closes #6039 2017-11-05 09:54:59 -05:00
Peter Jaszkowiak
bbdc55cb3a Better fix for #5993 (#6034)
* Better fix for #5993

Also a nice newline so the line doesn't get overwritten when running `./nodebb upgrade`

* Optimizations for custom homepage

Move it into a separate module
2017-11-04 10:51:44 -04:00
Barış Soner Uşaklı
760c061b1d closes #5993 2017-11-03 14:23:34 -04:00
Barış Soner Uşaklı
4551ee4768 some more tests 2017-11-03 13:25:43 -04:00
Julian Lam
766f94745f updated bootstrap and bootswatch css on installer template, closes #6033 2017-11-03 11:29:06 -04:00