krsyer-server-monitor-pro 1.0.2 → 1.0.4
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/lib/controllers/cloudflareController.js +1 -1
- package/lib/controllers/dockerController.js +1 -1
- package/lib/controllers/networkController.js +1 -1
- package/lib/controllers/serverController.js +1 -1
- package/lib/ecosystem.config.js +1 -1
- package/lib/middleware/saasAuth.js +1 -1
- package/lib/routes/cloudflareRoutes.js +1 -1
- package/lib/routes/dockerRoutes.js +1 -1
- package/lib/routes/networkRoutes.js +1 -1
- package/lib/routes/serverRoutes.js +1 -1
- package/lib/server.js +1 -1
- package/lib/services/cashfreeService.js +1 -1
- package/license-portal/.env.example +9 -0
- package/license-portal/README.md +93 -0
- package/license-portal/ecosystem.config.js +16 -0
- package/license-portal/package.json +20 -0
- package/license-portal/server.js +160 -0
- package/license-portal/views/pricing.html +136 -0
- package/package.json +1 -1
|
@@ -0,0 +1,136 @@
|
|
|
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>Buy Server Monitor Pro</title>
|
|
8
|
+
<script src="https://sdk.cashfree.com/js/v3/cashfree.js"></script>
|
|
9
|
+
<style>
|
|
10
|
+
body {
|
|
11
|
+
font-family: 'Inter', sans-serif;
|
|
12
|
+
background: #0f172a;
|
|
13
|
+
color: white;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
height: 100vh;
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.card {
|
|
22
|
+
background: #1e293b;
|
|
23
|
+
padding: 2rem;
|
|
24
|
+
border-radius: 16px;
|
|
25
|
+
border: 1px solid #334155;
|
|
26
|
+
width: 400px;
|
|
27
|
+
text-align: center;
|
|
28
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
h1 {
|
|
32
|
+
font-size: 1.5rem;
|
|
33
|
+
margin-bottom: 0.5rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
p {
|
|
37
|
+
color: #94a3b8;
|
|
38
|
+
margin-bottom: 2rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
input {
|
|
42
|
+
width: 100%;
|
|
43
|
+
padding: 12px;
|
|
44
|
+
margin-bottom: 1rem;
|
|
45
|
+
background: #0f172a;
|
|
46
|
+
border: 1px solid #334155;
|
|
47
|
+
color: white;
|
|
48
|
+
border-radius: 8px;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
button {
|
|
53
|
+
width: 100%;
|
|
54
|
+
padding: 12px;
|
|
55
|
+
background: #3b82f6;
|
|
56
|
+
color: white;
|
|
57
|
+
border: none;
|
|
58
|
+
border-radius: 8px;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition: 0.2s;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
button:hover {
|
|
65
|
+
background: #2563eb;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.price {
|
|
69
|
+
font-size: 3rem;
|
|
70
|
+
font-weight: 800;
|
|
71
|
+
margin: 1rem 0;
|
|
72
|
+
color: #fbbf24;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.sub {
|
|
76
|
+
font-size: 1rem;
|
|
77
|
+
color: #94a3b8;
|
|
78
|
+
font-weight: normal;
|
|
79
|
+
}
|
|
80
|
+
</style>
|
|
81
|
+
</head>
|
|
82
|
+
|
|
83
|
+
<body>
|
|
84
|
+
|
|
85
|
+
<div class="card">
|
|
86
|
+
<h1>Get Server Monitor Pro</h1>
|
|
87
|
+
<p>Annual License for unlimited servers</p>
|
|
88
|
+
|
|
89
|
+
<div class="price">₹999 <span class="sub">/ year</span></div>
|
|
90
|
+
|
|
91
|
+
<input type="email" id="email" placeholder="Email Address" required>
|
|
92
|
+
<input type="tel" id="phone" placeholder="Phone Number" required>
|
|
93
|
+
|
|
94
|
+
<button onclick="buy()" id="btn">Buy Now</button>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<script>
|
|
98
|
+
const cashfree = Cashfree({ mode: "production" });
|
|
99
|
+
|
|
100
|
+
async function buy() {
|
|
101
|
+
const email = document.getElementById('email').value;
|
|
102
|
+
const phone = document.getElementById('phone').value;
|
|
103
|
+
if (!email || !phone) return alert("Please fill details");
|
|
104
|
+
|
|
105
|
+
const btn = document.getElementById('btn');
|
|
106
|
+
btn.innerText = "Processing...";
|
|
107
|
+
btn.disabled = true;
|
|
108
|
+
|
|
109
|
+
try {
|
|
110
|
+
const res = await fetch('/api/buy', {
|
|
111
|
+
method: 'POST',
|
|
112
|
+
headers: { 'Content-Type': 'application/json' },
|
|
113
|
+
body: JSON.stringify({ email, phone })
|
|
114
|
+
});
|
|
115
|
+
const data = await res.json();
|
|
116
|
+
|
|
117
|
+
if (data.payment_session_id) {
|
|
118
|
+
cashfree.checkout({
|
|
119
|
+
paymentSessionId: data.payment_session_id,
|
|
120
|
+
redirectTarget: "_self"
|
|
121
|
+
});
|
|
122
|
+
} else {
|
|
123
|
+
alert("Failed to init payment");
|
|
124
|
+
btn.disabled = false;
|
|
125
|
+
}
|
|
126
|
+
} catch (e) {
|
|
127
|
+
console.error(e);
|
|
128
|
+
alert("Error");
|
|
129
|
+
btn.disabled = false;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
</script>
|
|
133
|
+
|
|
134
|
+
</body>
|
|
135
|
+
|
|
136
|
+
</html>
|