@buildappolis/env-manager
Version:
Enterprise-grade environment variable management system with encryption, snapshots, and validation
2 lines (1 loc) • 1.27 kB
JavaScript
import{j as e}from"./jsx-runtime.BjG_zV1W.js";import{r as n}from"./index.B7KzZMbc.js";function l(){const[t,s]=n.useState(null);if(n.useEffect(()=>{fetch("/api/version").then(r=>r.json()).then(r=>s(r)).catch(r=>console.error("Failed to fetch version:",r))},[]),!t)return null;const o=()=>{switch(t.environment){case"development":return"text-yellow-400";case"production":return"text-green-400";case"local":return"text-blue-400";default:return"text-gray-400"}},a=()=>{switch(t.environment){case"development":return"🔧";case"production":return"✅";case"local":return"🏠";default:return"📦"}};return e.jsx("footer",{className:"fixed bottom-0 left-0 right-0 bg-gray-900 border-t-2 border-gray-800 px-4 py-2",children:e.jsxs("div",{className:"container mx-auto flex justify-between items-center text-xs",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("span",{className:"text-gray-500",children:["ENV MANAGER v",t.version]}),e.jsxs("span",{className:`flex items-center gap-1 ${o()}`,children:[a()," ",t.environment.toUpperCase()]}),t.isPublished&&e.jsx("span",{className:"text-cyan-400",children:"📦 PUBLISHED"})]}),e.jsxs("div",{className:"text-gray-600",children:["© ",new Date().getFullYear()," BuildAppolis"]})]})})}export{l as default};