@seip/blue-bird 0.7.6 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env_example +34 -34
- package/AGENTS.md +174 -249
- package/LICENSE +21 -21
- package/README.md +312 -367
- package/{index.js → backend/index.js} +22 -30
- package/backend/routes/api.js +57 -57
- package/core/app.js +338 -402
- package/core/auth.js +262 -256
- package/core/cache.js +174 -174
- package/core/cli/docker.js +488 -457
- package/core/cli/init.js +332 -336
- package/core/cli/route.js +42 -42
- package/core/config.js +52 -52
- package/core/database.js +263 -263
- package/core/debug.js +248 -248
- package/core/logger.js +115 -115
- package/core/middleware.js +27 -27
- package/core/router.js +144 -144
- package/core/swagger.js +40 -40
- package/core/upload.js +77 -77
- package/core/validate.js +380 -380
- package/docker/Dockerfile +16 -16
- package/docker/docker-compose.dev.yml +6 -0
- package/docker/docker-compose.mysql.yml +92 -92
- package/docker/docker-compose.none.yml +68 -68
- package/docker/docker-compose.postgres.yml +93 -93
- package/docker/nginx.conf +98 -106
- package/docker-compose.yml +92 -92
- package/frontend/about.html +98 -0
- package/frontend/css/app.css +0 -0
- package/frontend/favicon.ico +0 -0
- package/frontend/index.html +141 -0
- package/frontend/js/bundle.js +8 -0
- package/package.json +64 -71
- package/frontend/astro.config.mjs +0 -35
- package/frontend/public/css/app.css +0 -319
- package/frontend/public/favicon.ico +0 -0
- package/frontend/src/http/api.js +0 -29
- package/frontend/src/layouts/Layout.astro +0 -20
- package/frontend/src/pages/about.astro +0 -54
- package/frontend/src/pages/index.astro +0 -110
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import Layout from "../layouts/Layout.astro";
|
|
3
|
-
import { apiUrl } from "../http/api";
|
|
4
|
-
|
|
5
|
-
let apiData = null;
|
|
6
|
-
try {
|
|
7
|
-
const targetUrl = apiUrl("api/", Astro.url);
|
|
8
|
-
console.log("[index.astro] request URL:", Astro.url.href);
|
|
9
|
-
console.log("[index.astro] target URL:", targetUrl);
|
|
10
|
-
const response = await fetch(targetUrl);
|
|
11
|
-
apiData = await response.json();
|
|
12
|
-
console.log("[index.astro] /api/ response:", apiData);
|
|
13
|
-
} catch (err) {
|
|
14
|
-
console.error("[index.astro] fetch error:", err.message);
|
|
15
|
-
if (err.cause) {
|
|
16
|
-
console.error("[index.astro] fetch error cause:", err.cause);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
<Layout title="Home - Blue Bird">
|
|
22
|
-
<header class="site-header">
|
|
23
|
-
<div class="nav-bar">
|
|
24
|
-
<a href="/" class="nav-brand">
|
|
25
|
-
<div class="brand-icon">
|
|
26
|
-
<svg
|
|
27
|
-
width="20"
|
|
28
|
-
height="20"
|
|
29
|
-
fill="none"
|
|
30
|
-
stroke="white"
|
|
31
|
-
viewBox="0 0 24 24"
|
|
32
|
-
>
|
|
33
|
-
<path
|
|
34
|
-
stroke-linecap="round"
|
|
35
|
-
stroke-linejoin="round"
|
|
36
|
-
stroke-width="2"
|
|
37
|
-
d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"></path>
|
|
38
|
-
</svg>
|
|
39
|
-
</div>
|
|
40
|
-
Blue Bird
|
|
41
|
-
</a>
|
|
42
|
-
<nav class="nav-links">
|
|
43
|
-
<a href="/">Home</a>
|
|
44
|
-
<a href="/about">About</a>
|
|
45
|
-
</nav>
|
|
46
|
-
</div>
|
|
47
|
-
</header>
|
|
48
|
-
|
|
49
|
-
<main class="container py-3xl">
|
|
50
|
-
<div class="hero">
|
|
51
|
-
<div class="hero-glow hero-glow-1"></div>
|
|
52
|
-
<div class="hero-glow hero-glow-2"></div>
|
|
53
|
-
|
|
54
|
-
<div class="hero-inner">
|
|
55
|
-
<span class="badge mb-xl" style="display:inline-flex;"
|
|
56
|
-
>Welcome to Blue Bird with Astro</span
|
|
57
|
-
>
|
|
58
|
-
|
|
59
|
-
<h1 class="gradient-text mt-lg">
|
|
60
|
-
Hello, Astro Developer!<br />Welcome to the next level.
|
|
61
|
-
</h1>
|
|
62
|
-
|
|
63
|
-
<p class="mt-lg" style="max-width:40rem;margin-inline:auto;">
|
|
64
|
-
Blue Bird is a fast, structured, and opinionated Express.js framework
|
|
65
|
-
for developers who want visual elegance and performance, now powered
|
|
66
|
-
by Astro on the frontend.
|
|
67
|
-
</p>
|
|
68
|
-
|
|
69
|
-
<div class="flex justify-center gap-md mt-2xl flex-wrap">
|
|
70
|
-
<a href="/about" class="btn btn-primary">About Us →</a>
|
|
71
|
-
<a
|
|
72
|
-
href="https://www.npmjs.com/package/@seip/blue-bird"
|
|
73
|
-
target="_blank"
|
|
74
|
-
class="btn btn-outline"
|
|
75
|
-
>
|
|
76
|
-
npm package
|
|
77
|
-
</a>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
|
|
82
|
-
<section class="grid-3 mt-2xl">
|
|
83
|
-
<div class="card">
|
|
84
|
-
<h4 class="gradient-text-blue mb-md">Astro SSR</h4>
|
|
85
|
-
<p>
|
|
86
|
-
Astro (v7.0) renders pages server-side via the Node adapter in
|
|
87
|
-
middleware mode, mounted inside Express.
|
|
88
|
-
</p>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="card">
|
|
91
|
-
<h4 class="gradient-text-blue mb-md">AES-256-GCM Auth</h4>
|
|
92
|
-
<p>
|
|
93
|
-
JWT tokens encrypted with military-grade AES-256-GCM and served
|
|
94
|
-
through secure signed cookies.
|
|
95
|
-
</p>
|
|
96
|
-
</div>
|
|
97
|
-
<div class="card">
|
|
98
|
-
<h4 class="gradient-text-blue mb-md">Docker CLI</h4>
|
|
99
|
-
<p>
|
|
100
|
-
One-command orchestration for local MySQL, production stacks, and
|
|
101
|
-
container lifecycle management.
|
|
102
|
-
</p>
|
|
103
|
-
</div>
|
|
104
|
-
</section>
|
|
105
|
-
</main>
|
|
106
|
-
|
|
107
|
-
<footer class="site-footer">
|
|
108
|
-
<p>Powered by Blue Bird Framework & Astro. All rights reserved.</p>
|
|
109
|
-
</footer>
|
|
110
|
-
</Layout>
|