mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
replace websocket with sockatrice
This commit is contained in:
parent
68050b56bc
commit
e2319c84db
218 changed files with 89 additions and 9100 deletions
|
|
@ -6,43 +6,37 @@ const elements = [
|
|||
{ type: 'containers', pattern: ['src/containers/**'] },
|
||||
{ type: 'dialogs', pattern: ['src/dialogs/**'] },
|
||||
{ type: 'forms', pattern: ['src/forms/**'] },
|
||||
{ type: 'generated', pattern: ['src/generated/**'] },
|
||||
{ type: 'hooks', pattern: ['src/hooks/**'] },
|
||||
{ type: 'images', pattern: ['src/images/**'] },
|
||||
{ type: 'services', pattern: ['src/services/**'] },
|
||||
{ type: 'store', pattern: ['src/store/**'] },
|
||||
{ type: 'types', pattern: ['src/types/**'] },
|
||||
{ type: 'utils', pattern: ['src/utils/**'] },
|
||||
{ type: 'websocket-types', pattern: ['src/websocket/types/**'] },
|
||||
{ type: 'websocket', pattern: ['src/websocket/**'] },
|
||||
];
|
||||
|
||||
const types = (...types) => types.map((type) => ({ to: { type } }));
|
||||
|
||||
const rules = [
|
||||
{ from: { type: 'generated' }, allow: [] },
|
||||
{ from: { type: 'websocket-types' }, allow: types('generated') },
|
||||
{ from: { type: 'websocket' }, allow: types('generated', 'websocket-types') },
|
||||
{ from: { type: 'types' }, allow: types('generated') },
|
||||
{ from: { type: 'types' }, allow: [] },
|
||||
{ from: { type: 'utils' }, allow: types('types') },
|
||||
|
||||
{ from: { type: 'store' }, allow: types('types', 'utils', 'websocket-types') },
|
||||
{ from: { type: 'api' }, allow: types('store', 'types', 'utils', 'websocket', 'websocket-types') },
|
||||
{ from: { type: 'store' }, allow: types('types', 'utils') },
|
||||
{ from: { type: 'api' }, allow: types('store', 'types', 'utils') },
|
||||
|
||||
{ from: { type: 'images' }, allow: types('types') },
|
||||
{ from: { type: 'services' }, allow: types('api', 'store', 'types', 'utils') },
|
||||
{ from: { type: 'hooks' }, allow: types('api', 'services', 'store', 'types', 'utils', 'websocket', 'websocket-types') },
|
||||
{ from: { type: 'hooks' }, allow: types('api', 'services', 'store', 'types', 'utils') },
|
||||
|
||||
{
|
||||
from: { type: 'components' },
|
||||
allow: types('api', 'dialogs', 'forms', 'hooks', 'images', 'services', 'store', 'types', 'utils', 'websocket-types')
|
||||
allow: types('api', 'dialogs', 'forms', 'hooks', 'images', 'services', 'store', 'types', 'utils')
|
||||
},
|
||||
{
|
||||
from: { type: 'containers' },
|
||||
allow: types('api', 'components', 'dialogs', 'forms', 'hooks', 'images', 'services', 'store', 'types', 'utils', 'websocket-types')
|
||||
allow: types('api', 'components', 'dialogs', 'forms', 'hooks', 'images', 'services', 'store', 'types', 'utils')
|
||||
},
|
||||
{ from: { type: 'dialogs' }, allow: types('components', 'forms', 'hooks', 'services', 'store', 'types', 'utils', 'websocket-types') },
|
||||
{ from: { type: 'forms' }, allow: types('components', 'hooks', 'services', 'store', 'types', 'utils', 'websocket-types') },
|
||||
{ from: { type: 'dialogs' }, allow: types('components', 'forms', 'hooks', 'services', 'store', 'types', 'utils') },
|
||||
{ from: { type: 'forms' }, allow: types('components', 'hooks', 'services', 'store', 'types', 'utils') },
|
||||
];
|
||||
|
||||
export const boundariesConfig = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue