Add profile image enlargement and refine article display

Implement image enlargement for profile pictures, add relative time display for articles using "X min ago", and ensure articles are sorted by publication date.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0fb68265-c270-4198-9584-3d9be9bddb41
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/0fb68265-c270-4198-9584-3d9be9bddb41/rOJiPGe
This commit is contained in:
kimjaehyeon0101
2025-09-30 04:33:42 +00:00
parent 329c58f70f
commit 8e4d12d99e
9 changed files with 1836 additions and 41 deletions

View File

@ -28,7 +28,7 @@ import {
type InsertPredictionBet,
} from "@shared/schema";
import { db } from "./db";
import { eq, desc, and, ilike, sql } from "drizzle-orm";
import { eq, desc, asc, and, ilike, sql } from "drizzle-orm";
// Interface for storage operations
export interface IStorage {
@ -149,7 +149,7 @@ export class DatabaseStorage implements IStorage {
.select()
.from(articles)
.where(eq(articles.mediaOutletId, mediaOutletId))
.orderBy(desc(articles.publishedAt));
.orderBy(asc(articles.publishedMinutesAgo), desc(articles.publishedAt));
}
async getArticleBySlug(slug: string): Promise<Article | undefined> {