♻️ Transformed API keys

This commit is contained in:
2025-09-19 01:26:21 +08:00
parent 60e8b1dcfb
commit 48a9a97e18
9 changed files with 171 additions and 95 deletions

View File

@@ -7,9 +7,9 @@
<span class="text-xs">@{{ props.item.publisher.name }}</span>
</p>
<p class="text-xs flex gap-1">
<span>{{ DateTime.fromISO(props.item.created_at).toRelative() }}</span>
<span>{{ DateTime.fromISO(props.item.createdAt).toRelative() }}</span>
<span class="font-bold">·</span>
<span>{{ DateTime.fromISO(props.item.created_at).toLocaleString() }}</span>
<span>{{ DateTime.fromISO(props.item.createdAt).toLocaleString() }}</span>
</p>
</div>
</div>
@@ -18,8 +18,9 @@
<script lang="ts" setup>
import { computed } from 'vue'
import { DateTime } from 'luxon'
import type { SnPost } from '~/types/api';
const props = defineProps<{ item: any }>()
const props = defineProps<{ item: SnPost }>()
const apiBase = useSolarNetworkUrl();
const publisherAvatar = computed(() =>