diff --git a/.gitignore b/.gitignore index f2c9a9677..a817b0c54 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /node_modules /dist /static/lbrynet +/static/daemon /static/locales yarn-error.log package-lock.json diff --git a/package.json b/package.json index 73bb18207..680d75fed 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "compile:web": "webpack --config webpack.web.config.js", "compile": "yarn compile:electron && yarn compile:web", "dev:electron": "webpack-dev-server --hot --progress --config webpack.electron.config.js", - "dev:web": "webpack-dev-server --hot --progress --config webpack.web.config.js", + "dev:web": "webpack-dev-server --open --hot --progress --config webpack.web.config.js", "dev:internal-apis": "LBRY_API_URL='http://localhost:8080' yarn dev:electron", "run:electron": "electron ./dist/electron/main.js", "run:web": "yarn compile:web && node ./dist/web/server.js", diff --git a/src/ui/component/errorBoundary/view.jsx b/src/ui/component/errorBoundary/view.jsx index 4c254ac7e..7b91753e9 100644 --- a/src/ui/component/errorBoundary/view.jsx +++ b/src/ui/component/errorBoundary/view.jsx @@ -38,7 +38,8 @@ export default class ErrorBoundary extends React.Component { } render() { - if (!this.state.hasError) { + console.log('app.env', app.env); + if (this.state.hasError) { return (
{ // Supported mediaTypes const mediaTypes = { + // @if TARGET='app' '3D-file': , + // @endif + application: !source.url ? null : ( this.processSandboxRef(element)} diff --git a/src/ui/component/splash/view.jsx b/src/ui/component/splash/view.jsx index 83234b54f..98b0dbc78 100644 --- a/src/ui/component/splash/view.jsx +++ b/src/ui/component/splash/view.jsx @@ -40,7 +40,7 @@ export default class SplashScreen extends React.PureComponent { details: __('Starting up'), message: __('Connecting'), launchedModal: false, - error: true, + error: false, launchWithIncompatibleDaemon: false, isRunning: false, }; @@ -213,7 +213,7 @@ export default class SplashScreen extends React.PureComponent { return ( - ; + {/* Temp hack: don't show any modals on splash screen daemon is running; daemon doesn't let you quit during startup, so the "Quit" buttons in the modals won't work. */} diff --git a/src/ui/index.jsx b/src/ui/index.jsx index c9df50954..1024ba20d 100644 --- a/src/ui/index.jsx +++ b/src/ui/index.jsx @@ -1,4 +1,3 @@ -/* eslint-disable no-console */ import ErrorBoundary from 'component/errorBoundary'; import App from 'component/app'; import SnackBar from 'component/snackBar'; @@ -215,8 +214,8 @@ const init = () => { // @if TARGET='app' moment.locale(remote.app.getLocale()); + /* eslint-disable no-console */ autoUpdater.on('error', error => { - // eslint-disable-next-line no-console console.error(error.message); }); @@ -232,6 +231,7 @@ const init = () => { app.store.dispatch(doAutoUpdate()); }); } + /* eslint-enable no-console */ app.store.dispatch(doUpdateIsNightAsync()); // @endif @@ -257,16 +257,14 @@ const init = () => { // @endif } - if (false && window.sessionStorage.getItem('loaded') === 'y') { + if (window.sessionStorage.getItem('loaded') === 'y') { onDaemonReady(); } else { ReactDOM.render( app.store.dispatch(doAuthenticate(pjson.version))} - onReadyToLaunch={() => { - // onDaemonReady - }} + onReadyToLaunch={onDaemonReady} /> , document.getElementById('app') @@ -275,6 +273,3 @@ const init = () => { }; init(); - -/* eslint-enable react/jsx-filename-extension */ -/* eslint-enable no-console */ diff --git a/src/ui/page/help/view.jsx b/src/ui/page/help/view.jsx index 4f9d02a37..c45c57f2f 100644 --- a/src/ui/page/help/view.jsx +++ b/src/ui/page/help/view.jsx @@ -234,7 +234,7 @@ class HelpPage extends React.PureComponent { {__('Daemon (lbrynet)')} - {ver ? ver.lbrynet_version : __('Loading')} + {ver ? ver.lbrynet_version : __('Loading...')} {__('Connected Email')} diff --git a/src/ui/scss/component/_load-screen.scss b/src/ui/scss/component/_load-screen.scss index 0e87cbb33..5d5bd6a88 100644 --- a/src/ui/scss/component/_load-screen.scss +++ b/src/ui/scss/component/_load-screen.scss @@ -18,22 +18,12 @@ } .load-screen__button { + transition: none; color: $lbry-white; - // border-bottom: 1px solid $lbry-white; + border-bottom: 1px solid $lbry-white; &:hover { - // border-bottom: 1px solid $lbry-blue-1; - color: $lbry-blue-1; - } -} -.load-screen__button:not(:disabled) { - &:not(:hover) { - color: $lbry-white; - // border-bottom: 1px solid $lbry-white; - } - - &:hover { - // border-bottom: 1px solid $lbry-blue-1; + border-bottom: 1px solid $lbry-blue-1; color: $lbry-blue-1; } } diff --git a/build/icon.ico b/static/img/favicon.ico similarity index 100% rename from build/icon.ico rename to static/img/favicon.ico diff --git a/static/img/lbry-bg.png b/static/img/lbry-bg.png deleted file mode 100644 index b1a4b1901..000000000 Binary files a/static/img/lbry-bg.png and /dev/null differ diff --git a/static/img/lbry-dark-1600x528.png b/static/img/lbry-dark-1600x528.png deleted file mode 100644 index cc9837e36..000000000 Binary files a/static/img/lbry-dark-1600x528.png and /dev/null differ diff --git a/static/img/lbry-white-485x160.png b/static/img/lbry-white-485x160.png deleted file mode 100644 index d8da148a8..000000000 Binary files a/static/img/lbry-white-485x160.png and /dev/null differ diff --git a/static/img/lbry-white-909x300.png b/static/img/lbry-white-909x300.png deleted file mode 100644 index 1428e1052..000000000 Binary files a/static/img/lbry-white-909x300.png and /dev/null differ diff --git a/webpack.base.config.js b/webpack.base.config.js index 74beb686e..355eb54b5 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -16,6 +16,7 @@ const baseConfig = { rules: [ { test: /\.jsx?$/, + exclude: /node_modules/, loader: 'babel-loader', }, { @@ -51,6 +52,9 @@ const baseConfig = { test: /\.glsl/, use: { loader: 'file-loader', + options: { + outputPath: 'ui/three', + }, }, }, ], diff --git a/webpack.web.config.js b/webpack.web.config.js index fa91643d5..3a93c3ade 100644 --- a/webpack.web.config.js +++ b/webpack.web.config.js @@ -46,6 +46,10 @@ const webConfig = { from: `${STATIC_ROOT}/index.html`, to: `${DIST_ROOT}/web/index.html`, }, + { + from: `${STATIC_ROOT}/img/favicon.ico`, + to: `${DIST_ROOT}/web/favicon.ico`, + }, { from: `${WEB_PLATFORM_ROOT}/server.js`, to: `${DIST_ROOT}/web/server.js`,