Skip to content

Commit bd1fb4c

Browse files
authored
Merge pull request #2011 from ethereum/loader
Add loader to splash screen
2 parents 54e6ff0 + 12f2676 commit bd1fb4c

File tree

8 files changed

+39
-11
lines changed

8 files changed

+39
-11
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
environment:
183183
- COMMIT_AUTHOR_EMAIL: "[email protected]"
184184
- COMMIT_AUTHOR: "Circle CI"
185-
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/runtime.js dist/apps/remix-ide/vendor.js dist/apps/remix-ide/favicon.ico"
185+
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/runtime.js dist/apps/remix-ide/vendor.js dist/apps/remix-ide/favicon.ico dist/apps/remix-ide/vendors~app.js dist/apps/remix-ide/app.js"
186186
working_directory: ~/remix-project
187187
parallelism: 7
188188
steps:
@@ -220,7 +220,7 @@ jobs:
220220
environment:
221221
- COMMIT_AUTHOR_EMAIL: "[email protected]"
222222
- COMMIT_AUTHOR: "Circle CI"
223-
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
223+
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico dist/apps/remix-ide/vendors~app.js dist/apps/remix-ide/app.js"
224224
working_directory: ~/remix-project
225225

226226
steps:
@@ -248,7 +248,7 @@ jobs:
248248
environment:
249249
- COMMIT_AUTHOR_EMAIL: "[email protected]"
250250
- COMMIT_AUTHOR: "Circle CI"
251-
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
251+
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico dist/apps/remix-ide/vendors~app.js dist/apps/remix-ide/app.js"
252252
working_directory: ~/remix-project
253253

254254
steps:
@@ -274,7 +274,7 @@ jobs:
274274
environment:
275275
- COMMIT_AUTHOR_EMAIL: "[email protected]"
276276
- COMMIT_AUTHOR: "Circle CI"
277-
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
277+
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico dist/apps/remix-ide/vendors~app.js dist/apps/remix-ide/app.js"
278278
working_directory: ~/remix-project
279279

280280
steps:
@@ -302,7 +302,7 @@ jobs:
302302
environment:
303303
- COMMIT_AUTHOR_EMAIL: "[email protected]"
304304
- COMMIT_AUTHOR: "Circle CI"
305-
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico"
305+
- FILES_TO_PACKAGE: "dist/apps/remix-ide/assets dist/apps/remix-ide/production.index.html dist/apps/remix-ide/main.js dist/apps/remix-ide/polyfills.js dist/apps/remix-ide/favicon.ico dist/apps/remix-ide/vendors~app.js dist/apps/remix-ide/app.js"
306306
working_directory: ~/remix-project
307307

308308
steps:

apps/remix-ide/ci/deploy_from_travis_remix-alpha.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cp -r $FILES_TO_PACKAGE "./"
1515
rm -rf dist
1616
ls
1717
mv production.index.html index.html
18-
FILES_TO_DEPLOY="assets index.html main.js polyfills.js favicon.ico"
18+
FILES_TO_DEPLOY="assets index.html main.js polyfills.js favicon.ico vendors~app.js app.js"
1919
# ZIP the whole directory
2020
zip -r remix-$SHA.zip $FILES_TO_DEPLOY
2121
# -f is needed because "build" is part of .gitignore

apps/remix-ide/ci/deploy_from_travis_remix-beta.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cp -r $FILES_TO_PACKAGE "./"
1515
rm -rf dist
1616
ls
1717
mv production.index.html index.html
18-
FILES_TO_DEPLOY="assets index.html main.js polyfills.js favicon.ico"
18+
FILES_TO_DEPLOY="assets index.html main.js polyfills.js favicon.ico vendors~app.js app.js"
1919
# ZIP the whole directory
2020
zip -r remix-$SHA.zip $FILES_TO_DEPLOY
2121
# -f is needed because "build" is part of .gitignore

apps/remix-ide/ci/deploy_from_travis_remix-live.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cp -r $FILES_TO_PACKAGE "./"
1515
rm -rf dist
1616
ls
1717
mv production.index.html index.html
18-
FILES_TO_DEPLOY="assets index.html main.js polyfills.js"
18+
FILES_TO_DEPLOY="assets index.html main.js polyfills.js vendors~app.js app.js"
1919
# ZIP the whole directory
2020
zip -r remix-$SHA.zip $FILES_TO_DEPLOY
2121
# -f is needed because "build" is part of .gitignore

apps/remix-ide/src/index.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.centered {
2+
position : fixed;
3+
top : 20%;
4+
left : 45%;
5+
width : 200px;
6+
height : 200px;
7+
}
8+
.centered svg path {
9+
fill: var(--secondary);
10+
}
11+
.centered svg polygon {
12+
fill : var(--secondary);
13+
}
14+
.splash {
15+
text-align: center;
16+
}
17+
.version {
18+
cursor: pointer;
19+
font-size: 0.8rem;
20+
font-weight: normal;
21+
max-width: 300px;
22+
}

apps/remix-ide/src/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import React from 'react'
33
import { render } from 'react-dom'
44
// eslint-disable-next-line no-unused-vars
55
import { RemixApp } from '@remix-ui/app'
6+
import * as packageJson from '../../../package.json'
7+
import './index.css'
68

79
(function () {
810
render(
@@ -15,6 +17,11 @@ import { RemixApp } from '@remix-ui/app'
1517
</svg>
1618
<div className="info-secondary splash">
1719
REMIX IDE
20+
<br />
21+
<span className='version'> v{ packageJson.version }</span>
22+
</div>
23+
<div style={{ marginTop: '50%', textAlign: 'center' }}>
24+
<i className="fas fa-spinner fa-spin fa-2x"></i>
1825
</div>
1926
</div>
2027
</React.StrictMode>,
@@ -35,3 +42,4 @@ import ('./app').then((AppComponent) => {
3542
}).catch(err => {
3643
console.log('Error on loading Remix:', err)
3744
})
45+

libs/remix-ui/app/src/lib/remix-app/remix-app.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useEffect, useRef, useState } from 'react'
22
import './style/remix-app.css'
33
import { RemixUIMainPanel } from '@remix-ui/panel'
4-
import RemixSplashScreen from './components/splashscreen'
54
import MatomoDialog from './components/modals/matomo'
65
import OriginWarning from './components/modals/origin-warning'
76
import DragBar from './components/dragbar/dragbar'
@@ -89,7 +88,6 @@ const RemixApp = (props: IRemixAppUi) => {
8988

9089
return (
9190
<AppProvider value={value}>
92-
<RemixSplashScreen hide={appReady}></RemixSplashScreen>
9391
<OriginWarning></OriginWarning>
9492
<MatomoDialog hide={!appReady}></MatomoDialog>
9593

libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
290290
<div>
291291
<i className="pl-4 text-danger fas fa-exclamation-triangle"></i>
292292
<span className="px-2 remixui_home_text text-danger mt-4 pt-4">
293-
Scam Alert: Beware of Youtube videos promoting "liquidity front runner bots" asking to paste contract code into Remix IDE.
293+
Scam Alert: Beware of videos promoting "liquidity front runner bots" asking to paste contract code into Remix IDE.
294294
</span>
295295
<a className="remixui_home_text" target="__blank" href="https://medium.com/remix-ide/remix-in-youtube-crypto-scams-71c338da32d">Learn more</a>
296296
</div>

0 commit comments

Comments
 (0)