mirror of
https://github.com/ngthanhvu/kr-phim.git
synced 2026-08-10 16:07:47 +00:00
feat: cập nhật lại cache image
This commit is contained in:
@@ -30,7 +30,7 @@ function handleVote(replyId: number, vote: number) {
|
||||
|
||||
function formatMentions(content: string) {
|
||||
let html = content.replace(/@(\S+)/g, '<span class="text-cinek-400 font-medium">@$1</span>')
|
||||
html = html.replace(/!\[GIF\]\((https?:\/\/[^\s)]+)\)/g, '<img src="$1" alt="GIF" class="max-w-[150px] rounded-lg mt-1" loading="lazy" />')
|
||||
html = html.replace(/!\[GIF\]\((https?:\/\/[^\s)]+)\)/g, '<img src="/api/image-proxy?url=$1" alt="GIF" class="max-w-[150px] rounded-lg mt-1" loading="lazy" />')
|
||||
return html
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -47,7 +47,7 @@ function toggle(category: string, index: number) {
|
||||
<main class="min-h-screen bg-[#0f111a] text-white">
|
||||
<AppHeader />
|
||||
|
||||
<section class="mx-auto max-w-[800px] px-4 pt-24 pb-16 sm:px-6 lg:px-8 xl:px-10">
|
||||
<section class="mx-auto max-w-200 px-4 pt-24 pb-16 sm:px-6 lg:px-8 xl:px-10">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-3xl font-black text-white sm:text-4xl">Hỏi & Đáp</h1>
|
||||
<p class="mt-2 text-slate-400">
|
||||
@@ -86,6 +86,7 @@ function toggle(category: string, index: number) {
|
||||
.faq-leave-active {
|
||||
transition: opacity 0.2s ease, max-height 0.2s ease;
|
||||
}
|
||||
|
||||
.faq-enter-from,
|
||||
.faq-leave-to {
|
||||
opacity: 0;
|
||||
|
||||
+4
-3
@@ -723,7 +723,7 @@ useHead({
|
||||
class="h-12 w-8 shrink-0 rounded object-cover ring-1 ring-white/10">
|
||||
|
||||
<div class="min-w-0 flex-1">
|
||||
<p class="truncate text-[13px] font-bold text-white group-hover:text-yellow-300">
|
||||
<p class="truncate text-[13px] text-white group-hover:text-yellow-300">
|
||||
{{ movie.name }}
|
||||
</p>
|
||||
</div>
|
||||
@@ -767,7 +767,7 @@ useHead({
|
||||
class="h-12 w-8 shrink-0 rounded object-cover ring-1 ring-white/10">
|
||||
|
||||
<div class="min-w-0 flex-1">
|
||||
<p class="truncate text-[13px] font-bold text-white group-hover:text-yellow-300">
|
||||
<p class="truncate text-[13px] text-white group-hover:text-yellow-300">
|
||||
{{ movie.name }}
|
||||
</p>
|
||||
</div>
|
||||
@@ -807,7 +807,8 @@ useHead({
|
||||
: 'text-red-400'" class="size-3.5 shrink-0" />
|
||||
|
||||
<div class="flex h-12 items-center">
|
||||
<span class="rounded-xl px-4 py-2 text-[10px] font-black text-white" :class="genreTagColor(index)">
|
||||
<span class="text-[12px] font-semibold px-4 py-1.5 rounded-full bg-amber-500/90 text-white shadow-sm"
|
||||
:class="genreTagColor(index)">
|
||||
{{ genre.name }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user