Skip to content

Commit afdf05f

Browse files
committed
refactor(frontend): 1.2.0-rc-2
1 parent 1996ce8 commit afdf05f

27 files changed

+540
-409
lines changed

Gruntfile.js

Lines changed: 79 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,41 @@ module.exports = function (grunt) {
200200
dest: '<%= appConfig.dist.path %>'
201201
}
202202
},
203+
run: {
204+
wbDriverUpdate: {
205+
args: [ './node_modules/protractor/bin/webdriver-manager', 'update', '--out_dir=./scripts/' ],
206+
options: {
207+
passArgs: [
208+
'ie',
209+
'chrome',
210+
'standalone',
211+
'seleniumPort'
212+
]
213+
}
214+
},
215+
wbDriverStatus: {
216+
args: [ './node_modules/protractor/bin/webdriver-manager', 'status' ],
217+
options: {
218+
passArgs: [
219+
'ie',
220+
'chrome',
221+
'standalone',
222+
'seleniumPort'
223+
]
224+
}
225+
},
226+
wbDriverStart: {
227+
args: [ './node_modules/protractor/bin/webdriver-manager', 'start', '--out_dir=./scripts/' ],
228+
options: {
229+
passArgs: [
230+
'ie',
231+
'chrome',
232+
'standalone',
233+
'seleniumPort'
234+
]
235+
}
236+
}
237+
},
203238
usemin: {
204239
html: [ '<%= appConfig.dist.path %>/index.html', '<%= appConfig.dist.path %>/modules/**/views/**/*.html' ],
205240
css: [ '<%= appConfig.dist.path %>/styles/**/*.css' ],
@@ -331,6 +366,17 @@ module.exports = function (grunt) {
331366
}
332367
},
333368
copy: {
369+
distScripts: {
370+
files: [{
371+
expand: true,
372+
dot: true,
373+
cwd: '<%= appConfig.dist.path %>',
374+
dest: '.tmp',
375+
src: [
376+
'scripts/**/*'
377+
]
378+
}]
379+
},
334380
dist: {
335381
files: [{
336382
expand: true,
@@ -406,7 +452,7 @@ module.exports = function (grunt) {
406452
cwd: '<%= appConfig.dev.path %>/components/bootstrap/less',
407453
dest: '<%= appConfig.dev.path %>/styles/less/bootstrap',
408454
src: [
409-
'*.less'
455+
'**/*.less'
410456
]
411457
}
412458
]
@@ -518,6 +564,18 @@ module.exports = function (grunt) {
518564
dir: '<%= appConfig.test.e2e.coverage.path %>reports',
519565
print: 'detail'
520566
}
567+
},
568+
compress: {
569+
main: {
570+
options: {
571+
mode: 'gzip'
572+
},
573+
files: [
574+
// Each of the files in the src/ folder will be output to
575+
// the dist/ folder each with the extension .gz.js
576+
{ expand: true, src: [ 'scripts/*.js', ], dest: 'dist/', ext: '.js', cwd: '.tmp/' }
577+
]
578+
}
521579
}
522580
});
523581

@@ -544,11 +602,30 @@ module.exports = function (grunt) {
544602
'copy:dist',
545603
'ngAnnotate:dist',
546604
'requirejs',
605+
// 'copy:distScripts',
606+
// 'compress',
547607
'rev',
548608
'usemin',
549609
'htmlmin'
550610
]);
551611

612+
grunt.registerTask( 'webdriver', [
613+
'run:wbDriverStatus',
614+
'run:wbDriverUpdate'
615+
]);
616+
617+
grunt.registerTask( 'webdriver:update', [
618+
'run:wbDriverUpdate'
619+
]);
620+
621+
grunt.registerTask( 'webdriver:status', [
622+
'run:wbDriverStatus'
623+
]);
624+
625+
grunt.registerTask( 'webdriver:start', [
626+
'run:wbDriverStart'
627+
]);
628+
552629
/* -- TEST TASKS ------------------------------------------------ */
553630

554631
grunt.registerTask('test', 'Start up the auto unit test server.', [
@@ -617,4 +694,4 @@ module.exports = function (grunt) {
617694
]);
618695

619696
grunt.registerTask('default', ['build']);
620-
};
697+
};

app/modules/auth/controllers/RegistrationConfirmController.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/modules/auth/controllers/SignInController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ define( [ 'angular', '../module' ], function( ng ) {
2929
messenger.error( data.message ? data.message : data );
3030
});
3131

32-
$scope.$on( 'SessionProvider:signInSuccess', function() {
32+
$scope.$on( 'SessionProvider:signInSuccess', function( event ) {
3333
messenger.success( 'User <strong>' + event.currentScope.credentials.username + '</strong> signed in.' );
3434
$scope.processing = false;
3535
$location.path( '/' );

app/modules/auth/module.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,13 @@ define( [ 'angular' ], function( ng ) {
3434
return !$scope.currentUser;
3535
}
3636
},
37-
{
38-
label : 'Account',
39-
href : '/settings/account',
40-
class : 'fa-institution',
41-
requiresSignIn : true
42-
},
4337
{
4438
label : 'Settings',
4539
href : '',
4640
order : 1,
4741
class : 'fa-cogs',
4842
requiresSignIn : true,
4943
subMenu: [
50-
{
51-
label : 'Billing',
52-
href : '/subscription/billing',
53-
class : 'fa-dollar',
54-
requiresSignIn : true,
55-
order : 3
56-
},
5744
{
5845
label : 'Users',
5946
href : '/settings/users',
@@ -64,7 +51,7 @@ define( [ 'angular' ], function( ng ) {
6451
]
6552
},
6653
{
67-
label : 'My Account',
54+
label : 'My Profile',
6855
class : 'fa-user',
6956
order : 2,
7057
click : function( $scope, $event ) {

app/modules/auth/views/password_reset_request.html

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/modules/auth/views/password_reset_submit.html

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)