refactor: session and user
This commit is contained in:
parent
ce7b438a7e
commit
842771a323
|
@ -50,6 +50,7 @@
|
|||
show: false
|
||||
installExtensions: false
|
||||
'@flecks/governor': {}
|
||||
'@flecks/passport-local-react': {}
|
||||
'@flecks/react': {}
|
||||
'@flecks/react/router': {}
|
||||
'@flecks/redis': {}
|
||||
|
@ -63,9 +64,6 @@
|
|||
- '--stack-trace-limit=30'
|
||||
- '--inspect'
|
||||
'@flecks/socket': {}
|
||||
'@flecks/user': {}
|
||||
'@flecks/user/local': {}
|
||||
'@flecks/user/session': {}
|
||||
'@flecks/web': {}
|
||||
'@flecks/web/server':
|
||||
devDisableHostCheck: true
|
||||
|
|
|
@ -46,13 +46,13 @@
|
|||
"@flecks/dox": "^2.0.3",
|
||||
"@flecks/electron": "^2.0.3",
|
||||
"@flecks/governor": "^2.0.3",
|
||||
"@flecks/passport-local-react": "^2.0.3",
|
||||
"@flecks/react": "^2.0.3",
|
||||
"@flecks/redis": "^2.0.3",
|
||||
"@flecks/redux": "^2.0.3",
|
||||
"@flecks/repl": "^2.0.3",
|
||||
"@flecks/server": "^2.0.3",
|
||||
"@flecks/socket": "^2.0.3",
|
||||
"@flecks/user": "^2.0.3",
|
||||
"@flecks/web": "^2.0.3",
|
||||
"@humus/app": "^2.1.0",
|
||||
"@humus/bootstrap": "^3.0.0",
|
||||
|
|
|
@ -27,10 +27,11 @@
|
|||
"@avocado/s13n": "^3.0.0",
|
||||
"@avocado/topdown": "^3.0.0",
|
||||
"@flecks/core": "^2.0.3",
|
||||
"@flecks/passport-local-react": "^2.0.3",
|
||||
"@flecks/passport-react": "^2.0.3",
|
||||
"@flecks/react": "^2.0.3",
|
||||
"@flecks/redux": "^2.0.3",
|
||||
"@flecks/socket": "^2.0.3",
|
||||
"@flecks/user": "^2.0.3",
|
||||
"@flecks/web": "^2.0.3",
|
||||
"@humus/inventory": "^2.1.0",
|
||||
"fscreen": "^1.2.0",
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
Routes,
|
||||
Route,
|
||||
} from '@flecks/react/router';
|
||||
import {UserRequired} from '@flecks/user/local';
|
||||
import {UserRequired} from '@flecks/passport-react';
|
||||
import '@humus/app/scss/index.scss';
|
||||
|
||||
import Ui from './ui';
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import {React} from '@flecks/react';
|
||||
import {UserLocalLogin} from '@flecks/user/local';
|
||||
import {Login as PassportLogin} from '@flecks/passport-local-react';
|
||||
|
||||
import styles from './index.module.scss';
|
||||
|
||||
function Login() {
|
||||
return (
|
||||
<div className={styles.login}>
|
||||
<UserLocalLogin />
|
||||
<PassportLogin />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -13,6 +13,6 @@ export const hooks = {
|
|||
await user.save();
|
||||
}
|
||||
},
|
||||
{after: '@flecks/user/local/server'},
|
||||
{after: ['@flecks/passport/server']},
|
||||
),
|
||||
};
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
"@flecks/react": "^2.0.3",
|
||||
"@flecks/redux": "^2.0.3",
|
||||
"@flecks/socket": "^2.0.3",
|
||||
"@flecks/user": "^2.0.3",
|
||||
"debug": "4.3.1",
|
||||
"is-electron": "^2.2.1"
|
||||
},
|
||||
|
|
|
@ -28,6 +28,6 @@ export const hooks = {
|
|||
}
|
||||
next();
|
||||
},
|
||||
{after: '@flecks/user/server'},
|
||||
{after: '@flecks/passport/server'},
|
||||
),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user