34 lines
758 B
JavaScript
Raw Normal View History

2025-12-04 20:29:35 +01:00
/**
* @fileoverview Notifications Page Component for Rantii
* @author retoor <retoor@molodetz.nl>
* @description User notifications view page
* @keywords notifications, page, alerts, mentions, updates
*/
import { BaseComponent } from '../components/base-component.js';
class NotificationsPage extends BaseComponent {
init() {
this.render();
}
render() {
this.addClass('page', 'notifications-page');
this.setHtml(`
<notification-list></notification-list>
`);
}
refresh() {
const list = this.$('notification-list');
if (list) {
list.refresh();
}
}
}
customElements.define('notifications-page', NotificationsPage);
export { NotificationsPage };