forked from sakaiproject/sakai
-
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.
SAK-44682 Re add storybook data, styles and i18n (sakaiproject#8821)
- Loading branch information
1 parent
ee2f558
commit 298f9f1
Showing
43 changed files
with
3,133 additions
and
140 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
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
70 changes: 70 additions & 0 deletions
70
webcomponents/tool/src/main/frontend/stories/data/calendar-data.js
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
export var calendarData = ` | ||
[ | ||
{ | ||
"id":"bc330d62-c6b0-434e-83d9-af7f1ece890a", | ||
"siteId":"", | ||
"siteTitle":"Playpen", | ||
"creator":"8667b7bb-f0f8-41e4-bc91-35b76d4b199e", | ||
"creatorDisplayName":"Adrian Fish", | ||
"viewText":"Hi all", | ||
"title":"The 16th", | ||
"tool":"assignments", | ||
"type":"Activity", | ||
"assignmentId":"", | ||
"start":1605560400000, | ||
"duration":3600000, | ||
"attachments":[], | ||
"recurrence":{ | ||
"count":0, | ||
"frequency":null, | ||
"interval":0, | ||
"until":0 | ||
}, | ||
"url":null | ||
}, | ||
{ | ||
"id":"8a63cc48-c996-46d6-b0f8-8de297ce5c5f", | ||
"siteId":"", | ||
"siteTitle":"Playpen", | ||
"creator":"8667b7bb-f0f8-41e4-bc91-35b76d4b199e", | ||
"creatorDisplayName":"Adrian Fish", | ||
"viewText":"Assignment Assessment for the 23rd is due on 23-Nov-2020 18:30.", | ||
"title":"Due Assessment for the 23rd", | ||
"tool":"assignments", | ||
"type":"Deadline", | ||
"assignmentId":"fa7eb892-5812-492e-9a03-3f0feb4aabfe", | ||
"start":1606156200000, | ||
"duration":0, | ||
"attachments":[], | ||
"recurrence": { | ||
"count":0, | ||
"frequency":null, | ||
"interval":0, | ||
"until":0 | ||
}, | ||
"url":"http://localhost/portal/directtool/8259c5d9-b837-410d-99d8-d499e4a4a345?assignmentId=/assignment/a/1ab62f69-25e6-417c-9f58-2e29c9814d55/fa7eb892-5812-492e-9a03-3f0feb4aabfe&panel=Main&sakai_action=doView_assignment" | ||
}, | ||
{ | ||
"id":"77a09f11-06a6-41c5-8745-0ee8d7734048", | ||
"siteId":"", | ||
"siteTitle":"Playpen", | ||
"creator":"8667b7bb-f0f8-41e4-bc91-35b76d4b199e", | ||
"creatorDisplayName":"Adrian Fish", | ||
"viewText":"Hulloballo", | ||
"title":"The 25th", | ||
"tool":"assignments", | ||
"type":"Activity", | ||
"assignmentId":"", | ||
"start":1606309200000, | ||
"duration":3600000, | ||
"attachments":[], | ||
"recurrence":{ | ||
"count":0, | ||
"frequency":null, | ||
"interval":0, | ||
"until":0 | ||
}, | ||
"url":null | ||
} | ||
] | ||
`; |
28 changes: 28 additions & 0 deletions
28
webcomponents/tool/src/main/frontend/stories/data/course-announcements-data.js
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export let announcementsData = ` | ||
[ | ||
{ | ||
"id":"3a184da1-de7b-4587-870a-8fc65948d6cc", | ||
"siteId":"1ab62f69-25e6-417c-9f58-2e29c9814d55", | ||
"siteTitle":"Playpen", | ||
"subject":"yoooooo", | ||
"author":"Adrian Fish", | ||
"url":"http://localhost/portal/directtool/a3b05fbc-e2e1-4103-b94b-b9f17e402630?itemReference=/announcement/msg/1ab62f69-25e6-417c-9f58-2e29c9814d55/main/3a184da1-de7b-4587-870a-8fc65948d6cc&sakai_action=doShowmetadata" | ||
}, | ||
{ | ||
"id":"6cbe23ca-d9a4-40c7-a170-baf4a03e232f", | ||
"siteId":"1ab62f69-25e6-417c-9f58-2e29c9814d55", | ||
"siteTitle":"Playpen", | ||
"subject":"fafsdfsdF", | ||
"author":"Adrian Fish", | ||
"url":"http://localhost/portal/directtool/a3b05fbc-e2e1-4103-b94b-b9f17e402630?itemReference=/announcement/msg/1ab62f69-25e6-417c-9f58-2e29c9814d55/main/6cbe23ca-d9a4-40c7-a170-baf4a03e232f&sakai_action=doShowmetadata" | ||
}, | ||
{ | ||
"id":"ddb0155b-5ea5-4248-b8c9-88610d106f27", | ||
"siteId":"1ab62f69-25e6-417c-9f58-2e29c9814d55", | ||
"siteTitle":"Playpen", | ||
"subject":"gssdfsdf", | ||
"author":"Adrian Fish", | ||
"url":"http://localhost/portal/directtool/a3b05fbc-e2e1-4103-b94b-b9f17e402630?itemReference=/announcement/msg/1ab62f69-25e6-417c-9f58-2e29c9814d55/main/ddb0155b-5ea5-4248-b8c9-88610d106f27&sakai_action=doShowmetadata" | ||
} | ||
] | ||
`; |
31 changes: 31 additions & 0 deletions
31
webcomponents/tool/src/main/frontend/stories/data/course-dashboard-data.js
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export let dashboardData = ` | ||
{ | ||
"givenName":null, | ||
"motd":null, | ||
"title":"Playpen", | ||
"worksiteSetupUrl":null, | ||
"widgets":[ | ||
"tasks", | ||
"announcements", | ||
"calendar", | ||
"forums", | ||
"grades" | ||
], | ||
"editable":true, | ||
"layout":[ | ||
"calendar", | ||
"forums", | ||
"grades", | ||
"announcements" | ||
], | ||
"overview":"", | ||
"programme":null, | ||
"template":2, | ||
"defaultWidgetLayouts":{ | ||
"1":["calendar","announcements","grades"], | ||
"2":["calendar","forums","grades","announcements"], | ||
"3":["calendar","announcements","grades","forums"] | ||
}, | ||
"image":"/webcomponents/images/central_park_lamp.jpg" | ||
} | ||
`; |
12 changes: 12 additions & 0 deletions
12
webcomponents/tool/src/main/frontend/stories/data/course-grades-data.js
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export let gradesData = ` | ||
[ | ||
{ | ||
"id":5, | ||
"name":"rubric", | ||
"averageScore":6.3, | ||
"ungraded":1, | ||
"url":"/portal/directtool/7755f401-ea1e-4bbb-83e6-9d89e39726c2", | ||
"siteTitle":"Playpen" | ||
} | ||
] | ||
`; |
11 changes: 11 additions & 0 deletions
11
webcomponents/tool/src/main/frontend/stories/data/forums-data.js
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export var forumsData = ` | ||
[ | ||
{ | ||
"messageCount":0, | ||
"siteTitle":"Playpen", | ||
"siteId":"1ab62f69-25e6-417c-9f58-2e29c9814d55", | ||
"forumUrl":"/portal/directtool/e7a244fa-664d-479a-bb6d-bf7e2ebc7bc1", | ||
"forumCount":0 | ||
} | ||
] | ||
`; |
Oops, something went wrong.