@boostyourleads/antigravity-sdk 1.0.3 → 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/dist/cli.js +138 -15
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -66,21 +66,144 @@ const handleLogin = async () => {
|
|
|
66
66
|
});
|
|
67
67
|
res.writeHead(200, { 'Content-Type': 'text/html' });
|
|
68
68
|
res.end(`
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
69
|
+
<!DOCTYPE html>
|
|
70
|
+
<html>
|
|
71
|
+
<head>
|
|
72
|
+
<meta charset="utf-8">
|
|
73
|
+
<title>Authentication Successful - BYL</title>
|
|
74
|
+
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&display=swap" rel="stylesheet">
|
|
75
|
+
<style>
|
|
76
|
+
body {
|
|
77
|
+
background-color: #030303;
|
|
78
|
+
color: #ffffff;
|
|
79
|
+
font-family: 'Outfit', sans-serif;
|
|
80
|
+
min-height: 100vh;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
margin: 0;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
position: relative;
|
|
87
|
+
}
|
|
88
|
+
.glow-1 {
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: -20%;
|
|
91
|
+
left: 20%;
|
|
92
|
+
width: 400px;
|
|
93
|
+
height: 400px;
|
|
94
|
+
background: rgba(99, 102, 241, 0.05);
|
|
95
|
+
filter: blur(100px);
|
|
96
|
+
border-radius: 50%;
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
}
|
|
99
|
+
.glow-2 {
|
|
100
|
+
position: absolute;
|
|
101
|
+
bottom: -20%;
|
|
102
|
+
right: 20%;
|
|
103
|
+
width: 400px;
|
|
104
|
+
height: 400px;
|
|
105
|
+
background: rgba(168, 85, 247, 0.05);
|
|
106
|
+
filter: blur(100px);
|
|
107
|
+
border-radius: 50%;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
110
|
+
.card {
|
|
111
|
+
background: rgba(12, 12, 14, 0.85);
|
|
112
|
+
backdrop-filter: blur(20px);
|
|
113
|
+
-webkit-backdrop-filter: blur(20px);
|
|
114
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
115
|
+
border-radius: 32px;
|
|
116
|
+
padding: 40px 32px;
|
|
117
|
+
max-width: 380px;
|
|
118
|
+
width: 90%;
|
|
119
|
+
text-align: center;
|
|
120
|
+
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 50px -10px rgba(255,255,255,0.02);
|
|
121
|
+
z-index: 10;
|
|
122
|
+
}
|
|
123
|
+
.logo-container {
|
|
124
|
+
width: 56px;
|
|
125
|
+
height: 56px;
|
|
126
|
+
border-radius: 16px;
|
|
127
|
+
background: #030303;
|
|
128
|
+
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
margin: 0 auto 24px auto;
|
|
133
|
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
|
134
|
+
}
|
|
135
|
+
.logo-text {
|
|
136
|
+
fill: #ffffff;
|
|
137
|
+
font-size: 195px;
|
|
138
|
+
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
|
139
|
+
font-weight: 900;
|
|
140
|
+
letter-spacing: -10px;
|
|
141
|
+
}
|
|
142
|
+
h2 {
|
|
143
|
+
font-size: 20px;
|
|
144
|
+
font-weight: 900;
|
|
145
|
+
text-transform: uppercase;
|
|
146
|
+
letter-spacing: 2px;
|
|
147
|
+
margin: 0 0 8px 0;
|
|
148
|
+
color: #ffffff;
|
|
149
|
+
}
|
|
150
|
+
p {
|
|
151
|
+
font-size: 13px;
|
|
152
|
+
color: #a1a1aa;
|
|
153
|
+
line-height: 1.6;
|
|
154
|
+
margin: 0 0 24px 0;
|
|
155
|
+
}
|
|
156
|
+
.redirect-status {
|
|
157
|
+
font-size: 10px;
|
|
158
|
+
font-weight: 700;
|
|
159
|
+
color: #71717a;
|
|
160
|
+
text-transform: uppercase;
|
|
161
|
+
letter-spacing: 1px;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
gap: 8px;
|
|
166
|
+
}
|
|
167
|
+
.spinner {
|
|
168
|
+
width: 12px;
|
|
169
|
+
height: 12px;
|
|
170
|
+
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
171
|
+
border-top: 2px solid #ffffff;
|
|
172
|
+
border-radius: 50%;
|
|
173
|
+
animation: spin 1s linear infinite;
|
|
174
|
+
}
|
|
175
|
+
@keyframes spin {
|
|
176
|
+
0% { transform: rotate(0deg); }
|
|
177
|
+
100% { transform: rotate(360deg); }
|
|
178
|
+
}
|
|
179
|
+
</style>
|
|
180
|
+
</head>
|
|
181
|
+
<body>
|
|
182
|
+
<div class="glow-1"></div>
|
|
183
|
+
<div class="glow-2"></div>
|
|
184
|
+
<div class="card">
|
|
185
|
+
<div class="logo-container">
|
|
186
|
+
<svg viewBox="0 0 512 512" width="100%" height="100%" style="padding: 10px;">
|
|
187
|
+
<text x="256" y="280" class="logo-text" text-anchor="middle" dominant-baseline="middle">BYL.</text>
|
|
188
|
+
</svg>
|
|
189
|
+
</div>
|
|
190
|
+
<h2>Success!</h2>
|
|
191
|
+
<p>The Antigravity SDK has been successfully authenticated on your local machine.</p>
|
|
192
|
+
<div class="redirect-status">
|
|
193
|
+
<div class="spinner"></div>
|
|
194
|
+
<span>Redirecting back to BoostYourLeads...</span>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
<script>
|
|
198
|
+
setTimeout(() => {
|
|
199
|
+
window.close();
|
|
200
|
+
setTimeout(() => {
|
|
201
|
+
window.location.href = "${PORTAL_URL}";
|
|
202
|
+
}, 500);
|
|
203
|
+
}, 2000);
|
|
204
|
+
</script>
|
|
205
|
+
</body>
|
|
206
|
+
</html>
|
|
84
207
|
`);
|
|
85
208
|
console.log("✅ Successfully authenticated! Config saved to ~/.boostyourleads/config.json");
|
|
86
209
|
// Graceful shut down
|