--- // Component Script: // You can write any JavaScript/TypeScript that you'd like here. // It will run during the build, but never in the browser. // All variables are available to use in the HTML template below. // Full Astro Component Syntax: // https://docs.astro.build/core-concepts/astro-components/ import { DoesItAPI } from '~/helpers/api/client.js' import { publicRuntimeConfig } from '~/helpers/public-runtime-config.mjs' import { applyResponseDefaults } from '~/helpers/astro/request.js' import Layout from '../layouts/default.astro' import SimpleList from '../components/simple-list.astro' applyResponseDefaults( Astro ) const deviceIndex = await DoesItAPI.kind.device(1).get() const kinds = deviceIndex.items.map( device => { return { href: device.endpoint, heading: device.name, description: device.description, } }) ---

Devices