@grove-dev/cli 0.7.0 → 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/README.md +30 -10
- package/dist/audit-cli.d.ts +1 -1
- package/dist/audit-cli.d.ts.map +1 -1
- package/dist/audit-cli.js +11 -11
- package/dist/audit-cli.js.map +1 -1
- package/dist/audit.d.ts +4 -4
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +91 -51
- package/dist/audit.js.map +1 -1
- package/dist/collection-cli.d.ts.map +1 -1
- package/dist/collection-cli.js +1 -1
- package/dist/collection-cli.js.map +1 -1
- package/dist/diff.d.ts +43 -0
- package/dist/diff.d.ts.map +1 -0
- package/dist/diff.js +70 -0
- package/dist/diff.js.map +1 -0
- package/dist/hash.d.ts +36 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +82 -0
- package/dist/hash.js.map +1 -0
- package/dist/icons-cli.d.ts +1 -1
- package/dist/icons-cli.d.ts.map +1 -1
- package/dist/icons-cli.js +32 -14
- package/dist/icons-cli.js.map +1 -1
- package/dist/import-cli.d.ts +1 -1
- package/dist/import-cli.d.ts.map +1 -1
- package/dist/import-cli.js +6 -6
- package/dist/import-cli.js.map +1 -1
- package/dist/index.js +84 -60
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +37 -4
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +251 -57
- package/dist/init.js.map +1 -1
- package/dist/package.json +3 -2
- package/dist/r/about.json +22 -0
- package/dist/r/browse.json +89 -0
- package/dist/r/collections.json +59 -0
- package/dist/r/contributors.json +22 -0
- package/dist/r/default.json +438 -0
- package/dist/r/home.json +67 -0
- package/dist/r/not-found.json +22 -0
- package/dist/r/project-card.json +48 -0
- package/dist/r/record.json +59 -0
- package/dist/r/registry.json +903 -0
- package/dist/r/shell.json +75 -0
- package/dist/r/submit.json +28 -0
- package/dist/r/taxonomy.json +65 -0
- package/dist/r/ui.json +54 -0
- package/dist/readme-cli.d.ts +1 -1
- package/dist/readme-cli.d.ts.map +1 -1
- package/dist/readme-cli.js +37 -47
- package/dist/readme-cli.js.map +1 -1
- package/dist/registry.d.ts +74 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +180 -0
- package/dist/registry.js.map +1 -0
- package/dist/run.d.ts +7 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/run.js +20 -0
- package/dist/run.js.map +1 -0
- package/dist/unified-diff.d.ts +14 -0
- package/dist/unified-diff.d.ts.map +1 -0
- package/dist/unified-diff.js +103 -0
- package/dist/unified-diff.js.map +1 -0
- package/dist/update.d.ts +47 -0
- package/dist/update.d.ts.map +1 -0
- package/dist/update.js +231 -0
- package/dist/update.js.map +1 -0
- package/package.json +5 -4
- package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +0 -33
- package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +0 -48
- package/dist/site/.github/pull_request_template.md +0 -27
- package/dist/site/.github/workflows/ci.yml +0 -21
- package/dist/site/.github/workflows/cleanup.yml +0 -27
- package/dist/site/.github/workflows/deploy.yml +0 -36
- package/dist/site/.github/workflows/readme.yml +0 -41
- package/dist/site/.github/workflows/sync-contributors.yml +0 -28
- package/dist/site/.github/workflows/sync-github.yml +0 -31
- package/dist/site/README.md +0 -89
- package/dist/site/astro.config.mjs +0 -26
- package/dist/site/content/records/crewai.md +0 -898
- package/dist/site/content/records/dify.md +0 -35
- package/dist/site/content/records/flowise.md +0 -38
- package/dist/site/content/records/llamaindex.md +0 -45
- package/dist/site/content/records/ollama.md +0 -39
- package/dist/site/content/records/open-webui.md +0 -35
- package/dist/site/data/collections/top-ai-agents.yml +0 -14
- package/dist/site/data/collections/top-flutter.yml +0 -12
- package/dist/site/data/health.yml +0 -13
- package/dist/site/data/records/.gitkeep +0 -0
- package/dist/site/data/records/crewai.yml +0 -23
- package/dist/site/data/records/dify.yml +0 -23
- package/dist/site/data/records/flowise.yml +0 -23
- package/dist/site/data/records/llamaindex.yml +0 -23
- package/dist/site/data/records/ollama.yml +0 -30
- package/dist/site/data/records/open-webui.yml +0 -23
- package/dist/site/data/taxonomy/categories.yml +0 -10
- package/dist/site/data/taxonomy/distribution-channels.yml +0 -43
- package/dist/site/data/taxonomy/licenses.yml +0 -16
- package/dist/site/data/taxonomy/platforms.yml +0 -20
- package/dist/site/data/taxonomy/stacks.yml +0 -15
- package/dist/site/data/taxonomy/topics.yml +0 -29
- package/dist/site/grove.config.ts +0 -110
- package/dist/site/package.json +0 -34
- package/dist/site/public/icons/.grove-icons.json +0 -47
- package/dist/site/public/icons/platforms/android.svg +0 -1
- package/dist/site/public/icons/platforms/app.svg +0 -4
- package/dist/site/public/icons/platforms/chrome.svg +0 -1
- package/dist/site/public/icons/platforms/desktop.svg +0 -4
- package/dist/site/public/icons/platforms/embedded.svg +0 -5
- package/dist/site/public/icons/platforms/ios.svg +0 -1
- package/dist/site/public/icons/platforms/linux.svg +0 -1
- package/dist/site/public/icons/platforms/macos.svg +0 -1
- package/dist/site/public/icons/platforms/ubuntu.svg +0 -1
- package/dist/site/public/icons/platforms/web.svg +0 -5
- package/dist/site/public/icons/platforms/windows.svg +0 -1
- package/dist/site/public/icons/stacks/android.svg +0 -1
- package/dist/site/public/icons/stacks/apple.svg +0 -1
- package/dist/site/public/icons/stacks/bun.svg +0 -1
- package/dist/site/public/icons/stacks/capacitor.svg +0 -1
- package/dist/site/public/icons/stacks/clojure.svg +0 -1
- package/dist/site/public/icons/stacks/dart.svg +0 -1
- package/dist/site/public/icons/stacks/deno.svg +0 -1
- package/dist/site/public/icons/stacks/django.svg +0 -1
- package/dist/site/public/icons/stacks/docker.svg +0 -1
- package/dist/site/public/icons/stacks/firebase.svg +0 -1
- package/dist/site/public/icons/stacks/flutter.svg +0 -1
- package/dist/site/public/icons/stacks/go.svg +0 -1
- package/dist/site/public/icons/stacks/graphql.svg +0 -1
- package/dist/site/public/icons/stacks/ionic.svg +0 -1
- package/dist/site/public/icons/stacks/java.svg +0 -1
- package/dist/site/public/icons/stacks/javascript.svg +0 -1
- package/dist/site/public/icons/stacks/kotlin.svg +0 -1
- package/dist/site/public/icons/stacks/llm.svg +0 -4
- package/dist/site/public/icons/stacks/mongodb.svg +0 -1
- package/dist/site/public/icons/stacks/nodejs.svg +0 -1
- package/dist/site/public/icons/stacks/python.svg +0 -1
- package/dist/site/public/icons/stacks/rag.svg +0 -6
- package/dist/site/public/icons/stacks/react-native.svg +0 -1
- package/dist/site/public/icons/stacks/react.svg +0 -1
- package/dist/site/public/icons/stacks/rust.svg +0 -1
- package/dist/site/public/icons/stacks/solidity.svg +0 -1
- package/dist/site/public/icons/stacks/sveltekit.svg +0 -1
- package/dist/site/public/icons/stacks/swift.svg +0 -1
- package/dist/site/public/icons/stacks/tauri.svg +0 -1
- package/dist/site/public/icons/stacks/tensorflow.svg +0 -1
- package/dist/site/public/icons/stacks/typescript.svg +0 -1
- package/dist/site/public/icons/stacks/vue.svg +0 -1
- package/dist/site/public/logo.svg +0 -16
- package/dist/site/src/components/DirectoryBrowse.astro +0 -246
- package/dist/site/src/components/PipelineStrip.astro +0 -121
- package/dist/site/src/components/TaxonomyList.astro +0 -108
- package/dist/site/src/pages/404.astro +0 -63
- package/dist/site/src/pages/[slug]/[recordSlug].astro +0 -71
- package/dist/site/src/pages/[slug]/index.astro +0 -19
- package/dist/site/src/pages/[slug]/page/[page].astro +0 -32
- package/dist/site/src/pages/[slug]/page/cards.astro +0 -50
- package/dist/site/src/pages/[slug]/page/records.json.ts +0 -24
- package/dist/site/src/pages/about.astro +0 -130
- package/dist/site/src/pages/categories/[name].astro +0 -35
- package/dist/site/src/pages/categories/index.astro +0 -33
- package/dist/site/src/pages/collections/[slug].astro +0 -45
- package/dist/site/src/pages/collections/index.astro +0 -32
- package/dist/site/src/pages/contributors.astro +0 -115
- package/dist/site/src/pages/empty.astro +0 -24
- package/dist/site/src/pages/index.astro +0 -161
- package/dist/site/src/pages/licenses/[name].astro +0 -35
- package/dist/site/src/pages/stacks/[name].astro +0 -35
- package/dist/site/src/pages/stacks/index.astro +0 -35
- package/dist/site/src/pages/submit.astro +0 -183
- package/dist/site/src/styles/global.css +0 -21
- package/dist/site/tsconfig.json +0 -13
- /package/{dist/site/LICENSE → LICENSE} +0 -0
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
|
|
3
|
-
import { getTaxonomyPageModel, itemLabelPlural } from "@grove-dev/astro/server";
|
|
4
|
-
import siteConfig from "@grove/generated/site-config.json";
|
|
5
|
-
import TaxonomyList from "../../components/TaxonomyList.astro";
|
|
6
|
-
|
|
7
|
-
export function getStaticPaths() {
|
|
8
|
-
const licenses = siteConfig.taxonomy?.licenses ?? [];
|
|
9
|
-
return licenses.map(({ id, name }) => ({
|
|
10
|
-
params: { name: id },
|
|
11
|
-
props: { displayName: name },
|
|
12
|
-
}));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const { displayName } = Astro.props;
|
|
16
|
-
const name = Astro.params.name;
|
|
17
|
-
const model = getTaxonomyPageModel("licenses", name, displayName, siteConfig);
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
<BaseLayout
|
|
21
|
-
title={model.seo.title}
|
|
22
|
-
description={model.seo.description}
|
|
23
|
-
image={model.seo.image}
|
|
24
|
-
imageAlt={model.seo.imageAlt}
|
|
25
|
-
jsonLd={model.seo.jsonLd}
|
|
26
|
-
site={siteConfig}
|
|
27
|
-
>
|
|
28
|
-
<TaxonomyList
|
|
29
|
-
name={name}
|
|
30
|
-
eyebrow="License"
|
|
31
|
-
displayName={displayName}
|
|
32
|
-
lede={`Browse ${itemLabelPlural()} in this directory licensed under ${displayName}.`}
|
|
33
|
-
records={model.records}
|
|
34
|
-
/>
|
|
35
|
-
</BaseLayout>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
|
|
3
|
-
import { getTaxonomyPageModel, itemLabelPlural } from "@grove-dev/astro/server";
|
|
4
|
-
import siteConfig from "@grove/generated/site-config.json";
|
|
5
|
-
import TaxonomyList from "../../components/TaxonomyList.astro";
|
|
6
|
-
|
|
7
|
-
export function getStaticPaths() {
|
|
8
|
-
const stacks = siteConfig.taxonomy?.stacks ?? [];
|
|
9
|
-
return stacks.map(({ id, name }) => ({
|
|
10
|
-
params: { name: id },
|
|
11
|
-
props: { displayName: name },
|
|
12
|
-
}));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const { displayName } = Astro.props;
|
|
16
|
-
const name = Astro.params.name;
|
|
17
|
-
const model = getTaxonomyPageModel("stacks", name, displayName, siteConfig);
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
<BaseLayout
|
|
21
|
-
title={model.seo.title}
|
|
22
|
-
description={model.seo.description}
|
|
23
|
-
image={model.seo.image}
|
|
24
|
-
imageAlt={model.seo.imageAlt}
|
|
25
|
-
jsonLd={model.seo.jsonLd}
|
|
26
|
-
site={siteConfig}
|
|
27
|
-
>
|
|
28
|
-
<TaxonomyList
|
|
29
|
-
name={name}
|
|
30
|
-
eyebrow="Stack"
|
|
31
|
-
displayName={displayName}
|
|
32
|
-
lede={`Browse ${itemLabelPlural()} in this directory built with ${displayName}.`}
|
|
33
|
-
records={model.records}
|
|
34
|
-
/>
|
|
35
|
-
</BaseLayout>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
/**
|
|
3
|
-
* Stacks index — every stack with live counts. Linked from the
|
|
4
|
-
* default header nav; each tile opens the browse page pre-filtered to
|
|
5
|
-
* the stack (detail pages live at `/stacks/<id>/`).
|
|
6
|
-
*/
|
|
7
|
-
import siteConfig from "@grove/generated/site-config.json";
|
|
8
|
-
import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
|
|
9
|
-
import StackGrid from "@grove-dev/astro/components/StackGrid.astro";
|
|
10
|
-
import { getTaxonomyIndexModel, getTaxonomyIndexSeo, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
|
|
11
|
-
|
|
12
|
-
const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
|
|
13
|
-
// Uncapped: the index page lists EVERY stack (the homepage grid's
|
|
14
|
-
// 12-item cap is a homepage layout choice, not a data truth).
|
|
15
|
-
const { stacks } = getTaxonomyIndexModel();
|
|
16
|
-
const itemNoun = { singular: itemLabel(), plural: itemLabelPlural() };
|
|
17
|
-
const seo = getTaxonomyIndexSeo("stacks", siteConfig);
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
<BaseLayout
|
|
21
|
-
title={seo.title}
|
|
22
|
-
description={seo.description}
|
|
23
|
-
image={seo.image}
|
|
24
|
-
jsonLd={seo.jsonLd}
|
|
25
|
-
site={siteConfig}
|
|
26
|
-
>
|
|
27
|
-
<StackGrid
|
|
28
|
-
stacks={stacks}
|
|
29
|
-
pathPrefix={`/${slug}`}
|
|
30
|
-
itemLabelPlural={itemLabelPlural()}
|
|
31
|
-
itemNoun={itemNoun}
|
|
32
|
-
headingLevel={1}
|
|
33
|
-
hrefFor={(stackSlug: string) => `/stacks/${stackSlug}`}
|
|
34
|
-
/>
|
|
35
|
-
</BaseLayout>
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import siteConfig from "@grove/generated/site-config.json";
|
|
3
|
-
import { getSubmissionPageModel } from "@grove-dev/astro/server";
|
|
4
|
-
import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
|
|
5
|
-
import Container from "@grove-dev/astro/layouts/Container.astro";
|
|
6
|
-
import SubmissionClient from "@grove-dev/astro/components/SubmissionClient.astro";
|
|
7
|
-
import { buttonClass } from "@grove-dev/astro/ui/button";
|
|
8
|
-
|
|
9
|
-
const {
|
|
10
|
-
singular,
|
|
11
|
-
title,
|
|
12
|
-
description,
|
|
13
|
-
repoUrl,
|
|
14
|
-
copy,
|
|
15
|
-
fields,
|
|
16
|
-
categories,
|
|
17
|
-
stacks,
|
|
18
|
-
existingSlugs,
|
|
19
|
-
existingFullNames,
|
|
20
|
-
platformOptions,
|
|
21
|
-
licenseOptions,
|
|
22
|
-
taxonomy,
|
|
23
|
-
} = getSubmissionPageModel(siteConfig);
|
|
24
|
-
const goodSubmissions = [
|
|
25
|
-
...(copy.good?.length ? copy.good : [
|
|
26
|
-
`A real, usable ${singular}, not a tutorial or one-screen demo`,
|
|
27
|
-
"A public repository with a clear open-source license",
|
|
28
|
-
"Enough documentation to understand, run, or contribute",
|
|
29
|
-
"Recent maintenance, releases, or meaningful project history",
|
|
30
|
-
]),
|
|
31
|
-
];
|
|
32
|
-
const pleaseAvoid = [
|
|
33
|
-
...(copy.avoid?.length ? copy.avoid : [
|
|
34
|
-
"Snippets, exercises, abandoned experiments, or duplicate entries",
|
|
35
|
-
"Private repositories or projects without source",
|
|
36
|
-
"Marketing pages with no usable project behind them",
|
|
37
|
-
"Records with no license or verifiable repository",
|
|
38
|
-
]),
|
|
39
|
-
];
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
<BaseLayout title={title} description={description} site={siteConfig} noindex>
|
|
43
|
-
<Container>
|
|
44
|
-
<section class="py-10 sm:py-14">
|
|
45
|
-
<div class="max-w-3xl">
|
|
46
|
-
<p class="m-0 text-2xs font-semibold uppercase tracking-wider text-ink-500 dark:text-ink-400">
|
|
47
|
-
{copy.eyebrow ?? `${singular} submission`}
|
|
48
|
-
</p>
|
|
49
|
-
<h1 class="mt-2 text-[2rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
|
|
50
|
-
{copy.title ?? `Add ${singular === "app" ? "an" : "a"} ${singular} to the directory`}
|
|
51
|
-
</h1>
|
|
52
|
-
<p class="m-0 mt-3 max-w-[60ch] text-[0.9375rem] leading-relaxed text-ink-500 dark:text-ink-400">
|
|
53
|
-
{copy.description ?? `Paste a GitHub URL to pull in the basics, edit the generated draft, then open a pull request. The data stays in this repository.`}
|
|
54
|
-
</p>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
{/* One compact line, not three cards — on mobile the form
|
|
58
|
-
starts within the first viewport. */}
|
|
59
|
-
<ol class="mt-4 flex flex-wrap gap-x-6 gap-y-1.5 text-2xs text-muted-foreground" aria-label="Submission steps">
|
|
60
|
-
{[
|
|
61
|
-
["1", "Paste a GitHub URL"],
|
|
62
|
-
["2", "Review the draft"],
|
|
63
|
-
["3", "Open a pull request"],
|
|
64
|
-
].map(([number, heading]) => (
|
|
65
|
-
<li class="flex items-center gap-1.5">
|
|
66
|
-
<span class="inline-flex h-4.5 w-4.5 shrink-0 items-center justify-center rounded-full border border-border font-mono text-[10px] font-semibold text-foreground">{number}</span>
|
|
67
|
-
<span class="font-medium text-foreground">{heading}</span>
|
|
68
|
-
</li>
|
|
69
|
-
))}
|
|
70
|
-
</ol>
|
|
71
|
-
|
|
72
|
-
<div class="mt-8 grid grid-cols-1 items-start gap-6 md:grid-cols-[minmax(0,1fr)_minmax(300px,0.72fr)]">
|
|
73
|
-
<form id="submit-form" class="rounded-[calc(var(--radius)+0.25rem)] border border-ink-200 bg-background p-5 shadow-sm dark:border-ink-800">
|
|
74
|
-
<div class="grid gap-5">
|
|
75
|
-
<label class="grid gap-1.5">
|
|
76
|
-
<span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">GitHub URL</span>
|
|
77
|
-
<div class="flex flex-col gap-2 sm:flex-row">
|
|
78
|
-
<input id="repo-url" type="url" required placeholder="https://github.com/owner/repo" class="min-h-10 flex-1 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" />
|
|
79
|
-
<button id="fetch-repo" type="button" class={buttonClass("primary", "bare", "min-h-10 whitespace-nowrap px-3 text-sm")}>Generate draft</button>
|
|
80
|
-
</div>
|
|
81
|
-
<span class="text-2xs text-muted-foreground">The repository must be public. We never write to it.</span>
|
|
82
|
-
</label>
|
|
83
|
-
|
|
84
|
-
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
|
|
85
|
-
<label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Name</span><input id="item-name" type="text" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" /></label>
|
|
86
|
-
<label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Slug</span><input id="item-slug" type="text" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 font-mono text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" /><span class="text-2xs text-muted-foreground">URL fragment, auto-filled from the repository name.</span></label>
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
<label class="grid gap-1.5">
|
|
90
|
-
<span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Description</span>
|
|
91
|
-
<textarea id="item-description" rows="3" class="min-h-10 resize-y rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35"></textarea>
|
|
92
|
-
<span class="text-2xs text-muted-foreground">One or two sentences in plain language.</span>
|
|
93
|
-
</label>
|
|
94
|
-
|
|
95
|
-
{(fields.category || fields.stack) && <div class:list={["grid grid-cols-1 gap-4", fields.category && fields.stack && "sm:grid-cols-2"]}>
|
|
96
|
-
{fields.category && (
|
|
97
|
-
<label class="grid gap-1.5">
|
|
98
|
-
<span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Category</span>
|
|
99
|
-
<select id="item-category" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35">
|
|
100
|
-
<option value="">Choose a category</option>
|
|
101
|
-
{categories.map((option) => <option value={option.id}>{option.label}</option>)}
|
|
102
|
-
</select>
|
|
103
|
-
</label>
|
|
104
|
-
)}
|
|
105
|
-
{fields.stack && (
|
|
106
|
-
<label class="grid gap-1.5">
|
|
107
|
-
<span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Primary stack</span>
|
|
108
|
-
<select id="primary-stack" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35">
|
|
109
|
-
<option value="">Choose a stack</option>
|
|
110
|
-
{stacks.map((option) => <option value={option.id}>{option.label}</option>)}
|
|
111
|
-
</select>
|
|
112
|
-
</label>
|
|
113
|
-
)}
|
|
114
|
-
</div>}
|
|
115
|
-
|
|
116
|
-
{fields.platforms && <fieldset class="grid gap-2">
|
|
117
|
-
<legend class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Platforms</legend>
|
|
118
|
-
<div class="grid grid-cols-2 gap-2 sm:grid-cols-3">
|
|
119
|
-
{platformOptions.map((platform) => (
|
|
120
|
-
<label class="flex min-h-9 items-center gap-2 rounded-md border border-ink-200 px-2 text-sm dark:border-ink-800">
|
|
121
|
-
<input type="checkbox" name="platform" value={platform.id} class="h-4 w-4" />
|
|
122
|
-
<span>{platform.label}</span>
|
|
123
|
-
</label>
|
|
124
|
-
))}
|
|
125
|
-
</div>
|
|
126
|
-
</fieldset>}
|
|
127
|
-
|
|
128
|
-
{fields.tags && <label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Tags</span><input id="item-tags" type="text" placeholder="self-hosted, developer-tools, offline-first" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" /></label>}
|
|
129
|
-
|
|
130
|
-
{fields.license && licenseOptions.length > 0 && (
|
|
131
|
-
<label class="grid gap-1.5">
|
|
132
|
-
<span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">License</span>
|
|
133
|
-
<select id="item-license" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35">
|
|
134
|
-
<option value="">Detected from the repository if left empty</option>
|
|
135
|
-
{licenseOptions.map((option) => <option value={option.id}>{option.label}</option>)}
|
|
136
|
-
</select>
|
|
137
|
-
</label>
|
|
138
|
-
)}
|
|
139
|
-
<label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Website</span><input id="item-website" type="url" placeholder="https://example.com" class="min-h-10 rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" /></label>
|
|
140
|
-
<label class="grid gap-1.5"><span class="text-2xs font-medium uppercase tracking-[.05em] text-muted-foreground">Best for</span><textarea id="best-for" rows="3" class="min-h-10 resize-y rounded-[var(--radius)] border border-input bg-background px-3 py-2 text-sm text-foreground outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35" placeholder="One use case per line"></textarea></label>
|
|
141
|
-
</div>
|
|
142
|
-
</form>
|
|
143
|
-
|
|
144
|
-
<aside class="flex flex-col gap-4 md:sticky md:top-24">
|
|
145
|
-
<div class="rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card p-5">
|
|
146
|
-
<h2 class="m-0 text-[0.9375rem] font-semibold text-ink-900 dark:text-ink-100">Submission criteria</h2>
|
|
147
|
-
<p class="m-0 mt-1 text-2xs text-ink-500 dark:text-ink-400">Use this checklist before opening the draft.</p>
|
|
148
|
-
<div class="mt-4 grid grid-cols-1 gap-4 text-2xs sm:grid-cols-2 lg:grid-cols-1 xl:grid-cols-2">
|
|
149
|
-
<div>
|
|
150
|
-
<div class="font-semibold uppercase tracking-wider text-emerald-700 dark:text-emerald-400">Good submissions</div>
|
|
151
|
-
<ul class="m-0 mt-2 list-none space-y-1 p-0 text-ink-700 dark:text-ink-200">{goodSubmissions.map((item) => <li class="flex gap-2"><span class="text-emerald-600">✓</span><span>{item}</span></li>)}</ul>
|
|
152
|
-
</div>
|
|
153
|
-
<div>
|
|
154
|
-
<div class="font-semibold uppercase tracking-wider text-amber-700 dark:text-amber-400">Please avoid</div>
|
|
155
|
-
<ul class="m-0 mt-2 list-none space-y-1 p-0 text-ink-700 dark:text-ink-200">{pleaseAvoid.map((item) => <li class="flex gap-2"><span class="text-amber-600">·</span><span>{item}</span></li>)}</ul>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
|
|
160
|
-
<div class="flex min-h-[360px] flex-col rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card p-5">
|
|
161
|
-
<div class="flex flex-wrap items-center justify-between gap-3">
|
|
162
|
-
<h2 class="m-0 text-base font-semibold text-ink-900 dark:text-ink-100">YAML draft</h2>
|
|
163
|
-
<div class="flex items-center gap-2">
|
|
164
|
-
<button id="copy-yaml" type="button" class={buttonClass("secondary", "sm", "whitespace-nowrap pointer-events-none opacity-50")} disabled>Copy YAML</button>
|
|
165
|
-
<a id="open-pr-link" href="#" target="_blank" rel="noopener noreferrer" class={buttonClass("secondary", "sm", "whitespace-nowrap pointer-events-none opacity-50")}>Open PR draft</a>
|
|
166
|
-
</div>
|
|
167
|
-
</div>
|
|
168
|
-
<pre class="mt-4 min-h-0 flex-1 overflow-auto rounded-md border border-ink-200 bg-ink-50 p-3 text-xs leading-relaxed text-ink-800 dark:border-ink-800 dark:bg-ink-900/60 dark:text-ink-200"><code id="yaml-preview">Paste a GitHub URL to generate a draft.</code></pre>
|
|
169
|
-
<p id="submit-status" class="mt-3 min-h-5 text-2xs text-ink-500 dark:text-ink-400" aria-live="polite"></p>
|
|
170
|
-
</div>
|
|
171
|
-
</aside>
|
|
172
|
-
</div>
|
|
173
|
-
</section>
|
|
174
|
-
</Container>
|
|
175
|
-
|
|
176
|
-
<SubmissionClient
|
|
177
|
-
existingSlugs={existingSlugs}
|
|
178
|
-
existingFullNames={existingFullNames}
|
|
179
|
-
repoUrl={repoUrl}
|
|
180
|
-
fields={fields}
|
|
181
|
-
taxonomy={taxonomy}
|
|
182
|
-
/>
|
|
183
|
-
</BaseLayout>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@import "tailwindcss";
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Grove V1 scaffold overrides. The package's `@grove-dev/astro/styles.css`
|
|
5
|
-
* owns the full design system (`.grove-prose`, sidebar, table wrap,
|
|
6
|
-
* task list, details, kbd, activity-tone selectors, etc.). This file
|
|
7
|
-
* only ships brand-level overrides and theme remap.
|
|
8
|
-
*
|
|
9
|
-
* NOTE: do NOT add `@custom-variant dark` here. `@grove-dev/astro`'s
|
|
10
|
-
* `styles.css` already declares the `.dark`-class variant, and
|
|
11
|
-
* Tailwind v4 only honors one definition per build — adding a
|
|
12
|
-
* second one in this consumer file has been observed to confuse
|
|
13
|
-
* the variant resolution and produce utilities that key off
|
|
14
|
-
* `prefers-color-scheme` instead of the `.dark` class on <html>.
|
|
15
|
-
*/
|
|
16
|
-
/*
|
|
17
|
-
* Brand color, radius, density, and container width all come from
|
|
18
|
-
* `theme` in grove.config.ts — BaseLayout resolves them into
|
|
19
|
-
* `--grove-*` custom properties on <html>. Add page-level overrides
|
|
20
|
-
* here only when a token needs to differ from the config.
|
|
21
|
-
*/
|
package/dist/site/tsconfig.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "astro/tsconfigs/base",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"moduleResolution": "Bundler",
|
|
5
|
-
"types": ["node"],
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"paths": {
|
|
8
|
-
"@grove/generated/*": ["data/generated/*"]
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"include": [".astro/types.d.ts", "**/*"],
|
|
12
|
-
"exclude": ["dist"]
|
|
13
|
-
}
|
|
File without changes
|