mirror of
https://github.com/mue/mue.git
synced 2026-07-16 21:44:22 +02:00
feat: locally store stats so users can see them (no ui yet)
This commit is contained in:
@@ -19,7 +19,7 @@ export default class Favourite extends React.PureComponent {
|
||||
this.setState({
|
||||
favourited: <StarIcon2 onClick={this.favourite} className='topicons' />
|
||||
});
|
||||
window.analytics.postEvent('feature', 'Background favourite');
|
||||
window.stats.postEvent('feature', 'Background favourite');
|
||||
} else {
|
||||
const url = document.getElementById('backgroundImage').style.backgroundImage.replace('url("', '').replace('")', '');
|
||||
|
||||
@@ -38,7 +38,7 @@ export default class Favourite extends React.PureComponent {
|
||||
this.setState({
|
||||
favourited: <StarIcon onClick={this.favourite} className='topicons' />
|
||||
});
|
||||
window.analytics.postEvent('feature', 'Background unfavourite');
|
||||
window.stats.postEvent('feature', 'Background unfavourite');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,14 +44,14 @@ export default class Maximise extends React.PureComponent {
|
||||
});
|
||||
|
||||
this.setAttribute(0, 100);
|
||||
window.analytics.postEvent('feature', 'Background maximise');
|
||||
window.stats.postEvent('feature', 'Background maximise');
|
||||
} else {
|
||||
this.setState({
|
||||
hidden: false
|
||||
});
|
||||
|
||||
this.setAttribute(localStorage.getItem('blur'), localStorage.getItem('brightness'), true);
|
||||
window.analytics.postEvent('feature', 'Background unmaximise');
|
||||
window.stats.postEvent('feature', 'Background unmaximise');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ const downloadImage = async (info) => {
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
window.analytics.postEvent('feature', 'Background download');
|
||||
window.stats.postEvent('feature', 'Background download');
|
||||
};
|
||||
|
||||
export default function PhotoInformation(props) {
|
||||
|
||||
Reference in New Issue
Block a user