Skip to content

Commit ee95d1c

Browse files
committed
feat: enhance forum UI, featured banners, comments theme, and i18n
- Forum: Chinese seed data, theme-aware post cards, skeleton sharp corners - FeaturedBanners: carousel with hover shadows and navigation arrows - Problem list API: fix field mapping (ownLists, featuredLists) - Comments: replace hardcoded black with theme-aware CSS variables - Auth i18n: rename hasAccount → alreadyHaveAccount, add signIn key - Backend: add -XX:-UseContainerSupport JVM flag for container compat - Migration: add V15 featured_problem_lists schema
1 parent c4aedd9 commit ee95d1c

14 files changed

Lines changed: 334 additions & 163 deletions

File tree

backend-spring/start.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { resolve } = require('path');
44
// Try common Maven wrapper paths
55
const mvnw = resolve(__dirname, 'mvnw');
66

7-
const proc = spawn(mvnw, ['spring-boot:run'], {
7+
const proc = spawn(mvnw, ['spring-boot:run', `-Dspring-boot.run.jvmArguments=-XX:-UseContainerSupport`], {
88
cwd: __dirname,
99
stdio: 'inherit',
1010
});

console/src/api/problem-list.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ function mapUserProblemListsResponse(input: unknown): UserProblemListsResponse {
123123
}
124124
const raw = input as Record<string, unknown>;
125125
return {
126-
myLists: Array.isArray(raw.myLists) ? raw.myLists.map(mapProblemList) : [],
126+
myLists: Array.isArray(raw.ownLists) ? raw.ownLists.map(mapProblemList) : [],
127127
savedLists: Array.isArray(raw.savedLists)
128128
? raw.savedLists.map(mapProblemList)
129129
: [],
130-
featured: Array.isArray(raw.featured)
131-
? raw.featured.map(mapProblemList)
130+
featured: Array.isArray(raw.featuredLists)
131+
? raw.featuredLists.map(mapProblemList)
132132
: [],
133133
categories: Array.isArray(raw.categories)
134134
? raw.categories.map(mapCategory)

console/src/components/comments/CommentConnector.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
>
66
<path
77
:d="path"
8-
stroke="black"
8+
:stroke="isActive ? 'var(--primary)' : 'var(--border)'"
99
:stroke-width="2"
1010
fill="none"
1111
stroke-linecap="round"
1212
class="transition-colors duration-200"
13-
:class="{ 'opacity-100': isActive, 'opacity-20': !isActive }"
1413
/>
1514
</svg>
1615
</template>

console/src/components/comments/CommentRail.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
y1="32"
2424
x2="16"
2525
:y2="height"
26-
stroke="black"
26+
:stroke="isActive ? 'var(--primary)' : 'var(--border)'"
2727
stroke-width="2"
2828
stroke-linecap="round"
2929
class="transition-colors duration-200"
30-
:class="{ 'opacity-100': isActive, 'opacity-20': !isActive }"
3130
/>
3231
</svg>
3332
</div>

console/src/components/comments/CommentThread.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ const commentTree = computed(() => {
4141
<div class="space-y-6 px-4 sm:px-6 pb-8">
4242
<div v-if="!isCommenting && !props.isLocked" class="mb-8">
4343
<div
44-
class="w-full rounded-none border border-muted-foreground/10 bg-muted/30 px-5 py-3.5 text-sm text-muted-foreground/70 cursor-text hover:bg-muted/50 hover:border-primary/20 transition-all duration-200 flex items-center gap-3 group"
44+
class="w-full rounded-none border border-border bg-background px-5 py-3.5 text-sm text-muted-foreground/70 cursor-text hover:border-primary/30 focus:border-primary/50 transition-all duration-200 flex items-center gap-3 group"
4545
@click="isCommenting = true"
4646
>
4747
<div
48-
class="h-8 w-8 rounded-none bg-background border border-muted-foreground/10 flex items-center justify-center group-hover:text-primary group-hover:border-primary/20 transition-all"
48+
class="h-8 w-8 rounded-none bg-muted border border-border flex items-center justify-center group-hover:text-primary group-hover:border-primary/30 transition-all"
4949
>
5050
<MessageSquare class="h-4 w-4" />
5151
</div>

0 commit comments

Comments
 (0)