browser-assistant 2.9.2 → 2.9.3
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/extension/content.js +14 -2
- package/extension/journal-automation.js +2 -8
- package/extension/manifest.json +1 -1
- package/extension/popup.html +21 -52
- package/extension/styles.css +473 -554
- package/package.json +1 -1
- package/server/main.py +1 -1
- package/server/practice_quiz.html +79 -6
package/package.json
CHANGED
package/server/main.py
CHANGED
|
@@ -179,7 +179,7 @@ async def lifespan(_app: FastAPI):
|
|
|
179
179
|
client.close()
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
app = FastAPI(title="Browser Assistant API", version="2.9.
|
|
182
|
+
app = FastAPI(title="Browser Assistant API", version="2.9.3", lifespan=lifespan)
|
|
183
183
|
install_local_guards(app)
|
|
184
184
|
|
|
185
185
|
@app.exception_handler(HTTPException)
|
|
@@ -5,12 +5,85 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>Browser Assistant Local Practice Quiz</title>
|
|
7
7
|
<style>
|
|
8
|
-
body {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
body {
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: clamp(52px, 9vh, 100px) 16px 32px;
|
|
13
|
+
color-scheme: dark;
|
|
14
|
+
font: 16px/1.5 Inter, system-ui, sans-serif;
|
|
15
|
+
color: #f7fbff;
|
|
16
|
+
background: radial-gradient(ellipse at 0% 0%, #283f85, transparent 63%),
|
|
17
|
+
radial-gradient(ellipse at 95% 100%, #146263, transparent 62%),
|
|
18
|
+
linear-gradient(145deg, #101831, #080f20 62%);
|
|
19
|
+
}
|
|
20
|
+
body > main {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
max-width: 640px;
|
|
23
|
+
margin: auto;
|
|
24
|
+
padding: clamp(18px, 5vw, 36px);
|
|
25
|
+
border: 1px solid rgb(191 215 255 / 34%);
|
|
26
|
+
border-radius: 25px;
|
|
27
|
+
background: rgb(8 15 33 / 65%);
|
|
28
|
+
backdrop-filter: blur(24px) saturate(135%);
|
|
29
|
+
box-shadow: 0 22px 60px rgb(4 10 26 / 40%), inset 0 1px rgb(224 238 255 / 16%);
|
|
30
|
+
}
|
|
31
|
+
.tag { color: #acd6ff; font-size: .81rem; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
|
|
32
|
+
h1 { margin: 4px 0 12px; font-size: clamp(2rem, 6vw, 3.15rem); line-height: 1.07; letter-spacing: -.045em; }
|
|
33
|
+
#progress { margin: 0 0 16px; color: #c7d4eb; font-size: .875rem; font-weight: 650; }
|
|
34
|
+
#question-card {
|
|
35
|
+
padding: clamp(13px, 3vw, 22px);
|
|
36
|
+
border: 1px solid rgb(191 215 255 / 30%);
|
|
37
|
+
border-radius: 16px;
|
|
38
|
+
background: rgb(26 40 66 / 60%);
|
|
39
|
+
backdrop-filter: blur(16px);
|
|
40
|
+
box-shadow: 0 8px 24px rgb(4 10 26 / 24%);
|
|
41
|
+
}
|
|
42
|
+
#question-card h2 { margin: 0 0 14px; font-size: clamp(1.1rem, 3vw, 1.45rem); line-height: 1.3; }
|
|
43
|
+
.option {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 10px;
|
|
47
|
+
margin: 8px 0;
|
|
48
|
+
padding: 10px 12px;
|
|
49
|
+
border: 1px solid rgb(191 215 255 / 60%);
|
|
50
|
+
border-radius: 10px;
|
|
51
|
+
background: rgb(4 11 27 / 64%);
|
|
52
|
+
backdrop-filter: blur(12px);
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
55
|
+
.option input { margin: 0; accent-color: #a5f6da; }
|
|
56
|
+
.option:hover { border-color: #acd6ff; }
|
|
57
|
+
.option:has(input:checked) { border-color: #a5f6da; background: rgb(20 67 66 / 82%); }
|
|
58
|
+
[data-practice-submit] {
|
|
59
|
+
margin-top: 10px;
|
|
60
|
+
padding: 10px 16px;
|
|
61
|
+
border: 1px solid transparent;
|
|
62
|
+
border-radius: 9px;
|
|
63
|
+
background: linear-gradient(125deg, #a5e8ff, #c2bbff);
|
|
64
|
+
color: #111b33;
|
|
65
|
+
font: inherit;
|
|
66
|
+
font-weight: 750;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
[data-practice-submit]:hover:not(:disabled) { background: linear-gradient(125deg, #c0f1ff, #d3ccff); }
|
|
70
|
+
[data-practice-submit]:disabled {
|
|
71
|
+
background: rgb(4 11 27 / 64%);
|
|
72
|
+
border: 1px dashed rgb(191 215 255 / 60%);
|
|
73
|
+
color: #c7d4eb;
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
}
|
|
76
|
+
.option:has(input:focus-visible), [data-practice-submit]:focus-visible { outline: 2px solid #acd6ff; outline-offset: 2px; }
|
|
77
|
+
#feedback { margin: 12px 0 0; min-height: 1.5em; color: #f7fbff; font-weight: 650; }
|
|
78
|
+
.done { color: #a5f6da; font-weight: 700; }
|
|
79
|
+
@supports not (backdrop-filter: blur(12px)) {
|
|
80
|
+
body > main { background: #13213a; }
|
|
81
|
+
#question-card { background: #202e47; }
|
|
82
|
+
}
|
|
83
|
+
@media (forced-colors: active) {
|
|
84
|
+
.option:has(input:checked) { border-color: Highlight; }
|
|
85
|
+
.option:has(input:focus-visible), [data-practice-submit]:focus-visible { outline-color: Highlight; }
|
|
86
|
+
}
|
|
14
87
|
</style>
|
|
15
88
|
</head>
|
|
16
89
|
<body>
|