1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

using ES6 object literals in mock state

This commit is contained in:
Alex Windett 2017-03-28 13:21:28 +01:00 committed by Judit Greskovits
parent e0130d5522
commit 54216ae3d0
4 changed files with 80 additions and 94 deletions

View File

@ -7,76 +7,22 @@ import {
projects, projects,
instances, instances,
services, services,
members members,
orgs
} from './shared/index.js'; } from './shared/index.js';
export default { export default {
"account": account,
"datacenters": datacenters,
"monitors": { "monitors": {
"ui": { "ui": {
"page": "create" "page": "create"
} }
}, },
"metrics": metrics, orgs,
"orgs": { account,
"ui": { datacenters,
"invite_toggled": false, metrics,
"member_status_tooltip": false, projects,
"member_role_tooltip": false, members,
"sections": [ services,
"projects", instances
"people",
"settings"
],
"members_status": [
"Active",
"Inactive",
"Invitation Sent"
],
"members_roles": [
"Owner",
"Unassigned",
"Read Only"
]
},
"data": [{
"hide": [
"people"
],
"owner": "b94033c1-3665-4c36-afab-d9c3d0b51c01",
"id": "nicola",
"name": "Your dashboard",
"image": "https://pbs.twimg.com/profile_images/641289584580493312/VBfsPlff_400x400.jpg",
"members": []
}, {
"owner": "b94033c1-3665-4c36-afab-d9c3d0b51c01",
"uuid": "e12ad7db-91b2-4154-83dd-40dcfc700dcc",
"id": "biz-tech",
"name": "BizTech",
"members": [
{
"uuid": "fd853d8f-e1dd-49b5-b7b3-ae9adfea1e2f",
"role": "Owner",
"status": "Active"
},
{
"uuid": "6deddbaa-3b94-4373-8cf7-97129507a872",
"role": "Unassigned",
"status": "Sent invitation"
}
]
}, {
"owner": "b94033c1-3665-4c36-afab-d9c3d0b51c01",
"uuid": "551f316d-e414-480f-9787-b4c408db3edd",
"id": "make-us-proud",
"name": "Make Us Proud",
"image": "/static/images/make-us-proud.svg",
"members": []
}]
},
"projects": projects,
"members": members,
"services": services,
"instances": instances
} }

View File

@ -5,6 +5,7 @@ import { projects } from './projects';
import { services } from './services'; import { services } from './services';
import { members } from './members'; import { members } from './members';
import { instances } from './instances'; import { instances } from './instances';
import { orgs } from './orgs';
export { export {
account, account,
@ -13,5 +14,6 @@ export {
projects, projects,
services, services,
instances, instances,
members members,
orgs
}; };

View File

@ -0,0 +1,57 @@
/*eslint-disable */
export const orgs = {
"ui": {
"invite_toggled": false,
"member_status_tooltip": false,
"member_role_tooltip": false,
"sections": [
"projects",
"people",
"settings"
],
"members_status": [
"Active",
"Inactive",
"Invitation Sent"
],
"members_roles": [
"Owner",
"Unassigned",
"Read Only"
]
},
"data": [{
"hide": [
"people"
],
"owner": "b94033c1-3665-4c36-afab-d9c3d0b51c01",
"id": "nicola",
"name": "Your dashboard",
"image": "https://pbs.twimg.com/profile_images/641289584580493312/VBfsPlff_400x400.jpg",
"members": []
}, {
"owner": "b94033c1-3665-4c36-afab-d9c3d0b51c01",
"uuid": "e12ad7db-91b2-4154-83dd-40dcfc700dcc",
"id": "biz-tech",
"name": "BizTech",
"members": [
{
"uuid": "fd853d8f-e1dd-49b5-b7b3-ae9adfea1e2f",
"role": "Owner",
"status": "Active"
},
{
"uuid": "6deddbaa-3b94-4373-8cf7-97129507a872",
"role": "Unassigned",
"status": "Sent invitation"
}
]
}, {
"owner": "b94033c1-3665-4c36-afab-d9c3d0b51c01",
"uuid": "551f316d-e414-480f-9787-b4c408db3edd",
"id": "make-us-proud",
"name": "Make Us Proud",
"image": "/static/images/make-us-proud.svg",
"members": []
}]
}

View File

@ -7,40 +7,18 @@ import {
projects, projects,
instances, instances,
services, services,
members members,
orgs
} from './shared/index.js'; } from './shared/index.js';
export default { export default {
"account": account,
"datacenters": datacenters,
"monitors": { "monitors": {
"ui": { "ui": {
"page": "create" "page": "create"
} }
}, },
"metrics": metrics,
"orgs": { "orgs": {
"ui": { "ui": orgs.ui,
"invite_toggled": false,
"member_status_tooltip": false,
"member_role_tooltip": false,
"hide_add_and_manage": true,
"sections": [
"projects",
"people",
"settings"
],
"members_status": [
"Active",
"Inactive",
"Invitation Sent"
],
"members_roles": [
"Owner",
"Unassigned",
"Read Only"
]
},
"data": [{ "data": [{
"hide": [ "hide": [
"people" "people"
@ -53,8 +31,11 @@ export default {
"members": [] "members": []
}] }]
}, },
"projects": projects, account,
"members": members, datacenters,
"services": services, metrics,
"instances": instances projects,
members,
services,
instances
} }