@knowcode/doc-builder 1.2.3 → 1.2.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.
@@ -1,49 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Login - Protected Documentation</title>
7
- <link rel="stylesheet" href="css/notion-style.css">
8
- </head>
9
- <body>
10
- <div class="auth-container">
11
- <div class="auth-box">
12
- <h1>Login to Protected Documentation</h1>
13
- <form id="login-form">
14
- <div class="form-group">
15
- <label for="username">Username</label>
16
- <input type="text" id="username" name="username" required>
17
- </div>
18
- <div class="form-group">
19
- <label for="password">Password</label>
20
- <input type="password" id="password" name="password" required>
21
- </div>
22
- <button type="submit" class="auth-button">Login</button>
23
- </form>
24
- <div id="error-message" class="error-message"></div>
25
- </div>
26
- </div>
27
- <script>
28
- document.getElementById('login-form').addEventListener('submit', function(e) {
29
- e.preventDefault();
30
- const username = document.getElementById('username').value;
31
- const password = document.getElementById('password').value;
32
-
33
- // Validate credentials
34
- if (username === 'testuser' && password === 'testpass123') {
35
- // Set auth cookie
36
- const token = btoa(username + ':' + password);
37
- document.cookie = 'doc-auth=' + token + '; path=/';
38
-
39
- // Redirect
40
- const params = new URLSearchParams(window.location.search);
41
- const redirect = params.get('redirect') || '/';
42
- window.location.href = redirect;
43
- } else {
44
- document.getElementById('error-message').textContent = 'Invalid username or password';
45
- }
46
- });
47
- </script>
48
- </body>
49
- </html>
@@ -1,18 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Logged Out - Protected Documentation</title>
7
- <link rel="stylesheet" href="css/notion-style.css">
8
- </head>
9
- <body>
10
- <div class="auth-container">
11
- <div class="auth-box">
12
- <h1>You have been logged out</h1>
13
- <p>Thank you for using Protected Documentation.</p>
14
- <a href="login.html" class="auth-button">Login Again</a>
15
- </div>
16
- </div>
17
- </body>
18
- </html>