Skip to content

Commit

Permalink
feat(flat-web): add big class page (#719)
Browse files Browse the repository at this point in the history
* feat(flat-web): add big class page

* chore(ci): increase ram for flat-web
  • Loading branch information
hyrious committed Jun 8, 2021
1 parent be30e5e commit 0cac4f0
Show file tree
Hide file tree
Showing 41 changed files with 1,812 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
if: steps.filter.outputs.main == 'true'

- name: Build flat-web
run: yarn workspace flat-web build
run: NODE_OPTIONS="--max-old-space-size=4096" yarn workspace flat-web build
if: steps.filter.outputs.flat-web == 'true'

- name: Check i18n
Expand Down
5 changes: 5 additions & 0 deletions web/flat-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@
"@loadable/component": "^5.15.0",
"@netless/combine-player": "^1.1.5",
"@netless/cursor-tool": "^0.1.0",
"@netless/page-controller": "^0.0.4",
"@netless/preview-controller": "^0.0.9",
"@netless/redo-undo": "^0.0.5",
"@netless/tool-box": "^0.1.5",
"@netless/white-audio-plugin": "^2.0.3",
"@netless/white-video-plugin": "^2.0.3",
"@netless/zoom-controller": "^0.1.1",
"agora-rtc-sdk-ng": "^4.5.0",
"agora-rtm-sdk": "^1.4.3",
"antd": "^4.15.4",
Expand Down
8 changes: 7 additions & 1 deletion web/flat-web/src/AppRoutes/route-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export type RoutePages = {
};
};

/**
* NOTE: If you see error from "loadable-component", the real error
* message may be hidden by `import()` below. You can change
* `import("../pages/SomePage")` to
* `Promise.resolve({ default: SomePage })` to see the real error.
*/
export const routePages: RoutePages = {
[RouteNameType.LoginPage]: {
title: "Flat Login",
Expand All @@ -27,7 +33,7 @@ export const routePages: RoutePages = {
},
[RouteNameType.BigClassPage]: {
title: "BigClassPage",
component: () => Promise.resolve({ default: () => null }),
component: () => import("../pages/BigClassPage"),
},
[RouteNameType.RoomDetailPage]: {
title: "RoomDetailPage",
Expand Down
19 changes: 19 additions & 0 deletions web/flat-web/src/assets/image/class-begin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions web/flat-web/src/assets/image/class-pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions web/flat-web/src/assets/image/class-resume.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions web/flat-web/src/assets/image/class-stop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions web/flat-web/src/assets/image/cloud-storage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions web/flat-web/src/assets/image/exit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions web/flat-web/src/assets/image/folder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions web/flat-web/src/assets/image/follow-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions web/flat-web/src/assets/image/follow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions web/flat-web/src/assets/image/hide-side-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions web/flat-web/src/assets/image/hide-side.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions web/flat-web/src/assets/image/invite-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions web/flat-web/src/assets/image/invite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions web/flat-web/src/assets/image/pages.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions web/flat-web/src/components/AvatarCanvas.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.video-avatar-canvas {
width: 100%;
height: 100%;
}
Loading

0 comments on commit 0cac4f0

Please sign in to comment.