This repository was archived by the owner on Dec 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +7
-22
lines changed Expand file tree Collapse file tree 6 files changed +7
-22
lines changed Original file line number Diff line number Diff line change 11
11
"karma" : " cross-env BABEL_ENV=test karma start test/unit/karma.conf.js" ,
12
12
"test" : " yarn unit && yarn cypress" ,
13
13
"lint" : " eslint --ext .js,.vue src test/unit/specs" ,
14
- "cypress" : " yarn build && concurrently --kill-others --success first \" node cypress-spa-server.js > /dev/null\" \" cypress open --browser chrome\" " ,
14
+ "cypress" : " yarn build && concurrently --kill-others --success first \" node cypress-spa-server.js > /dev/null\" \" cypress run --browser chrome\" " ,
15
15
"cypress:open" : " cypress open" ,
16
16
"cypress:install" : " cypress install"
17
17
},
Original file line number Diff line number Diff line change @@ -133,11 +133,10 @@ import '@coderdojo/cd-common/dist/cd-common.min';
133
133
export default {
134
134
name: ' cd-header' ,
135
135
data () {
136
- const rpiAuthFlag = window .localStorage .getItem (' rpiAuth' ) === ' true' ;
137
136
return {
138
- loginPath: rpiAuthFlag ? ' /rpi/login ' : ' /login' ,
139
- logoutPath: rpiAuthFlag ? ' /rpi/logout ' : ' /logout' ,
140
- registerPath: rpiAuthFlag ? ' /rpi/ register' : ' /register/user ' ,
137
+ loginPath: ' /login' ,
138
+ logoutPath: ' /logout' ,
139
+ registerPath: ' / register' ,
141
140
navigationLinks: [
142
141
{
143
142
href: ' https://coderdojo.com/about/' ,
Original file line number Diff line number Diff line change 116
116
/* eslint-enable no-alert */
117
117
this .loadUserDojoRole ();
118
118
} else {
119
- location .href = ` /register/account ?referer=${ this .$route .path } ` ;
119
+ location .href = ` /register?referer=${ this .$route .path } ` ;
120
120
}
121
121
},
122
122
},
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ const router = new Router({
111
111
component : AccountType ,
112
112
} ,
113
113
{
114
- path : '/home' ,
114
+ path : '/home' ,
115
115
name : 'Home' ,
116
116
component : Home ,
117
117
beforeEnter : loggedInNavGuard ,
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ const fn = {
5
5
if ( user && user . login ) {
6
6
return next ( ) ;
7
7
}
8
- const rpiAuthFlag = window . localStorage . getItem ( 'rpiAuth' ) === 'true' ;
9
- return window . location . replace ( `/${ rpiAuthFlag ? 'rpi' : 'cdf' } /login?referer=${ from } ` ) ;
8
+ return window . location . replace ( `/login?referer=${ from } ` ) ;
10
9
} ,
11
10
} ;
12
11
export default async function ( to , from , next ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments