mirror of
https://github.com/documize/community.git
synced 2025-08-07 22:45:24 +02:00
Add factories to refactor cleanup mirage config
This commit is contained in:
parent
97d2bd2a0e
commit
99e4057fad
4 changed files with 27 additions and 9 deletions
11
app/app/mirage/factories/folder.js
Normal file
11
app/app/mirage/factories/folder.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import Mirage, {faker} from 'ember-cli-mirage';
|
||||
|
||||
export default Mirage.Factory.extend({
|
||||
"id": faker.list.cycle('VzMuyEw_3WqiafcG', 'VzMygEw_3WrtFzto'),
|
||||
"created": "2016-05-11T15:08:24Z",
|
||||
"revised": "2016-05-11T15:08:24Z",
|
||||
"name": faker.list.cycle('My Project', 'Test'),
|
||||
"orgId": "VzMuyEw_3WqiafcD",
|
||||
"userId": "VzMuyEw_3WqiafcE",
|
||||
"folderType": faker.list.cycle(1, 2)
|
||||
});
|
8
app/app/mirage/factories/folder_permission.js
Normal file
8
app/app/mirage/factories/folder_permission.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Mirage, {faker} from 'ember-cli-mirage';
|
||||
|
||||
export default Mirage.Factory.extend({
|
||||
"folderId":"VzMuyEw_3WqiafcG",
|
||||
"userId":"VzMuyEw_3WqiafcE",
|
||||
"canView":true,
|
||||
"canEdit":true
|
||||
});
|
|
@ -1,14 +1,5 @@
|
|||
import Mirage from 'ember-cli-mirage';
|
||||
|
||||
// export default Mirage.Factory.extend({
|
||||
// orgId() { return 'VzMuyEw_3WqiafcD'; },
|
||||
// title() { return 'EmberSherpa'; },
|
||||
// message() { return 'This Documize instance contains all our team documentation'; },
|
||||
// url() { return ''; },
|
||||
// allowAnonymousAccess() { return false; },
|
||||
// version() { return '11.2'; }
|
||||
// });
|
||||
|
||||
export default Mirage.Factory.extend({
|
||||
"orgId": "VzMuyEw_3WqiafcD",
|
||||
"title": "EmberSherpa",
|
||||
|
|
8
app/app/mirage/factories/permission.js
Normal file
8
app/app/mirage/factories/permission.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import Mirage, {faker} from 'ember-cli-mirage';
|
||||
|
||||
export default Mirage.Factory.extend({
|
||||
"folderId": faker.list.cycle('V0Vy5Uw_3QeDAMW9', 'VzMuyEw_3WqiafcG', 'VzMygEw_3WrtFzto', 'VzMygEw_3WrtFzto'),
|
||||
"userId": faker.list.cycle('VzMuyEw_3WqiafcE', 'VzMuyEw_3WqiafcE', 'VzMuyEw_3WqiafcE', ''),
|
||||
"canView":true,
|
||||
"canEdit": faker.list.cycle(true, true, true, false)
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue