-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from bluecadet/feat/2.0-docs
more docs
- Loading branch information
Showing
18 changed files
with
404 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<script setup lang="ts"> | ||
import { data as packageVersions } from "./package-versions.data.js"; | ||
const props = defineProps<{ | ||
package: "string"; | ||
href: "string"; | ||
description: "string"; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<li> | ||
<a :href="href" class="card"> | ||
<h3>@bluecadet/launchpad-{{ package }}</h3> | ||
<p>{{ description }}</p> | ||
<Badge type="tip" :text="'v' + packageVersions[package]" /> | ||
</a> | ||
</li> | ||
</template> | ||
|
||
<style scoped> | ||
li { | ||
margin: 0 !important; | ||
} | ||
.card { | ||
display: flex; | ||
border: 1px solid var(--vp-c-bg-soft); | ||
height: 100%; | ||
background-color: var(--vp-c-bg-soft); | ||
transition: border-color .25s,background-color .25s; | ||
flex-direction: column; | ||
padding: 24px; | ||
border-radius: 12px; | ||
color: inherit; | ||
text-decoration: none; | ||
align-items: start; | ||
} | ||
.card:hover { | ||
border-color: var(--vp-c-brand-1); | ||
color: inherit; | ||
} | ||
.card h3 { | ||
margin: 0; | ||
font-size: 1rem; | ||
font-weight: 600; | ||
} | ||
.card p { | ||
margin: 0; | ||
font-size: 1rem; | ||
font-weight: 400; | ||
color: var(--vp-c-text-2); | ||
line-height: 1.4; | ||
margin-top: 0.5em; | ||
margin-bottom: 1em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<script setup lang="ts"> | ||
import { GitCommitVertical, Github, Hexagon, Logs } from "lucide-vue-next"; | ||
import { data as packageVersions } from "./package-versions.data.js"; | ||
const props = defineProps<{ | ||
package: "string"; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<h1 v-if="package === 'launchpad'"><span class="package-base">@bluecadet/</span>launchpad</h1> | ||
<h1 v-else><span class="package-base">@bluecadet/</span>launchpad-{{ package }}</h1> | ||
|
||
<ul> | ||
<li class="version"><GitCommitVertical size="18"/> v{{ packageVersions[package] }}</li> | ||
<li class="link"> | ||
<a :href="`https://github.com/bluecadet/launchpad/tree/develop/packages/${package}`" target="_blank" rel="noopener noreferrer"> | ||
<Github size="18"/> github | ||
</a> | ||
</li> | ||
<li class="link"> | ||
<a :href="`https://www.npmjs.com/package/@bluecadet/${package === 'launchpad' ? '' : 'launchpad-'}${package}`" target="_blank" rel="noopener noreferrer"> | ||
<Hexagon size="18"/> npm | ||
</a> | ||
</li> | ||
<li class="link"> | ||
<a :href="`https://github.com/bluecadet/launchpad/tree/develop/packages/${package}/CHANGELOG.md`" target="_blank" rel="noopener noreferrer"> | ||
<Logs size="18"/> changelog | ||
</a> | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<style scoped> | ||
h1 { | ||
font-size: 2.5rem; | ||
} | ||
h1 .package-base { | ||
font-weight: normal; | ||
color: var(--vp-c-text-2); | ||
} | ||
ul { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 0.5rem 1rem; | ||
list-style-type: none; | ||
align-items: baseline; | ||
padding: 0; | ||
margin-bottom: 1.2rem; | ||
} | ||
li { | ||
margin: 0 !important; | ||
padding: 0; | ||
} | ||
a { | ||
text-decoration: none; | ||
} | ||
li.version, li.link a { | ||
display: flex; | ||
gap: 0.25rem; | ||
align-items: center; | ||
} | ||
li.version > svg { | ||
/* this icon is skinny, so shave off the edges */ | ||
margin-inline: -0.2rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import cliPackage from "@bluecadet/launchpad-cli/package.json" with { type: "json" }; | ||
import contentPackage from "@bluecadet/launchpad-content/package.json" with { type: "json" }; | ||
import monitorPackage from "@bluecadet/launchpad-monitor/package.json" with { type: "json" }; | ||
import scaffoldPackage from "@bluecadet/launchpad-scaffold/package.json" with { type: "json" }; | ||
import launchpadPackage from "@bluecadet/launchpad/package.json" with { type: "json" }; | ||
import { defineLoader } from "vitepress"; | ||
|
||
export interface Data { | ||
launchpad: string; | ||
content: string; | ||
monitor: string; | ||
cli: string; | ||
scaffold: string; | ||
} | ||
|
||
declare const data: Data; | ||
|
||
export { data }; | ||
|
||
export default defineLoader({ | ||
async load(): Promise<Data> { | ||
return { | ||
launchpad: launchpadPackage.version, | ||
content: contentPackage.version, | ||
monitor: monitorPackage.version, | ||
cli: cliPackage.version, | ||
scaffold: scaffoldPackage.version, | ||
}; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.