|
3 | 3 | <link rel="stylesheet" href="../public/stylesheets/style.css"> |
4 | 4 | <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"> |
5 | 5 | </head> |
| 6 | + |
6 | 7 | <body class="container_success"> |
7 | 8 | <div class="logged_in_nav"> |
8 | 9 | <div class="flex"> |
|
19 | 20 | <a href="https://workos.com/" target="_blank"><button class='button button-outline'>WorkOS</button></a> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | | - <div class='flex'> |
23 | | - <div class="logged_in_div_left"> |
24 | | - <div class="title-text"> |
25 | | - <h1>Your app,</h1> |
26 | | - <h2 class="home-hero-gradient">Enterprise Ready</h2> |
27 | | - </div> |
28 | | - <div class="title-subtext"> |
29 | | - <p>Start selling to enterprise customers with just a few lines of code.</p> |
30 | | - <p>Implement features like single sign-on in minutes instead of months.</p> |
31 | | - </div> |
32 | | - <div class="flex success-buttons"> |
33 | | - <a href="https://workos.com/signup" target="_blank"><button class='button'>Get Started</button></a> |
34 | | - <a href="mailto:sales@workos.com?subject=WorkOS Sales Inquiry" target="_blank"><button |
35 | | - class='button button-outline sales-button'>Contact |
36 | | - Sales</button></a> |
37 | | - </div> |
38 | | - </div> |
39 | 23 | <div class="logged_in_div_right"> |
40 | | - <div class="flex_column"> |
41 | | - <h2>Webhooks</h2> |
42 | | - <div id="webhooks-view" class="width-40vw webhooks-container"></div> |
43 | | - </div> |
44 | | - <div id='clear_button_div' class='flex directory_container'> |
45 | | - <div id="tutorial_button" class="flex half_width"> |
46 | | - <a href="https://workos.com/blog/test-workos-webhooks-locally-ngrok" target="_blank" |
47 | | - class="button webhooks-tutorial-button">Webhooks Tutorial</a> |
48 | | - </div> |
49 | | - <div id="clear_button" class="hidden"> |
50 | | - <a href="/webhooks" class="button button-outline">Clear</a> |
| 24 | + <div id="webhooks-view-div" class="flex_column"> |
| 25 | + <div class="flex width-40vw space-between"> |
| 26 | + <h2>Live Webhooks View</h2> |
| 27 | + <div id="tutorial_button"> |
| 28 | + <a href="https://workos.com/blog/test-workos-webhooks-locally-ngrok" target="_blank" |
| 29 | + class="button mt-15">Tutorial</a> |
| 30 | + <a href="/webhooks" class="button mt-10">Clear</a> |
| 31 | + <a href="javascript:history.back()"><button class='button button-outline'>Back</button></a> |
| 32 | + </div> |
51 | 33 | </div> |
52 | | - <div> |
53 | | - <a style="align-self:flex-end; padding:10px;" href="javascript:history.back()"><button |
54 | | - class='button button-outline'>Back</button></a> |
| 34 | + <div id="webhooks-view" class="width-40vw webhooks-container"> |
| 35 | + |
55 | 36 | </div> |
56 | | - </div> |
| 37 | + </div> |
57 | 38 | </div> |
58 | 39 | </div> |
59 | 40 | <script src="/socket.io/socket.io.js"></script> |
|
72 | 53 | socket.on('webhook event', (data) => { |
73 | 54 | webhooksView.classList.add("webhooks_container") |
74 | 55 | webhooksView.insertAdjacentHTML("afterbegin", |
75 | | - "<div class='margin_top'> Webhook received at: " + new Date().toISOString() + "</div>" + |
76 | | - "<br/>" + |
77 | | - "<pre>" + |
78 | | - "<code class=`prettyprint`>" + JSON.stringify(data.webhook, null, 2) + "</code>" + |
79 | | - "</pre>" + |
| 56 | + "<div class='margin_top width-40vw'> Webhook received at: " + new Date().toISOString() + "</div>" + |
80 | 57 | "<br/>" + |
81 | | - "<hr style='max-width: 40vw' />" |
| 58 | + "<pre>" + "<code>" + JSON.stringify(data.webhook, null, 2) + "</code>" + "</pre>" + |
| 59 | + "<br/>" + "<hr/>" + "<br/>" |
82 | 60 | ); |
83 | 61 | if (counter < 1) { |
84 | 62 | clearButtonDiv.classList.remove('login_button') |
|
0 commit comments