refactor: session and user

This commit is contained in:
cha0s 2024-01-13 14:28:00 -06:00
parent ce7b438a7e
commit 842771a323
8 changed files with 9 additions and 11 deletions

View File

@ -50,6 +50,7 @@
show: false show: false
installExtensions: false installExtensions: false
'@flecks/governor': {} '@flecks/governor': {}
'@flecks/passport-local-react': {}
'@flecks/react': {} '@flecks/react': {}
'@flecks/react/router': {} '@flecks/react/router': {}
'@flecks/redis': {} '@flecks/redis': {}
@ -63,9 +64,6 @@
- '--stack-trace-limit=30' - '--stack-trace-limit=30'
- '--inspect' - '--inspect'
'@flecks/socket': {} '@flecks/socket': {}
'@flecks/user': {}
'@flecks/user/local': {}
'@flecks/user/session': {}
'@flecks/web': {} '@flecks/web': {}
'@flecks/web/server': '@flecks/web/server':
devDisableHostCheck: true devDisableHostCheck: true

View File

@ -46,13 +46,13 @@
"@flecks/dox": "^2.0.3", "@flecks/dox": "^2.0.3",
"@flecks/electron": "^2.0.3", "@flecks/electron": "^2.0.3",
"@flecks/governor": "^2.0.3", "@flecks/governor": "^2.0.3",
"@flecks/passport-local-react": "^2.0.3",
"@flecks/react": "^2.0.3", "@flecks/react": "^2.0.3",
"@flecks/redis": "^2.0.3", "@flecks/redis": "^2.0.3",
"@flecks/redux": "^2.0.3", "@flecks/redux": "^2.0.3",
"@flecks/repl": "^2.0.3", "@flecks/repl": "^2.0.3",
"@flecks/server": "^2.0.3", "@flecks/server": "^2.0.3",
"@flecks/socket": "^2.0.3", "@flecks/socket": "^2.0.3",
"@flecks/user": "^2.0.3",
"@flecks/web": "^2.0.3", "@flecks/web": "^2.0.3",
"@humus/app": "^2.1.0", "@humus/app": "^2.1.0",
"@humus/bootstrap": "^3.0.0", "@humus/bootstrap": "^3.0.0",

View File

@ -27,10 +27,11 @@
"@avocado/s13n": "^3.0.0", "@avocado/s13n": "^3.0.0",
"@avocado/topdown": "^3.0.0", "@avocado/topdown": "^3.0.0",
"@flecks/core": "^2.0.3", "@flecks/core": "^2.0.3",
"@flecks/passport-local-react": "^2.0.3",
"@flecks/passport-react": "^2.0.3",
"@flecks/react": "^2.0.3", "@flecks/react": "^2.0.3",
"@flecks/redux": "^2.0.3", "@flecks/redux": "^2.0.3",
"@flecks/socket": "^2.0.3", "@flecks/socket": "^2.0.3",
"@flecks/user": "^2.0.3",
"@flecks/web": "^2.0.3", "@flecks/web": "^2.0.3",
"@humus/inventory": "^2.1.0", "@humus/inventory": "^2.1.0",
"fscreen": "^1.2.0", "fscreen": "^1.2.0",

View File

@ -8,7 +8,7 @@ import {
Routes, Routes,
Route, Route,
} from '@flecks/react/router'; } from '@flecks/react/router';
import {UserRequired} from '@flecks/user/local'; import {UserRequired} from '@flecks/passport-react';
import '@humus/app/scss/index.scss'; import '@humus/app/scss/index.scss';
import Ui from './ui'; import Ui from './ui';

View File

@ -1,12 +1,12 @@
import {React} from '@flecks/react'; 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'; import styles from './index.module.scss';
function Login() { function Login() {
return ( return (
<div className={styles.login}> <div className={styles.login}>
<UserLocalLogin /> <PassportLogin />
</div> </div>
); );
} }

View File

@ -13,6 +13,6 @@ export const hooks = {
await user.save(); await user.save();
} }
}, },
{after: '@flecks/user/local/server'}, {after: ['@flecks/passport/server']},
), ),
}; };

View File

@ -36,7 +36,6 @@
"@flecks/react": "^2.0.3", "@flecks/react": "^2.0.3",
"@flecks/redux": "^2.0.3", "@flecks/redux": "^2.0.3",
"@flecks/socket": "^2.0.3", "@flecks/socket": "^2.0.3",
"@flecks/user": "^2.0.3",
"debug": "4.3.1", "debug": "4.3.1",
"is-electron": "^2.2.1" "is-electron": "^2.2.1"
}, },

View File

@ -28,6 +28,6 @@ export const hooks = {
} }
next(); next();
}, },
{after: '@flecks/user/server'}, {after: '@flecks/passport/server'},
), ),
}; };