split tests

This commit is contained in:
lovebird 2025-03-17 18:17:43 +01:00
parent 5720a69acf
commit 0682e23ae2
3 changed files with 86 additions and 37 deletions

View File

@ -0,0 +1,26 @@
---
import path from "node:path"
import BaseLayout from "@/layouts/BaseLayout.astro"
import Wrapper from "@/components/containers/Wrapper.astro"
import Picture from "@/components/polymech/image.astro"
import { Img } from "imagetools/components"
import { getCollection } from "astro:content"
import KBot from "@/components/polymech/kbot.astro"
const locale = Astro.currentLocale
const store = `${locale}/store/`
const src = `./public/products/overview-3.jpg`
const abs = path.resolve(src)
---
<BaseLayout>
<Wrapper variant="standard" class="py-4">
<section>
<div class="py-2 space-y-2">
<div class="grid md:grid-cols-1 lg:grid-cols-1 gap-4" >
<Img src={abs} alt="Overview"></Picture>
</div>
</div>
</section>
</Wrapper
></BaseLayout
>

View File

@ -1,37 +1,33 @@
---
import BaseLayout from "@/layouts/BaseLayout.astro"
import Wrapper from "@/components/containers/Wrapper.astro"
import { getCollection } from "astro:content"
import KBot from "@/components/polymech/kbot.astro"
const locale = Astro.currentLocale
const store = `${locale}/store/`
import Map from "@/components/polymech/map.astro"
const mapOptions = {
zoom: 9,
api_key: "AIzaSyCHsscCXksisHKMnUihOxl2X1mKny-qrqk"
}
---
<BaseLayout>
<Wrapper variant="standard" class="py-4">
<section>
<div class="py-2 space-y-2">
<Map options={mapOptions} />
<div class="grid md:grid-cols-1 lg:grid-cols-1 gap-4" >
<KBot router="openai" model="gpt-4.5-preview" mode="completion" template="code_simple" disabled={true}>
</KBot>
<KBot template="research" filters="code" renderer="md" cache dst="./temp/research-plastic.md" disabled={true}>
Plastic types, as jsx, for Astro, nicely styled table, for nice people :)
</KBot>
<KBot filters="code" template="code_simple" cache dst="./temp/jsx2.md" renderer="jsx" disabled={true}>
simple table, 3 rows, for astro, as jsx, ensure table styling with borders
</KBot>
</div>
</div>
</section>
</Wrapper
></BaseLayout
>
---
import BaseLayout from "@/layouts/BaseLayout.astro"
import Wrapper from "@/components/containers/Wrapper.astro"
import KBot from "@/components/polymech/kbot.astro"
import Map from "@/components/polymech/map.astro"
const mapOptions = {
zoom: 9,
api_key: "AIzaSyCHsscCXksisHKMnUihOxl2X1mKny-qrqk"
}
---
<BaseLayout>
<Wrapper variant="standard" class="py-4">
<section>
<div class="py-2 space-y-2">
<Map options={mapOptions} />
<div class="grid md:grid-cols-1 lg:grid-cols-1 gap-4" >
<KBot router="openai" model="gpt-4.5-preview" mode="completion" template="code_simple" disabled={true}>
</KBot>
<KBot template="research" filters="code" renderer="md" cache dst="./temp/research-plastic.md" disabled={true}>
Plastic types, as jsx, for Astro, nicely styled table, for nice people :)
</KBot>
<KBot filters="code" template="code_simple" cache dst="./temp/jsx2.md" renderer="jsx" disabled={true}>
simple table, 3 rows, for astro, as jsx, ensure table styling with borders
</KBot>
</div>
</div>
</section>
</Wrapper
></BaseLayout
>

27
src/pages/tests/map.astro Normal file
View File

@ -0,0 +1,27 @@
---
import BaseLayout from "@/layouts/BaseLayout.astro"
import Wrapper from "@/components/containers/Wrapper.astro"
import { getCollection } from "astro:content"
import KBot from "@/components/polymech/kbot.astro"
const locale = Astro.currentLocale
const store = `${locale}/store/`
import Map from "@/components/polymech/map.astro"
const mapOptions = {
zoom: 9,
api_key: "AIzaSyCHsscCXksisHKMnUihOxl2X1mKny-qrqk"
}
---
<BaseLayout>
<Wrapper variant="standard" class="py-4">
<section>
<div class="py-2 space-y-2">
<Map options={mapOptions} />
</div>
</section>
</Wrapper
></BaseLayout
>