@coji/journal-mcp
Version:
MCP server for journal entries with web viewer
2 lines (1 loc) • 1.43 kB
JavaScript
import{w as n}from"./with-props-C5f5Zz1S.js";import{o as e}from"./chunk-DQRVZFIR-BjeRaiJT.js";import{E as l}from"./entry-card-B52nTnJl.js";function c({}){return[{title:"Journal - Home"},{name:"description",content:"Recent journal entries"}]}const x=n(function({loaderData:a}){const{recentEntries:t,stats:s}=a;return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Recent Journal Entries"}),e.jsxs("p",{className:"text-gray-600",children:[s.totalEntries," entries across ",s.totalFiles," days"]})]}),t.length===0?e.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200 p-8 text-center",children:[e.jsx("div",{className:"text-6xl mb-4",children:"📝"}),e.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No journal entries yet"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Start writing your first journal entry using Claude Desktop with the journal MCP server."}),e.jsxs("div",{className:"bg-gray-50 rounded-lg p-4 text-left max-w-md mx-auto",children:[e.jsx("p",{className:"text-sm text-gray-700 font-medium mb-2",children:"Try asking Claude:"}),e.jsx("p",{className:"text-sm text-gray-600 italic",children:'"Add a journal entry about what I learned today"'})]})]}):e.jsx("div",{className:"space-y-6",children:t.map(r=>e.jsx(l,{file:r},r.date))})]})});export{x as default,c as meta};