1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Removed compare notification

This commit is contained in:
Jon Ziebell 2021-02-03 22:48:48 -05:00
parent ae3a72c791
commit 324ad07c08
3 changed files with 0 additions and 41 deletions

View File

@ -1,33 +0,0 @@
/**
* Notification at the top of the new compare page to help users along with
* the change.
*/
beestat.component.card.compare_notification = function() {
beestat.component.card.apply(this, arguments);
};
beestat.extend(beestat.component.card.compare_notification, beestat.component.card);
beestat.component.card.compare_notification.prototype.decorate_contents_ = function(parent) {
parent.style('background', beestat.style.color.blue.light);
parent.appendChild($.createElement('p').innerText('The comparisons you\'ve become accustomed to have evolved into a new feature: Metrics! Please be patient over the next few weeks as they are refined.'));
new beestat.component.button()
.set_icon('information')
.set_text('Learn more and discuss this change')
.set_background_color(beestat.style.color.blue.dark)
.set_background_hover_color(beestat.style.color.blue.base)
.addEventListener('click', function() {
window.open('https://community.beestat.io/t/metrics-are-replacing-scores/347');
})
.render(parent);
};
/**
* Get the title of the card.
*
* @return {string} The title.
*/
beestat.component.card.compare_notification.prototype.get_title_ = function() {
return 'Things have changed...';
};

View File

@ -52,7 +52,6 @@ if($setting->get('environment') === 'dev' || $setting->get('environment') === 'd
echo '<script src="/js/component/card.js"></script>' . PHP_EOL;
echo '<script src="/js/component/card/runtime_thermostat_summary.js"></script>' . PHP_EOL;
echo '<script src="/js/component/card/alerts.js"></script>' . PHP_EOL;
echo '<script src="/js/component/card/compare_notification.js"></script>' . PHP_EOL;
echo '<script src="/js/component/card/comparison_settings.js"></script>' . PHP_EOL;
echo '<script src="/js/component/card/early_access.js"></script>' . PHP_EOL;
echo '<script src="/js/component/card/demo.js"></script>' . PHP_EOL;

View File

@ -33,13 +33,6 @@ beestat.layer.compare.prototype.decorate_ = function(parent) {
]);
}
cards.push([
{
'card': new beestat.component.card.compare_notification(),
'size': 12
}
]);
cards.push([
{
'card': new beestat.component.card.comparison_settings(