diff --git a/config/config.js b/config/config.js
index f2db078212..da02293364 100644
--- a/config/config.js
+++ b/config/config.js
@@ -127,10 +127,10 @@ var initGlobalConfigFiles = function (config, assets) {
config.files.server.policies = getGlobbedPaths(assets.server.policies);
// Setting Globbed js files
- config.files.client.js = getGlobbedPaths(assets.client.lib.js, 'public/').concat(getGlobbedPaths(assets.client.js, ['client/', 'public/']));
+ config.files.client.js = getGlobbedPaths(assets.client.lib.js, 'public/').concat(getGlobbedPaths(assets.client.js, ['public/']));
// Setting Globbed css files
- config.files.client.css = getGlobbedPaths(assets.client.lib.css, 'public/').concat(getGlobbedPaths(assets.client.css, ['client/', 'public/']));
+ config.files.client.css = getGlobbedPaths(assets.client.lib.css, 'public/').concat(getGlobbedPaths(assets.client.css, ['public/']));
// Setting Globbed test files
config.files.client.tests = getGlobbedPaths(assets.client.tests);
diff --git a/config/lib/express.js b/config/lib/express.js
index 9e2bfe03e9..f2152c4d55 100644
--- a/config/lib/express.js
+++ b/config/lib/express.js
@@ -162,7 +162,7 @@ module.exports.initModulesClientRoutes = function (app) {
// Globbing static routing
config.folders.client.forEach(function (staticPath) {
- app.use(staticPath.replace('/client', ''), express.static(path.resolve('./' + staticPath)));
+ app.use(staticPath, express.static(path.resolve('./' + staticPath)));
});
};
diff --git a/karma.conf.js b/karma.conf.js
index cdf1cd2421..2002bb3f7e 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -21,7 +21,7 @@ module.exports = function (karmaConfig) {
moduleName: 'mean',
cacheIdFromPath: function (filepath) {
- return filepath.replace('/client', '');
+ return filepath;
},
},
diff --git a/modules/articles/client/config/articles.client.routes.js b/modules/articles/client/config/articles.client.routes.js
index f67a047f76..6938867d90 100644
--- a/modules/articles/client/config/articles.client.routes.js
+++ b/modules/articles/client/config/articles.client.routes.js
@@ -12,22 +12,22 @@ angular.module('articles').config(['$stateProvider',
})
.state('articles.list', {
url: '',
- templateUrl: 'modules/articles/views/list-articles.client.view.html'
+ templateUrl: 'modules/articles/client/views/list-articles.client.view.html'
})
.state('articles.create', {
url: '/create',
- templateUrl: 'modules/articles/views/create-article.client.view.html',
+ templateUrl: 'modules/articles/client/views/create-article.client.view.html',
data: {
roles: ['user', 'admin']
}
})
.state('articles.view', {
url: '/:articleId',
- templateUrl: 'modules/articles/views/view-article.client.view.html'
+ templateUrl: 'modules/articles/client/views/view-article.client.view.html'
})
.state('articles.edit', {
url: '/:articleId/edit',
- templateUrl: 'modules/articles/views/edit-article.client.view.html',
+ templateUrl: 'modules/articles/client/views/edit-article.client.view.html',
data: {
roles: ['user', 'admin']
}
diff --git a/modules/chat/client/config/chat.client.routes.js b/modules/chat/client/config/chat.client.routes.js
index d289e22d01..38649c6802 100644
--- a/modules/chat/client/config/chat.client.routes.js
+++ b/modules/chat/client/config/chat.client.routes.js
@@ -6,7 +6,7 @@ angular.module('chat').config(['$stateProvider',
$stateProvider
.state('chat', {
url: '/chat',
- templateUrl: 'modules/chat/views/chat.client.view.html',
+ templateUrl: 'modules/chat/client/views/chat.client.view.html',
data: {
roles: ['user', 'admin']
}
diff --git a/modules/core/client/config/core.client.routes.js b/modules/core/client/config/core.client.routes.js
index e9e64c82cf..a0e383a67d 100644
--- a/modules/core/client/config/core.client.routes.js
+++ b/modules/core/client/config/core.client.routes.js
@@ -11,11 +11,11 @@ angular.module('core').config(['$stateProvider', '$urlRouterProvider',
$stateProvider
.state('home', {
url: '/',
- templateUrl: 'modules/core/views/home.client.view.html'
+ templateUrl: 'modules/core/client/views/home.client.view.html'
})
.state('not-found', {
url: '/not-found',
- templateUrl: 'modules/core/views/404.client.view.html'
+ templateUrl: 'modules/core/client/views/404.client.view.html'
});
}
]);
diff --git a/modules/core/client/views/home.client.view.html b/modules/core/client/views/home.client.view.html
index b34905cdfc..ddba60a490 100644
--- a/modules/core/client/views/home.client.view.html
+++ b/modules/core/client/views/home.client.view.html
@@ -2,7 +2,7 @@
-
+
diff --git a/modules/core/server/views/layout.server.view.html b/modules/core/server/views/layout.server.view.html
index 7f8c83934f..590776071e 100644
--- a/modules/core/server/views/layout.server.view.html
+++ b/modules/core/server/views/layout.server.view.html
@@ -36,7 +36,7 @@
-
+
{% block content %}{% endblock %}
diff --git a/modules/users/client/config/users-admin.client.routes.js b/modules/users/client/config/users-admin.client.routes.js
index fc9cb42d23..b15154e95f 100644
--- a/modules/users/client/config/users-admin.client.routes.js
+++ b/modules/users/client/config/users-admin.client.routes.js
@@ -6,12 +6,12 @@ angular.module('users.admin.routes').config(['$stateProvider',
$stateProvider
.state('admin.users', {
url: '/users',
- templateUrl: 'modules/users/views/admin/user-list.client.view.html',
+ templateUrl: 'modules/users/client/views/admin/user-list.client.view.html',
controller: 'UserListController'
})
.state('admin.user', {
url: '/users/:userId',
- templateUrl: 'modules/users/views/admin/user.client.view.html',
+ templateUrl: 'modules/users/client/views/admin/user.client.view.html',
controller: 'UserController',
resolve: {
userResolve: ['$stateParams', 'Admin', function ($stateParams, Admin) {
@@ -23,7 +23,7 @@ angular.module('users.admin.routes').config(['$stateProvider',
})
.state('admin.user-edit', {
url: '/users/:userId/edit',
- templateUrl: 'modules/users/views/admin/user-edit.client.view.html',
+ templateUrl: 'modules/users/client/views/admin/user-edit.client.view.html',
controller: 'UserController',
resolve: {
userResolve: ['$stateParams', 'Admin', function ($stateParams, Admin) {
diff --git a/modules/users/client/config/users.client.routes.js b/modules/users/client/config/users.client.routes.js
index b5c9efa9b9..36ef995c55 100644
--- a/modules/users/client/config/users.client.routes.js
+++ b/modules/users/client/config/users.client.routes.js
@@ -8,39 +8,39 @@ angular.module('users').config(['$stateProvider',
.state('settings', {
abstract: true,
url: '/settings',
- templateUrl: 'modules/users/views/settings/settings.client.view.html',
+ templateUrl: 'modules/users/client/views/settings/settings.client.view.html',
data: {
roles: ['user', 'admin']
}
})
.state('settings.profile', {
url: '/profile',
- templateUrl: 'modules/users/views/settings/edit-profile.client.view.html'
+ templateUrl: 'modules/users/client/views/settings/edit-profile.client.view.html'
})
.state('settings.password', {
url: '/password',
- templateUrl: 'modules/users/views/settings/change-password.client.view.html'
+ templateUrl: 'modules/users/client/views/settings/change-password.client.view.html'
})
.state('settings.accounts', {
url: '/accounts',
- templateUrl: 'modules/users/views/settings/manage-social-accounts.client.view.html'
+ templateUrl: 'modules/users/client/views/settings/manage-social-accounts.client.view.html'
})
.state('settings.picture', {
url: '/picture',
- templateUrl: 'modules/users/views/settings/change-profile-picture.client.view.html'
+ templateUrl: 'modules/users/client/views/settings/change-profile-picture.client.view.html'
})
.state('authentication', {
abstract: true,
url: '/authentication',
- templateUrl: 'modules/users/views/authentication/authentication.client.view.html'
+ templateUrl: 'modules/users/client/views/authentication/authentication.client.view.html'
})
.state('authentication.signup', {
url: '/signup',
- templateUrl: 'modules/users/views/authentication/signup.client.view.html'
+ templateUrl: 'modules/users/client/views/authentication/signup.client.view.html'
})
.state('authentication.signin', {
url: '/signin?err',
- templateUrl: 'modules/users/views/authentication/signin.client.view.html'
+ templateUrl: 'modules/users/client/views/authentication/signin.client.view.html'
})
.state('password', {
abstract: true,
@@ -49,7 +49,7 @@ angular.module('users').config(['$stateProvider',
})
.state('password.forgot', {
url: '/forgot',
- templateUrl: 'modules/users/views/password/forgot-password.client.view.html'
+ templateUrl: 'modules/users/client/views/password/forgot-password.client.view.html'
})
.state('password.reset', {
abstract: true,
@@ -58,15 +58,15 @@ angular.module('users').config(['$stateProvider',
})
.state('password.reset.invalid', {
url: '/invalid',
- templateUrl: 'modules/users/views/password/reset-password-invalid.client.view.html'
+ templateUrl: 'modules/users/client/views/password/reset-password-invalid.client.view.html'
})
.state('password.reset.success', {
url: '/success',
- templateUrl: 'modules/users/views/password/reset-password-success.client.view.html'
+ templateUrl: 'modules/users/client/views/password/reset-password-success.client.view.html'
})
.state('password.reset.form', {
url: '/:token',
- templateUrl: 'modules/users/views/password/reset-password.client.view.html'
+ templateUrl: 'modules/users/client/views/password/reset-password.client.view.html'
});
}
]);
diff --git a/modules/users/client/views/authentication/authentication.client.view.html b/modules/users/client/views/authentication/authentication.client.view.html
index af052fad2d..698a4d5199 100644
--- a/modules/users/client/views/authentication/authentication.client.view.html
+++ b/modules/users/client/views/authentication/authentication.client.view.html
@@ -1,12 +1,12 @@
Sign in using your social accounts
diff --git a/modules/users/client/views/settings/manage-social-accounts.client.view.html b/modules/users/client/views/settings/manage-social-accounts.client.view.html
index f07ad9ca1f..39d9c431b0 100644
--- a/modules/users/client/views/settings/manage-social-accounts.client.view.html
+++ b/modules/users/client/views/settings/manage-social-accounts.client.view.html
@@ -2,7 +2,7 @@
Connected social accounts:
-
+
@@ -11,37 +11,37 @@
Unconnected social accounts:
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/modules/users/server/controllers/users/users.profile.server.controller.js b/modules/users/server/controllers/users/users.profile.server.controller.js
index 8dde7e6e55..da0a708d03 100644
--- a/modules/users/server/controllers/users/users.profile.server.controller.js
+++ b/modules/users/server/controllers/users/users.profile.server.controller.js
@@ -62,7 +62,7 @@ exports.changeProfilePicture = function (req, res) {
message: 'Error occurred while uploading profile picture'
});
} else {
- user.profileImageURL = 'modules/users/img/profile/uploads/' + req.files.file.name;
+ user.profileImageURL = 'modules/users/client/img/profile/uploads/' + req.files.file.name;
user.save(function (saveError) {
if (saveError) {
diff --git a/modules/users/server/models/user.server.model.js b/modules/users/server/models/user.server.model.js
index 8a4ff0e8da..9be2a618ae 100644
--- a/modules/users/server/models/user.server.model.js
+++ b/modules/users/server/models/user.server.model.js
@@ -72,7 +72,7 @@ var UserSchema = new Schema({
},
profileImageURL: {
type: String,
- default: 'modules/users/img/profile/default.png'
+ default: 'modules/users/client/img/profile/default.png'
},
provider: {
type: String,