-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨(frontend) add meeting list page in demo
With the new meetings feature, we need to add a meetings page in the demo as well as in the router and navigation bar.
- Loading branch information
1 parent
b292f2b
commit 36f2ebd
Showing
22 changed files
with
14,539 additions
and
83,340 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { defineMessages, IntlShape } from 'react-intl'; | ||
import { Link, RouteObject } from 'react-router-dom'; | ||
import { MeetingsListView } from '../../../views/meetings/list'; | ||
import { RoomsListView } from '../../../views/rooms/list'; | ||
import { RoomSettingsView } from '../../../views/rooms/settings'; | ||
|
||
export enum MeetingsPath { | ||
MEETINGS = '/app/meetings', | ||
MEETINGS_SETTINGS = '/app/meetings/:id/settings', | ||
} | ||
|
||
const meetingsRouteLabels = defineMessages({ | ||
[MeetingsPath.MEETINGS]: { | ||
defaultMessage: 'Meeting', | ||
description: 'The label of the mettings view.', | ||
id: 'utils.routes.meetings.meetings.label', | ||
}, | ||
}); | ||
|
||
export const getMeetingsRoutes = (intl: IntlShape): RouteObject => { | ||
return { | ||
path: MeetingsPath.MEETINGS, | ||
handle: { | ||
crumb: () => ( | ||
<Link to={MeetingsPath.MEETINGS}> | ||
{intl.formatMessage(meetingsRouteLabels[MeetingsPath.MEETINGS])} | ||
</Link> | ||
), | ||
}, | ||
children: [{ element: <MeetingsListView />, index: true }], | ||
}; | ||
}; |
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 @@ | ||
import { MyMeetings, createRandomMeeting } from '@jitsi-magnify/core'; | ||
import * as React from 'react'; | ||
import { DefaultPage } from '../../../components/DefaultPage'; | ||
|
||
export function MeetingsListView() { | ||
return ( | ||
<DefaultPage title={'test'}> | ||
<MyMeetings meetings={[createRandomMeeting(), createRandomMeeting()]} /> | ||
</DefaultPage> | ||
); | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/frontend/magnify/src/components/meetings/MeetingRow/MeetingRow.stories.tsx
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
4 changes: 2 additions & 2 deletions
4
src/frontend/magnify/src/components/meetings/MyMeetings/MyMeetings.stories.tsx
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './MyMeetings'; |
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 @@ | ||
export * from './MyMeetings'; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './meetings'; |
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.