Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@std/fmt": "jsr:@std/fmt@^1.0.8",
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/semver": "jsr:@std/semver@^1.0.8",
"@orama/core": "npm:@orama/core@^1.2.17",
"github-slugger": "npm:github-slugger@^2.0.0",
"postgres": "https://deno.land/x/postgres@v0.19.5/mod.ts"
Expand Down
3 changes: 2 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/components/GitHubRepoInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function GitHubRepoInput(
return (
<div class="flex items-center w-full md:w-88 rounded-md text-primary shadow-sm pl-3 py-[2px] pr-[2px] sm:text-sm sm:leading-6 bg-white dark:bg-jsr-gray-900 input-container">
<span class="block">
<TbBrandGithub class="!size-5" />
<TbBrandGithub class="size-5!" />
</span>
<input
id={id}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function Header({
<HeaderLogo class="h-8 flex-none" />
</a>
)}
<div class="hidden sm:block grow-1 flex-1">
<div class="hidden sm:block grow flex-1">
{!isHomepage && (
<GlobalSearch
query={(url.pathname === "/packages"
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/HomepageHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function HomepageHero(
) {
return (
<div
class="w-screen -ml-[calc(50vw-50%)] -mt-6 bg-repeat py-32 lg:pt-48 relative before:absolute before:left-0 before:right-0 before:h-32 before:bg-gradient-to-t before:from-white dark:before:from-jsr-gray-950 before:bottom-0 before:z-10 before:pointer-events-none"
class="w-screen -ml-[calc(50vw-50%)] -mt-6 bg-repeat py-32 lg:pt-48 relative before:absolute before:left-0 before:right-0 before:h-32 before:bg-linear-to-t before:from-white dark:before:from-jsr-gray-950 before:bottom-0 before:z-10 before:pointer-events-none"
id="particles-js"
>
<script src={asset("/scripts/particles.js")} defer></script>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function ListDisplay(
>
{item.content}

<TbChevronRight class="text-jsr-cyan-800 dark:text-jsr-cyan-400 flex-shrink-0 size-6" />
<TbChevronRight class="text-jsr-cyan-800 dark:text-jsr-cyan-400 shrink-0 size-6" />
</a>
</li>
))}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/NavOverflow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function NavOverflow() {
</span>
<div
id="nav-menu"
class="absolute top-[120%] -right-2 z-[70] px-1 py-2 rounded border-1.5 border-current dark:border-cyan-700 bg-white dark:bg-jsr-gray-950 w-56 shadow overflow-hidden opacity-100 translate-y-0 transition [&>a]:rounded hidden"
class="absolute top-[120%] -right-2 z-70 px-1 py-2 rounded border-1.5 border-current dark:border-cyan-700 bg-white dark:bg-jsr-gray-950 w-56 shadow overflow-hidden opacity-100 translate-y-0 transition [&>a]:rounded hidden"
/>
</button>
<script
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/NewsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export function NewsCard({
alt=""
class="w-full h-48 object-cover border-b-1.5 border-jsr-cyan-950 dark:border-jsr-gray-700 group-hover:border-jsr-cyan-400 dark:group-hover:border-cyan-500 group-focus-within:border-jsr-cyan-400 dark:group-focus-within:border-cyan-500 transition-colors duration-150"
/>
<div class="p-4 flex flex-grow flex-col gap-4">
<h3 class="text-xl lg:text-2xl font-semibold !leading-tight text-balance">
<div class="p-4 flex grow flex-col gap-4">
<h3 class="text-xl lg:text-2xl font-semibold leading-tight! text-balance">
{title}
</h3>
<p class="text-sm">
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/PackageHit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export function PackageHit(pkg: OramaPackageHit | Package): ListDisplayItem {
return {
href: `/@${pkg.scope}/${pkg.name}`,
content: (
<div class="grow-1 w-full flex flex-col md:flex-row gap-2 justify-between">
<div class="grow-1">
<div class="grow w-full flex flex-col md:flex-row gap-2 justify-between">
<div class="grow">
<div class="flex flex-wrap items-baseline gap-x-2 mb-2 md:mb-0">
<span class="text-jsr-cyan-700 dark:text-cyan-400 font-semibold">
{`@${pkg.scope}/${pkg.name}`}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/doc/CategoryPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function CategoryPanel(
</li>
))}
<li>
<a class="!flex items-center gap-0.5" href={all_symbols_href}>
<a class="flex! items-center gap-0.5" href={all_symbols_href}>
<span class="leading-none">view all {total_symbols} symbols</span>
<TbChevronRight class="size-4" />
</a>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/doc/DocEntry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function DocEntry(
id={id}
>
<div class="flex justify-between items-start md:text-base">
<div class="break-words">
<div class="wrap-break-word">
{tags && tags.length > 0 && (
<div class="space-x-1 mb-1">
{tags.map((tag, i) => <Tag key={i} tag={tag} />)}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/doc/Function.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function Function({ func: { functions } }: { func: FunctionCtx }) {
{functions.map((func, index) => (
<>
<div class="scroll-mt-16" id={func.id}>
<code class="anchorable text-base break-words">
<code class="anchorable text-base wrap-break-word">
<Anchor anchor={func.anchor} />
<span class="font-bold">{func.name}</span>
<span
Expand Down
6 changes: 3 additions & 3 deletions frontend/components/doc/NamespaceSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import { DocNodeKindIcon } from "./DocNodeKindIcon.tsx";

export function NamespaceSection({ items }: { items: NamespaceNodeCtx[] }) {
return (
<div class="space-y-2 !mt-6 max-w-prose">
<div class="space-y-2 mt-6! max-w-prose">
{items.map((item) => (
<div
id={item.id}
class={`flex gap-x-2.5 md:min-h-[4rem] lg:pr-4 rounded transition duration-125 ${
class={`flex gap-x-2.5 md:min-h-16 lg:pr-4 rounded transition duration-125 ${
item.deprecated ? "opacity-60" : ""
}`}
aria-label={item.deprecated ? "deprecated" : undefined}
>
<DocNodeKindIcon
kinds={item.doc_node_kind_ctx}
class="w-auto flex-col !justify-start gap-1 mt-1 [&>*+*]:ml-0 [&>*+*]:-mt-0.5"
class="w-auto flex-col justify-start! gap-1 mt-1 [&>*+*]:ml-0 [&>*+*]:-mt-0.5"
/>

<div
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/doc/SymbolGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function SymbolGroup(
</div>
)}
{symbol.tags && symbol.tags.length > 0 && (
<div class="space-x-2 !mt-2">
<div class="space-x-2 mt-2!">
{symbol.tags.map((tag, i) => <Tag key={i} tag={tag} large />)}
</div>
)}
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/doc/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function renderToC(
<li
key={entry.anchor}
class={isRoot
? `mx-3 ${hasChildren ? "mt-0" : "mt-2"} !pb-0`
: "!mt-1"}
? `mx-3 ${hasChildren ? "mt-0" : "mt-2"} pb-0!`
: "mt-1!"}
>
<a
href={`#${entry.anchor}`}
Expand Down
6 changes: 3 additions & 3 deletions frontend/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"imports": {
"@deno/doc": "jsr:@deno/doc@^0.193.0",
"@fresh/plugin-tailwind-v3": "jsr:@fresh/plugin-tailwind-v3@^1.0.1",
"@fresh/plugin-tailwind": "jsr:@fresh/plugin-tailwind@^1.0.0",
"apexcharts": "npm:apexcharts@^4.5.0",
"tb-icons": "jsr:@preact-icons/tb@^1.0.14",
"@std/fmt": "jsr:@std/fmt@^1.0.6",
"fresh": "jsr:@fresh/core@^2.0.0-alpha.25",
"fresh": "jsr:@fresh/core@^2.2.0",

"preact": "npm:preact@^10",
"preact-render-to-string": "npm:preact-render-to-string@6.3.1",
Expand All @@ -41,7 +41,7 @@
"@orama/orama": "npm:@orama/orama@^2",
"@orama/highlight": "npm:@orama/highlight@^0.1.8",

"tailwindcss": "npm:tailwindcss@3.4",
"tailwindcss": "npm:tailwindcss@4.1",
"postcss": "npm:postcss@8.4",

"@viz-js/viz": "npm:@viz-js/viz@^3.11.0"
Expand Down
Loading
Loading