mirror of
https://github.com/github/awesome-copilot.git
synced 2026-08-30 20:43:06 +00:00
52 lines
2.3 KiB
Plaintext
52 lines
2.3 KiB
Plaintext
---
|
|
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
|
|
import agentsData from '../../public/data/agents.json';
|
|
import ContributeCTA from '../components/ContributeCTA.astro';
|
|
import EmbeddedPageData from '../components/EmbeddedPageData.astro';
|
|
import PageHeader from '../components/PageHeader.astro';
|
|
import BackToTop from '../components/BackToTop.astro';
|
|
import { renderAgentsHtml, sortAgents } from '../scripts/pages/agents-render';
|
|
|
|
const initialItems = sortAgents(agentsData.items, 'title');
|
|
---
|
|
|
|
<StarlightPage frontmatter={{ title: 'Custom Agents', description: 'Specialized agents that enhance GitHub Copilot for specific technologies, workflows, and domains', template: 'splash', prev: false, next: false, editUrl: false }}>
|
|
<div id="main-content" class="agents-page listing-cards-page">
|
|
<PageHeader title="Custom Agents" description="Specialized agents that enhance GitHub Copilot for specific technologies, workflows, and domains" icon="robot" />
|
|
|
|
<div class="page-content">
|
|
<div class="container">
|
|
<div class="listing-toolbar">
|
|
<div class="listing-toolbar-row">
|
|
<div class="results-count" id="results-count" aria-live="polite">{initialItems.length} agents</div>
|
|
<details class="listing-controls">
|
|
<summary class="listing-controls-trigger btn btn-secondary btn-small">Sort</summary>
|
|
<div class="listing-controls-panel">
|
|
<div class="filters-bar" id="filters-bar">
|
|
<div class="filter-group">
|
|
<label for="sort-select">Sort:</label>
|
|
<select id="sort-select" aria-label="Sort by">
|
|
<option value="title">Name (A-Z)</option>
|
|
<option value="lastUpdated">Recently Updated</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
</div>
|
|
<div class="resource-list" id="resource-list" role="list" set:html={renderAgentsHtml(initialItems)}></div>
|
|
<ContributeCTA resourceType="agents" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<BackToTop />
|
|
<EmbeddedPageData filename="agents.json" data={agentsData} />
|
|
|
|
<script>
|
|
import '../scripts/listing-flyouts';
|
|
import '../scripts/pages/agents';
|
|
</script>
|
|
</StarlightPage>
|