-
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.
- Loading branch information
Showing
14 changed files
with
309 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = 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,33 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended" | ||
], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"ignorePatterns": ["dist"], | ||
"rules": { | ||
"indent": ["error", 2], | ||
"quotes": ["error", "single"], | ||
"semi": ["error", "always"], | ||
"jsx-quotes": ["error", "prefer-single"] | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
</head> | ||
|
||
<body> | ||
<script> | ||
document.querySelector('body').style.overflow='hidden' | ||
document.querySelector('body').style.overflow = 'hidden' | ||
</script> | ||
<div id="root"></div> | ||
</body> | ||
|
||
|
||
|
||
</html> | ||
</html> |
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,21 +1,22 @@ | ||
.menuOptions{ | ||
color:white; | ||
.menuOptions { | ||
color: white; | ||
padding-top: 1rem; | ||
font-size: 13px; | ||
} | ||
.dynamoLogo{ | ||
|
||
.dynamoLogo { | ||
width: 153px; | ||
} | ||
|
||
.bottomMenu{ | ||
.bottomMenu { | ||
height: 50%; | ||
} | ||
|
||
.welcomeRow{ | ||
.welcomeRow { | ||
margin-top: 20px !important; | ||
} | ||
|
||
.screenBackground{ | ||
.screenBackground { | ||
height: 377px; | ||
width: 320px; | ||
} | ||
} |
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,30 +1,32 @@ | ||
.progress-bar-container { | ||
height: 4px; | ||
margin: 10px 0px; | ||
background: rgba(255, 255, 255, 0.1); | ||
border-radius: 25px; | ||
position:relative; | ||
} | ||
|
||
.progress-bar-indicator { | ||
height: 100%; | ||
border-radius: 25px; | ||
-webkit-mask:linear-gradient(#fff 0 0); | ||
mask:linear-gradient(#fff 0 0); | ||
} | ||
.progress-bar-indicator::before { | ||
content:""; | ||
position:absolute; | ||
top:0; | ||
left:0; | ||
right:0; | ||
bottom:0; | ||
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1), #38ABDF, #38ABDF); | ||
} | ||
height: 4px; | ||
margin: 10px 0px; | ||
background: rgba(255, 255, 255, 0.1); | ||
border-radius: 25px; | ||
position: relative; | ||
} | ||
|
||
.dynamicOptions{ | ||
margin-top: 50px; | ||
} | ||
.loadingTimeFooter{ | ||
font-size: 9px; | ||
} | ||
.progress-bar-indicator { | ||
height: 100%; | ||
border-radius: 25px; | ||
-webkit-mask: linear-gradient(#fff 0 0); | ||
mask: linear-gradient(#fff 0 0); | ||
} | ||
|
||
.progress-bar-indicator::before { | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1), #38ABDF, #38ABDF); | ||
} | ||
|
||
.dynamicOptions { | ||
margin-top: 50px; | ||
} | ||
|
||
.loadingTimeFooter { | ||
font-size: 9px; | ||
} |
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,52 +1,49 @@ | ||
import React from 'react'; | ||
import './Dynamic.css' | ||
|
||
class Dynamic extends React.Component { | ||
import './Dynamic.css'; | ||
|
||
constructor() { | ||
super(); | ||
this.state = { | ||
barSize: "0%", | ||
dynamoVersion: "", | ||
loadDescription: "", | ||
loadingTime: "Loading time: " | ||
} | ||
class Dynamic extends React.Component { | ||
constructor() { | ||
super(); | ||
this.state = { | ||
barSize: '0%', | ||
dynamoVersion: '', | ||
loadDescription: '', | ||
loadingTime: 'Loading time: ', | ||
}; | ||
|
||
//This is a reference to the DOM of the project that will be called in Dynamo to fill the loading properties | ||
window.setBarProperties = this.setBarProperties.bind(this); | ||
} | ||
//This is a reference to the DOM of the project that will be called in Dynamo to fill the loading properties | ||
window.setBarProperties = this.setBarProperties.bind(this); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className='dynamicOptions'> | ||
<div > | ||
Dynamo core {this.state.dynamoVersion} | ||
</div> | ||
<div> | ||
<div className="progress-bar-container"> | ||
<div className="progress-bar-indicator" style={{ width: this.state.barSize }} ></div> | ||
</div> | ||
</div> | ||
<div > | ||
{this.state.loadDescription} | ||
</div> | ||
<br/> | ||
<br/> | ||
<div className='loadingTimeFooter' > | ||
{this.state.loadingTime} | ||
</div> | ||
</div> | ||
); | ||
} | ||
render() { | ||
return ( | ||
<div className='dynamicOptions'> | ||
<div>Dynamo core {this.state.dynamoVersion}</div> | ||
<div> | ||
<div className='progress-bar-container'> | ||
<div | ||
className='progress-bar-indicator' | ||
style={{ width: this.state.barSize }} | ||
></div> | ||
</div> | ||
</div> | ||
<div>{this.state.loadDescription}</div> | ||
<br /> | ||
<br /> | ||
<div className='loadingTimeFooter'>{this.state.loadingTime}</div> | ||
</div> | ||
); | ||
} | ||
|
||
setBarProperties(dynamoVersion, loadDescription, barSize, loadingTime) { | ||
this.setState({ | ||
barSize: barSize, | ||
dynamoVersion: dynamoVersion, | ||
loadDescription: loadDescription, | ||
loadingTime: loadingTime | ||
}) | ||
} | ||
setBarProperties(dynamoVersion, loadDescription, barSize, loadingTime) { | ||
this.setState({ | ||
barSize: barSize, | ||
dynamoVersion: dynamoVersion, | ||
loadDescription: loadDescription, | ||
loadingTime: loadingTime, | ||
}); | ||
} | ||
} | ||
|
||
export default Dynamic; | ||
export default Dynamic; |
Oops, something went wrong.