mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-26 20:19:50 +01:00
feat: baselayout
This commit is contained in:
1 parent
164b7fa454
commit
c1a2edb489
5 files changed
+17
-1
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "blitzkit",
|
"name": "blitzkit",
|
||||||
"version": "1.29.7",
|
"version": "2.0.0-beta.2",
|
||||||
"license": "BlitzKit License",
|
"license": "BlitzKit License",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
background-color: black;
|
||||||
|
filter: invert(1) hue-rotate(180deg);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {
|
|||||||
forEachChild,
|
forEachChild,
|
||||||
isFunctionDeclaration,
|
isFunctionDeclaration,
|
||||||
} from "typescript";
|
} from "typescript";
|
||||||
|
import BaseLayout from "../../layouts/BaseLayout.astro";
|
||||||
|
|
||||||
const root = `/src/pages/api`;
|
const root = `/src/pages/api`;
|
||||||
const globbed = import.meta.glob("/src/pages/api/**/*.ts", {
|
const globbed = import.meta.glob("/src/pages/api/**/*.ts", {
|
||||||
@@ -42,6 +43,7 @@ for (const fullPath in globbed) {
|
|||||||
paths.sort((a, b) => a.path.localeCompare(b.path));
|
paths.sort((a, b) => a.path.localeCompare(b.path));
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<BaseLayout>
|
||||||
<h1>api</h1>
|
<h1>api</h1>
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -52,3 +54,4 @@ paths.sort((a, b) => a.path.localeCompare(b.path));
|
|||||||
</>
|
</>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
</BaseLayout>
|
||||||
@@ -1,9 +1,12 @@
|
|||||||
---
|
---
|
||||||
import packageJson from "../../../../package.json";
|
import packageJson from "../../../../package.json";
|
||||||
|
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<BaseLayout>
|
||||||
<h1>blitzkit {packageJson.version}</h1>
|
<h1>blitzkit {packageJson.version}</h1>
|
||||||
|
|
||||||
<p><a href="/tanks">/tanks</a></p>
|
<p><a href="/tanks">/tanks</a></p>
|
||||||
|
|
||||||
<p><a href="/api">/api</a></p>
|
<p><a href="/api">/api</a></p>
|
||||||
|
</BaseLayout>
|
||||||
@@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
import { api } from "../../core/api/dynamic";
|
import { api } from "../../core/api/dynamic";
|
||||||
|
import BaseLayout from "../../layouts/BaseLayout.astro";
|
||||||
|
|
||||||
const tanksList = await api.tanks();
|
const tanksList = await api.tanks();
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<BaseLayout>
|
||||||
<h1>tanks</h1>
|
<h1>tanks</h1>
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -15,3 +17,4 @@ const tanksList = await api.tanks();
|
|||||||
</p>
|
</p>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
</BaseLayout>
|
||||||
Reference in new issue
Block a user