Initial open-source release (MIT): image2api AI gateway

Full Go backend + Vue 3 frontend, OpenAI-compatible API, multi-provider
account pools, billing/admin, Docker one-command deploy with auto HTTPS.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 22:59:04 +08:00
co-authored by Claude Opus 4.8
commit 606caaf047
142 changed files with 33648 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<script setup>
// App shell is layout-driven: each top-level route renders its own layout
// (PublicLayout for /, /user; AdminLayout for /admin/*). The login modal is
// mounted here so it can overlay any page instead of being a separate route.
import { onMounted } from 'vue'
import LoginModal from './components/LoginModal.vue'
import { auth, refreshMe, openRegister } from './auth'
// An invite link (/?ref=CODE) should drop a guest straight into registration
// with the code attached. Logged-in users just ignore the ref.
onMounted(async () => {
const code = new URLSearchParams(location.search).get('ref')
if (!code) return
if (!auth.ready) await refreshMe()
if (!auth.token || !auth.user) openRegister(code)
})
</script>
<template>
<router-view />
<LoginModal />
</template>