Skip to content

Commit 85f231f

Browse files
authored
add: customized select color; fix: gscholar; (#7)
* add: pre-commit; fix: import * add: customized select color; fix: gscholar
1 parent 1676293 commit 85f231f

File tree

3 files changed

+58
-14
lines changed

3 files changed

+58
-14
lines changed

.husky/pre-commit

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,46 @@
11
#!/usr/bin/env sh
2-
set -euo pipefail
32

4-
printf "\033[1m Running local pre-commit checks (mirrors CI)\033[0m\n\n"
3+
echo "Running pre-commit checks (mirrors GitHub Actions)..."
4+
echo ""
55

6-
run_step() {
7-
label="$1"
8-
shift
9-
printf "-> %s\n" "$label"
10-
"$@"
11-
printf "%s passed\n\n" "$label"
12-
}
6+
# Run type checking
7+
echo "Type checking..."
8+
npm run typecheck
9+
if [ $? -ne 0 ]; then
10+
echo "Type check failed. Commit aborted."
11+
exit 1
12+
fi
13+
echo "Type check passed"
14+
echo ""
1315

14-
run_step "Lint" npm run lint
15-
run_step "Tests" npm test
16-
run_step "Production build" sh -c 'NODE_ENV=production npm run build'
16+
# Run linting
17+
echo "Linting..."
18+
npm run lint
19+
if [ $? -ne 0 ]; then
20+
echo "Linting failed. Commit aborted."
21+
exit 1
22+
fi
23+
echo "Linting passed"
24+
echo ""
1725

18-
printf "All pre-commit checks passed!\n"
26+
# Run tests
27+
echo "Running tests..."
28+
npm test
29+
if [ $? -ne 0 ]; then
30+
echo "Tests failed. Commit aborted."
31+
exit 1
32+
fi
33+
echo "Tests passed"
34+
echo ""
35+
36+
# Run production build (catches build-time errors like the next-themes import issue)
37+
echo "Production build..."
38+
NODE_ENV=production npm run build
39+
if [ $? -ne 0 ]; then
40+
echo "Build failed. Commit aborted."
41+
exit 1
42+
fi
43+
echo "Build passed"
44+
echo ""
45+
46+
echo "All pre-commit checks passed!"

app/globals.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,22 @@
6464
scroll-behavior: smooth;
6565
}
6666

67+
::selection {
68+
background: #cce4ff;
69+
color: #1f2933;
70+
}
71+
72+
::-moz-selection {
73+
background: #cce4ff;
74+
color: #1f2933;
75+
}
76+
77+
.dark ::selection,
78+
.dark ::-moz-selection {
79+
background: rgba(96, 165, 250, 0.35);
80+
color: #f8fafc;
81+
}
82+
6783
/* Focus styles for accessibility */
6884
:focus-visible {
6985
@apply outline-none ring-2 ring-ring ring-offset-2 ring-offset-background;

app/publications/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default function PublicationsPage() {
7878
Our research contributions spanning computational neuroscience, machine learning,
7979
and computer vision. For a complete list, visit our{" "}
8080
<a
81-
href="https://scholar.google.com"
81+
href="https://scholar.google.com/citations?user=Y1xCzE0AAAAJ&hl=en"
8282
target="_blank"
8383
rel="noopener noreferrer"
8484
className="text-primary hover:underline"

0 commit comments

Comments
 (0)