-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(engine): add loading percent, logo; change canvas's size to 100%;
update publish action;
- Loading branch information
Showing
17 changed files
with
223 additions
and
220 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,7 +1 @@ | ||
<!doctype html><html><head><meta charset="UTF-8"/><title>Meta3D</title><style>#loading { | ||
display: block; | ||
/* color: #e7981f; */ | ||
/* margin-top: 10px; */ | ||
font-size: 85px; | ||
font-weight: bold; | ||
}</style><script defer="defer" src="static/js/main.js"></script></head><body><section><span id="loading">loading...</span></section><canvas id="canvas" width="800" height="800"></canvas><div id="root_page" style="position:absolute;top:200px;left:200px;z-index:100;display: none;width:400px;height:400px;"></div></body></html> | ||
<!doctype html><html><head><meta charset="UTF-8"/><title>Meta3D</title><script defer="defer" src="static/js/main.js"></script></head><body><div id="ui_root"></div></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
contributes/meta3d-action-publish/publish/static/js/main.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+3.94 KB
contributes/meta3d-action-publish/publish_source/image/gif/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
10 changes: 10 additions & 0 deletions
10
contributes/meta3d-action-publish/publish_source/src/Loading.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React, { useState, useEffect } from 'react'; | ||
import { Row } from 'antd'; | ||
|
||
export let Loading = ({ percent }) => { | ||
return <Row align="middle"> | ||
<img src="./image/png/logo.png" width="64px" height="64px" /> | ||
<img src="./image/gif/loading.gif" width="100px" height="100ps" /> | ||
{"加载中:" + percent.toString() + "%"} | ||
</Row > | ||
}; |
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
Oops, something went wrong.