|
|
@@ -12,7 +12,7 @@ withSidebar: true
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<p class="text-xs text-surface-500 mt-2" x-show="lastUpdated">
|
|
|
|
<p class="text-xs text-surface-500 mt-2" x-show="lastUpdated">
|
|
|
|
Last updated: <span class="font-mono" x-text="formatDate(lastUpdated, 'full')"></span>
|
|
|
|
Last updated: <span class="font-mono" x-text="formatDate(lastUpdated, 'full')"></span>
|
|
|
|
<button @click="refresh()" class="ml-2 text-accent-600 hover:text-accent-700 dark:text-accent-400 focus:outline-none focus:ring-2 focus:ring-accent-500 rounded" :disabled="loading">
|
|
|
|
<button @click="refresh()" class="ml-2 text-accent-600 hover:text-accent-700 dark:text-accent-400 rounded" :disabled="loading">
|
|
|
|
<svg class="w-3 h-3 inline" :class="{ 'animate-spin': loading }" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
<svg class="w-3 h-3 inline" :class="{ 'animate-spin': loading }" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
@@ -45,7 +45,7 @@ withSidebar: true
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
@click="viewMode = 'list'"
|
|
|
|
@click="viewMode = 'list'"
|
|
|
|
:class="viewMode === 'list' ? 'bg-accent-600 text-white' : 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300 hover:bg-surface-200 dark:hover:bg-surface-700'"
|
|
|
|
:class="viewMode === 'list' ? 'bg-accent-600 text-white' : 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300 hover:bg-surface-200 dark:hover:bg-surface-700'"
|
|
|
|
class="px-3 py-2 rounded-lg text-sm font-medium transition-colors flex items-center gap-2 focus:outline-none focus:ring-2 focus:ring-accent-500"
|
|
|
|
class="px-3 py-2 rounded-lg text-sm font-medium transition-colors flex items-center gap-2"
|
|
|
|
title="List view"
|
|
|
|
title="List view"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
@@ -56,7 +56,7 @@ withSidebar: true
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
@click="viewMode = 'card'"
|
|
|
|
@click="viewMode = 'card'"
|
|
|
|
:class="viewMode === 'card' ? 'bg-accent-600 text-white' : 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300 hover:bg-surface-200 dark:hover:bg-surface-700'"
|
|
|
|
:class="viewMode === 'card' ? 'bg-accent-600 text-white' : 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300 hover:bg-surface-200 dark:hover:bg-surface-700'"
|
|
|
|
class="px-3 py-2 rounded-lg text-sm font-medium transition-colors flex items-center gap-2 focus:outline-none focus:ring-2 focus:ring-accent-500"
|
|
|
|
class="px-3 py-2 rounded-lg text-sm font-medium transition-colors flex items-center gap-2"
|
|
|
|
title="Card view"
|
|
|
|
title="Card view"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
@@ -67,7 +67,7 @@ withSidebar: true
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
@click="viewMode = 'full'"
|
|
|
|
@click="viewMode = 'full'"
|
|
|
|
:class="viewMode === 'full' ? 'bg-accent-600 text-white' : 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300 hover:bg-surface-200 dark:hover:bg-surface-700'"
|
|
|
|
:class="viewMode === 'full' ? 'bg-accent-600 text-white' : 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300 hover:bg-surface-200 dark:hover:bg-surface-700'"
|
|
|
|
class="px-3 py-2 rounded-lg text-sm font-medium transition-colors flex items-center gap-2 focus:outline-none focus:ring-2 focus:ring-accent-500"
|
|
|
|
class="px-3 py-2 rounded-lg text-sm font-medium transition-colors flex items-center gap-2"
|
|
|
|
title="Expanded view"
|
|
|
|
title="Expanded view"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
@@ -81,7 +81,7 @@ withSidebar: true
|
|
|
|
<div class="relative" x-show="feeds.length > 1">
|
|
|
|
<div class="relative" x-show="feeds.length > 1">
|
|
|
|
<select
|
|
|
|
<select
|
|
|
|
x-model="filterFeed"
|
|
|
|
x-model="filterFeed"
|
|
|
|
class="appearance-none bg-surface-100 dark:bg-surface-800 border border-surface-300 dark:border-surface-600 rounded-lg px-4 py-2 pr-8 text-sm text-surface-700 dark:text-surface-300 focus:outline-none focus:ring-2 focus:ring-accent-500 transition-colors"
|
|
|
|
class="appearance-none bg-surface-100 dark:bg-surface-800 border border-surface-300 dark:border-surface-600 rounded-lg px-4 py-2 pr-8 text-sm text-surface-700 dark:text-surface-300 transition-colors"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<option value="all">All Sources (<span x-text="feeds.length"></span>)</option>
|
|
|
|
<option value="all">All Sources (<span x-text="feeds.length"></span>)</option>
|
|
|
|
<template x-for="feed in feeds" :key="feed.id">
|
|
|
|
<template x-for="feed in feeds" :key="feed.id">
|
|
|
@@ -125,7 +125,7 @@ withSidebar: true
|
|
|
|
{# List View #}
|
|
|
|
{# List View #}
|
|
|
|
<div x-show="viewMode === 'list'" class="space-y-3">
|
|
|
|
<div x-show="viewMode === 'list'" class="space-y-3">
|
|
|
|
<template x-for="item in filteredItems" :key="item.id">
|
|
|
|
<template x-for="item in filteredItems" :key="item.id">
|
|
|
|
<article class="flex items-start gap-4 p-4 bg-surface-50 dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700 shadow-sm hover:border-accent-400 dark:hover:border-accent-600 transition-colors">
|
|
|
|
<article class="flex items-start gap-4 p-4 bg-surface-50 dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700 shadow-sm hover:border-amber-400 dark:hover:border-amber-600 transition-colors">
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
x-show="item.imageUrl"
|
|
|
|
x-show="item.imageUrl"
|
|
|
|
:src="item.imageUrl"
|
|
|
|
:src="item.imageUrl"
|
|
|
@@ -190,7 +190,7 @@ withSidebar: true
|
|
|
|
{# Card View #}
|
|
|
|
{# Card View #}
|
|
|
|
<div x-show="viewMode === 'card'" class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
|
|
|
<div x-show="viewMode === 'card'" class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
|
|
|
<template x-for="item in filteredItems" :key="item.id">
|
|
|
|
<template x-for="item in filteredItems" :key="item.id">
|
|
|
|
<article class="bg-surface-50 dark:bg-surface-800 rounded-xl border border-surface-200 dark:border-surface-700 shadow-sm overflow-hidden hover:border-accent-400 dark:hover:border-accent-600 transition-colors">
|
|
|
|
<article class="bg-surface-50 dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700 shadow-sm overflow-hidden hover:border-amber-400 dark:hover:border-amber-600 transition-colors">
|
|
|
|
<div x-show="item.imageUrl" class="aspect-video bg-surface-100 dark:bg-surface-700">
|
|
|
|
<div x-show="item.imageUrl" class="aspect-video bg-surface-100 dark:bg-surface-700">
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
:src="item.imageUrl"
|
|
|
|
:src="item.imageUrl"
|
|
|
@@ -243,7 +243,7 @@ withSidebar: true
|
|
|
|
{# Full/Expanded View #}
|
|
|
|
{# Full/Expanded View #}
|
|
|
|
<div x-show="viewMode === 'full'" class="space-y-6">
|
|
|
|
<div x-show="viewMode === 'full'" class="space-y-6">
|
|
|
|
<template x-for="item in filteredItems" :key="item.id">
|
|
|
|
<template x-for="item in filteredItems" :key="item.id">
|
|
|
|
<article class="bg-surface-50 dark:bg-surface-800 rounded-xl border border-surface-200 dark:border-surface-700 shadow-sm overflow-hidden">
|
|
|
|
<article class="bg-surface-50 dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700 shadow-sm overflow-hidden">
|
|
|
|
<div x-show="item.imageUrl" class="aspect-[3/1] bg-surface-100 dark:bg-surface-700">
|
|
|
|
<div x-show="item.imageUrl" class="aspect-[3/1] bg-surface-100 dark:bg-surface-700">
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
:src="item.imageUrl"
|
|
|
|
:src="item.imageUrl"
|
|
|
@@ -329,7 +329,7 @@ withSidebar: true
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
@click="loadPage(pagination.page - 1)"
|
|
|
|
@click="loadPage(pagination.page - 1)"
|
|
|
|
:disabled="!pagination.hasPrev || loading"
|
|
|
|
:disabled="!pagination.hasPrev || loading"
|
|
|
|
class="px-4 py-2 rounded-lg text-sm font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed bg-surface-100 dark:bg-surface-800 hover:bg-surface-200 dark:hover:bg-surface-700 focus:outline-none focus:ring-2 focus:ring-accent-500"
|
|
|
|
class="px-4 py-2 rounded-lg text-sm font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed bg-surface-100 dark:bg-surface-800 hover:bg-surface-200 dark:hover:bg-surface-700"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
Previous
|
|
|
|
Previous
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
@@ -339,7 +339,7 @@ withSidebar: true
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
@click="loadPage(pagination.page + 1)"
|
|
|
|
@click="loadPage(pagination.page + 1)"
|
|
|
|
:disabled="!pagination.hasNext || loading"
|
|
|
|
:disabled="!pagination.hasNext || loading"
|
|
|
|
class="px-4 py-2 rounded-lg text-sm font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed bg-surface-100 dark:bg-surface-800 hover:bg-surface-200 dark:hover:bg-surface-700 focus:outline-none focus:ring-2 focus:ring-accent-500"
|
|
|
|
class="px-4 py-2 rounded-lg text-sm font-medium transition-colors disabled:opacity-50 disabled:cursor-not-allowed bg-surface-100 dark:bg-surface-800 hover:bg-surface-200 dark:hover:bg-surface-700"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
Next
|
|
|
|
Next
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|