syntaxmatrix 2.5.5.5__py3-none-any.whl → 2.5.6__py3-none-any.whl
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.
- syntaxmatrix/__init__.py +3 -2
- syntaxmatrix/auth.py +142 -5
- syntaxmatrix/core.py +9 -5
- syntaxmatrix/generate_page.py +17 -7
- syntaxmatrix/preface.py +549 -0
- syntaxmatrix/routes.py +238 -177
- syntaxmatrix/templates/change_password.html +124 -0
- syntaxmatrix/templates/dashboard.html +7 -5
- syntaxmatrix/utils.py +301 -456
- {syntaxmatrix-2.5.5.5.dist-info → syntaxmatrix-2.5.6.dist-info}/METADATA +1 -1
- {syntaxmatrix-2.5.5.5.dist-info → syntaxmatrix-2.5.6.dist-info}/RECORD +14 -12
- {syntaxmatrix-2.5.5.5.dist-info → syntaxmatrix-2.5.6.dist-info}/WHEEL +0 -0
- {syntaxmatrix-2.5.5.5.dist-info → syntaxmatrix-2.5.6.dist-info}/licenses/LICENSE.txt +0 -0
- {syntaxmatrix-2.5.5.5.dist-info → syntaxmatrix-2.5.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>Change Password – SyntaxMatrix</title>
|
|
6
|
+
<style>
|
|
7
|
+
:root {
|
|
8
|
+
--bg: #f4f7f9;
|
|
9
|
+
--text: #333;
|
|
10
|
+
--primary: #007acc;
|
|
11
|
+
--primary-txt: #fff;
|
|
12
|
+
--card-bg: #fff;
|
|
13
|
+
--card-shadow: rgba(0,0,0,0.1);
|
|
14
|
+
}
|
|
15
|
+
body {
|
|
16
|
+
margin: 0;
|
|
17
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
18
|
+
background: var(--bg);
|
|
19
|
+
color: var(--text);
|
|
20
|
+
}
|
|
21
|
+
.auth-container {
|
|
22
|
+
max-width: 380px;
|
|
23
|
+
margin: 5vh auto;
|
|
24
|
+
padding: 2rem;
|
|
25
|
+
background: var(--card-bg);
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
box-shadow: 0 4px 12px var(--card-shadow);
|
|
28
|
+
}
|
|
29
|
+
.auth-container h1 {
|
|
30
|
+
text-align: center;
|
|
31
|
+
color: var(--primary);
|
|
32
|
+
margin-bottom: 1.5rem;
|
|
33
|
+
}
|
|
34
|
+
.auth-container label {
|
|
35
|
+
display: block;
|
|
36
|
+
font-size: 0.9rem;
|
|
37
|
+
margin-bottom: 0.25rem;
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
40
|
+
.auth-container input[type="password"] {
|
|
41
|
+
width: 100%;
|
|
42
|
+
padding: 0.5rem 0.75rem;
|
|
43
|
+
margin-bottom: 0.75rem;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
border: 1px solid #ccc;
|
|
46
|
+
font-size: 0.95rem;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
.auth-container button {
|
|
50
|
+
width: 100%;
|
|
51
|
+
padding: 0.6rem 1rem;
|
|
52
|
+
border-radius: 4px;
|
|
53
|
+
border: none;
|
|
54
|
+
background: var(--primary);
|
|
55
|
+
color: var(--primary-txt);
|
|
56
|
+
font-weight: 600;
|
|
57
|
+
font-size: 0.95rem;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
.auth-container button:hover {
|
|
61
|
+
opacity: 0.9;
|
|
62
|
+
}
|
|
63
|
+
.flash {
|
|
64
|
+
margin-bottom: 0.75rem;
|
|
65
|
+
padding: 0.5rem 0.75rem;
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
font-size: 0.85rem;
|
|
68
|
+
}
|
|
69
|
+
.flash.error {
|
|
70
|
+
background: #ffe6e6;
|
|
71
|
+
color: #a00;
|
|
72
|
+
}
|
|
73
|
+
.flash.message {
|
|
74
|
+
background: #e6f7ff;
|
|
75
|
+
color: #004f80;
|
|
76
|
+
}
|
|
77
|
+
.auth-container p {
|
|
78
|
+
text-align: center;
|
|
79
|
+
margin-top: 1rem;
|
|
80
|
+
font-size: 0.9rem;
|
|
81
|
+
}
|
|
82
|
+
.auth-container a {
|
|
83
|
+
color: var(--primary);
|
|
84
|
+
text-decoration: none;
|
|
85
|
+
font-weight: 600;
|
|
86
|
+
}
|
|
87
|
+
.auth-container a:hover {
|
|
88
|
+
text-decoration: underline;
|
|
89
|
+
}
|
|
90
|
+
</style>
|
|
91
|
+
</head>
|
|
92
|
+
<body>
|
|
93
|
+
<div class="auth-container">
|
|
94
|
+
<h1>Change Password</h1>
|
|
95
|
+
|
|
96
|
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
97
|
+
{% if messages %}
|
|
98
|
+
{% for category, msg in messages %}
|
|
99
|
+
{% if category == 'error' %}
|
|
100
|
+
<div class="flash error">{{ msg }}</div>
|
|
101
|
+
{% else %}
|
|
102
|
+
<div class="flash message">{{ msg }}</div>
|
|
103
|
+
{% endif %}
|
|
104
|
+
{% endfor %}
|
|
105
|
+
{% endif %}
|
|
106
|
+
{% endwith %}
|
|
107
|
+
|
|
108
|
+
<form method="post" action="{{ url_for('change_password') }}">
|
|
109
|
+
<label for="current_password">Current password</label>
|
|
110
|
+
<input type="password" id="current_password" name="current_password" required autofocus>
|
|
111
|
+
|
|
112
|
+
<label for="new_password">New password</label>
|
|
113
|
+
<input type="password" id="new_password" name="new_password" required>
|
|
114
|
+
|
|
115
|
+
<label for="confirm_password">Confirm new password</label>
|
|
116
|
+
<input type="password" id="confirm_password" name="confirm_password" required>
|
|
117
|
+
|
|
118
|
+
<button type="submit">Update password</button>
|
|
119
|
+
</form>
|
|
120
|
+
|
|
121
|
+
<p><a href="{{ url_for('dashboard') }}">Back to dashboard</a></p>
|
|
122
|
+
</div>
|
|
123
|
+
</body>
|
|
124
|
+
</html>
|
|
@@ -683,14 +683,16 @@
|
|
|
683
683
|
<span class="refined-q">{{ refined_question|safe }}</span>
|
|
684
684
|
</div><br>
|
|
685
685
|
<div class="refined-qblock">
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
686
|
+
{% if tasks %}
|
|
687
|
+
<b>Tasks Performed: </b><br>
|
|
688
|
+
{% for task in tasks %}
|
|
689
|
+
<span class="refined-q">- {{ task }}</span><br>
|
|
690
|
+
{% endfor %}
|
|
691
|
+
{% endif %}
|
|
690
692
|
</div><br>
|
|
691
693
|
{% if llm_usage %}
|
|
692
694
|
<div class="refined-qblock">
|
|
693
|
-
<b>LLM: </b><span>{{ llm_usage.provider
|
|
695
|
+
<b>LLM: </b><span>{{ llm_usage.provider }} | {{ llm_usage.model }}</span><br>
|
|
694
696
|
<b>Token Usage: </b>
|
|
695
697
|
<li>- Input Tokens: {{ llm_usage.input_tokens }}</li>
|
|
696
698
|
<li>- Output Tokens: {{ llm_usage.output_tokens }}</li>
|