Buildtask to copy files; start_url correction; Install button

This commit is contained in:
James Barnsley
2018-07-23 21:05:29 +12:00
parent 7e687fadd9
commit 0ca1aa76ad
12 changed files with 10546 additions and 13816 deletions

View File

@ -120,18 +120,18 @@
// Test mode, use un-minified code
if (test_mode){
js.src = '/iris/app.js?v='+build;
css.href = '/iris/app.css?v='+build;
js.src = '/iris/app.js?v='+build;
// Production-grade, minified app
} else {
js.src = '/iris/app.min.js?v='+build;
css.href = '/iris/app.min.css?v='+build;
js.src = '/iris/app.min.js?v='+build;
}
// And finally inject our CSS/JS tags
document.body.appendChild(js);
document.body.appendChild(css);
document.body.appendChild(js);
</script>

View File

@ -367,7 +367,7 @@ class Settings extends React.Component {
</div>
<div className="field">
{this.props.ui.install_prompt ? <button onClick={e => this.props.ui.install_prompt.prompt()}>Install as App</button> : null}
<button onClick={e => this.props.ui.install_prompt.prompt()} disabled={this.props.ui.install_prompt ? false : true}>Install as App</button>
{upgrade_button}
<button className={"destructive"+(this.props.mopidy.restarting ? ' working' : '')} onClick={e => this.props.pusherActions.restart()}>{this.props.mopidy.restarting ? 'Restarting...' : 'Restart server'}</button>
<ConfirmationButton className="destructive" content="Reset all settings" confirmingContent="Are you sure?" onConfirm={() => this.resetAllSettings()} />

View File

@ -0,0 +1,3 @@
self.addEventListener('fetch', (event) => {
// Nothing doing!
});