generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
2,837 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import { Item, ItemType } from '@graasp/sdk'; | ||
import { DiscriminatedItem, ItemType } from '@graasp/sdk'; | ||
|
||
import { CURRENT_MEMBER } from './members'; | ||
|
||
export const MOCK_ITEM: Item = { | ||
export const MOCK_ITEM: DiscriminatedItem = { | ||
id: 'some-id', | ||
name: 'my mock item', | ||
description: 'a description', | ||
path: 'some-id', | ||
settings: {}, | ||
creator: CURRENT_MEMBER, | ||
createdAt: new Date(), | ||
updatedAt: new Date(), | ||
createdAt: new Date().toISOString(), | ||
updatedAt: new Date().toISOString(), | ||
type: ItemType.FOLDER, | ||
extra: {}, | ||
extra: { | ||
folder: { childrenOrder: [] }, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
import { Member, MemberType } from '@graasp/sdk'; | ||
import { Member } from '@graasp/sdk'; | ||
|
||
const dateNow = new Date().toISOString(); | ||
export const MEMBERS: { [key: string]: Member } = { | ||
ANNA: { | ||
id: '0f0a2774-a965-4b97-afb4-bccc3796e060', | ||
name: 'anna', | ||
email: '[email protected]', | ||
type: MemberType.Individual, | ||
extra: {}, | ||
createdAt: dateNow, | ||
updatedAt: dateNow, | ||
}, | ||
BOB: { | ||
id: '1f0a2774-a965-4b97-afb4-bccc3796e060', | ||
name: 'bob', | ||
email: '[email protected]', | ||
type: MemberType.Individual, | ||
extra: {}, | ||
createdAt: dateNow, | ||
updatedAt: dateNow, | ||
}, | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.