File size: 2,061 Bytes
25d2b3e ae93751 25d2b3e ae93751 25d2b3e ae93751 25d2b3e ae93751 25d2b3e ae93751 25d2b3e ae93751 25d2b3e ae93751 25d2b3e ae93751 25d2b3e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
وحدة تطبيق نظام الإشعارات الذكي لتحديثات المشروع والتنبيهات
"""
import os
import sys
import streamlit as st
import pandas as pd
import numpy as np
# إضافة مسار النظام للوصول للملفات المشتركة
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../..")))
# استيراد مكونات الإشعارات الذكية
from modules.notifications.smart_notifications import SmartNotificationSystem
class NotificationsApp:
"""وحدة تطبيق نظام الإشعارات الذكي"""
def __init__(self):
"""تهيئة وحدة تطبيق نظام الإشعارات الذكي"""
self.smart_notification_system = SmartNotificationSystem()
def render(self):
"""عرض واجهة وحدة تطبيق نظام الإشعارات الذكي"""
st.markdown("<h2 class='module-title'>نظام الإشعارات الذكي لتحديثات المشروع والتنبيهات</h2>", unsafe_allow_html=True)
st.markdown("""
<div class="module-description">
يتيح لك نظام الإشعارات الذكي متابعة تحديثات المشاريع وتلقي تنبيهات مخصصة حسب أدوارك واهتماماتك.
يمكنك تخصيص إعدادات الإشعارات وجدولة التذكيرات للمواعيد النهائية والمهام.
</div>
""", unsafe_allow_html=True)
# عرض نظام الإشعارات الذكي
self.smart_notification_system.render()
# تشغيل التطبيق بشكل مستقل عند استدعاء الملف مباشرة
if __name__ == "__main__":
st.set_page_config(
page_title="نظام الإشعارات الذكي | WAHBi AI",
page_icon="🔔",
layout="wide",
initial_sidebar_state="expanded"
)
app = NotificationsApp()
app.render() |