Merge branch 'master' into i18n + Windows development batch files
This commit is contained in:
commit
636a302e70
16 changed files with 85 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.11.0
|
current_version = 0.11.3
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<candidate>\d+))?
|
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<candidate>\d+))?
|
||||||
|
|
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -27,6 +27,16 @@ Web UI version numbers should always match the corresponding version of LBRY App
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
||||||
|
## [0.11.3] - 2017-05-26
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* Fixed always showing welcome message on run
|
||||||
|
* "Fixed" upgrade process
|
||||||
|
* Version info now shows properly on Help page
|
||||||
|
* Claim info is properly accessed on Publish page
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.11.0] - 2017-05-25
|
## [0.11.0] - 2017-05-25
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -68,6 +68,7 @@ function checkForNewVersion(callback) {
|
||||||
'User-Agent': `LBRY/${localVersion}`,
|
'User-Agent': `LBRY/${localVersion}`,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const req = https.get(Object.assign(opts, url.parse(LATEST_RELEASE_API_URL)), (res) => {
|
const req = https.get(Object.assign(opts, url.parse(LATEST_RELEASE_API_URL)), (res) => {
|
||||||
res.on('data', (data) => {
|
res.on('data', (data) => {
|
||||||
result += data;
|
result += data;
|
||||||
|
@ -76,7 +77,6 @@ function checkForNewVersion(callback) {
|
||||||
const tagName = JSON.parse(result).tag_name;
|
const tagName = JSON.parse(result).tag_name;
|
||||||
const [_, remoteVersion] = tagName.match(/^v([\d.]+(?:-?rc\d+)?)$/);
|
const [_, remoteVersion] = tagName.match(/^v([\d.]+(?:-?rc\d+)?)$/);
|
||||||
if (!remoteVersion) {
|
if (!remoteVersion) {
|
||||||
console.log('Malformed remote version string:', tagName);
|
|
||||||
if (win) {
|
if (win) {
|
||||||
win.webContents.send('version-info-received', null);
|
win.webContents.send('version-info-received', null);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "LBRY",
|
"name": "LBRY",
|
||||||
"version": "0.11.0",
|
"version": "0.11.3",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"description": "LBRY is a fully decentralized, open-source protocol facilitating the discovery, access, and (sometimes) purchase of data.",
|
"description": "LBRY is a fully decentralized, open-source protocol facilitating the discovery, access, and (sometimes) purchase of data.",
|
||||||
"author": {
|
"author": {
|
||||||
|
|
5
electron.bat
Normal file
5
electron.bat
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
start /min %~dp0node_modules\.bin\electron app
|
||||||
|
|
||||||
|
pause
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ export function doCheckUpgradeAvailable() {
|
||||||
return function(dispatch, getState) {
|
return function(dispatch, getState) {
|
||||||
const state = getState()
|
const state = getState()
|
||||||
|
|
||||||
lbry.getVersionInfo().then(({remoteVersion, upgradeAvailable}) => {
|
lbry.getAppVersionInfo().then(({remoteVersion, upgradeAvailable}) => {
|
||||||
if (upgradeAvailable) {
|
if (upgradeAvailable) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.UPDATE_VERSION,
|
type: types.UPDATE_VERSION,
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {RewardLink} from 'component/reward-link';
|
||||||
import {FormRow} from "../component/form.js";
|
import {FormRow} from "../component/form.js";
|
||||||
import {CreditAmount, Address} from "../component/common.js";
|
import {CreditAmount, Address} from "../component/common.js";
|
||||||
import {getLocal, setLocal} from '../utils.js';
|
import {getLocal, setLocal} from '../utils.js';
|
||||||
import {TYPE_NEW_USER} from '../rewards'
|
import rewards from '../rewards'
|
||||||
|
|
||||||
|
|
||||||
class SubmitEmailStage extends React.Component {
|
class SubmitEmailStage extends React.Component {
|
||||||
|
@ -288,7 +288,7 @@ export class AuthOverlay extends React.Component {
|
||||||
} else {
|
} else {
|
||||||
lbryio.call('reward', 'list', {}).then((userRewards) => {
|
lbryio.call('reward', 'list', {}).then((userRewards) => {
|
||||||
userRewards.filter(function(reward) {
|
userRewards.filter(function(reward) {
|
||||||
return reward.reward_type == TYPE_NEW_USER && reward.transaction_id;
|
return reward.reward_type == rewards.TYPE_NEW_USER && reward.transaction_id;
|
||||||
}).length ?
|
}).length ?
|
||||||
this.setStage(null) :
|
this.setStage(null) :
|
||||||
this.setStage("welcome")
|
this.setStage("welcome")
|
||||||
|
|
|
@ -17,7 +17,7 @@ class DownloadingModal extends React.Component {
|
||||||
return (
|
return (
|
||||||
<Modal isOpen={true} contentLabel={__("Downloading Update")} type="custom">
|
<Modal isOpen={true} contentLabel={__("Downloading Update")} type="custom">
|
||||||
{__("Downloading Update")}{downloadProgress ? `: ${downloadProgress}%` : null}
|
{__("Downloading Update")}{downloadProgress ? `: ${downloadProgress}%` : null}
|
||||||
<Line percent={downloadProgress} strokeWidth="4"/>
|
<Line percent={downloadProgress ? downloadProgress : 0} strokeWidth="4"/>
|
||||||
{downloadComplete ? (
|
{downloadComplete ? (
|
||||||
<div>
|
<div>
|
||||||
<br />
|
<br />
|
||||||
|
|
|
@ -360,7 +360,7 @@ lbry.showMenuIfNeeded = function() {
|
||||||
sessionStorage.setItem('menuShown', chosenMenu);
|
sessionStorage.setItem('menuShown', chosenMenu);
|
||||||
};
|
};
|
||||||
|
|
||||||
lbry.getVersionInfo = function() {
|
lbry.getAppVersionInfo = function() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
ipcRenderer.once('version-info-received', (event, versionInfo) => { resolve(versionInfo) });
|
ipcRenderer.once('version-info-received', (event, versionInfo) => { resolve(versionInfo) });
|
||||||
ipcRenderer.send('version-info-requested');
|
ipcRenderer.send('version-info-requested');
|
||||||
|
|
|
@ -18,8 +18,7 @@ import {AuthOverlay} from 'component/auth.js';
|
||||||
import {
|
import {
|
||||||
doChangePath,
|
doChangePath,
|
||||||
doNavigate,
|
doNavigate,
|
||||||
doDaemonReady,
|
doDaemonReady
|
||||||
doHistoryPush
|
|
||||||
} from 'actions/app'
|
} from 'actions/app'
|
||||||
import {
|
import {
|
||||||
doFetchDaemonSettings
|
doFetchDaemonSettings
|
||||||
|
|
|
@ -3,6 +3,7 @@ import React from 'react';
|
||||||
import lbry from 'lbry.js';
|
import lbry from 'lbry.js';
|
||||||
import Link from 'component/link';
|
import Link from 'component/link';
|
||||||
import SubHeader from 'component/subHeader'
|
import SubHeader from 'component/subHeader'
|
||||||
|
import {BusyMessage} from 'component/common'
|
||||||
import {version as uiVersion} from 'json!../../../package.json';
|
import {version as uiVersion} from 'json!../../../package.json';
|
||||||
|
|
||||||
class HelpPage extends React.Component {
|
class HelpPage extends React.Component {
|
||||||
|
@ -16,11 +17,16 @@ class HelpPage extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
lbry.getVersionInfo((info) => {
|
lbry.getAppVersionInfo().then((info) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
versionInfo: info,
|
appVersionInfo: info,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
lbry.call('version', {}, (info) => {
|
||||||
|
this.setState({
|
||||||
|
versionInfo: info
|
||||||
|
})
|
||||||
|
})
|
||||||
lbry.getSessionInfo((info) => {
|
lbry.getSessionInfo((info) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
lbryId: info.lbry_id,
|
lbryId: info.lbry_id,
|
||||||
|
@ -37,7 +43,7 @@ class HelpPage extends React.Component {
|
||||||
|
|
||||||
if (this.state.versionInfo) {
|
if (this.state.versionInfo) {
|
||||||
ver = this.state.versionInfo;
|
ver = this.state.versionInfo;
|
||||||
|
console.log(ver)
|
||||||
if (ver.os_system == 'Darwin') {
|
if (ver.os_system == 'Darwin') {
|
||||||
osName = (parseInt(ver.os_release.match(/^\d+/)) < 16 ? 'Mac OS X' : 'Mac OS');
|
osName = (parseInt(ver.os_release.match(/^\d+/)) < 16 ? 'Mac OS X' : 'Mac OS');
|
||||||
|
|
||||||
|
@ -87,14 +93,14 @@ class HelpPage extends React.Component {
|
||||||
<div className="meta">{__("Thanks! LBRY is made by its users.")}</div>
|
<div className="meta">{__("Thanks! LBRY is made by its users.")}</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{!ver ? null :
|
<section className="card">
|
||||||
<section className="card">
|
|
||||||
<div className="card__title-primary"><h3>{__("About")}</h3></div>
|
<div className="card__title-primary"><h3>{__("About")}</h3></div>
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
{ver.lbrynet_update_available || ver.lbryum_update_available ?
|
{this.state.appVersionInfo ?
|
||||||
|
(ver.lbrynet_update_available || ver.lbryum_update_available ?
|
||||||
<p>{__("A newer version of LBRY is available.")} <Link href={newVerLink} label={__("Download LBRY %s now!"), ver.remote_lbrynet} /></p>
|
<p>{__("A newer version of LBRY is available.")} <Link href={newVerLink} label={__("Download LBRY %s now!"), ver.remote_lbrynet} /></p>
|
||||||
: <p>{__("Your copy of LBRY is up to date.")}</p>
|
: <p>{__("Your copy of LBRY is up to date.")}</p>
|
||||||
}
|
{ ver ?
|
||||||
<table className="table-standard">
|
<table className="table-standard">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -118,10 +124,11 @@ class HelpPage extends React.Component {
|
||||||
<td>{this.state.lbryId}</td>
|
<td>{this.state.lbryId}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table> :
|
||||||
</div>
|
<BusyMessage message="Looking up version info" />
|
||||||
</section>
|
}
|
||||||
}
|
</div>
|
||||||
|
</section>
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,18 +206,18 @@ class PublishPage extends React.Component {
|
||||||
nameResolved: false,
|
nameResolved: false,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const topClaimIsMine = (myClaimInfo && myClaimInfo.claim.amount >= claimInfo.claim.amount);
|
const topClaimIsMine = myClaimInfo && myClaimInfo.amount >= claimInfo.amount;
|
||||||
const newState = {
|
const newState = {
|
||||||
nameResolved: true,
|
nameResolved: true,
|
||||||
topClaimValue: parseFloat(claimInfo.claim.amount),
|
topClaimValue: parseFloat(claimInfo.amount),
|
||||||
myClaimExists: !!myClaimInfo,
|
myClaimExists: !!myClaimInfo,
|
||||||
myClaimValue: myClaimInfo ? parseFloat(myClaimInfo.claim.amount) : null,
|
myClaimValue: myClaimInfo ? parseFloat(myClaimInfo.amount) : null,
|
||||||
myClaimMetadata: myClaimInfo ? myClaimInfo.value : null,
|
myClaimMetadata: myClaimInfo ? myClaimInfo.value : null,
|
||||||
topClaimIsMine: topClaimIsMine,
|
topClaimIsMine: topClaimIsMine,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (topClaimIsMine) {
|
if (topClaimIsMine) {
|
||||||
newState.bid = myClaimInfo.claim.amount;
|
newState.bid = myClaimInfo.amount;
|
||||||
} else if (this.state.myClaimMetadata) {
|
} else if (this.state.myClaimMetadata) {
|
||||||
// Just changed away from a name we have a claim on, so clear pre-fill
|
// Just changed away from a name we have a claim on, so clear pre-fill
|
||||||
newState.bid = '';
|
newState.bid = '';
|
||||||
|
|
|
@ -27,7 +27,7 @@ reducers[types.CHANGE_PATH] = function(state, action) {
|
||||||
reducers[types.UPGRADE_CANCELLED] = function(state, action) {
|
reducers[types.UPGRADE_CANCELLED] = function(state, action) {
|
||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
downloadProgress: null,
|
downloadProgress: null,
|
||||||
downloadComplete: false,
|
upgradeDownloadComplete: false,
|
||||||
modal: null,
|
modal: null,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,8 @@ reducers[types.UPGRADE_CANCELLED] = function(state, action) {
|
||||||
reducers[types.UPGRADE_DOWNLOAD_COMPLETED] = function(state, action) {
|
reducers[types.UPGRADE_DOWNLOAD_COMPLETED] = function(state, action) {
|
||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
downloadDir: action.data.dir,
|
downloadDir: action.data.dir,
|
||||||
downloadComplete: true,
|
upgradeDownloading: false,
|
||||||
|
upgradeDownloadCompleted: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,13 +46,6 @@ reducers[types.UPGRADE_DOWNLOAD_STARTED] = function(state, action) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
reducers[types.UPGRADE_DOWNLOAD_COMPLETED] = function(state, action) {
|
|
||||||
return Object.assign({}, state, {
|
|
||||||
upgradeDownloading: false,
|
|
||||||
upgradeDownloadCompleted: true
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
reducers[types.SKIP_UPGRADE] = function(state, action) {
|
reducers[types.SKIP_UPGRADE] = function(state, action) {
|
||||||
sessionStorage.setItem('upgradeSkipped', true);
|
sessionStorage.setItem('upgradeSkipped', true);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "lbry-web-ui",
|
"name": "lbry-web-ui",
|
||||||
"version": "0.11.0",
|
"version": "0.11.3",
|
||||||
"description": "LBRY UI",
|
"description": "LBRY UI",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
|
|
33
ui/watch.bat
Normal file
33
ui/watch.bat
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
rmdir %~dp0node_modules /s /q
|
||||||
|
rmdir %~dp0..\node_modules /s /q
|
||||||
|
rmdir %~dp0..\app\node_modules /s /q
|
||||||
|
|
||||||
|
call yarn install
|
||||||
|
|
||||||
|
echo f | xcopy /s /y %~dp0dist %~dp0..\app\dist
|
||||||
|
|
||||||
|
call %~dp0node_modules\.bin\node-sass --output %~dp0..\app\dist\css --sourcemap=none %~dp0scss\
|
||||||
|
|
||||||
|
start /min %~dp0node_modules\.bin\node-sass --output %~dp0..\app\dist\css --sourcemap=none --watch %~dp0scss\ &
|
||||||
|
|
||||||
|
call %~dp0node_modules\.bin\webpack --config webpack.dev.config.js --progress --colors
|
||||||
|
|
||||||
|
start /min %~dp0node_modules\.bin\webpack --config webpack.dev.config.js --progress --colors --watch
|
||||||
|
|
||||||
|
call yarn build:langs
|
||||||
|
|
||||||
|
cp %~dp0build\lang\en.json %~dp0..\app\dist\lang\en.json
|
||||||
|
|
||||||
|
cd %~dp0..\app
|
||||||
|
|
||||||
|
call yarn install
|
||||||
|
|
||||||
|
cd ..\
|
||||||
|
|
||||||
|
call yarn install
|
||||||
|
|
||||||
|
start /min %~dp0..\node_modules\.bin\electron app
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
ENV: JSON.stringify("development"),
|
ENV: JSON.stringify("production"),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
module: {
|
module: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue