mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Login: Angular to React (#18116)
* Migrating login services * Add user signup * Remove lodash * Remove media query and extarct LoginServices * Add React LoginCtrl * Handle location with Redux and start form validation * Fix proposal * Add basic validation * Fix validation * Remove state from controller * Extract login forms * Fix things up * Add change password and LoginPage * Add React page and route to it * Make redux connection work * Add validation for password change * Change pws request * Fix feedback * Fix feedback * LoginPage to FC * Move onSkip to a method * Experimenting with animations * Make animations work * Add input focus * Fix focus problem and clean animation * Working change password request * Add routing with window.location instead of Redux * Fix a bit of feedback * Move config to LoginCtrl * Make buttons same size * Change way of validating * Update changePassword and remove angular controller * Remove some console.logs * Split onChange * Remove className * Fix animation, onChange and remove config.loginError code * Add loginError appEvent * Make flex and add previosuly removed media query
This commit is contained in:
@@ -30,6 +30,7 @@ import { route, ILocationProvider } from 'angular';
|
||||
|
||||
// Types
|
||||
import { DashboardRouteInfo } from 'app/types';
|
||||
import { LoginPage } from 'app/core/components/Login/LoginPage';
|
||||
|
||||
/** @ngInject */
|
||||
export function setupAngularRoutes($routeProvider: route.IRouteProvider, $locationProvider: ILocationProvider) {
|
||||
@@ -285,8 +286,10 @@ export function setupAngularRoutes($routeProvider: route.IRouteProvider, $locati
|
||||
})
|
||||
// LOGIN / SIGNUP
|
||||
.when('/login', {
|
||||
templateUrl: 'public/app/partials/login.html',
|
||||
controller: 'LoginCtrl',
|
||||
template: '<react-container/>',
|
||||
resolve: {
|
||||
component: () => LoginPage,
|
||||
},
|
||||
pageClass: 'login-page sidemenu-hidden',
|
||||
})
|
||||
.when('/invite/:code', {
|
||||
|
||||
Reference in New Issue
Block a user