52 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { fixtures } from '@strapi/admin-test-utils';
/**
* This is for the redux store in `utils`.
* The more we adopt it, the bigger it will get which is okay.
*/
const initialState = {
i18n_locales: {
isLoading: true,
locales: [],
},
admin_app: { permissions: fixtures.permissions.app },
rbacProvider: {
allPermissions: [
...fixtures.permissions.allPermissions,
{
id: 314,
action: 'admin::users.read',
subject: null,
properties: {},
conditions: [],
},
],
collectionTypesRelatedPermissions: {
foo: {
'plugin::content-manager.explorer.read': [
{
action: 'plugin::content-manager.explorer.read',
subject: 'foo',
properties: {
fields: ['f1'],
},
conditions: [],
},
],
'plugin::content-manager.explorer.create': [
{
action: 'plugin::content-manager.explorer.create',
subject: 'foo',
properties: {
fields: ['f2'],
},
conditions: [],
},
],
},
},
},
};
export { initialState };