-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNOE-497] [WIP] Move rails pages to SPA #236
base: 2.0
Are you sure you want to change the base?
[MNOE-497] [WIP] Move rails pages to SPA #236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @adamaziz15,
I had a quick look at this WIP PR. The structure seems good to me. I wrote a few comments. Let me know when this is ready for a full review. Cheers.
- For the select LESS styles in
auth.less
, please make sure that they are used and useful. They seem hacky to me. - After a second look a lot of stuff seems not used in the styles. This project has a strong legacy, time to clean it up! 😄
src/app/index.config.coffee
Outdated
basePath = $windowProvider.$get().location.origin | ||
AuthProvider.loginPath(basePath + '/mnoe/auth/users/sign_in') | ||
AuthProvider.logoutPath(basePath + '/mnoe/auth/users/sign_out') | ||
AuthProvider.registerPath(basePath + '/mnoe/auth/users/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a constant object to define those paths (eg. URI.login
)
src/app/views/auth/auth.less
Outdated
@@ -149,3 +149,272 @@ | |||
height: 34px; | |||
} | |||
} | |||
|
|||
input.fluroblue[type=radio] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fluroblue
is color specific to maestrano, please use an agnostic selector name and remove those occurences.
$window.location.href = '/' | ||
toastr = $injector.get('toastr') | ||
|
||
toastr.error('User is not connected!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should i18n this toastr
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty lines
src/app/index.config.coffee
Outdated
@@ -69,3 +71,22 @@ angular.module 'mnoEnterpriseAngular' | |||
# TODO: Activate in "developer mode" only (spams the console and makes the application lag) | |||
#$translateProvider.useMissingTranslationHandlerLog() | |||
) | |||
# Configure auth routes | |||
.config((AuthProvider, AuthInterceptProvider) -> | |||
AuthProvider.loginPath('/mnoe/auth/users/sign_in') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a constant to define those path strings
5bbe1e0
to
7d6001e
Compare
7d6001e
to
154e2d1
Compare
154e2d1
to
33f6872
Compare
@alexnoox @ouranos
Sign in page works well and the rest of the application seems to run fine after the changes so far.
Moving on to the other rails pages but need to come back to take care of some functionality on the login page: