Files
web_server/nginx/vue/src/components/util/CommitHistory.vue
Adam French 7381cda7b8
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m39s
Move Gitea feed from frontend to backend with cached GraphQL proxy
Replaces direct browser-to-Gitea API calls with a backend service that
proxies and caches the feed (1-min TTL), served via the existing GraphQL
HomeData query. Commit message parsing now happens server-side.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 00:14:59 +00:00

41 lines
1.2 KiB
Vue

<script setup>
import { useHomeDataStore } from "@/stores/homeData";
import { storeToRefs } from "pinia";
import Header from "@/components/text/Header.vue";
const homeData = useHomeDataStore();
const { gitFeed: feed, loaded } = storeToRefs(homeData);
</script>
<template>
<div class="flex flex-col text-center h-full">
<Header class="text-left">Commits</Header>
<div v-if="!loaded" class="flex-1 overflow-y-auto">
<p>Loading latest activity...</p>
</div>
<div
v-else-if="feed"
class="flex-1 flex flex-col justify-center overflow-y-auto"
>
<h3>Last git activity</h3>
<img
:src="feed.avatarUrl"
alt="User avatar"
class="avatar"
/>
<a :href="feed.repoUrl">
<h3>repo: {{ feed.repoName }}</h3>
</a>
<p>Action: {{ feed.opType }}</p>
<p>Message: {{ feed.commitMessage }}</p>
<small> {{ new Date(feed.createdAt).toLocaleString() }}</small>
</div>
<div v-else class="flex-1 overflow-y-auto">
<p>No activity found.</p>
</div>
</div>
</template>