Socialify

Folder ..

Viewing main.ts
41 lines (37 loc) • 1.5 KB

 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
import "./styles/style.css";
import { Components } from "./components/components";
import { Functions } from "./functions/functions";
// import { sendNotification } from "./handlers/notficationHandler";
// import { getAuth } from "firebase/auth";
// import { app } from "./handlers/firebaseHandler";

// const auth = getAuth(app);
// auth.onAuthStateChanged((user) => {
    
//     document.getElementById('notfiyTest')?.addEventListener('click', () => {
//         const title = 'This is a test notification';
//         const messages = [
//             "Have a great day!",
//             "I hope you're doing well.",
//             "What's up?",
//             "How are you?",
//             "I'm thinking of you.",
//             "I'm here for you if you need anything.",
//             "I'm proud of you.",
//             "You're doing great.",
//             "I believe in you.",
//             "You can do anything you set your mind to.",
//             "Don't give up on your dreams.",
//             "You're amazing.",
//             "I love you.",
//             "I'm grateful for you.",
//             "You make me happy.",
//             "I'm lucky to have you in my life.",
//             "You're my best friend.",
//             "I'm so glad we're friends.",
//             "I can't wait to see you again soon."
//           ];
//         const TestNotification = messages[Math.floor(Math.random() * messages.length)];
//         sendNotification(user?.uid as string, { title: title, body: TestNotification, link: '#' });
//     });
// });

Functions;
Components;