Commit Graph

1424 Commits

Author SHA1 Message Date
hyperreality
c2cfc388bf feat(ui): improved social login buttons UI (#1471) 2016-09-04 01:29:43 +03:00
Liran Tal
c0f6cb3e4d feat(mongodb): support for mongodb secure connections with ssl certificates (#1472)
Fixes #1349
2016-09-04 01:29:28 +03:00
Liran Tal
cf246babd1 feat(config): adds a generic DOMAIN configuration environment (#1469)
Generic DOMAI configuration environment variable, useful for setting links to an app
in reset email templates, and other cases.

Fixes #871 and #847
2016-09-01 22:37:43 +03:00
Daron Jones
54ae7dc564 feat(users): prevent route leaking access token (#1417)
The test for authentication use a route /api/users/me. This should probably be upgraded to use
a proper passport mock.

In the meanwhile this should make the returned user object safer - using code from core.

Fixes n/a
2016-08-31 22:50:23 +03:00
Mikael Korpela
55525bdf31 feat(build): Modify Travis config (#1467)
Remove Node.js v6 from `allow_failures` matrix at Travis config.
2016-08-30 20:15:54 +03:00
Mikael Korpela
64fd860fb3 fix(core): update npm commands and documentation (#1456)
- Removes deprecated `onlyChanged` npm script. Watch now always runs only changed tests, no parameter needed. Change to gulp tasks was in this commit: eaead7a30c
- Renames npm script `test:watch` to `test:server:watch`
- Updates README.md to mention Gulp less and npm commands more
- Removes mentions to Grunt from README.md
2016-08-30 19:29:33 +03:00
hyperreality
14136450ab feat(core): update project dependencies, fix express config (#1463) 2016-08-30 01:10:14 +03:00
Liran Tal
f6e579765f feat(express): introducing handlebars nodejs template system (#1461)
This commit introduces handlebars template system and completely replacing Swig and the Consolidate project to handle multiple template systems.
Fixes #1286
2016-08-29 08:32:21 +03:00
Mikael Korpela
07a860f6b5 feat(angular): disable Angular debug data in production (#1457)
Disable Angular debug data in production for a significant performance
boost.

Passes environment variable from template to app config and from there
to
Angular bootstrap config.

https://docs.angularjs.org/guide/production#disabling-debug-data

See #1294
2016-08-28 14:52:05 +03:00
Mikael Korpela
c35713d352 fix(core): Fixes issues with tests and Node v6 (#1458)
Fixes issues with Mocha tests and Node v6.

Related to #1455
2016-08-28 14:30:27 +03:00
hyperreality
99c64cf7ca feat(html): support noscript tag on layout for browsers with no javascript (#1454) 2016-08-28 14:28:16 +03:00
shanavas
730cca76af fix(users): don't update secure profile fields (#1421)
* Fix(users): Don't update secure profile fields

Avoid updating secure fields as password, salt ..etc through
user profile update.

Fixes #1420

* Refactor variable name
2016-08-27 09:45:06 +03:00
Liran Tal
2f394ecb97 fix(ui): update social login design
* Update social login design 

- Responsive images
- Mobile layout as well

* changes according to hyperreality advices
2016-08-26 21:27:58 +03:00
Mikael Korpela
23fd205d81 fix(server): Remove unused loadModels() (#1426) 2016-08-26 13:34:02 +03:00
Michael Leanos
c96f8c0b56 fix(articles): Article controllers name conflicts (#1428)
* fix(articles): Article controllers name conflicts

Fixes the naming conflicts for the Articles controllers.

Due to how Angular injects the controllers into the StateProvider,
naming conflicts were caused between the Articles public & admin module
controllers.

To resolve the issue the referenced controllers in the Articles admin
route configurations must be unique, and match up with the Admin
controllers.

* Client-side tests failing

Fixed the client-side tests that were failing due to the naming
conflicts.
2016-08-26 13:27:43 +03:00
Mikael Korpela
96aec09488 fix(user): specify a digest with crypto.pbkdf2Sync (#1429)
Fixes Node v6 crypto deprecation warning
 “crypto.pbkdf2 without specifying a digest is deprecated. Please specify a digest”
2016-08-26 10:13:51 +03:00
aanev
234f0c6850 fix(user): fix changeProfilePicture to overwrite existing files
* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

Fixes #1415

* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

* log file errors to console

Fixes #1415

* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

* log file errors to console

* update error handler module to handle file upload errors

Fixes #1415

* fix(user): fix changeProfilePicture

* use promises to simplify callbacks

* use fs.unlink to delete old picture once the profile is updated

* log file errors to console

* update error handler module to handle file upload errors

Fixes #1415
2016-08-26 10:10:02 +03:00
hyperreality
246c5d953c feat(profile): Profile picture cropping, mobile uploading and progress bar (#1443)
* Add ng-file-upload and picture cropping

* Update bower.json

Remove bower dependency for angular-file-upload
2016-08-26 09:56:56 +03:00
Federico Gonzalez
25bd40c3f7 feat(docker): Add Dockerfile for production
Add dockerfile and compose for production (#1438)
Add Dockerfile for production

Fixes #1431 Fixes #1435

* feat(deploy): Add docker-compose.yml for production

Add docker-compose.yml for production

Fixes #1435

* feat(deploy): Update documentation for deployment

Update documentation for production deployment

Fixes #1435
2016-08-26 01:18:59 +03:00
Federico Gonzalez
2066be621f feat(docker): Update docker-compose to version 2
Add data container for docker-compose and update to docker compose version 2 (#1437)

Change containers, add environment for mongodb host, change version to 2.

Fixes #1434

* feat(deploy): Add data container for mongodb

Add db-data for mongodb, remove container_name.

Fixes #1434

* feat(deploy): Use networking of compose version 2 (remove links)

Remove links

Fixes #1434

* feat(deploy): Use depends_on for db containers

Add depends_on for db

Fixes #1434

* feat(deploy): Add data container for web data

Add data container, add volumes and remove command.

Fixes #1434

* feat(deploy): Change image for container data

Change busybox to build . for data container

Fixes #1434

* feat(deploy): Change entrypoint for web-data container

Change entrypoint for web-data container

Fixes #1434
2016-08-25 17:36:07 +03:00
Ilan Biala
53d73a3d80 Merge pull request #1419 from 9ac345a5509a/patch-1
fix(chat): fix profile image not displaying properly on disconnect
2016-08-09 14:21:51 +03:00
9ac345a5509a
24b6e3a3cb fix(chat): fixed profile image not displaying properly on disconnect
hotfix to make sure that the profileImageURL is sent on disconnect
2016-08-06 23:04:57 -04:00
Liran Tal
64392b1eed fix(config): updating environment variable name for mongodb with the new one for Heroku (#1413) 2016-07-31 13:34:04 +03:00
Liran Tal
37183e0359 * fix(express): updating express session name variable due to deprecation
* fix(express): updating express session name variable from key (the old deprecated one) to the new variable: name

* fix(express): re-wording confusing comment on the session cookie name
2016-07-27 11:39:13 +05:45
Michael Leanos
89075cb8d3 feat(articles): Article Admin feature (#807)
This feature introduces a breaking change, that restricts the User's that
can create/edit/delete Articles to only those that have the `admin` Role.

Fixed ESLint issues.

Resolved merge conflicts, and moved new client Article Service
`createOrUpdate` functionality to new Admin feature controller.

Removed edit functionality from client-side Article controller.
2016-07-25 17:34:06 -07:00
Steve Fox
5817a484fa Add support for params in menu items
 (#1305)
* Support params to state for menu items.

* feat(core): Add support for params in menu items

Proposed by @scfox

Fixes #1304

* Removed trailing space on test.

* Changed default params to be empty object instead of empty string.
2016-07-25 14:14:39 -07:00
Liran Tal
6911b80446 feat(forever): removing forever dependency (#1409)
cleaning up project dependencies by removing the forever package which is only really used by Heroku's
procfile to start up the node service
2016-07-24 16:36:03 +03:00
Liran Tal
b198ca75b1 feat(gulp) - refactoring gulpfile to properly add support for node-inspector as its own dedicated gulp task (#1395) 2016-07-23 21:27:32 +03:00
shanavas
0934f87cfb feat(build): Wiredep task for grunt and gulp (#1402)
* Fix(grunt): remove redundant grunt task loading

remove explicit grunt task loading for `grunt-protactor-coverage` as
`load-grunt-tasks` handles it

* Feat(grunt): add wiredep task for grunt

Automatically update bower dependencies.

* Fix(grunt-wiredep):Remove trailing comma from assets

Remove trailing comma from assets configuration generated by wiredep

* Fix(gulp): Remove trailing comma from asset files

Remove trailing comma from asset configurations generated by wiredep

* Fix(npm): use tilde ranges

* Fix(gulp): use wiredep instead of gulp-wiredep

Fixes #1398

* Fix(grunt): use wiredep instead of grunt-wiredep

* Fix(lint): suppress eslint errors in asset files

Fixes #1402
2016-07-23 18:25:35 +03:00
itelo
d5a29f7acc fix(core): fix page-title directive (#1405)
fix Eslint throws "Move the invocation into the parens that contain the function wrap-iife"
fix typo retrict -> restrict
2016-07-21 22:05:41 -07:00
Michael Leanos
828753715f fix(core): fix page-title directive (#1404) 2016-07-17 19:06:31 -07:00
Liran Tal
1600705c41 fix(core): packages update due to insecure old versions that carry vulnerabilities
* fix(core): packages update due to insecure old versions that carry vulnerabilities

* updating packages to satisify deps

* updating deps for peer dependencies

* updating deps for peer dependencies
2016-07-16 12:05:40 +03:00
Liran Tal
d915157e8f feat(gulp): deprecating Grunt in favor of Gulp and NPM commands (#1390)
* feat(gulp): updating the README.md instructions with the changes to gulp being the mainstream vs the deprecation of grunt. Also added gulp as a task runner for freely executing tasks through npm run.
2016-07-13 23:07:39 +03:00
Cody B. Daig
5009a72bf0 feat(core): Enable ng-strict-di (#1389) 2016-07-11 09:10:42 -06:00
Michael Leanos
a7370a7808 feat(articles): ArticlesService extended $resource (#1266)
Extends the ArticlesService $resource object to include a custom method
for creating, or updating, an Article instance.

Related #1260
2016-07-10 17:55:29 -07:00
Mikael Korpela
5a91d7d3a0 eat(core): use npm commands
* feat(core): use npm commands

Replace variety of commands by npm commands.

See #1258

* Remove prestart

* Move bower --config.interactive=false to .bowerrc
2016-07-09 13:18:47 -06:00
Liran Tal
c95bd7d1cb fix(core): fix ESLint console warnings, Twitter redirect, and and scope usage (#1388)
* Use validator.js instead of regexp for validations in User Schema.

* Disables "Unexpected console statement  no-console" warnings

* Fixes redirection to wrong URL after login with social networks.

* Use ViewModel vm instead of $scope in manage social accounts controller.

* preserving the option to redirect to a specific URL as done in saveOAuthUserProfile() (thanks to @OneOfTheWorld for pointing out)
2016-07-07 01:24:23 +03:00
Roy Segall
30139a2429 fix(docs): the project now supports Node v5, updated the README 2016-06-30 19:31:49 +03:00
Michael Leanos
b795ddc7cd feat(users): Edit Profile client controller tests (#1329)
Adds client-side tests for the Users Edit Profile client controller.

1) should have user context
2) should update the user profile
3) should set vm.error if error

Related #1283
2016-06-25 13:52:22 -07:00
Ben Brook
1159e74d35 fix(docs): documentation fix for Pivotal Web Services (#1376) 2016-06-23 01:52:00 +03:00
bigTunaHeb
4b549d8034 fix(typo): fixed a typo in PULL REQUEST template file (#1372)
Line 18 change "like like" to "look like"
Line 38 fixed a typo in "reference"
2016-06-21 11:35:34 +03:00
Jonathan Trowbridge
2ad422ca9b fix(users): fix for users.profile.server.controller.js security (#1338)
* Fix for users.profile.server.controller.js security (#1338)

Fixes an issue where if req.body._id was not set to the current user it
could potentially log the current user in as another user.

Don't use req.body._id when editing user

Prevents a user from being logged in as another if edit user form _id is
not their own.

Fixes #1338
2016-06-18 18:12:08 +03:00
Liran Tal
239ce61de5 feat(sass): replacing grunt-contrib-sass with grunt-sass (#1363)
* replacing grunt-contrib-sass with grunt-sass which doesnt require the ruby dependency anymore

* updating README instructions to remove any reference to grunt-contrib-sass, ruby or gem installation for sass compilation
2016-06-17 18:08:52 +03:00
shanavas
68529935ce fix(editorconfig): Fix file path patterns (#1362)
Change file pattern like [**.a, **.b] to [**.{a,b}]
as specified in editorconfig.org
2016-06-13 18:49:34 +03:00
Liran Tal
c364922f67 feat(ssl): supporting a certificate authority bundle file for the secured SSL configuration (#1342) 2016-06-07 09:58:02 +03:00
Aman Mavai
fde27f0d1e fix(core): Typo in menu.client.service.js (#1355)
* fixed typo in modules/core/client/services/menu.client.service.js
* fixed typo in modules/core/tests/client/menu.client.service.tests.js
2016-06-06 15:29:46 +03:00
Liran Tal
c8cbcd326f feat(logs): replacing unmaintained and vulnerable file-stream-rotator package with winston log facility (#1334)
* replacing file-stream-rotator with a better logging mechanism using winston which can be extended later for other use cases and integrations

* refactoring logger mechanism, accomodating for tests and environment variable configurations

* only enabling morgan logger if config.log.format option was defined, and disabling the app.log file transport option for the test environment

* disabling all kind of logging when in test enviroment
2016-05-22 01:03:18 +03:00
aanev
c61640bfdb fix(core): Typo in page-title.client.directives.js (#1343)
fix typo in modules/core/client/directives/page-title.client.directives.js

Fixes #1332
2016-05-20 11:10:18 +03:00
gitname
e3572d2ef0 (typo): add missing word (#1340) 2016-05-19 10:41:13 +03:00
Mikael Korpela
5da5a6106f feat(CI): Add Node v6 and remove v5 from allow_failures (#1328) 2016-05-02 03:02:21 +03:00