krsyer-server-monitor-pro 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +84 -0
- package/lib/controllers/cloudflareController.js +1 -0
- package/lib/controllers/dockerController.js +1 -0
- package/lib/controllers/networkController.js +1 -0
- package/lib/controllers/serverController.js +1 -0
- package/lib/ecosystem.config.js +1 -0
- package/lib/middleware/saasAuth.js +1 -0
- package/lib/public/login.html +99 -0
- package/lib/public/payment.html +152 -0
- package/lib/public/script.js +1180 -0
- package/lib/public/style.css +1045 -0
- package/lib/routes/cloudflareRoutes.js +1 -0
- package/lib/routes/dockerRoutes.js +1 -0
- package/lib/routes/networkRoutes.js +1 -0
- package/lib/routes/serverRoutes.js +1 -0
- package/lib/server.js +1 -0
- package/lib/services/cashfreeService.js +1 -0
- package/lib/views/activate.html +109 -0
- package/lib/views/index.html +552 -0
- package/package.json +7 -7
- package/monitor.js +0 -7
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
7
|
+
<title>Subscribe to Server Monitor Pro</title>
|
|
8
|
+
<script src="https://sdk.cashfree.com/js/v3/cashfree.js"></script>
|
|
9
|
+
<style>
|
|
10
|
+
:root {
|
|
11
|
+
--primary: #6366f1;
|
|
12
|
+
--primary-hover: #4f46e5;
|
|
13
|
+
--bg: #0f172a;
|
|
14
|
+
--card-bg: #1e293b;
|
|
15
|
+
--text: #f8fafc;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body {
|
|
19
|
+
font-family: 'Inter', system-ui, sans-serif;
|
|
20
|
+
background-color: var(--bg);
|
|
21
|
+
color: var(--text);
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
align-items: center;
|
|
25
|
+
height: 100vh;
|
|
26
|
+
margin: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.card {
|
|
30
|
+
background: var(--card-bg);
|
|
31
|
+
padding: 2rem;
|
|
32
|
+
border-radius: 1rem;
|
|
33
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
|
|
34
|
+
width: 100%;
|
|
35
|
+
max-width: 400px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
h1 {
|
|
40
|
+
font-size: 1.5rem;
|
|
41
|
+
margin-bottom: 1rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
p {
|
|
45
|
+
color: #94a3b8;
|
|
46
|
+
margin-bottom: 2rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.price {
|
|
50
|
+
font-size: 3rem;
|
|
51
|
+
font-weight: bold;
|
|
52
|
+
margin-bottom: 2rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.price span {
|
|
56
|
+
font-size: 1rem;
|
|
57
|
+
color: #94a3b8;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
button {
|
|
61
|
+
background-color: var(--primary);
|
|
62
|
+
color: white;
|
|
63
|
+
border: none;
|
|
64
|
+
padding: 0.75rem 1.5rem;
|
|
65
|
+
border-radius: 0.5rem;
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
width: 100%;
|
|
69
|
+
transition: background 0.2s;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
button:hover {
|
|
73
|
+
background-color: var(--primary-hover);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.input-group {
|
|
77
|
+
text-align: left;
|
|
78
|
+
margin-bottom: 1rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
label {
|
|
82
|
+
display: block;
|
|
83
|
+
margin-bottom: 0.25rem;
|
|
84
|
+
font-size: 0.875rem;
|
|
85
|
+
color: #94a3b8;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
input {
|
|
89
|
+
width: 100%;
|
|
90
|
+
padding: 0.5rem;
|
|
91
|
+
border-radius: 0.25rem;
|
|
92
|
+
border: 1px solid #334155;
|
|
93
|
+
background: #0f172a;
|
|
94
|
+
color: white;
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
}
|
|
97
|
+
</style>
|
|
98
|
+
</head>
|
|
99
|
+
|
|
100
|
+
<body>
|
|
101
|
+
<div class="card">
|
|
102
|
+
<h1>Server Monitor Pro</h1>
|
|
103
|
+
<p>Unlock advanced monitoring, Docker stats, and real-time terminal access.</p>
|
|
104
|
+
<div class="price">₹999<span>/year</span></div>
|
|
105
|
+
|
|
106
|
+
<div class="input-group">
|
|
107
|
+
<label>Email</label>
|
|
108
|
+
<input type="email" id="email" placeholder="email@example.com" value="test@example.com">
|
|
109
|
+
</div>
|
|
110
|
+
<div class="input-group">
|
|
111
|
+
<label>Phone</label>
|
|
112
|
+
<input type="tel" id="phone" placeholder="9999999999" value="9999999999">
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<button id="payBtn">Subscribe Now</button>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<script>
|
|
119
|
+
const cashfree = Cashfree({
|
|
120
|
+
mode: "production" // Using the production credentials provided
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
document.getElementById('payBtn').addEventListener('click', async () => {
|
|
124
|
+
const email = document.getElementById('email').value;
|
|
125
|
+
const phone = document.getElementById('phone').value;
|
|
126
|
+
|
|
127
|
+
const response = await fetch('/api/payment/create-session', {
|
|
128
|
+
method: 'POST',
|
|
129
|
+
headers: { 'Content-Type': 'application/json' },
|
|
130
|
+
body: JSON.stringify({
|
|
131
|
+
amount: 999,
|
|
132
|
+
customerId: 'USER_' + Math.floor(Math.random() * 10000),
|
|
133
|
+
customerPhone: phone,
|
|
134
|
+
customerEmail: email
|
|
135
|
+
})
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
const session = await response.json();
|
|
139
|
+
|
|
140
|
+
if (session.payment_session_id) {
|
|
141
|
+
cashfree.checkout({
|
|
142
|
+
paymentSessionId: session.payment_session_id,
|
|
143
|
+
redirectTarget: "_self"
|
|
144
|
+
});
|
|
145
|
+
} else {
|
|
146
|
+
alert('Failed to create payment session');
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
</script>
|
|
150
|
+
</body>
|
|
151
|
+
|
|
152
|
+
</html>
|