mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
refactor login flow and hooks, address autologin issues
This commit is contained in:
parent
dcd6dc00f4
commit
bd2382c94e
43 changed files with 2179 additions and 484 deletions
|
|
@ -19,15 +19,15 @@ const types = (...types) => types.map((type) => ({ to: { type } }));
|
|||
|
||||
const rules = [
|
||||
{ from: { type: 'generated' }, allow: [] },
|
||||
{ from: { type: 'websocket' }, allow: types('generated') },
|
||||
{ from: { type: 'types' }, allow: types('generated', 'websocket') },
|
||||
|
||||
{ from: { type: 'websocket' }, allow: types('generated') },
|
||||
{ from: { type: 'store' }, allow: types('types') },
|
||||
{ from: { type: 'api' }, allow: types('store', 'types', 'websocket') },
|
||||
|
||||
{ from: { type: 'hooks' }, allow: types('api', 'services', 'types', 'websocket') },
|
||||
{ from: { type: 'images' }, allow: types('types') },
|
||||
{ from: { type: 'services' }, allow: types('api', 'store', 'types') },
|
||||
{ from: { type: 'hooks' }, allow: types('api', 'services', 'store', 'types', 'websocket') },
|
||||
|
||||
{
|
||||
from: { type: 'components' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue