Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

chore(oxc): update formatting tooling for astro (#1585)

Corentin Thomasset93a569f3e90f
diff --git a/apps/docs/src/components/random-hex-key-generator.astro b/apps/docs/src/components/random-hex-key-generator.astro
index bf15b298..a667ac88 100644
--- a/apps/docs/src/components/random-hex-key-generator.astro
+++ b/apps/docs/src/components/random-hex-key-generator.astro
@@ -12,36 +12,52 @@ const copiedIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="${iconSize}"
---
<div class="key-generator" data-byte-length={byteLength}>
- <div class="key-row">
- <input type="text" class="key-input" readonly />
- <button class="cbtn btn-refresh" title="Generate new key">
- <span set:html={refreshIcon} aria-label="Refresh" />
- </button>
- <button class="cbtn btn-copy" title="Copy to clipboard">
- <span set:html={copyIcon} aria-label="Copy" class="icon-copy" />
- <span set:html={copiedIcon} aria-label="Copied" class="icon-copied hidden" />
- </button>
- </div>
- <div class="info-text">
- Generated locally in your browser - no network or server involved
- </div>
+ <div class="key-row">
+ <input type="text" class="key-input" readonly />
+ <button class="cbtn btn-refresh" title="Generate new key">
+ <span set:html={refreshIcon} aria-label="Refresh" />
+ </button>
+ <button class="cbtn btn-copy" title="Copy to clipboard">
+ <span set:html={copyIcon} aria-label="Copy" class="icon-copy" />
+ <span set:html={copiedIcon} aria-label="Copied" class="icon-copied hidden" />
+ </button>
+ </div>
+ <div class="info-text">Generated locally in your browser - no network or server involved</div>
</div>
<script>
- function generateKey({ keyInputElement, byteLength }: { keyInputElement: HTMLInputElement; byteLength: number }) {
- const array = new Uint8Array(byteLength);
- crypto.getRandomValues(array);
-
- // Convert to hex format
- const key = Array.from(array, byte => byte.toString(16).padStart(2, '0')).join('');
- keyInputElement.value = key;
- }
-
- function copyToClipboard({ keyInputElement, copyButtonElement, iconCopyElement, iconCopiedElement }: { keyInputElement: HTMLInputElement; copyButtonElement: HTMLButtonElement; iconCopyElement: HTMLSpanElement; iconCopiedElement: HTMLSpanElement }) {
- keyInputElement.select();
- keyInputElement.setSelectionRange(0, keyInputElement.value.length); // For mobile devices
-
- navigator.clipboard.writeText(keyInputElement.value).then(() => {
+ function generateKey({
+ keyInputElement,
+ byteLength,
+ }: {
+ keyInputElement: HTMLInputElement;
+ byteLength: number;
+ }) {
+ const array = new Uint8Array(byteLength);
+ crypto.getRandomValues(array);
+
+ // Convert to hex format
+ const key = Array.from(array, (byte) => byte.toString(16).padStart(2, '0')).join('');
+ keyInputElement.value = key;
+ }
+
+ function copyToClipboard({
+ keyInputElement,
+ copyButtonElement,
+ iconCopyElement,
+ iconCopiedElement,
+ }: {
+ keyInputElement: HTMLInputElement;
+ copyButtonElement: HTMLButtonElement;
+ iconCopyElement: HTMLSpanElement;
+ iconCopiedElement: HTMLSpanElement;
+ }) {
+ keyInputElement.select();
+ keyInputElement.setSelectionRange(0, keyInputElement.value.length); // For mobile devices
+
+ navigator.clipboard
+ .writeText(keyInputElement.value)
+ .then(() => {
iconCopyElement.classList.add('hidden');
iconCopiedElement.classList.remove('hidden');
copyButtonElement.disabled = true;
@@ -51,110 +67,114 @@ const copiedIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="${iconSize}"
iconCopiedElement.classList.add('hidden');
copyButtonElement.disabled = false;
}, 1_000);
- }).catch(() => {
+ })
+ .catch(() => {
// Fallback for older browsers
document.execCommand('copy');
});
- }
-
- const keyGenerators = document.querySelectorAll('.key-generator');
-
- keyGenerators.forEach((keyGenerator) => {
- const refreshButtonElement = keyGenerator.querySelector('.btn-refresh')!;
- const copyButtonElement = keyGenerator.querySelector<HTMLButtonElement>('.btn-copy')!;
- const keyInputElement = keyGenerator.querySelector<HTMLInputElement>('.key-input')!;
- const iconCopyElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copy')!;
- const iconCopiedElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copied')!;
- const byteLength = Number.parseInt(keyGenerator.getAttribute('data-byte-length') ?? '32', 10);
-
- generateKey({ keyInputElement, byteLength });
-
- refreshButtonElement.addEventListener('click', () => generateKey({ keyInputElement, byteLength }));
- copyButtonElement.addEventListener('click', () => copyToClipboard({ copyButtonElement, keyInputElement, iconCopyElement, iconCopiedElement }));
- });
+ }
+
+ const keyGenerators = document.querySelectorAll('.key-generator');
+
+ keyGenerators.forEach((keyGenerator) => {
+ const refreshButtonElement = keyGenerator.querySelector('.btn-refresh')!;
+ const copyButtonElement = keyGenerator.querySelector<HTMLButtonElement>('.btn-copy')!;
+ const keyInputElement = keyGenerator.querySelector<HTMLInputElement>('.key-input')!;
+ const iconCopyElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copy')!;
+ const iconCopiedElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copied')!;
+ const byteLength = Number.parseInt(keyGenerator.getAttribute('data-byte-length') ?? '32', 10);
+
+ generateKey({ keyInputElement, byteLength });
+
+ refreshButtonElement.addEventListener('click', () =>
+ generateKey({ keyInputElement, byteLength }),
+ );
+ copyButtonElement.addEventListener('click', () =>
+ copyToClipboard({ copyButtonElement, keyInputElement, iconCopyElement, iconCopiedElement }),
+ );
+ });
</script>
<style>
- .key-generator {
- /* background-color: var(--ec-frm-trmBg);
- border-radius: var(--ec-brdRad);
- border: 1px solid var(--ec-brdCol);
- font-family: monospace;
- max-width: 100%; */
- }
-
- .key-row {
- display: flex;
- align-items: center;
- }
-
- .key-input {
- flex: 1;
- background-color: var(--sl-color-black);
- border: 1px solid var(--sl-color-gray-5);
- border-radius: 4px 0 0 4px;
- padding: 8px 12px;
- font-family: var(--__sl-font-mono, monospace);
- font-size: 14px;
- color: var(--sl-color-gray-2);
- min-width: 0; /* Allow input to shrink */
- border-right: none;
- }
-
- .key-input:focus {
- outline: none;
- border-color: var(--ec-frm-inpBrd, #4a9eff);
- box-shadow: 0 0 0 2px var(--ec-frm-inpBrd, #4a9eff)33;
- }
-
- .cbtn {
- background-color: var(--ec-frm-btnBg);
- border: 1px solid var(--ec-brdCol);
- padding: 10px 12px;
- cursor: pointer;
- font-size: 16px;
- transition: all 0.2s ease;
- min-width: 44px;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 0;
- }
-
- .cbtn.btn-copy {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- border-top-right-radius: 4px;
- border-bottom-right-radius: 4px;
- border-left: none;
- }
-
- .cbtn.btn-refresh {
- border-radius: 0;
- }
-
- .cbtn:hover {
- background-color: var(--sl-color-gray-6)!important;
- }
-
- .cbtn:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- transform: none;
- }
-
- .btn-refresh:hover:not(:disabled) {
- background-color: var(--ec-frm-btnBgHover, #3a3a3a);
- }
-
- .btn-copy:hover:not(:disabled) {
- background-color: var(--ec-frm-btnBgHover, #3a3a3a);
- }
-
- .info-text {
- color: var(--ec-frm-txtSecondary, #888888);
- font-style: italic;
- margin-top: 0;
- }
-
+ .key-generator {
+ /* background-color: var(--ec-frm-trmBg);
+ border-radius: var(--ec-brdRad);
+ border: 1px solid var(--ec-brdCol);
+ font-family: monospace;
+ max-width: 100%; */
+ }
+
+ .key-row {
+ display: flex;
+ align-items: center;
+ }
+
+ .key-input {
+ flex: 1;
+ background-color: var(--sl-color-black);
+ border: 1px solid var(--sl-color-gray-5);
+ border-radius: 4px 0 0 4px;
+ padding: 8px 12px;
+ font-family: var(--__sl-font-mono, monospace);
+ font-size: 14px;
+ color: var(--sl-color-gray-2);
+ min-width: 0; /* Allow input to shrink */
+ border-right: none;
+ }
+
+ .key-input:focus {
+ outline: none;
+ border-color: var(--ec-frm-inpBrd, #4a9eff);
+ box-shadow: 0 0 0 2px var(--ec-frm-inpBrd, #4a9eff) 33;
+ }
+
+ .cbtn {
+ background-color: var(--ec-frm-btnBg);
+ border: 1px solid var(--ec-brdCol);
+ padding: 10px 12px;
+ cursor: pointer;
+ font-size: 16px;
+ transition: all 0.2s ease;
+ min-width: 44px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-top: 0;
+ }
+
+ .cbtn.btn-copy {
+ border-top-left-radius: 0;
+ border-bottom-left-radius: 0;
+ border-top-right-radius: 4px;
+ border-bottom-right-radius: 4px;
+ border-left: none;
+ }
+
+ .cbtn.btn-refresh {
+ border-radius: 0;
+ }
+
+ .cbtn:hover {
+ background-color: var(--sl-color-gray-6) !important;
+ }
+
+ .cbtn:disabled {
+ opacity: 0.6;
+ cursor: not-allowed;
+ transform: none;
+ }
+
+ .btn-refresh:hover:not(:disabled) {
+ background-color: var(--ec-frm-btnBgHover, #3a3a3a);
+ }
+
+ .btn-copy:hover:not(:disabled) {
+ background-color: var(--ec-frm-btnBgHover, #3a3a3a);
+ }
+
+ .info-text {
+ color: var(--ec-frm-txtSecondary, #888888);
+ font-style: italic;
+ margin-top: 0;
+ }
</style>
diff --git a/apps/docs/src/docker-compose-generator/dc-generator.astro b/apps/docs/src/docker-compose-generator/dc-generator.astro
index 9bb63f05..d025766d 100644
--- a/apps/docs/src/docker-compose-generator/dc-generator.astro
+++ b/apps/docs/src/docker-compose-generator/dc-generator.astro
@@ -26,55 +26,96 @@ const dcHtml = await codeToHtml(defaultDockerCompose, { theme: 'vitesse-black',
const defaultCommand = `mkdir -p ./app-data/{db,documents} && docker compose up -d`;
---
-
<h2 class="mt-8 mb-2">General settings</h2>
<div class="flex items-center gap-2 mt-1">
- <label for="port" class="min-w-32">External port</label>
- <input id="port" class="input-field" value="1221" type="number" min="1024" max="65535" placeholder="eg: 1221" />
+ <label for="port" class="min-w-32">
+ External port
+ </label>
+ <input
+ id="port"
+ class="input-field"
+ value="1221"
+ type="number"
+ min="1024"
+ max="65535"
+ placeholder="eg: 1221"
+ />
</div>
<div class="flex items-center gap-2 mt-1">
- <label for="app-base-url" class="min-w-32">App base URL</label>
- <input id="app-base-url" class="input-field" type="text" placeholder="eg: https://papra.example.com" value="http://localhost:1221" />
+ <label for="app-base-url" class="min-w-32">
+ App base URL
+ </label>
+ <input
+ id="app-base-url"
+ class="input-field"
+ type="text"
+ placeholder="eg: https://papra.example.com"
+ value="http://localhost:1221"
+ />
</div>
<div class="flex items-center gap-2 mt-1">
- <label for="source" class="min-w-32">Image source</label>
+ <label for="source" class="min-w-32">
+ Image source
+ </label>
<select class="input-field mt-0" id="source">
- {Object.entries(images).map(([registry, imageName]) => <option class="bg-background" value={imageName}>{`${registry} - ${imageName}`}</option>)}
+ {Object.entries(images).map(([registry, imageName]) => (
+ <option class="bg-background" value={imageName}>{`${registry} - ${imageName}`}</option>
+ ))}
</select>
</div>
<div class="flex items-center gap-2 mt-1">
- <label for="service-name" class="min-w-32">Service Name</label>
+ <label for="service-name" class="min-w-32">
+ Service Name
+ </label>
<input id="service-name" class="input-field" value="papra" type="text" placeholder="eg: papra" />
</div>
<div class="flex items-center gap-2 mt-1">
- <label
- for="auth-secret"
- class="min-w-32"
- >
- Auth secret
+ <label for="auth-secret" class="min-w-32">
+ Auth secret
</label>
<div class="flex items-center gap-2 mt-0 w-full">
- <input class="input-field font-mono" id="auth-secret" type="text" placeholder="eg: 1234567890" />
- <button class="btn bg-muted" id="refresh-secret"> Refresh </button>
+ <input
+ class="input-field font-mono"
+ id="auth-secret"
+ type="text"
+ placeholder="eg: 1234567890"
+ />
+ <button class="btn bg-muted" id="refresh-secret">
+ Refresh
+ </button>
</div>
</div>
<div class="flex items-center gap-2 mt-1">
- <label for="volume-path" class="min-w-32">Volume path</label>
- <input id="volume-path" class="input-field" value="./app-data" type="text" placeholder="eg: ./app-data" />
+ <label for="volume-path" class="min-w-32">
+ Volume path
+ </label>
+ <input
+ id="volume-path"
+ class="input-field"
+ value="./app-data"
+ type="text"
+ placeholder="eg: ./app-data"
+ />
</div>
<div class="flex items-center gap-2 mt-1">
- <label for="privileged-mode" class="min-w-32">Privileged mode</label>
+ <label for="privileged-mode" class="min-w-32">
+ Privileged mode
+ </label>
<div class="flex items-center gap-2 mt-0 w-full">
<select class="input-field mt-0" id="privileged-mode">
- <option value="false" class="bg-background">Rootless</option>
- <option value="true" class="bg-background">Root</option>
+ <option value="false" class="bg-background">
+ Rootless
+ </option>
+ <option value="true" class="bg-background">
+ Root
+ </option>
</select>
</div>
</div>
@@ -82,406 +123,501 @@ const defaultCommand = `mkdir -p ./app-data/{db,documents} && docker compose up
<h2 class="mt-8 mb-2">Ingestion folder</h2>
<div class="flex items-center gap-2 mt-1">
- <label for="ingestion-enabled" class="min-w-32">Enable ingestion</label>
+ <label for="ingestion-enabled" class="min-w-32">
+ Enable ingestion
+ </label>
<div class="flex items-center gap-2 mt-0 w-full">
<select class="input-field mt-0" id="ingestion-enabled">
- <option value="false" class="bg-background">Disabled</option>
- <option value="true" class="bg-background">Enabled</option>
+ <option value="false" class="bg-background">
+ Disabled
+ </option>
+ <option value="true" class="bg-background">
+ Enabled
+ </option>
</select>
</div>
</div>
<div class="flex items-center gap-2 mt-1" id="ingestion-path-container" style="display: none;">
- <label for="ingestion-path" class="min-w-32">Ingestion path</label>
- <input id="ingestion-path" class="input-field" value="./ingestion" type="text" placeholder="eg: ./ingestion" />
+ <label for="ingestion-path" class="min-w-32">
+ Ingestion path
+ </label>
+ <input
+ id="ingestion-path"
+ class="input-field"
+ value="./ingestion"
+ type="text"
+ placeholder="eg: ./ingestion"
+ />
</div>
<h2 class="mt-8 mb-2">Intake emails</h2>
<div class="flex items-center gap-2 mt-1">
- <label for="intake-email-enabled" class="min-w-32">Enabled</label>
+ <label for="intake-email-enabled" class="min-w-32">
+ Enabled
+ </label>
<div class="flex items-center gap-2 mt-0 w-full">
<select class="input-field mt-0" id="intake-email-enabled">
- <option value="false" class="bg-background">Disabled</option>
- <option value="true" class="bg-background">Enabled</option>
+ <option value="false" class="bg-background">
+ Disabled
+ </option>
+ <option value="true" class="bg-background">
+ Enabled
+ </option>
</select>
</div>
</div>
<div class="flex items-center gap-2 mt-1" id="intake-email-driver-container" style="display: none;">
- <label for="intake-email-driver" class="min-w-32">Driver</label>
+ <label for="intake-email-driver" class="min-w-32">
+ Driver
+ </label>
<div class="flex items-center gap-2 mt-0 w-full">
<select class="input-field mt-0" id="intake-email-driver">
- <option value="owlrelay" class="bg-background">OwlRelay</option>
- <option value="catch-all" class="bg-background">Cloudflare Email Worker</option>
+ <option value="owlrelay" class="bg-background">
+ OwlRelay
+ </option>
+ <option value="catch-all" class="bg-background">
+ Cloudflare Email Worker
+ </option>
</select>
</div>
</div>
<div id="intake-email-owlrelay-config" style="display: none;" class="mt-1">
<div class="flex items-center gap-2 mt-1">
- <label for="intake-email-owlrelay-api-key" class="min-w-32">API Key</label>
- <input id="intake-email-owlrelay-api-key" class="input-field" type="text" placeholder="owrl_*****" />
+ <label for="intake-email-owlrelay-api-key" class="min-w-32">
+ API Key
+ </label>
+ <input
+ id="intake-email-owlrelay-api-key"
+ class="input-field"
+ type="text"
+ placeholder="owrl_*****"
+ />
</div>
<div class="flex items-center gap-2 mt-1">
- <label for="intake-email-owlrelay-webhook-url" class="min-w-32">Webhook URL</label>
- <input id="intake-email-owlrelay-webhook-url" class="input-field" type="text" placeholder="https://your-instance.com/api/intake-emails/ingest" value="https://localhost:1221/api/intake-emails/ingest" />
+ <label for="intake-email-owlrelay-webhook-url" class="min-w-32">
+ Webhook URL
+ </label>
+ <input
+ id="intake-email-owlrelay-webhook-url"
+ class="input-field"
+ type="text"
+ placeholder="https://your-instance.com/api/intake-emails/ingest"
+ value="https://localhost:1221/api/intake-emails/ingest"
+ />
</div>
</div>
<div id="intake-email-cf-worker-config" style="display: none;" class="mt-1">
<div class="flex items-center gap-2 mt-1">
- <label for="intake-email-cf-email-domain" class="min-w-32">Email domain</label>
- <input id="intake-email-cf-email-domain" class="input-field" type="text" placeholder="papra.email" />
+ <label for="intake-email-cf-email-domain" class="min-w-32">
+ Email domain
+ </label>
+ <input
+ id="intake-email-cf-email-domain"
+ class="input-field"
+ type="text"
+ placeholder="papra.email"
+ />
</div>
</div>
-<div class="flex items-center gap-2 mt-1" id="intake-email-webhook-secret-container" style="display: none;">
- <label for="intake-email-webhook-secret" class="min-w-32">Webhook secret</label>
+<div
+ class="flex items-center gap-2 mt-1"
+ id="intake-email-webhook-secret-container"
+ style="display: none;"
+>
+ <label for="intake-email-webhook-secret" class="min-w-32">
+ Webhook secret
+ </label>
<div class="flex items-center gap-2 mt-0 w-full">
- <input class="input-field font-mono" id="intake-email-webhook-secret" type="text" placeholder="a-random-key" />
- <button class="btn bg-muted" id="refresh-webhook-secret">Refresh</button>
+ <input
+ class="input-field font-mono"
+ id="intake-email-webhook-secret"
+ type="text"
+ placeholder="a-random-key"
+ />
+ <button class="btn bg-muted" id="refresh-webhook-secret">
+ Refresh
+ </button>
</div>
</div>
<div id="docker-compose-output" class="mt-12" set:html={dcHtml} />
-<pre id="command-output" class="bg-card p-4 rounded-md text-muted-foreground text-sm font-mono overflow-x-auto">{defaultCommand}</pre>
+<pre
+ id="command-output"
+ class="bg-card p-4 rounded-md text-muted-foreground text-sm font-mono overflow-x-auto"
+>{defaultCommand}</pre>
<div class="flex items-center gap-2 mt-4">
- <button class="btn bg-muted mt-0" id="download-button">Download docker-compose.yml</button>
- <button class="btn bg-muted mt-0" id="copy-button">Copy docker compose to clipboard</button>
- <button class="btn bg-muted mt-0" id="copy-command-button">Copy command</button>
+ <button class="btn bg-muted mt-0" id="download-button">
+ Download docker-compose.yml
+ </button>
+ <button class="btn bg-muted mt-0" id="copy-button">
+ Copy docker compose to clipboard
+ </button>
+ <button class="btn bg-muted mt-0" id="copy-command-button">
+ Copy command
+ </button>
</div>
-
<script>
-import { codeToHtml } from 'shiki';
-import { stringify } from 'yaml';
-
-const portInput = document.getElementById('port') as HTMLInputElement;
-const sourceSelect = document.getElementById('source') as HTMLSelectElement;
-const serviceNameInput = document.getElementById('service-name') as HTMLInputElement;
-const authSecretInput = document.getElementById('auth-secret') as HTMLInputElement;
-const appBaseUrlInput = document.getElementById('app-base-url') as HTMLInputElement;
-const refreshSecretButton = document.getElementById('refresh-secret');
-const copyButton = document.getElementById('copy-button');
-const dockerComposeOutput = document.getElementById('docker-compose-output');
-const downloadButton = document.getElementById('download-button');
-const volumePathInput = document.getElementById('volume-path') as HTMLInputElement;
-const privilegedModeSelect = document.getElementById('privileged-mode') as HTMLSelectElement;
-const ingestionEnabledSelect = document.getElementById('ingestion-enabled') as HTMLSelectElement;
-const ingestionPathInput = document.getElementById('ingestion-path') as HTMLInputElement;
-const ingestionPathContainer = document.getElementById('ingestion-path-container') as HTMLDivElement;
-const intakeEmailEnabledSelect = document.getElementById('intake-email-enabled') as HTMLSelectElement;
-const intakeDriverSelect = document.getElementById('intake-email-driver') as HTMLSelectElement;
-const owlrelayConfig = document.getElementById('intake-email-owlrelay-config') as HTMLDivElement;
-const cfWorkerConfig = document.getElementById('intake-email-cf-worker-config') as HTMLDivElement;
-const owlrelayApiKeyInput = document.getElementById('intake-email-owlrelay-api-key') as HTMLInputElement;
-const owlrelayWebhookUrlInput = document.getElementById('intake-email-owlrelay-webhook-url') as HTMLInputElement;
-const cfEmailDomainInput = document.getElementById('intake-email-cf-email-domain') as HTMLInputElement;
-const webhookSecretInput = document.getElementById('intake-email-webhook-secret') as HTMLInputElement;
-const refreshWebhookSecretButton = document.getElementById('refresh-webhook-secret');
-const commandOutput = document.getElementById('command-output');
-const copyCommandButton = document.getElementById('copy-command-button');
-
-// Track whether the app base URL has been customized by the user
-let isAppBaseUrlCustomized = false;
-// Track whether the webhook URL has been customized by the user
-let isWebhookUrlCustomized = false;
-
-function getRandomString() {
- const alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
- return Array.from({ length: 48 }, () => alphabet[Math.floor(Math.random() * alphabet.length)]).join('');
-}
-
-function copyToClipboard(text: string) {
- navigator.clipboard.writeText(text);
-}
-
-function isDefaultAppBaseUrl(url: string, port: string): boolean {
- return url === `http://localhost:${port}`;
-}
-
-function generateDefaultWebhookUrl(baseUrl: string): string {
- // Remove trailing slash if present
- const cleanBaseUrl = baseUrl.replace(/\/$/, '');
- return `${cleanBaseUrl}/api/intake-emails/ingest`;
-}
-
-function isDefaultWebhookUrl(webhookUrl: string, baseUrl: string): boolean {
- return webhookUrl === generateDefaultWebhookUrl(baseUrl);
-}
-
-function refreshIsWebhookUrlCustomized() {
- const currentBaseUrl = appBaseUrlInput.value.trim();
- const currentWebhookUrl = owlrelayWebhookUrlInput.value.trim();
-
- if (isDefaultWebhookUrl(currentWebhookUrl, currentBaseUrl)) {
- isWebhookUrlCustomized = false;
- } else {
- isWebhookUrlCustomized = true;
+ import { codeToHtml } from 'shiki';
+ import { stringify } from 'yaml';
+
+ const portInput = document.getElementById('port') as HTMLInputElement;
+ const sourceSelect = document.getElementById('source') as HTMLSelectElement;
+ const serviceNameInput = document.getElementById('service-name') as HTMLInputElement;
+ const authSecretInput = document.getElementById('auth-secret') as HTMLInputElement;
+ const appBaseUrlInput = document.getElementById('app-base-url') as HTMLInputElement;
+ const refreshSecretButton = document.getElementById('refresh-secret');
+ const copyButton = document.getElementById('copy-button');
+ const dockerComposeOutput = document.getElementById('docker-compose-output');
+ const downloadButton = document.getElementById('download-button');
+ const volumePathInput = document.getElementById('volume-path') as HTMLInputElement;
+ const privilegedModeSelect = document.getElementById('privileged-mode') as HTMLSelectElement;
+ const ingestionEnabledSelect = document.getElementById('ingestion-enabled') as HTMLSelectElement;
+ const ingestionPathInput = document.getElementById('ingestion-path') as HTMLInputElement;
+ const ingestionPathContainer = document.getElementById(
+ 'ingestion-path-container',
+ ) as HTMLDivElement;
+ const intakeEmailEnabledSelect = document.getElementById(
+ 'intake-email-enabled',
+ ) as HTMLSelectElement;
+ const intakeDriverSelect = document.getElementById('intake-email-driver') as HTMLSelectElement;
+ const owlrelayConfig = document.getElementById('intake-email-owlrelay-config') as HTMLDivElement;
+ const cfWorkerConfig = document.getElementById('intake-email-cf-worker-config') as HTMLDivElement;
+ const owlrelayApiKeyInput = document.getElementById(
+ 'intake-email-owlrelay-api-key',
+ ) as HTMLInputElement;
+ const owlrelayWebhookUrlInput = document.getElementById(
+ 'intake-email-owlrelay-webhook-url',
+ ) as HTMLInputElement;
+ const cfEmailDomainInput = document.getElementById(
+ 'intake-email-cf-email-domain',
+ ) as HTMLInputElement;
+ const webhookSecretInput = document.getElementById(
+ 'intake-email-webhook-secret',
+ ) as HTMLInputElement;
+ const refreshWebhookSecretButton = document.getElementById('refresh-webhook-secret');
+ const commandOutput = document.getElementById('command-output');
+ const copyCommandButton = document.getElementById('copy-command-button');
+
+ // Track whether the app base URL has been customized by the user
+ let isAppBaseUrlCustomized = false;
+ // Track whether the webhook URL has been customized by the user
+ let isWebhookUrlCustomized = false;
+
+ function getRandomString() {
+ const alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
+ return Array.from(
+ { length: 48 },
+ () => alphabet[Math.floor(Math.random() * alphabet.length)],
+ ).join('');
}
-}
-function refreshIsAppBaseUrlCustomized() {
- const currentPort = portInput.value;
- const currentUrl = appBaseUrlInput.value.trim();
+ function copyToClipboard(text: string) {
+ navigator.clipboard.writeText(text);
+ }
- if (isDefaultAppBaseUrl(currentUrl, currentPort)) {
- isAppBaseUrlCustomized = false;
- } else {
- isAppBaseUrlCustomized = true;
+ function isDefaultAppBaseUrl(url: string, port: string): boolean {
+ return url === `http://localhost:${port}`;
}
-}
-function updateWebhookUrlFromBaseUrl() {
- if (!isWebhookUrlCustomized) {
- const baseUrl = appBaseUrlInput.value.trim();
- if (baseUrl) {
- owlrelayWebhookUrlInput.value = generateDefaultWebhookUrl(baseUrl);
- }
+ function generateDefaultWebhookUrl(baseUrl: string): string {
+ // Remove trailing slash if present
+ const cleanBaseUrl = baseUrl.replace(/\/$/, '');
+ return `${cleanBaseUrl}/api/intake-emails/ingest`;
}
-}
-function updateAppBaseUrlFromPort() {
- if (!isAppBaseUrlCustomized) {
- const port = portInput.value;
- appBaseUrlInput.value = `http://localhost:${port}`;
- // Also update webhook URL when app base URL changes
- updateWebhookUrlFromBaseUrl();
+ function isDefaultWebhookUrl(webhookUrl: string, baseUrl: string): boolean {
+ return webhookUrl === generateDefaultWebhookUrl(baseUrl);
}
-}
-function handlePortChange() {
- updateAppBaseUrlFromPort();
- updateDockerCompose();
-}
+ function refreshIsWebhookUrlCustomized() {
+ const currentBaseUrl = appBaseUrlInput.value.trim();
+ const currentWebhookUrl = owlrelayWebhookUrlInput.value.trim();
-function handleAppBaseUrlChange() {
- refreshIsAppBaseUrlCustomized();
- updateWebhookUrlFromBaseUrl();
- updateDockerCompose();
-}
+ if (isDefaultWebhookUrl(currentWebhookUrl, currentBaseUrl)) {
+ isWebhookUrlCustomized = false;
+ } else {
+ isWebhookUrlCustomized = true;
+ }
+ }
-function handleWebhookUrlChange() {
- refreshIsWebhookUrlCustomized();
- updateDockerCompose();
-}
-
-function getDockerComposeYml() {
- const serviceName = serviceNameInput.value;
- const isRootless = privilegedModeSelect.value === 'false';
- const image = sourceSelect.value;
- const port = portInput.value;
- const authSecret = authSecretInput.value;
- const volumePath = volumePathInput.value;
- const isIngestionEnabled = ingestionEnabledSelect.value === 'true';
- const ingestionPath = ingestionPathInput.value;
- const intakeEmailEnabled = intakeEmailEnabledSelect.value === 'true';
- const intakeDriver = intakeDriverSelect.value;
- const webhookSecret = webhookSecretInput.value;
- const appBaseUrl = appBaseUrlInput.value.trim() || `http://localhost:${port}`;
-
- const version = isRootless ? 'latest' : 'latest-root';
- const fullImage = `${image}:${version}`;
-
- const environment = [
- `AUTH_SECRET=${authSecret}`,
- `APP_BASE_URL=${appBaseUrl}`,
- isIngestionEnabled && 'INGESTION_FOLDER_IS_ENABLED=true',
- intakeEmailEnabled && 'INTAKE_EMAILS_IS_ENABLED=true',
- intakeEmailEnabled && `INTAKE_EMAILS_DRIVER=${intakeDriver}`,
- intakeEmailEnabled && `INTAKE_EMAILS_WEBHOOK_SECRET=${webhookSecret}`,
- intakeEmailEnabled && intakeDriver === 'owlrelay' && owlrelayApiKeyInput.value && `OWLRELAY_API_KEY=${owlrelayApiKeyInput.value}`,
- intakeEmailEnabled && intakeDriver === 'owlrelay' && owlrelayWebhookUrlInput.value && `OWLRELAY_WEBHOOK_URL=${owlrelayWebhookUrlInput.value}`,
- intakeEmailEnabled && intakeDriver === 'catch-all' && cfEmailDomainInput.value && `INTAKE_EMAILS_CATCH_ALL_DOMAIN=${cfEmailDomainInput.value}`,
- ].flat().filter(Boolean);
-
- const volumes = [
- `${volumePath}:/app/app-data`,
- isIngestionEnabled && `${ingestionPath}:/app/ingestion`,
- ].filter(Boolean);
-
- const dc = {
- services: {
- [serviceName]: {
- image: fullImage,
- container_name: serviceName,
- restart: 'unless-stopped',
- ports: [`${port}:1221`],
- environment,
- volumes,
- ...(isRootless && {
- user: '1000:1000',
- }),
- },
- },
- };
+ function refreshIsAppBaseUrlCustomized() {
+ const currentPort = portInput.value;
+ const currentUrl = appBaseUrlInput.value.trim();
- return stringify(dc);
-}
+ if (isDefaultAppBaseUrl(currentUrl, currentPort)) {
+ isAppBaseUrlCustomized = false;
+ } else {
+ isAppBaseUrlCustomized = true;
+ }
+ }
-function getStartCommand() {
- const volumePath = volumePathInput.value;
- const volumePathNormalized = volumePath.replace(/\/$/, '');
- const volumeWithSubdirs = `${volumePathNormalized}/{db,documents}`;
+ function updateWebhookUrlFromBaseUrl() {
+ if (!isWebhookUrlCustomized) {
+ const baseUrl = appBaseUrlInput.value.trim();
+ if (baseUrl) {
+ owlrelayWebhookUrlInput.value = generateDefaultWebhookUrl(baseUrl);
+ }
+ }
+ }
- const mkdirCommand = `mkdir -p ${volumeWithSubdirs}`;
+ function updateAppBaseUrlFromPort() {
+ if (!isAppBaseUrlCustomized) {
+ const port = portInput.value;
+ appBaseUrlInput.value = `http://localhost:${port}`;
+ // Also update webhook URL when app base URL changes
+ updateWebhookUrlFromBaseUrl();
+ }
+ }
- const dockerCommand = 'docker compose up -d';
+ function handlePortChange() {
+ updateAppBaseUrlFromPort();
+ updateDockerCompose();
+ }
- return `${mkdirCommand} && ${dockerCommand}`;
-}
+ function handleAppBaseUrlChange() {
+ refreshIsAppBaseUrlCustomized();
+ updateWebhookUrlFromBaseUrl();
+ updateDockerCompose();
+ }
-async function updateDockerCompose() {
- const dockerCompose = getDockerComposeYml();
- const command = getStartCommand();
+ function handleWebhookUrlChange() {
+ refreshIsWebhookUrlCustomized();
+ updateDockerCompose();
+ }
- const html = await codeToHtml(dockerCompose, { theme: 'vitesse-black', lang: 'yaml' });
+ function getDockerComposeYml() {
+ const serviceName = serviceNameInput.value;
+ const isRootless = privilegedModeSelect.value === 'false';
+ const image = sourceSelect.value;
+ const port = portInput.value;
+ const authSecret = authSecretInput.value;
+ const volumePath = volumePathInput.value;
+ const isIngestionEnabled = ingestionEnabledSelect.value === 'true';
+ const ingestionPath = ingestionPathInput.value;
+ const intakeEmailEnabled = intakeEmailEnabledSelect.value === 'true';
+ const intakeDriver = intakeDriverSelect.value;
+ const webhookSecret = webhookSecretInput.value;
+ const appBaseUrl = appBaseUrlInput.value.trim() || `http://localhost:${port}`;
+
+ const version = isRootless ? 'latest' : 'latest-root';
+ const fullImage = `${image}:${version}`;
+
+ const environment = [
+ `AUTH_SECRET=${authSecret}`,
+ `APP_BASE_URL=${appBaseUrl}`,
+ isIngestionEnabled && 'INGESTION_FOLDER_IS_ENABLED=true',
+ intakeEmailEnabled && 'INTAKE_EMAILS_IS_ENABLED=true',
+ intakeEmailEnabled && `INTAKE_EMAILS_DRIVER=${intakeDriver}`,
+ intakeEmailEnabled && `INTAKE_EMAILS_WEBHOOK_SECRET=${webhookSecret}`,
+ intakeEmailEnabled &&
+ intakeDriver === 'owlrelay' &&
+ owlrelayApiKeyInput.value &&
+ `OWLRELAY_API_KEY=${owlrelayApiKeyInput.value}`,
+ intakeEmailEnabled &&
+ intakeDriver === 'owlrelay' &&
+ owlrelayWebhookUrlInput.value &&
+ `OWLRELAY_WEBHOOK_URL=${owlrelayWebhookUrlInput.value}`,
+ intakeEmailEnabled &&
+ intakeDriver === 'catch-all' &&
+ cfEmailDomainInput.value &&
+ `INTAKE_EMAILS_CATCH_ALL_DOMAIN=${cfEmailDomainInput.value}`,
+ ]
+ .flat()
+ .filter(Boolean);
+
+ const volumes = [
+ `${volumePath}:/app/app-data`,
+ isIngestionEnabled && `${ingestionPath}:/app/ingestion`,
+ ].filter(Boolean);
+
+ const dc = {
+ services: {
+ [serviceName]: {
+ image: fullImage,
+ container_name: serviceName,
+ restart: 'unless-stopped',
+ ports: [`${port}:1221`],
+ environment,
+ volumes,
+ ...(isRootless && {
+ user: '1000:1000',
+ }),
+ },
+ },
+ };
- if (dockerComposeOutput) {
- dockerComposeOutput.innerHTML = html;
+ return stringify(dc);
}
- if (commandOutput) {
- commandOutput.textContent = command;
+ function getStartCommand() {
+ const volumePath = volumePathInput.value;
+ const volumePathNormalized = volumePath.replace(/\/$/, '');
+ const volumeWithSubdirs = `${volumePathNormalized}/{db,documents}`;
+
+ const mkdirCommand = `mkdir -p ${volumeWithSubdirs}`;
+
+ const dockerCommand = 'docker compose up -d';
+
+ return `${mkdirCommand} && ${dockerCommand}`;
}
-}
-function handleCopy() {
- const dockerCompose = getDockerComposeYml();
+ async function updateDockerCompose() {
+ const dockerCompose = getDockerComposeYml();
+ const command = getStartCommand();
- copyToClipboard(dockerCompose);
+ const html = await codeToHtml(dockerCompose, { theme: 'vitesse-black', lang: 'yaml' });
- if (copyButton) {
- copyButton.textContent = 'Copied!';
+ if (dockerComposeOutput) {
+ dockerComposeOutput.innerHTML = html;
+ }
+
+ if (commandOutput) {
+ commandOutput.textContent = command;
+ }
}
- setTimeout(() => {
+ function handleCopy() {
+ const dockerCompose = getDockerComposeYml();
+
+ copyToClipboard(dockerCompose);
+
if (copyButton) {
- copyButton.textContent = 'Copy to clipboard';
+ copyButton.textContent = 'Copied!';
}
- }, 1000);
-}
-function handleRefreshSecret() {
- authSecretInput.value = getRandomString();
- updateDockerCompose();
-}
-
-function handleDownload() {
- const dockerCompose = getDockerComposeYml();
-
- const blob = new Blob([dockerCompose], { type: 'text/yaml' });
- const url = URL.createObjectURL(blob);
- const a = document.createElement('a');
- a.href = url;
- a.download = 'docker-compose.yml';
- a.click();
-}
-
-function handleIngestionEnabledChange() {
- const isEnabled = ingestionEnabledSelect.value === 'true';
- ingestionPathContainer.style.display = isEnabled ? 'flex' : 'none';
- updateDockerCompose();
-}
+ setTimeout(() => {
+ if (copyButton) {
+ copyButton.textContent = 'Copy to clipboard';
+ }
+ }, 1000);
+ }
+
+ function handleRefreshSecret() {
+ authSecretInput.value = getRandomString();
+ updateDockerCompose();
+ }
-function handleIntakeEmailEnabledChange() {
- const isEnabled = intakeEmailEnabledSelect.value === 'true';
- const driverContainer = document.getElementById('intake-email-driver-container');
- const webhookSecretContainer = document.getElementById('intake-email-webhook-secret-container');
+ function handleDownload() {
+ const dockerCompose = getDockerComposeYml();
- if (driverContainer) {
- driverContainer.style.display = isEnabled ? 'flex' : 'none';
+ const blob = new Blob([dockerCompose], { type: 'text/yaml' });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.href = url;
+ a.download = 'docker-compose.yml';
+ a.click();
}
- if (webhookSecretContainer) {
- webhookSecretContainer.style.display = isEnabled ? 'flex' : 'none';
+
+ function handleIngestionEnabledChange() {
+ const isEnabled = ingestionEnabledSelect.value === 'true';
+ ingestionPathContainer.style.display = isEnabled ? 'flex' : 'none';
+ updateDockerCompose();
}
- if (!isEnabled) {
- // Reset driver-specific configs when disabled
- if (owlrelayConfig) {
- owlrelayConfig.style.display = 'none';
+ function handleIntakeEmailEnabledChange() {
+ const isEnabled = intakeEmailEnabledSelect.value === 'true';
+ const driverContainer = document.getElementById('intake-email-driver-container');
+ const webhookSecretContainer = document.getElementById('intake-email-webhook-secret-container');
+
+ if (driverContainer) {
+ driverContainer.style.display = isEnabled ? 'flex' : 'none';
}
- if (cfWorkerConfig) {
- cfWorkerConfig.style.display = 'none';
+ if (webhookSecretContainer) {
+ webhookSecretContainer.style.display = isEnabled ? 'flex' : 'none';
+ }
+
+ if (!isEnabled) {
+ // Reset driver-specific configs when disabled
+ if (owlrelayConfig) {
+ owlrelayConfig.style.display = 'none';
+ }
+ if (cfWorkerConfig) {
+ cfWorkerConfig.style.display = 'none';
+ }
+ } else {
+ // Show the appropriate driver config
+ handleIntakeDriverChange();
}
- } else {
- // Show the appropriate driver config
- handleIntakeDriverChange();
+
+ updateDockerCompose();
}
- updateDockerCompose();
-}
+ function handleIntakeDriverChange() {
+ const driver = intakeDriverSelect.value;
+ const isEnabled = intakeEmailEnabledSelect.value === 'true';
-function handleIntakeDriverChange() {
- const driver = intakeDriverSelect.value;
- const isEnabled = intakeEmailEnabledSelect.value === 'true';
+ if (!isEnabled) {
+ return;
+ }
- if (!isEnabled) {
- return;
- }
+ if (owlrelayConfig) {
+ owlrelayConfig.style.display = driver === 'owlrelay' ? 'block' : 'none';
+ }
+ if (cfWorkerConfig) {
+ cfWorkerConfig.style.display = driver === 'catch-all' ? 'block' : 'none';
+ }
- if (owlrelayConfig) {
- owlrelayConfig.style.display = driver === 'owlrelay' ? 'block' : 'none';
- }
- if (cfWorkerConfig) {
- cfWorkerConfig.style.display = driver === 'catch-all' ? 'block' : 'none';
+ updateDockerCompose();
}
- updateDockerCompose();
-}
+ function handleRefreshWebhookSecret() {
+ webhookSecretInput.value = getRandomString();
+ updateDockerCompose();
+ }
-function handleRefreshWebhookSecret() {
- webhookSecretInput.value = getRandomString();
- updateDockerCompose();
-}
+ function handleCopyCommand() {
+ const command = getStartCommand();
-function handleCopyCommand() {
- const command = getStartCommand();
+ copyToClipboard(command);
- copyToClipboard(command);
+ if (copyCommandButton) {
+ copyCommandButton.textContent = 'Copied!';
+ }
- if (copyCommandButton) {
- copyCommandButton.textContent = 'Copied!';
+ setTimeout(() => {
+ if (copyCommandButton) {
+ copyCommandButton.textContent = 'Copy command';
+ }
+ }, 1000);
}
- setTimeout(() => {
- if (copyCommandButton) {
- copyCommandButton.textContent = 'Copy command';
- }
- }, 1000);
-}
-
-// Add event listeners
-portInput.addEventListener('input', handlePortChange);
-sourceSelect.addEventListener('change', updateDockerCompose);
-serviceNameInput.addEventListener('input', updateDockerCompose);
-authSecretInput.addEventListener('input', updateDockerCompose);
-appBaseUrlInput.addEventListener('input', handleAppBaseUrlChange);
-refreshSecretButton?.addEventListener('click', handleRefreshSecret);
-copyButton?.addEventListener('click', handleCopy);
-downloadButton?.addEventListener('click', handleDownload);
-volumePathInput.addEventListener('input', updateDockerCompose);
-privilegedModeSelect.addEventListener('change', updateDockerCompose);
-ingestionEnabledSelect.addEventListener('change', handleIngestionEnabledChange);
-ingestionPathInput.addEventListener('input', updateDockerCompose);
-intakeEmailEnabledSelect.addEventListener('change', handleIntakeEmailEnabledChange);
-intakeDriverSelect.addEventListener('change', handleIntakeDriverChange);
-owlrelayApiKeyInput.addEventListener('input', updateDockerCompose);
-owlrelayWebhookUrlInput.addEventListener('input', handleWebhookUrlChange);
-cfEmailDomainInput.addEventListener('input', updateDockerCompose);
-webhookSecretInput.addEventListener('input', updateDockerCompose);
-refreshWebhookSecretButton?.addEventListener('click', handleRefreshWebhookSecret);
-copyCommandButton?.addEventListener('click', handleCopyCommand);
-
-authSecretInput.value = getRandomString();
-
-// Initial render
-updateDockerCompose();
-
-// Initial setup
-handleIngestionEnabledChange();
-handleIntakeEmailEnabledChange();
-webhookSecretInput.value = getRandomString();
+ // Add event listeners
+ portInput.addEventListener('input', handlePortChange);
+ sourceSelect.addEventListener('change', updateDockerCompose);
+ serviceNameInput.addEventListener('input', updateDockerCompose);
+ authSecretInput.addEventListener('input', updateDockerCompose);
+ appBaseUrlInput.addEventListener('input', handleAppBaseUrlChange);
+ refreshSecretButton?.addEventListener('click', handleRefreshSecret);
+ copyButton?.addEventListener('click', handleCopy);
+ downloadButton?.addEventListener('click', handleDownload);
+ volumePathInput.addEventListener('input', updateDockerCompose);
+ privilegedModeSelect.addEventListener('change', updateDockerCompose);
+ ingestionEnabledSelect.addEventListener('change', handleIngestionEnabledChange);
+ ingestionPathInput.addEventListener('input', updateDockerCompose);
+ intakeEmailEnabledSelect.addEventListener('change', handleIntakeEmailEnabledChange);
+ intakeDriverSelect.addEventListener('change', handleIntakeDriverChange);
+ owlrelayApiKeyInput.addEventListener('input', updateDockerCompose);
+ owlrelayWebhookUrlInput.addEventListener('input', handleWebhookUrlChange);
+ cfEmailDomainInput.addEventListener('input', updateDockerCompose);
+ webhookSecretInput.addEventListener('input', updateDockerCompose);
+ refreshWebhookSecretButton?.addEventListener('click', handleRefreshWebhookSecret);
+ copyCommandButton?.addEventListener('click', handleCopyCommand);
+
+ authSecretInput.value = getRandomString();
+
+ // Initial render
+ updateDockerCompose();
+
+ // Initial setup
+ handleIngestionEnabledChange();
+ handleIntakeEmailEnabledChange();
+ webhookSecretInput.value = getRandomString();
</script>
diff --git a/apps/docs/src/pages/changelog.astro b/apps/docs/src/pages/changelog.astro
index 408b0de9..af076884 100644
--- a/apps/docs/src/pages/changelog.astro
+++ b/apps/docs/src/pages/changelog.astro
@@ -5,7 +5,6 @@ import { parseChangelog } from '../changelog-parser';
import { renderMarkdown } from '../markdown';
const changelog = parseChangelog(rawChangelog);
-
---
<StarlightPage
@@ -16,40 +15,58 @@ const changelog = parseChangelog(rawChangelog);
}}
>
<p>
- Here are the changelogs for Docker images released by Papra.<br />
- Papra application versions use the format <code>YY.MINOR.PATCH</code>. <code>YY</code> identifies the release year, <code>MINOR</code> increments for feature releases, and <code>PATCH</code> increments for maintenance releases. Papra publishes fixes only for the latest version.
+ Here are the changelogs for Docker images released by Papra.
+ <br />
+ Papra application versions use the format <code>YY.MINOR.PATCH</code>. <code>YY</code>{' '}
+ identifies the release year, <code>MINOR</code> increments for feature releases, and{' '}
+ <code>PATCH</code> increments for maintenance releases. Papra publishes fixes only for the
+ latest version.
</p>
-
- {
- changelog.map(({ entries, version }) => (
- <section>
-
- <h2 id={version} class="pb-1 mt-14">v{version}</h2>
- <ul>
- {entries.map(entry => (
- <li>
- <div class="flex flex-col">
- <div class="text-foreground lh-normal changelog-entry" set:html={renderMarkdown(entry.content)} />
- <div class="text-xs mt-1 flex gap-1 flex-wrap">
- <a href={entry.pr.url} class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5">PR #{entry.pr.number}</a>
- <a href={entry.commit.url} class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5">{entry.commit.hash.slice(0, 7)}</a>
- <a href={entry.contributor.url} class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5">
- By @{entry.contributor.username}
- </a>
- </div>
+ {changelog.map(({ entries, version }) => (
+ <section>
+ <h2 id={version} class="pb-1 mt-14">
+ v{version}
+ </h2>
+ <ul>
+ {entries.map((entry) => (
+ <li>
+ <div class="flex flex-col">
+ <div
+ class="text-foreground lh-normal changelog-entry"
+ set:html={renderMarkdown(entry.content)}
+ />
+ <div class="text-xs mt-1 flex gap-1 flex-wrap">
+ <a
+ href={entry.pr.url}
+ class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5"
+ >
+ PR #{entry.pr.number}
+ </a>
+ <a
+ href={entry.commit.url}
+ class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5"
+ >
+ {entry.commit.hash.slice(0, 7)}
+ </a>
+ <a
+ href={entry.contributor.url}
+ class="text-muted-foreground hover:bg-muted transition border border-muted border-solid rounded-md no-underline px-1 py-0.5"
+ >
+ By @{entry.contributor.username}
+ </a>
</div>
- </li>
- ))}
- </ul>
- </section>
- ))
- }
+ </div>
+ </li>
+ ))}
+ </ul>
+ </section>
+ ))}
</StarlightPage>
<style is:global>
-.changelog-entry pre {
- border-radius: 6px;
- color: hsl(var(--muted-foreground) / var(--un-text-opacity));
-}
+ .changelog-entry pre {
+ border-radius: 6px;
+ color: hsl(var(--muted-foreground) / var(--un-text-opacity));
+ }
</style>
diff --git a/apps/docs/src/pages/docker-compose-generator.astro b/apps/docs/src/pages/docker-compose-generator.astro
index dab1c445..e4ba06de 100644
--- a/apps/docs/src/pages/docker-compose-generator.astro
+++ b/apps/docs/src/pages/docker-compose-generator.astro
@@ -5,12 +5,18 @@ import DockerComposeGeneratorComp from '../docker-compose-generator/dc-generator
<StarlightPage
frontmatter={{
- title: 'Papra docker-compose.yml generator',
- description: 'Generate a custom docker-compose.yml file for Papra, tailored to your needs.',
- tableOfContents: false,
- }}
+ title: 'Papra docker-compose.yml generator',
+ description: 'Generate a custom docker-compose.yml file for Papra, tailored to your needs.',
+ tableOfContents: false,
+ }}
>
- <p>This tool will help you generate a custom docker-compose.yml file for Papra, tailored to your needs. You can personalize the service name, the port, the auth secret, and the source image.</p>
- <p>For more configuration options, you can use the <a href="/self-hosting/configuration">configuration reference</a>.</p>
- <DockerComposeGeneratorComp />
+ <p>
+ This tool will help you generate a custom docker-compose.yml file for Papra, tailored to your
+ needs. You can personalize the service name, the port, the auth secret, and the source image.
+ </p>
+ <p>
+ For more configuration options, you can use the{' '}
+ <a href="/self-hosting/configuration">configuration reference</a>.
+ </p>
+ <DockerComposeGeneratorComp />
</StarlightPage>
diff --git a/apps/papra-client/src/modules/organizations/pages/invitations-list.page.tsx b/apps/papra-client/src/modules/organizations/pages/invitations-list.page.tsx
index 3141d765..1d1f2b6c 100644
--- a/apps/papra-client/src/modules/organizations/pages/invitations-list.page.tsx
+++ b/apps/papra-client/src/modules/organizations/pages/invitations-list.page.tsx
@@ -39,13 +39,13 @@ const InvitationStatusBadge: Component<{ status: OrganizationInvitationStatus }>
const getStatus = () => t(`organizations.invitations.status.${props.status}`);
const getVariant = () =>
(
- ({
+ {
[ORGANIZATION_INVITATION_STATUS.PENDING]: 'default',
[ORGANIZATION_INVITATION_STATUS.ACCEPTED]: 'default',
[ORGANIZATION_INVITATION_STATUS.REJECTED]: 'destructive',
[ORGANIZATION_INVITATION_STATUS.EXPIRED]: 'destructive',
[ORGANIZATION_INVITATION_STATUS.CANCELLED]: 'destructive',
- }) as const
+ } as const
)[props.status] ?? 'default';
return <Badge variant={getVariant()}>{getStatus()}</Badge>;
diff --git a/apps/website/src/components/BentoCard.astro b/apps/website/src/components/BentoCard.astro
index 192df300..eb0433e1 100644
--- a/apps/website/src/components/BentoCard.astro
+++ b/apps/website/src/components/BentoCard.astro
@@ -10,18 +10,15 @@ type Props = {
const { title, description, icon } = Astro.props;
---
+<div class="border rounded-xl bg-[linear-gradient(to_right,#80808008_1px,transparent_1px),linear-gradient(to_bottom,#80808008_1px,transparent_1px)] bg-[size:24px_24px] overflow-hidden">
+ <div class="z-50">
+ <slot />
+ </div>
- <div class="border rounded-xl bg-[linear-gradient(to_right,#80808008_1px,transparent_1px),linear-gradient(to_bottom,#80808008_1px,transparent_1px)] bg-[size:24px_24px] overflow-hidden">
- <div class="z-50">
- <slot></slot>
- </div>
+ <div class="relative z-60 bg-gradient-to-t from-background via-background to-card to-opacity-0 p-6 pt-24 mt--24">
+ {icon && <div class={cn('size-9 text-muted-foreground mb-4', icon)} />}
+ <h3 class="text-xl font-bold text-pretty">{title}</h3>
- <div class="relative z-60 bg-gradient-to-t from-background via-background to-card to-opacity-0 p-6 pt-24 mt--24">
- {icon && (<div class={cn('size-9 text-muted-foreground mb-4', icon)} />)}
- <h3 class="text-xl font-bold text-pretty">{title}</h3>
-
- <p class="text-muted-foreground text-base mt-2 leading-tight">
- {description}
- </p>
- </div>
- </div>
+ <p class="text-muted-foreground text-base mt-2 leading-tight">{description}</p>
+ </div>
+</div>
diff --git a/apps/website/src/components/ComparisonTable.astro b/apps/website/src/components/ComparisonTable.astro
index 6895716b..3e84d105 100644
--- a/apps/website/src/components/ComparisonTable.astro
+++ b/apps/website/src/components/ComparisonTable.astro
@@ -21,27 +21,37 @@ const { rows, class: className } = Astro.props;
<thead>
<tr class="bg-card">
<th class="text-left px-6 py-4 w-30%"></th>
- <th class="text-left px-6 py-4 text-sm font-bold text-muted-foreground uppercase tracking-wide w-35%">Paperless-NGX</th>
- <th class="text-left px-6 py-4 text-sm font-bold text-muted-foreground uppercase tracking-wide rounded-tr-xl w-35%">Papra</th>
+ <th class="text-left px-6 py-4 text-sm font-bold text-muted-foreground uppercase tracking-wide w-35%">
+ Paperless-NGX
+ </th>
+ <th class="text-left px-6 py-4 text-sm font-bold text-muted-foreground uppercase tracking-wide rounded-tr-xl w-35%">
+ Papra
+ </th>
</tr>
</thead>
<tbody>
{rows.map((row, index) => (
<tr class="bg-card transition-colors hover:bg-muted/20 border-t">
<td class="px-6 py-5">
- <div class="font-medium text-foreground">{row.feature}</div>
- {row.description && (<div class="text-sm text-muted-foreground">{row.description}</div>)}
+ <div class="font-medium text-foreground">{row.feature}</div>
+ {row.description && <div class="text-sm text-muted-foreground">{row.description}</div>}
+ </td>
+ <td
+ class={cn(
+ 'px-6 py-5 text-muted-foreground leading-relaxed',
+ index === rows.length - 1 && 'rounded-br-xl',
+ )}
+ >
+ {row.paperless}
+ </td>
+ <td
+ class={cn(
+ 'px-6 py-5 text-muted-foreground leading-relaxed',
+ index === rows.length - 1 && 'rounded-br-xl',
+ )}
+ >
+ {row.papra}
</td>
- <td class={cn(
- 'px-6 py-5 text-muted-foreground leading-relaxed',
- index === rows.length - 1 && 'rounded-br-xl',
- )}
- >{row.paperless}</td>
- <td class={cn(
- 'px-6 py-5 text-muted-foreground leading-relaxed',
- index === rows.length - 1 && 'rounded-br-xl',
- )}
- >{row.papra}</td>
</tr>
))}
</tbody>
diff --git a/apps/website/src/components/Cta.astro b/apps/website/src/components/Cta.astro
index 02758dbb..215a7a60 100644
--- a/apps/website/src/components/Cta.astro
+++ b/apps/website/src/components/Cta.astro
@@ -6,13 +6,16 @@ const { t } = useI18n({ locale: Astro.currentLocale });
---
<div class="bg-card py-32 px-6">
- <div
- class="max-w-1200px mx-auto px-6 border rounded-xl bg-background pt-32 pb-24 bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] px-6 z-20"
- >
-
- <h2 class="text-2xl sm:text-4xl font-bold text-center text-pretty max-w-800px mx-auto text-pretty" set:html={t('cta.heading')} />
+ <div class="max-w-1200px mx-auto px-6 border rounded-xl bg-background pt-32 pb-24 bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] px-6 z-20">
+ <h2
+ class="text-2xl sm:text-4xl font-bold text-center text-pretty max-w-800px mx-auto text-pretty"
+ set:html={t('cta.heading')}
+ />
<div class="flex mt-4 items-center justify-center">
- <a href={config.getStartedLink} class="font-semibold text-background px-4 py-2 hover:bg-primary/80 rounded-lg bg-primary transition mt-8 inline-block flex items-center">
+ <a
+ href={config.getStartedLink}
+ class="font-semibold text-background px-4 py-2 hover:bg-primary/80 rounded-lg bg-primary transition mt-8 inline-block flex items-center"
+ >
{t('cta.get-started')}
<div class="i-tabler-arrow-right ml-2 size-5" aria-hidden="true"></div>
diff --git a/apps/website/src/components/FaqAccordion.astro b/apps/website/src/components/FaqAccordion.astro
index 84870444..dcfdc254 100644
--- a/apps/website/src/components/FaqAccordion.astro
+++ b/apps/website/src/components/FaqAccordion.astro
@@ -2,79 +2,94 @@
import { cn } from '../utils/cn';
type Props = {
- title: string;
- description: string;
- items: readonly {
- question: string;
- answer: string;
- }[];
- class?: string;
+ title: string;
+ description: string;
+ items: readonly {
+ question: string;
+ answer: string;
+ }[];
+ class?: string;
};
const { title, description, items, class: className } = Astro.props;
---
<div class={cn(`max-w-800px mx-auto px-6 py-42`, className)}>
- <h2 class="text-3xl font-semibold text-pretty mb-4 text-center">{title}</h2>
- <p class="text-muted-foreground text-lg text-center mb-24">{description}</p>
+ <h2 class="text-3xl font-semibold text-pretty mb-4 text-center">{title}</h2>
+ <p class="text-muted-foreground text-lg text-center mb-24">{description}</p>
- <div>
- {
- items.map((item, index) => (
- <div class="border-x border-t first:rounded-t-lg last:border-b last:rounded-b-lg bg-background overflow-hidden">
- <button class="w-full px-6 py-4 text-left flex items-center justify-between" data-faq-toggle data-faq-index={index} aria-expanded="false" aria-controls={`faq-content-${index}`}>
- <span class="font-semibold text-sm sm:text-base">{item.question}</span>
- <div class="i-tabler-chevron-down size-5 text-muted-foreground transition-transform duration-200" data-faq-icon aria-hidden="true" />
- </button>
+ <div>
+ {items.map((item, index) => (
+ <div class="border-x border-t first:rounded-t-lg last:border-b last:rounded-b-lg bg-background overflow-hidden">
+ <button
+ class="w-full px-6 py-4 text-left flex items-center justify-between"
+ data-faq-toggle
+ data-faq-index={index}
+ aria-expanded="false"
+ aria-controls={`faq-content-${index}`}
+ >
+ <span class="font-semibold text-sm sm:text-base">{item.question}</span>
+ <div
+ class="i-tabler-chevron-down size-5 text-muted-foreground transition-transform duration-200"
+ data-faq-icon
+ aria-hidden="true"
+ />
+ </button>
- <div class="px-6 pb-0 max-h-0 overflow-hidden transition-all duration-300 ease-in-out" data-faq-content data-faq-index={index} id={`faq-content-${index}`}>
- <div class="pb-4">
- <p class="text-muted-foreground leading-relaxed">{item.answer}</p>
- </div>
- </div>
- </div>
- ))
- }
- </div>
+ <div
+ class="px-6 pb-0 max-h-0 overflow-hidden transition-all duration-300 ease-in-out"
+ data-faq-content
+ data-faq-index={index}
+ id={`faq-content-${index}`}
+ >
+ <div class="pb-4">
+ <p class="text-muted-foreground leading-relaxed">{item.answer}</p>
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
</div>
<script>
- function expandItem(toggle: HTMLElement, content: HTMLElement, icon: HTMLElement) {
- toggle.setAttribute('aria-expanded', 'true');
- content.style.maxHeight = `${content.scrollHeight}px`;
- icon.style.transform = 'rotate(180deg)';
- }
+ function expandItem(toggle: HTMLElement, content: HTMLElement, icon: HTMLElement) {
+ toggle.setAttribute('aria-expanded', 'true');
+ content.style.maxHeight = `${content.scrollHeight}px`;
+ icon.style.transform = 'rotate(180deg)';
+ }
- function collapseItem(toggle: HTMLElement, content: HTMLElement, icon: HTMLElement) {
- toggle.setAttribute('aria-expanded', 'false');
- content.style.maxHeight = '0';
- icon.style.transform = 'rotate(0deg)';
- }
+ function collapseItem(toggle: HTMLElement, content: HTMLElement, icon: HTMLElement) {
+ toggle.setAttribute('aria-expanded', 'false');
+ content.style.maxHeight = '0';
+ icon.style.transform = 'rotate(0deg)';
+ }
- function handleToggleClick(e: Event) {
- const target = e.currentTarget as HTMLElement;
- const index = target.getAttribute('data-faq-index');
- const content = document.querySelector(`[data-faq-content][data-faq-index="${index}"]`) as HTMLElement;
- const icon = target.querySelector('[data-faq-icon]') as HTMLElement;
- const isExpanded = target.getAttribute('aria-expanded') === 'true';
+ function handleToggleClick(e: Event) {
+ const target = e.currentTarget as HTMLElement;
+ const index = target.getAttribute('data-faq-index');
+ const content = document.querySelector(
+ `[data-faq-content][data-faq-index="${index}"]`,
+ ) as HTMLElement;
+ const icon = target.querySelector('[data-faq-icon]') as HTMLElement;
+ const isExpanded = target.getAttribute('aria-expanded') === 'true';
- if (isExpanded) {
- collapseItem(target, content, icon);
- } else {
- expandItem(target, content, icon);
- }
+ if (isExpanded) {
+ collapseItem(target, content, icon);
+ } else {
+ expandItem(target, content, icon);
}
+ }
- function initFaqAccordion() {
- const toggles = document.querySelectorAll('[data-faq-toggle]');
- toggles.forEach((toggle) => {
- toggle.addEventListener('click', handleToggleClick);
- });
- }
+ function initFaqAccordion() {
+ const toggles = document.querySelectorAll('[data-faq-toggle]');
+ toggles.forEach((toggle) => {
+ toggle.addEventListener('click', handleToggleClick);
+ });
+ }
- // Initialize FAQ accordion when DOM is loaded
- document.addEventListener('DOMContentLoaded', initFaqAccordion);
+ // Initialize FAQ accordion when DOM is loaded
+ document.addEventListener('DOMContentLoaded', initFaqAccordion);
- // Also initialize for Astro's client-side navigation
- document.addEventListener('astro:page-load', initFaqAccordion);
+ // Also initialize for Astro's client-side navigation
+ document.addEventListener('astro:page-load', initFaqAccordion);
</script>
diff --git a/apps/website/src/components/FeaturesBento.astro b/apps/website/src/components/FeaturesBento.astro
index c7778289..e5132bdd 100644
--- a/apps/website/src/components/FeaturesBento.astro
+++ b/apps/website/src/components/FeaturesBento.astro
@@ -49,7 +49,9 @@ curl -X POST https://api.papra.ai/v1/documents \\
icon="i-tabler-archive"
>
<div class="grid grid-cols-8 grid-rows-2 gap-4 p-6 overflow-hidden mb--150px">
- {Array.from({ length: 24 }).map(() => <div class={cn('size-8 sm:size-10 text-muted text-center', getRandomIcon())} />)}
+ {Array.from({ length: 24 }).map(() => (
+ <div class={cn('size-8 sm:size-10 text-muted text-center', getRandomIcon())} />
+ ))}
</div>
</BentoCard>
@@ -92,7 +94,11 @@ curl -X POST https://api.papra.ai/v1/documents \\
description={t('features.search.description')}
icon="i-tabler-search"
>
- <div class="mb--180px flex items-start justify-center pt-6 relative" role="img" aria-label="Search feature illustration">
+ <div
+ class="mb--180px flex items-start justify-center pt-6 relative"
+ role="img"
+ aria-label="Search feature illustration"
+ >
<div class="bg-background sm:min-w-64 border rounded-lg">
<div class="px-4 py-2 flex items-center gap-2">
<span class="i-tabler-search size-4 text-primary"></span>
@@ -130,7 +136,13 @@ curl -X POST https://api.papra.ai/v1/documents \\
icon="i-tabler-code"
>
<div class="flex justify-center p-6">
- <Code code={codeSnippet} lang="bash" theme="vitesse-dark" class="text-xs bg-transparent!" role="presentation" />
+ <Code
+ code={codeSnippet}
+ lang="bash"
+ theme="vitesse-dark"
+ class="text-xs bg-transparent!"
+ role="presentation"
+ />
</div>
</BentoCard>
diff --git a/apps/website/src/components/Footer.astro b/apps/website/src/components/Footer.astro
index 3691842e..5ff234fd 100644
--- a/apps/website/src/components/Footer.astro
+++ b/apps/website/src/components/Footer.astro
@@ -108,19 +108,26 @@ const sections: {
<div class="max-w-1200px mx-auto p-4">
<div class="flex justify-between flex-col md:flex-row gap-10">
<div class="">
- <a href={buildLocalizedPath({ locale: Astro.currentLocale, path: '/' })} class="text-xl font-bold flex items-center group mb-2">
+ <a
+ href={buildLocalizedPath({ locale: Astro.currentLocale, path: '/' })}
+ class="text-xl font-bold flex items-center group mb-2"
+ >
<div class="i-tabler-file-text size-7 text-primary group-hover:(rotate-25deg) transition transform rotate-12deg"></div>
<span class="ml-2 text-foreground group-hover:text-foreground/80 transition">Papra</span>
</a>
<div class="flex gap-2">
- {
- socials.map(social => (
- <a href={social.url} class="hover:text-primary transition" target="_blank" rel="noopener noreferrer" aria-label={social.label}>
- <div class={`${social.icon} text-2xl`} aria-hidden="true" />
- </a>
- ))
- }
+ {socials.map((social) => (
+ <a
+ href={social.url}
+ class="hover:text-primary transition"
+ target="_blank"
+ rel="noopener noreferrer"
+ aria-label={social.label}
+ >
+ <div class={`${social.icon} text-2xl`} aria-hidden="true" />
+ </a>
+ ))}
</div>
<p class="mt-4 text-sm max-w-250px" set:html={t('footer.made-in-europe')} />
@@ -131,23 +138,29 @@ const sections: {
</div>
<div class={cn('grid gap-6 grid-cols-1', `sm:grid-cols-${sections.length}`)}>
- {
- sections.map(section => (
- <div>
- <div class="text-foreground font-semibold">{section.title}</div>
- <div class="mt-2">
- {section.links.map(link => (
- <a href={link.url} class="block hover:text-primary transition py-0.75 font-medium" target={link.target} rel={link.rel}>
- {link.label}
- </a>
- ))}
- </div>
+ {sections.map((section) => (
+ <div>
+ <div class="text-foreground font-semibold">{section.title}</div>
+ <div class="mt-2">
+ {section.links.map((link) => (
+ <a
+ href={link.url}
+ class="block hover:text-primary transition py-0.75 font-medium"
+ target={link.target}
+ rel={link.rel}
+ >
+ {link.label}
+ </a>
+ ))}
</div>
- ))
- }
+ </div>
+ ))}
</div>
</div>
- <div class="mt-8 border-t border-border pt-4" set:html={t('footer.copyright', { year: new Date().getFullYear() })} />
+ <div
+ class="mt-8 border-t border-border pt-4"
+ set:html={t('footer.copyright', { year: new Date().getFullYear() })}
+ />
</div>
</footer>
diff --git a/apps/website/src/components/Head.astro b/apps/website/src/components/Head.astro
index 9d131b0e..c965e12f 100644
--- a/apps/website/src/components/Head.astro
+++ b/apps/website/src/components/Head.astro
@@ -7,7 +7,6 @@ import PosthogAnalytics from './PosthogAnalytics.astro';
const { t } = useI18n({ locale: Astro.currentLocale });
-
export type Props = {
title?: string;
rawTitle?: string;
@@ -45,7 +44,15 @@ const organizationLd = {
},
};
-const { rawTitle, description = siteInfo.description, image = siteInfo.image, canonicalUrl: rawCanonicalUrl, pageType = 'website', locale = Astro.currentLocale ?? DEFAULT_LOCALE, jsonLd = organizationLd } = Astro.props;
+const {
+ rawTitle,
+ description = siteInfo.description,
+ image = siteInfo.image,
+ canonicalUrl: rawCanonicalUrl,
+ pageType = 'website',
+ locale = Astro.currentLocale ?? DEFAULT_LOCALE,
+ jsonLd = organizationLd,
+} = Astro.props;
const canonicalUrl = formatCanonicalUrl(rawCanonicalUrl ?? new URL(Astro.request.url, Astro.site));
const title = rawTitle ?? [Astro.props.title, siteInfo.title].filter(Boolean).join(' - ');
@@ -110,16 +117,21 @@ const alternateLinks = isMultiLangPage
<link rel="author" href="humans.txt" />
<link rel="canonical" href={canonicalUrl} />
- {
- alternateLinks.length > 0 && (
- <>
- <link rel="alternate" hreflang="x-default" href={new URL(`/${DEFAULT_LOCALE}${getPathWithoutLocale(Astro.url)}`, Astro.site).toString()} />
- {alternateLinks.map(({ hreflang, href }) => (
- <link rel="alternate" hreflang={hreflang} href={href} />
- ))}
- </>
- )
- }
+ {alternateLinks.length > 0 && (
+ <>
+ <link
+ rel="alternate"
+ hreflang="x-default"
+ href={new URL(
+ `/${DEFAULT_LOCALE}${getPathWithoutLocale(Astro.url)}`,
+ Astro.site,
+ ).toString()}
+ />
+ {alternateLinks.map(({ hreflang, href }) => (
+ <link rel="alternate" hreflang={hreflang} href={href} />
+ ))}
+ </>
+ )}
<!-- OpenGraph Tags -->
<meta property="og:title" content={og.title} />
@@ -144,7 +156,12 @@ const alternateLinks = isMultiLangPage
<PosthogAnalytics />
<meta name="robots" content="max-image-preview:large" />
- <link rel="alternate" type="application/rss+xml" title="Papra Blog" href={new URL('rss.xml', Astro.site)} />
+ <link
+ rel="alternate"
+ type="application/rss+xml"
+ title="Papra Blog"
+ href={new URL('rss.xml', Astro.site)}
+ />
<meta name="fediverse:creator" content="@[email protected]" />
diff --git a/apps/website/src/components/Header.astro b/apps/website/src/components/Header.astro
index e9c98ace..aab177a3 100644
--- a/apps/website/src/components/Header.astro
+++ b/apps/website/src/components/Header.astro
@@ -6,7 +6,7 @@ import { cn } from '../utils/cn';
const { t } = useI18n({ locale: Astro.currentLocale });
-const socials = getSocials({ t }).filter(social => social.inHeader);
+const socials = getSocials({ t }).filter((social) => social.inHeader);
const navigation = [
{
@@ -39,35 +39,47 @@ const { class: className } = Astro.props;
---
<header
- class={cn('z-100 fixed top-0 left-0 right-0 border-b bg-background/80 backdrop-blur-sm', className)}
+ class={cn(
+ 'z-100 fixed top-0 left-0 right-0 border-b bg-background/80 backdrop-blur-sm',
+ className,
+ )}
>
<nav class="max-w-1200px mx-auto px-6 h-16 flex items-center justify-between">
<div class="flex items-center gap-8">
- <a href={buildLocalizedPath({ locale: Astro.currentLocale, path: '/' })} class="text-lg font-bold flex items-center group">
+ <a
+ href={buildLocalizedPath({ locale: Astro.currentLocale, path: '/' })}
+ class="text-lg font-bold flex items-center group"
+ >
<div class="i-tabler-file-text size-6 group-hover:rotate-25deg text-primary transition transform rotate-12deg"></div>
<span class="ml-2">Papra</span>
</a>
<div class="items-center gap-6 hidden md:flex">
- {
- navigation.map(nav => (
- <a href={nav.url} class="text-sm font-semibold hover:text-primary transition" {...(nav.url.startsWith('http') ? { target: '_blank', rel: 'noopener' } : {})}>
- {nav.name}
- </a>
- ))
- }
+ {navigation.map((nav) => (
+ <a
+ href={nav.url}
+ class="text-sm font-semibold hover:text-primary transition"
+ {...(nav.url.startsWith('http') ? { target: '_blank', rel: 'noopener' } : {})}
+ >
+ {nav.name}
+ </a>
+ ))}
</div>
</div>
<div class="flex items-center gap-4">
<div class="items-center gap-3 hidden md:flex">
- {
- socials.map(social => (
- <a href={social.url} target="_blank" rel="noopener noreferrer" class="hover:text-primary transition" aria-label={social.name}>
- <div class={cn('size-5', social.icon)} />
- </a>
- ))
- }
+ {socials.map((social) => (
+ <a
+ href={social.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ class="hover:text-primary transition"
+ aria-label={social.name}
+ >
+ <div class={cn('size-5', social.icon)} />
+ </a>
+ ))}
</div>
<a
@@ -94,18 +106,17 @@ const { class: className } = Astro.props;
</div>
</nav>
- <div
- id="mobile-menu"
- class="md:hidden hidden border-t bg-background/95 backdrop-blur-sm"
- >
+ <div id="mobile-menu" class="md:hidden hidden border-t bg-background/95 backdrop-blur-sm">
<nav class="max-w-5xl mx-auto px-6 py-4 flex flex-col gap-1" aria-label="Mobile">
- {
- navigation.map(nav => (
- <a href={nav.url} class="text-base font-semibold py-2 hover:text-primary transition" {...(nav.url.startsWith('http') ? { target: '_blank', rel: 'noopener' } : {})}>
- {nav.name}
- </a>
- ))
- }
+ {navigation.map((nav) => (
+ <a
+ href={nav.url}
+ class="text-base font-semibold py-2 hover:text-primary transition"
+ {...(nav.url.startsWith('http') ? { target: '_blank', rel: 'noopener' } : {})}
+ >
+ {nav.name}
+ </a>
+ ))}
<a
class="flex gap-1.5 items-center justify-center bg-primary font-bold rounded-xl py-2 px-3 mt-3 text-primary-foreground text-sm transition hover:bg-primary/80"
@@ -118,13 +129,17 @@ const { class: className } = Astro.props;
</a>
<div class="flex items-center gap-4 mt-4 pt-4 border-t">
- {
- socials.map(social => (
- <a href={social.url} target="_blank" rel="noopener noreferrer" class="hover:text-primary transition" aria-label={social.name}>
- <div class={cn('size-5', social.icon)} />
- </a>
- ))
- }
+ {socials.map((social) => (
+ <a
+ href={social.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ class="hover:text-primary transition"
+ aria-label={social.name}
+ >
+ <div class={cn('size-5', social.icon)} />
+ </a>
+ ))}
</div>
</nav>
</div>
@@ -152,8 +167,12 @@ const { class: className } = Astro.props;
});
// Close the menu when a link is clicked or the viewport grows to desktop.
- menu?.querySelectorAll('a').forEach(link => link.addEventListener('click', () => setMenuOpen(false)));
- window.matchMedia('(min-width: 768px)').addEventListener('change', event => event.matches && setMenuOpen(false));
+ menu
+ ?.querySelectorAll('a')
+ .forEach((link) => link.addEventListener('click', () => setMenuOpen(false)));
+ window
+ .matchMedia('(min-width: 768px)')
+ .addEventListener('change', (event) => event.matches && setMenuOpen(false));
// Close on Escape and return focus to the toggle for keyboard users.
document.addEventListener('keydown', (event) => {
diff --git a/apps/website/src/components/Hero.astro b/apps/website/src/components/Hero.astro
index d446c141..a61e6c1d 100644
--- a/apps/website/src/components/Hero.astro
+++ b/apps/website/src/components/Hero.astro
@@ -27,28 +27,49 @@ const pils = [
<div class="z-9 bg-gradient-to-b from-background to-transparent w-full h-full absolute top-0 left-0"></div>
<div class="z-10 bg-primary w-80% max-w-1000px h-100px sm:h-200px md:h-400px rounded-xl blur-64 op-20 absolute bottom--100px left-50% -translate-x-50%"></div>
-
<div class="max-w-1000px mx-auto pt-20 px-6 mt-24 z-50 relative">
<div class="flex items-center gap-2 mb-6">
- {
- pils.map((pil) => (
- <a class="text-xs font-regular bg-muted/80 text-muted-foreground rounded py-1 px-2.5 rounded-lg border border-muted-foreground/20 hover:(bg-primary/10 border-primary/20 text-primary) transition" href={pil.href} target={pil.target} rel={pil.rel}>{pil.label}</a>
- ))
- }
+ {pils.map((pil) => (
+ <a
+ class="text-xs font-regular bg-muted/80 text-muted-foreground rounded py-1 px-2.5 rounded-lg border border-muted-foreground/20 hover:(bg-primary/10 border-primary/20 text-primary) transition"
+ href={pil.href}
+ target={pil.target}
+ rel={pil.rel}
+ >
+ {pil.label}
+ </a>
+ ))}
</div>
- <h1 class="text-4xl sm:text-5xl font-semibold mb-4 text-pretty max-w-800px">{t('home.hero.title')}</h1>
+ <h1 class="text-4xl sm:text-5xl font-semibold mb-4 text-pretty max-w-800px">
+ {t('home.hero.title')}
+ </h1>
<p class="text-lg text-muted-foreground max-w-500px">{t('home.hero.subtitle')}</p>
<div class="flex items-center gap-2 mt-8 mb-32">
- <a href="https://demo.papra.app" class="border text-sm font-bold rounded py-2 px-4 rounded-xl hover:border-primary hover:text-primary transition" target="_blank" rel="noopener">{t('home.hero.live-demo')}</a>
+ <a
+ href="https://demo.papra.app"
+ class="border text-sm font-bold rounded py-2 px-4 rounded-xl hover:border-primary hover:text-primary transition"
+ target="_blank"
+ rel="noopener"
+ >
+ {t('home.hero.live-demo')}
+ </a>
- <a href={config.getStartedLink} class="text-sm flex items-center gap-1.5 bg-primary hover:bg-primary/80 font-bold rounded py-2 px-4 rounded-xl text-primary-foreground transition">
+ <a
+ href={config.getStartedLink}
+ class="text-sm flex items-center gap-1.5 bg-primary hover:bg-primary/80 font-bold rounded py-2 px-4 rounded-xl text-primary-foreground transition"
+ >
{t('home.hero.get-started')}
<div class="i-tabler-arrow-right size-5"></div>
</a>
</div>
- <Image src={HeroScreenshot} alt="Papra Screenshot" class="hidden sm:block w-full relative z-50 rounded-xl border border-3px border-primary mb--100px md:mb--200px" loading="eager" />
+ <Image
+ src={HeroScreenshot}
+ alt="Papra Screenshot"
+ class="hidden sm:block w-full relative z-50 rounded-xl border border-3px border-primary mb--100px md:mb--200px"
+ loading="eager"
+ />
</div>
</div>
diff --git a/apps/website/src/components/IntakeEmails.astro b/apps/website/src/components/IntakeEmails.astro
index 6f5b1b46..5be638f9 100644
--- a/apps/website/src/components/IntakeEmails.astro
+++ b/apps/website/src/components/IntakeEmails.astro
@@ -9,14 +9,15 @@ const { t } = useI18n({ locale: Astro.currentLocale });
{t('home.intake-emails.eyebrow')}
</div>
<h2 class="text-center text-3xl font-bold mb-4">{t('home.intake-emails.title')}</h2>
- <p class="text-center text-base text-muted-foreground max-w-600px mx-auto">{t('home.intake-emails.subtitle')}</p>
+ <p class="text-center text-base text-muted-foreground max-w-600px mx-auto">
+ {t('home.intake-emails.subtitle')}
+ </p>
<div class="relative">
<div class="absolute z-1 h-full w-3px top-0 left-30px bg-border md:hidden" />
<div class="absolute z-1 h-3px w-full top-35px left-0 bg-border hidden md:block" />
<div class="mt-12 grid gap-4 md:gap-6 grid-cols-1 md:grid-cols-3 z-10 relative">
-
<div class="bg-card border rounded-2xl p-6">
<span class="font-mono text-primary">01</span>
<h3 class="text-lg font-semibold my-2">{t('home.intake-emails.step-1.title')}</h3>
diff --git a/apps/website/src/components/LanguagePicker.astro b/apps/website/src/components/LanguagePicker.astro
index f2c183b2..6496567c 100644
--- a/apps/website/src/components/LanguagePicker.astro
+++ b/apps/website/src/components/LanguagePicker.astro
@@ -13,7 +13,7 @@ const languages = LOCALES.map((locale) => {
};
});
-const currentLanguage = languages.find(lang => lang.isActive);
+const currentLanguage = languages.find((lang) => lang.isActive);
---
<div class="relative language-picker">
@@ -24,76 +24,77 @@ const currentLanguage = languages.find(lang => lang.isActive);
>
<div class="i-tabler-language size-5" role="img" aria-hidden="true"></div>
<span>{currentLanguage?.name}</span>
- <div class="i-tabler-chevron-down size-4 transition-transform language-picker-chevron" aria-hidden="true"></div>
+ <div
+ class="i-tabler-chevron-down size-4 transition-transform language-picker-chevron"
+ aria-hidden="true"
+ ></div>
</button>
<div class="language-picker-menu absolute bottom-full left-0 mb-2 hidden bg-background border border-border rounded-md shadow-lg overflow-hidden min-w-full">
- {
- languages.map(lang => (
- <a
- href={lang.url}
- class={cn(
- 'block px-3 py-2 text-sm hover:bg-muted transition outline-none focus:bg-muted focus:ring-2 focus:ring-primary focus:ring-inset',
- lang.isActive && 'bg-primary/10 text-primary font-semibold',
- )}
- aria-current={lang.isActive ? 'page' : undefined}
- >
- {lang.name}
- </a>
- ))
- }
+ {languages.map((lang) => (
+ <a
+ href={lang.url}
+ class={cn(
+ 'block px-3 py-2 text-sm hover:bg-muted transition outline-none focus:bg-muted focus:ring-2 focus:ring-primary focus:ring-inset',
+ lang.isActive && 'bg-primary/10 text-primary font-semibold',
+ )}
+ aria-current={lang.isActive ? 'page' : undefined}
+ >
+ {lang.name}
+ </a>
+ ))}
</div>
</div>
<script>
-document.addEventListener('DOMContentLoaded', () => {
- const pickers = document.querySelectorAll('.language-picker');
+ document.addEventListener('DOMContentLoaded', () => {
+ const pickers = document.querySelectorAll('.language-picker');
- pickers.forEach((picker) => {
- const button = picker.querySelector('button');
- const menu = picker.querySelector('.language-picker-menu');
- const chevron = picker.querySelector('.language-picker-chevron');
+ pickers.forEach((picker) => {
+ const button = picker.querySelector('button');
+ const menu = picker.querySelector('.language-picker-menu');
+ const chevron = picker.querySelector('.language-picker-chevron');
- if (!button || !menu || !chevron) {
- return;
- }
+ if (!button || !menu || !chevron) {
+ return;
+ }
- let isOpen = false;
+ let isOpen = false;
- const toggle = () => {
- isOpen = !isOpen;
- menu.classList.toggle('hidden', !isOpen);
- chevron.classList.toggle('rotate-180', isOpen);
- button.setAttribute('aria-expanded', String(isOpen));
- };
+ const toggle = () => {
+ isOpen = !isOpen;
+ menu.classList.toggle('hidden', !isOpen);
+ chevron.classList.toggle('rotate-180', isOpen);
+ button.setAttribute('aria-expanded', String(isOpen));
+ };
- const close = () => {
- if (isOpen) {
- isOpen = false;
- menu.classList.add('hidden');
- chevron.classList.remove('rotate-180');
- button.setAttribute('aria-expanded', 'false');
- }
- };
+ const close = () => {
+ if (isOpen) {
+ isOpen = false;
+ menu.classList.add('hidden');
+ chevron.classList.remove('rotate-180');
+ button.setAttribute('aria-expanded', 'false');
+ }
+ };
- button.addEventListener('click', (e) => {
- e.stopPropagation();
- toggle();
- });
+ button.addEventListener('click', (e) => {
+ e.stopPropagation();
+ toggle();
+ });
- // Close when clicking outside
- document.addEventListener('click', (e) => {
- if (!picker.contains(e.target as Node)) {
- close();
- }
- });
+ // Close when clicking outside
+ document.addEventListener('click', (e) => {
+ if (!picker.contains(e.target as Node)) {
+ close();
+ }
+ });
- // Close on escape key
- document.addEventListener('keydown', (e) => {
- if (e.key === 'Escape') {
- close();
- }
+ // Close on escape key
+ document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape') {
+ close();
+ }
+ });
});
});
-});
</script>
diff --git a/apps/website/src/components/OpenSource.astro b/apps/website/src/components/OpenSource.astro
index 4271419f..bb746fd1 100644
--- a/apps/website/src/components/OpenSource.astro
+++ b/apps/website/src/components/OpenSource.astro
@@ -7,9 +7,15 @@ const { t } = useI18n({ locale: Astro.currentLocale });
<div class="bg-card py-64 border-t flex items-center justify-center gap-8 sm:gap-12 flex-col sm:flex-row relative overflow-hidden">
<div class="max-w-600px px-6 text-center sm:text-left">
- <h2 class="text-2xl sm:text-4xl font-bold max-w-650px mx-auto" set:html={t('home.open-source.title')} />
+ <h2
+ class="text-2xl sm:text-4xl font-bold max-w-650px mx-auto"
+ set:html={t('home.open-source.title')}
+ />
- <p class="text-muted-foreground mx-auto mt-4 text-lg" set:html={t('home.open-source.description')} />
+ <p
+ class="text-muted-foreground mx-auto mt-4 text-lg"
+ set:html={t('home.open-source.description')}
+ />
</div>
<div class="flex items-center justify-center gap-2 mt-8">
@@ -19,7 +25,8 @@ const { t } = useI18n({ locale: Astro.currentLocale });
target="_blank"
rel="noopener noreferrer"
>
- {t('home.open-source.see-on-github')} <div class="i-tabler-arrow-right size-5" aria-hidden="true"></div>
+ {t('home.open-source.see-on-github')}
+ <div class="i-tabler-arrow-right size-5" aria-hidden="true"></div>
</a>
</div>
</div>
diff --git a/apps/website/src/components/Pagination.astro b/apps/website/src/components/Pagination.astro
index a9dc4d9c..a661c7c0 100644
--- a/apps/website/src/components/Pagination.astro
+++ b/apps/website/src/components/Pagination.astro
@@ -32,7 +32,13 @@ export type Ellipsis = {
href?: never;
};
-export function collapseRange({ page, pages }: { page: Page<unknown>; pages: PageLink[] }): (PageLink | Ellipsis)[] {
+export function collapseRange({
+ page,
+ pages,
+}: {
+ page: Page<unknown>;
+ pages: PageLink[];
+}): (PageLink | Ellipsis)[] {
const total = pages.length;
const max = 5;
@@ -53,11 +59,21 @@ export function collapseRange({ page, pages }: { page: Page<unknown>; pages: Pag
}
if (!hasStartEllipsis && hasEndEllipsis) {
- return [...pages.slice(0, Math.max(3, page.currentPage + 1)), { text: '...' }, pages[pages.length - 1]];
+ return [
+ ...pages.slice(0, Math.max(3, page.currentPage + 1)),
+ { text: '...' },
+ pages[pages.length - 1],
+ ];
}
// we have both start and end ellipsis
- return [pages[0], { text: '...' }, ...pages.slice(page.currentPage - 2, page.currentPage + 1), { text: '...' }, pages[pages.length - 1]];
+ return [
+ pages[0],
+ { text: '...' },
+ ...pages.slice(page.currentPage - 2, page.currentPage + 1),
+ { text: '...' },
+ pages[pages.length - 1],
+ ];
}
const collapsedPages = collapseRange({ page, pages });
@@ -65,54 +81,56 @@ const collapsedPages = collapseRange({ page, pages });
<nav aria-label={ariaLabel} {...attrs}>
<ul class="flex items-center gap-4">
- {
- page.url.prev && (
- <li class="rounded-full border">
- <a href={page.url.prev} data-astro-prefetch class="flex h-10 w-10 items-center justify-center">
- <span class="sr-only">
- {t('pagination.go-to-page', { page: page.currentPage - 1, total: page.lastPage })}
- </span>
- <div class="i-tabler-arrow-left size-6" aria-hidden="true" />
+ {page.url.prev && (
+ <li class="rounded-full border">
+ <a
+ href={page.url.prev}
+ data-astro-prefetch
+ class="flex h-10 w-10 items-center justify-center"
+ >
+ <span class="sr-only">
+ {t('pagination.go-to-page', { page: page.currentPage - 1, total: page.lastPage })}
+ </span>
+ <div class="i-tabler-arrow-left size-6" aria-hidden="true" />
+ </a>
+ </li>
+ )}
+ {collapsedPages.map((link) => (
+ <li class="hidden sm:inline-block">
+ {!link.href ? (
+ <p>{link.text}</p>
+ ) : (
+ <a
+ href={link.href}
+ class:list={[
+ 'relative flex h-10 w-10 items-center justify-center rounded-md border border-transparent transition-colors duration-150',
+ link.pageNum !== page.currentPage && 'hover:border-white focus:border-white',
+ ]}
+ aria-current={link.pageNum === page.currentPage ? 'page' : undefined}
+ >
+ {link.pageNum}
</a>
- </li>
- )
- }
- {
- collapsedPages.map(link => (
- <li class="hidden sm:inline-block">
- {!link.href
-? (
- <p>{link.text}</p>
- )
-: (
- <a
- href={link.href}
- class:list={[
- 'relative flex h-10 w-10 items-center justify-center rounded-md border border-transparent transition-colors duration-150',
- link.pageNum !== page.currentPage && 'hover:border-white focus:border-white',
- ]}
- aria-current={link.pageNum === page.currentPage ? 'page' : undefined}
- >
- {link.pageNum}
- </a>
- )}
- </li>
- ))
- }
+ )}
+ </li>
+ ))}
<li class="sm:hidden">
- <p aria-current="page">{t('pagination.page', { current: page.currentPage, total: page.lastPage })}</p>
+ <p aria-current="page">
+ {t('pagination.page', { current: page.currentPage, total: page.lastPage })}
+ </p>
</li>
- {
- page.url.next && (
- <li class="rounded-full border">
- <a href={page.url.next} data-astro-prefetch class="flex h-10 w-10 items-center justify-center">
- <span class="sr-only">
- {t('pagination.go-to-page', { page: page.currentPage + 1, total: page.lastPage })}
- </span>
- <div class="i-tabler-arrow-right size-6" aria-hidden="true" />
- </a>
- </li>
- )
- }
+ {page.url.next && (
+ <li class="rounded-full border">
+ <a
+ href={page.url.next}
+ data-astro-prefetch
+ class="flex h-10 w-10 items-center justify-center"
+ >
+ <span class="sr-only">
+ {t('pagination.go-to-page', { page: page.currentPage + 1, total: page.lastPage })}
+ </span>
+ <div class="i-tabler-arrow-right size-6" aria-hidden="true" />
+ </a>
+ </li>
+ )}
</ul>
</nav>
diff --git a/apps/website/src/components/PosthogAnalytics.astro b/apps/website/src/components/PosthogAnalytics.astro
index 08d8c2b6..6b707d5b 100644
--- a/apps/website/src/components/PosthogAnalytics.astro
+++ b/apps/website/src/components/PosthogAnalytics.astro
@@ -3,15 +3,60 @@ const apiKey: string | undefined = import.meta.env.POSTHOG_API_KEY;
const apiHost: string = import.meta.env.POSTHOG_HOST ?? 'https://eu.i.posthog.com';
const isEnabled: boolean = Boolean(apiKey);
---
-{ isEnabled && (
+
+{isEnabled && (
+ <>
<link rel="preconnect" href={apiHost} />
- <script is:inline define:vars={{apiKey, apiHost}}>
- // oxlint-disable
- !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
- posthog.init(apiKey, {
- api_host: apiHost,
- person_profiles: 'identified_only'
- })
+ <script is:inline define:vars={{ apiKey, apiHost }}>
+ // oxlint-disable
+ !(function (t, e) {
+ var o, n, p, r;
+ e.__SV ||
+ ((window.posthog = e),
+ (e._i = []),
+ (e.init = function (i, s, a) {
+ function g(t, e) {
+ var o = e.split('.');
+ (2 == o.length && ((t = t[o[0]]), (e = o[1])),
+ (t[e] = function () {
+ t.push([e].concat(Array.prototype.slice.call(arguments, 0)));
+ }));
+ }
+ (((p = t.createElement('script')).type = 'text/javascript'),
+ (p.crossOrigin = 'anonymous'),
+ (p.async = !0),
+ (p.src =
+ s.api_host.replace('.i.posthog.com', '-assets.i.posthog.com') + '/static/array.js'),
+ (r = t.getElementsByTagName('script')[0]).parentNode.insertBefore(p, r));
+ var u = e;
+ for (
+ void 0 !== a ? (u = e[a] = []) : (a = 'posthog'),
+ u.people = u.people || [],
+ u.toString = function (t) {
+ var e = 'posthog';
+ return ('posthog' !== a && (e += '.' + a), t || (e += ' (stub)'), e);
+ },
+ u.people.toString = function () {
+ return u.toString(1) + '.people (stub)';
+ },
+ o =
+ 'init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId'.split(
+ ' ',
+ ),
+ n = 0;
+ n < o.length;
+ n++
+ )
+ g(u, o[n]);
+ e._i.push([i, s, a]);
+ }),
+ (e.__SV = 1));
+ })(document, window.posthog || []);
+ posthog.init(apiKey, {
+ api_host: apiHost,
+ person_profiles: 'identified_only',
+ });
</script>
+ </>
)}
diff --git a/apps/website/src/components/ValuesSection.astro b/apps/website/src/components/ValuesSection.astro
index c385293d..267e09a8 100644
--- a/apps/website/src/components/ValuesSection.astro
+++ b/apps/website/src/components/ValuesSection.astro
@@ -3,7 +3,6 @@ import { useI18n } from '../i18n/i18n';
const { t } = useI18n({ locale: Astro.currentLocale });
-
const values = [
{
icon: 'i-tabler-heart-handshake',
@@ -48,15 +47,15 @@ const values = [
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
- {
- values.map(value => (
- <div class="border rounded-xl p-6 bg-card group">
- <div class={`${value.icon} size-10 text-primary mb-4 group-hover:(scale-105 rotate-12) transition transform`} />
- <h3 class="text-xl font-bold mb-1">{value.title}</h3>
- <p class="text-muted-foreground">{value.description}</p>
- </div>
- ))
- }
+ {values.map((value) => (
+ <div class="border rounded-xl p-6 bg-card group">
+ <div
+ class={`${value.icon} size-10 text-primary mb-4 group-hover:(scale-105 rotate-12) transition transform`}
+ />
+ <h3 class="text-xl font-bold mb-1">{value.title}</h3>
+ <p class="text-muted-foreground">{value.description}</p>
+ </div>
+ ))}
</div>
</div>
</section>
diff --git a/apps/website/src/docs/components/DocFooter.astro b/apps/website/src/docs/components/DocFooter.astro
index a173f889..d70f7d18 100644
--- a/apps/website/src/docs/components/DocFooter.astro
+++ b/apps/website/src/docs/components/DocFooter.astro
@@ -1,81 +1,72 @@
---
-import { getCollection } from "astro:content";
-import type { Locale } from "../../i18n/i18n.constants";
-import type { DocsItem } from "../docs.types";
-import { useI18n } from "../../i18n/i18n";
-import { getDocUrl, resolveDoc } from "../docs.models";
+import { getCollection } from 'astro:content';
+import type { Locale } from '../../i18n/i18n.constants';
+import type { DocsItem } from '../docs.types';
+import { useI18n } from '../../i18n/i18n';
+import { getDocUrl, resolveDoc } from '../docs.models';
export type Props = {
- editUrl?: string;
- previous?: DocsItem;
- next?: DocsItem;
- locale: Locale;
+ editUrl?: string;
+ previous?: DocsItem;
+ next?: DocsItem;
+ locale: Locale;
};
const { editUrl, previous, next, locale } = Astro.props;
const { t } = useI18n({ locale });
-const docs = await getCollection("docs");
-const previousDoc = previous
- ? resolveDoc({ docs, docId: previous.docId, locale })
- : undefined;
-const nextDoc = next
- ? resolveDoc({ docs, docId: next.docId, locale })
- : undefined;
+const docs = await getCollection('docs');
+const previousDoc = previous ? resolveDoc({ docs, docId: previous.docId, locale }) : undefined;
+const nextDoc = next ? resolveDoc({ docs, docId: next.docId, locale }) : undefined;
---
<div class="pb-32">
- {editUrl && (
- <div class="mb-8">
- <a
- href={editUrl}
- target="_blank"
- rel="noopener noreferrer"
- class="inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition"
- >
- <span class="i-tabler-pencil size-4" aria-hidden="true"></span>
- {t("docs.edit-this-page")}
- </a>
- </div>
- )}
+ {editUrl && (
+ <div class="mb-8">
+ <a
+ href={editUrl}
+ target="_blank"
+ rel="noopener noreferrer"
+ class="inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary transition"
+ >
+ <span class="i-tabler-pencil size-4" aria-hidden="true"></span>
+ {t('docs.edit-this-page')}
+ </a>
+ </div>
+ )}
- <hr class="my-8 border-t border-muted-foreground/10" />
+ <hr class="my-8 border-t border-muted-foreground/10" />
- {(previousDoc || nextDoc) && (
- <nav
- aria-label={t("docs.pagination-label")}
- class="grid grid-cols-1 md:grid-cols-2 gap-4"
+ {(previousDoc || nextDoc) && (
+ <nav aria-label={t('docs.pagination-label')} class="grid grid-cols-1 md:grid-cols-2 gap-4">
+ {previousDoc ? (
+ <a
+ href={getDocUrl({ docId: previousDoc.docId, locale })}
+ class="flex flex-col gap-1 group transition rounded-lg px-6 py-3 border hover:border-primary"
>
- {previousDoc ? (
- <a
- href={getDocUrl({ docId: previousDoc.docId, locale })}
- class="flex flex-col gap-1 group transition rounded-lg px-6 py-3 border hover:border-primary"
- >
- <div class="flex items-center gap-2 text-muted-foreground">
- <div class="i-tabler-arrow-left size-4"></div>
- {t("docs.previous")}
- </div>
- <div class="text-lg transition group-hover:text-primary">
- {previousDoc.entry.data.title}
- </div>
- </a>
- ) : (
- <div></div>
- )}
+ <div class="flex items-center gap-2 text-muted-foreground">
+ <div class="i-tabler-arrow-left size-4"></div>
+ {t('docs.previous')}
+ </div>
+ <div class="text-lg transition group-hover:text-primary">
+ {previousDoc.entry.data.title}
+ </div>
+ </a>
+ ) : (
+ <div></div>
+ )}
- {nextDoc && (
- <a
- href={getDocUrl({ docId: nextDoc.docId, locale })}
- class="flex flex-col gap-1 group transition text-right rounded-lg px-6 py-3 border hover:border-primary"
- >
- <div class="flex items-center gap-2 text-muted-foreground justify-end">
- {t("docs.next")}
- <div class="i-tabler-arrow-right size-4"></div>
- </div>
- <div class="text-lg transition group-hover:text-primary">
- {nextDoc.entry.data.title}
- </div>
- </a>
- )}
- </nav>
- )}
+ {nextDoc && (
+ <a
+ href={getDocUrl({ docId: nextDoc.docId, locale })}
+ class="flex flex-col gap-1 group transition text-right rounded-lg px-6 py-3 border hover:border-primary"
+ >
+ <div class="flex items-center gap-2 text-muted-foreground justify-end">
+ {t('docs.next')}
+ <div class="i-tabler-arrow-right size-4"></div>
+ </div>
+ <div class="text-lg transition group-hover:text-primary">{nextDoc.entry.data.title}</div>
+ </a>
+ )}
+ </nav>
+ )}
</div>
diff --git a/apps/website/src/docs/components/DocLinkCard.astro b/apps/website/src/docs/components/DocLinkCard.astro
index fbeba46b..d33d1c12 100644
--- a/apps/website/src/docs/components/DocLinkCard.astro
+++ b/apps/website/src/docs/components/DocLinkCard.astro
@@ -3,9 +3,9 @@ import type { Locale } from '../../i18n/i18n.constants';
import { getDocUrl } from '../docs.models';
type Props = {
- title: string;
- docId: string;
- icon?: string;
+ title: string;
+ docId: string;
+ icon?: string;
};
const { title, docId, icon } = Astro.props;
@@ -13,16 +13,14 @@ const locale = Astro.params.locale as Locale | undefined;
---
<a
- href={getDocUrl({ docId, locale })}
- class="not-prose group block transition rounded-lg px-6 py-4 border hover:border-primary"
+ href={getDocUrl({ docId, locale })}
+ class="not-prose group block transition rounded-lg px-6 py-4 border hover:border-primary"
>
- {icon && (
- <div class={`${icon} size-7 text-primary`} aria-hidden="true"></div>
- )}
- <div class="transition text-foreground group-hover:text-primary text-lg font-semibold mt-3">
- {title}
- </div>
- <div class="text-base text-muted-foreground">
- <slot />
- </div>
+ {icon && <div class={`${icon} size-7 text-primary`} aria-hidden="true"></div>}
+ <div class="transition text-foreground group-hover:text-primary text-lg font-semibold mt-3">
+ {title}
+ </div>
+ <div class="text-base text-muted-foreground">
+ <slot />
+ </div>
</a>
diff --git a/apps/website/src/docs/components/DocMarkdownActions.astro b/apps/website/src/docs/components/DocMarkdownActions.astro
index 4d4c8fb9..a9a5f8ef 100644
--- a/apps/website/src/docs/components/DocMarkdownActions.astro
+++ b/apps/website/src/docs/components/DocMarkdownActions.astro
@@ -1,7 +1,7 @@
---
-import type { Locale } from "../../i18n/i18n.constants";
-import { useI18n } from "../../i18n/i18n";
-import { getDocUrl } from "../docs.models";
+import type { Locale } from '../../i18n/i18n.constants';
+import { useI18n } from '../../i18n/i18n';
+import { getDocUrl } from '../docs.models';
type Props = { docId: string; locale: Locale };
const { docId, locale } = Astro.props;
@@ -10,205 +10,175 @@ const markdownUrl = `${getDocUrl({ docId, locale })}.md`;
---
<docs-markdown-actions
- class="relative ml-auto shrink-0 text-sm"
- data-url={markdownUrl}
- data-copied={t("docs.markdown.copied")}
- data-error={t("docs.markdown.error")}
+ class="relative ml-auto shrink-0 text-sm"
+ data-url={markdownUrl}
+ data-copied={t('docs.markdown.copied')}
+ data-error={t('docs.markdown.error')}
>
- <div class="inline-flex items-stretch rounded-md border text-muted-foreground">
+ <div class="inline-flex items-stretch rounded-md border text-muted-foreground">
+ <button
+ type="button"
+ data-copy
+ class="rounded-l-md px-3 py-1.5 hover:bg-muted hover:text-foreground transition"
+ >
+ <span data-copy-label>{t('docs.markdown.copy-short')}</span>
+ </button>
+ <details class="relative flex">
+ <summary
+ aria-label={t('docs.markdown.options')}
+ aria-controls="docs-markdown-options"
+ class="flex h-full items-center border-l rounded-r-md px-2 cursor-pointer hover:bg-muted hover:text-foreground transition"
+ >
+ <span class="i-tabler-chevron-down size-4" aria-hidden="true"></span>
+ </summary>
+ <div
+ id="docs-markdown-options"
+ class="absolute right-0 top-full mt-2 z-20 w-52 rounded-md border bg-background p-1 shadow-lg"
+ >
<button
- type="button"
- data-copy
- class="rounded-l-md px-3 py-1.5 hover:bg-muted hover:text-foreground transition"
+ type="button"
+ data-copy
+ class="flex w-full items-center gap-2 rounded px-3 py-2 text-left hover:bg-muted hover:text-foreground transition"
>
- <span data-copy-label>{t("docs.markdown.copy-short")}</span>
+ <span class="i-tabler-copy size-4" aria-hidden="true"></span>
+ {t('docs.markdown.copy')}
</button>
- <details class="relative flex">
- <summary
- aria-label={t("docs.markdown.options")}
- aria-controls="docs-markdown-options"
- class="flex h-full items-center border-l rounded-r-md px-2 cursor-pointer hover:bg-muted hover:text-foreground transition"
- >
- <span
- class="i-tabler-chevron-down size-4"
- aria-hidden="true"
- ></span>
- </summary>
- <div
- id="docs-markdown-options"
- class="absolute right-0 top-full mt-2 z-20 w-52 rounded-md border bg-background p-1 shadow-lg"
- >
- <button
- type="button"
- data-copy
- class="flex w-full items-center gap-2 rounded px-3 py-2 text-left hover:bg-muted hover:text-foreground transition"
- >
- <span
- class="i-tabler-copy size-4"
- aria-hidden="true"
- ></span>
- {t("docs.markdown.copy")}
- </button>
- <a
- href={markdownUrl}
- class="flex items-center gap-2 rounded px-3 py-2 hover:bg-muted hover:text-foreground transition"
- >
- <span
- class="i-tabler-file-text size-4"
- aria-hidden="true"
- ></span>
- {t("docs.markdown.view")}
- </a>
- </div>
- </details>
- </div>
- <span role="status" class="sr-only"></span>
+ <a
+ href={markdownUrl}
+ class="flex items-center gap-2 rounded px-3 py-2 hover:bg-muted hover:text-foreground transition"
+ >
+ <span class="i-tabler-file-text size-4" aria-hidden="true"></span>
+ {t('docs.markdown.view')}
+ </a>
+ </div>
+ </details>
+ </div>
+ <span role="status" class="sr-only"></span>
</docs-markdown-actions>
<script>
- class DocsMarkdownActions extends HTMLElement {
- private controller?: AbortController;
- private resetTimer?: ReturnType<typeof setTimeout>;
-
- connectedCallback() {
- this.controller?.abort();
- this.controller = new AbortController();
- const { signal } = this.controller;
- const details = this.querySelector("details")!;
- const summary = this.querySelector("summary")!;
- const buttons = [
- ...this.querySelectorAll<HTMLButtonElement>("[data-copy]"),
- ];
- const label = this.querySelector("[data-copy-label]")!;
- const defaultLabel = label.textContent;
- const status = this.querySelector('[role="status"]')!;
+ class DocsMarkdownActions extends HTMLElement {
+ private controller?: AbortController;
+ private resetTimer?: ReturnType<typeof setTimeout>;
- const close = () => {
- if (details.open && details.contains(document.activeElement)) {
- summary.focus();
- }
- details.open = false;
- };
+ connectedCallback() {
+ this.controller?.abort();
+ this.controller = new AbortController();
+ const { signal } = this.controller;
+ const details = this.querySelector('details')!;
+ const summary = this.querySelector('summary')!;
+ const buttons = [...this.querySelectorAll<HTMLButtonElement>('[data-copy]')];
+ const label = this.querySelector('[data-copy-label]')!;
+ const defaultLabel = label.textContent;
+ const status = this.querySelector('[role="status"]')!;
- const copy = async () => {
- close();
- clearTimeout(this.resetTimer);
- buttons.forEach((button) => {
- button.disabled = true;
- });
- status.textContent = "";
+ const close = () => {
+ if (details.open && details.contains(document.activeElement)) {
+ summary.focus();
+ }
+ details.open = false;
+ };
- try {
- if (!navigator.clipboard) {
- throw new Error("Clipboard is unavailable");
- }
+ const copy = async () => {
+ close();
+ clearTimeout(this.resetTimer);
+ buttons.forEach((button) => {
+ button.disabled = true;
+ });
+ status.textContent = '';
- const content = fetch(this.dataset.url!, { signal }).then(
- async (response) => {
- if (!response.ok) {
- throw new Error(
- `Failed to fetch Markdown: ${response.status}`,
- );
- }
- return response.text();
- },
- );
+ try {
+ if (!navigator.clipboard) {
+ throw new Error('Clipboard is unavailable');
+ }
- // Start the clipboard write during the click's user activation, even
- // while fetching, for browsers such as Safari that require it.
- if (
- typeof ClipboardItem !== "undefined" &&
- navigator.clipboard.write
- ) {
- const blob = content.then(
- (text) => new Blob([text], { type: "text/plain" }),
- );
- await Promise.all([
- blob,
- navigator.clipboard.write([
- new ClipboardItem({ "text/plain": blob }),
- ]),
- ]);
- } else {
- const text = await content;
- await navigator.clipboard.writeText(text);
- }
- label.textContent = this.dataset.copied!;
- } catch {
- label.textContent = this.dataset.error!;
- } finally {
- buttons.forEach((button) => {
- button.disabled = false;
- });
- status.textContent = label.textContent;
- if (!signal.aborted) {
- this.resetTimer = setTimeout(() => {
- label.textContent = defaultLabel;
- status.textContent = "";
- }, 3000);
- }
- }
- };
+ const content = fetch(this.dataset.url!, { signal }).then(async (response) => {
+ if (!response.ok) {
+ throw new Error(`Failed to fetch Markdown: ${response.status}`);
+ }
+ return response.text();
+ });
- buttons.forEach((button) =>
- button.addEventListener("click", copy, { signal }),
- );
- this.addEventListener(
- "keydown",
- (event) => {
- if (event.key === "Escape" && details.open) {
- event.preventDefault();
- close();
- }
- },
- { signal },
- );
- this.addEventListener(
- "focusout",
- (event) => {
- if (
- !(event.relatedTarget instanceof Node) ||
- !this.contains(event.relatedTarget)
- ) {
- details.open = false;
- }
- },
- { signal },
- );
- document.addEventListener(
- "click",
- (event) => {
- if (
- event.target instanceof Node &&
- !this.contains(event.target)
- ) {
- details.open = false;
- }
- },
- { signal },
- );
+ // Start the clipboard write during the click's user activation, even
+ // while fetching, for browsers such as Safari that require it.
+ if (typeof ClipboardItem !== 'undefined' && navigator.clipboard.write) {
+ const blob = content.then((text) => new Blob([text], { type: 'text/plain' }));
+ await Promise.all([
+ blob,
+ navigator.clipboard.write([new ClipboardItem({ 'text/plain': blob })]),
+ ]);
+ } else {
+ const text = await content;
+ await navigator.clipboard.writeText(text);
+ }
+ label.textContent = this.dataset.copied!;
+ } catch {
+ label.textContent = this.dataset.error!;
+ } finally {
+ buttons.forEach((button) => {
+ button.disabled = false;
+ });
+ status.textContent = label.textContent;
+ if (!signal.aborted) {
+ this.resetTimer = setTimeout(() => {
+ label.textContent = defaultLabel;
+ status.textContent = '';
+ }, 3000);
+ }
}
+ };
- disconnectedCallback() {
- this.controller?.abort();
- clearTimeout(this.resetTimer);
- }
+ buttons.forEach((button) => button.addEventListener('click', copy, { signal }));
+ this.addEventListener(
+ 'keydown',
+ (event) => {
+ if (event.key === 'Escape' && details.open) {
+ event.preventDefault();
+ close();
+ }
+ },
+ { signal },
+ );
+ this.addEventListener(
+ 'focusout',
+ (event) => {
+ if (!(event.relatedTarget instanceof Node) || !this.contains(event.relatedTarget)) {
+ details.open = false;
+ }
+ },
+ { signal },
+ );
+ document.addEventListener(
+ 'click',
+ (event) => {
+ if (event.target instanceof Node && !this.contains(event.target)) {
+ details.open = false;
+ }
+ },
+ { signal },
+ );
}
- customElements.define("docs-markdown-actions", DocsMarkdownActions);
+ disconnectedCallback() {
+ this.controller?.abort();
+ clearTimeout(this.resetTimer);
+ }
+ }
+
+ customElements.define('docs-markdown-actions', DocsMarkdownActions);
</script>
<style>
- summary {
- list-style: none;
- }
+ summary {
+ list-style: none;
+ }
- summary::-webkit-details-marker {
- display: none;
- }
+ summary::-webkit-details-marker {
+ display: none;
+ }
- :is(button, summary, a):focus-visible {
- outline: 2px solid hsl(var(--ring));
- outline-offset: 2px;
- }
+ :is(button, summary, a):focus-visible {
+ outline: 2px solid hsl(var(--ring));
+ outline-offset: 2px;
+ }
</style>
diff --git a/apps/website/src/docs/components/DocMobileNav.astro b/apps/website/src/docs/components/DocMobileNav.astro
index f5e135d6..88039fe4 100644
--- a/apps/website/src/docs/components/DocMobileNav.astro
+++ b/apps/website/src/docs/components/DocMobileNav.astro
@@ -37,7 +37,11 @@ const categories = docCategories.filter((category) =>
{categories.map((category) => (
<section class="pt-4">
<h2 class="px-4 text-sm font-semibold text-primary">{t(category.titleKey)}</h2>
- <DocNavSections sections={category.sections} currentDocId={currentDocId} locale={locale} />
+ <DocNavSections
+ sections={category.sections}
+ currentDocId={currentDocId}
+ locale={locale}
+ />
</section>
))}
</nav>
@@ -57,26 +61,38 @@ const categories = docCategories.filter((category) =>
const nav = this.querySelector('nav')!;
const desktop = window.matchMedia('(min-width: 768px)');
- this.addEventListener('keydown', (event) => {
- if (event.key === 'Escape' && details.open) {
- event.preventDefault();
- details.open = false;
- summary.focus();
- }
- }, { signal });
+ this.addEventListener(
+ 'keydown',
+ (event) => {
+ if (event.key === 'Escape' && details.open) {
+ event.preventDefault();
+ details.open = false;
+ summary.focus();
+ }
+ },
+ { signal },
+ );
// Don't leave the panel covering page content when keyboard focus moves on.
- this.addEventListener('focusout', (event) => {
- if (!(event.relatedTarget instanceof Node) || !this.contains(event.relatedTarget)) {
- details.open = false;
- }
- }, { signal });
-
- nav.addEventListener('click', (event) => {
- if (event.target instanceof Element && event.target.closest('a[href]')) {
- details.open = false;
- }
- }, { signal });
+ this.addEventListener(
+ 'focusout',
+ (event) => {
+ if (!(event.relatedTarget instanceof Node) || !this.contains(event.relatedTarget)) {
+ details.open = false;
+ }
+ },
+ { signal },
+ );
+
+ nav.addEventListener(
+ 'click',
+ (event) => {
+ if (event.target instanceof Element && event.target.closest('a[href]')) {
+ details.open = false;
+ }
+ },
+ { signal },
+ );
const closeOnDesktop = () => {
if (desktop.matches) {
diff --git a/apps/website/src/docs/components/DocNavSections.astro b/apps/website/src/docs/components/DocNavSections.astro
index 1af2ac18..2eb8bba9 100644
--- a/apps/website/src/docs/components/DocNavSections.astro
+++ b/apps/website/src/docs/components/DocNavSections.astro
@@ -24,29 +24,27 @@ const augmentedSections = sections.map((section) => ({
}));
---
-{
- augmentedSections.map((section, index) => (
- <div class={cn('py-4', index !== 0 ? 'border-t' : '')}>
- <div class="text-13px font-medium mb-2 pl-4">{t(section.titleKey)}</div>
- <ul>
- {section.items.map((item) => (
- <li>
- <a
- href={getDocUrl({ docId: item.docId, locale })}
- aria-current={item.docId === currentDocId ? 'page' : undefined}
- class={cn(
- 'text-sm text-muted-foreground hover:(bg-muted text-foreground) transition flex items-center min-h-11 md:min-h-0 px-4 rounded-lg py-1.2 my-1px',
- item.docId === currentDocId ? 'bg-muted text-foreground' : '',
- )}
- >
- {item.title}
- </a>
- </li>
- ))}
- </ul>
- </div>
- ))
-}
+{augmentedSections.map((section, index) => (
+ <div class={cn('py-4', index !== 0 ? 'border-t' : '')}>
+ <div class="text-13px font-medium mb-2 pl-4">{t(section.titleKey)}</div>
+ <ul>
+ {section.items.map((item) => (
+ <li>
+ <a
+ href={getDocUrl({ docId: item.docId, locale })}
+ aria-current={item.docId === currentDocId ? 'page' : undefined}
+ class={cn(
+ 'text-sm text-muted-foreground hover:(bg-muted text-foreground) transition flex items-center min-h-11 md:min-h-0 px-4 rounded-lg py-1.2 my-1px',
+ item.docId === currentDocId ? 'bg-muted text-foreground' : '',
+ )}
+ >
+ {item.title}
+ </a>
+ </li>
+ ))}
+ </ul>
+ </div>
+))}
<style>
a:focus-visible {
diff --git a/apps/website/src/docs/components/DocSearch.astro b/apps/website/src/docs/components/DocSearch.astro
index 213bd1bd..dc8022de 100644
--- a/apps/website/src/docs/components/DocSearch.astro
+++ b/apps/website/src/docs/components/DocSearch.astro
@@ -18,21 +18,40 @@ const { t } = useI18n({ locale: Astro.props.locale });
>
<span class="i-tabler-search size-5" aria-hidden="true"></span>
<span class="hidden sm:inline">{t('docs.search.button')}</span>
- <kbd class="hidden md:inline text-xs" aria-hidden="true">Ctrl K</kbd>
+ <kbd class="hidden md:inline text-xs" aria-hidden="true">
+ Ctrl K
+ </kbd>
</button>
- <dialog id="docs-search-dialog" aria-labelledby="docs-search-title" class="rounded-lg border bg-background text-foreground p-4 sm:p-6">
+ <dialog
+ id="docs-search-dialog"
+ aria-labelledby="docs-search-title"
+ class="rounded-lg border bg-background text-foreground p-4 sm:p-6"
+ >
<div class="flex items-center justify-between gap-4 mb-4">
- <h2 id="docs-search-title" class="font-semibold text-lg">{t('docs.search.title')}</h2>
- <button type="button" data-search-close aria-label={t('docs.search.close')} autofocus class="rounded p-2 text-muted-foreground hover:text-foreground">
+ <h2 id="docs-search-title" class="font-semibold text-lg">
+ {t('docs.search.title')}
+ </h2>
+ <button
+ type="button"
+ data-search-close
+ aria-label={t('docs.search.close')}
+ autofocus
+ class="rounded p-2 text-muted-foreground hover:text-foreground"
+ >
<span class="i-tabler-x size-5 block" aria-hidden="true"></span>
</button>
</div>
{import.meta.env.DEV ? (
- <p class="text-muted-foreground">Search is available after building the site. Run <code>pnpm build</code>, then <code>pnpm preview</code> to try it.</p>
+ <p class="text-muted-foreground">
+ Search is available after building the site. Run <code>pnpm build</code>, then{' '}
+ <code>pnpm preview</code> to try it.
+ </p>
) : (
<>
- <p data-search-status role="status" class="text-muted-foreground">{t('docs.search.loading')}</p>
+ <p data-search-status role="status" class="text-muted-foreground">
+ {t('docs.search.loading')}
+ </p>
<div data-search-ui></div>
</>
)}
@@ -97,7 +116,12 @@ const { t } = useI18n({ locale: Astro.props.locale });
dialog.addEventListener('click', (event) => {
if (event.target !== dialog) return;
const { left, right, top, bottom } = dialog.getBoundingClientRect();
- if (event.clientX < left || event.clientX > right || event.clientY < top || event.clientY > bottom) {
+ if (
+ event.clientX < left ||
+ event.clientX > right ||
+ event.clientY < top ||
+ event.clientY > bottom
+ ) {
dialog.close();
}
});
diff --git a/apps/website/src/docs/components/DocSidenav.astro b/apps/website/src/docs/components/DocSidenav.astro
index 1606a7ce..aae4ca21 100644
--- a/apps/website/src/docs/components/DocSidenav.astro
+++ b/apps/website/src/docs/components/DocSidenav.astro
@@ -8,12 +8,15 @@ export type Props = {
sections: DocsSection[];
currentDocId: string;
locale: Locale;
-}
+};
const { sections, currentDocId, locale } = Astro.props;
const { t } = useI18n({ locale });
---
-<nav aria-label={t('docs.sidebar-label')} class="border-r max-w-300px w-full hidden md:block overflow-y-auto pl-2 pr-4 pt-2 flex-shrink-0 sticky top-113px h-[calc(100vh-113px)]">
+<nav
+ aria-label={t('docs.sidebar-label')}
+ class="border-r max-w-300px w-full hidden md:block overflow-y-auto pl-2 pr-4 pt-2 flex-shrink-0 sticky top-113px h-[calc(100vh-113px)]"
+>
<DocNavSections sections={sections} currentDocId={currentDocId} locale={locale} />
</nav>
diff --git a/apps/website/src/docs/components/RandomStringGenerator.astro b/apps/website/src/docs/components/RandomStringGenerator.astro
index 35ee1453..59a5c835 100644
--- a/apps/website/src/docs/components/RandomStringGenerator.astro
+++ b/apps/website/src/docs/components/RandomStringGenerator.astro
@@ -1,5 +1,4 @@
---
-
type Props = {
length?: number;
type?: 'alphanumeric' | 'hexadecimal';
@@ -8,75 +7,104 @@ type Props = {
const { length = 8, type = 'alphanumeric' } = Astro.props;
const alphabets = {
- alphanumeric: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
- hexadecimal: '0123456789abcdef',
-}
+ alphanumeric: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
+ hexadecimal: '0123456789abcdef',
+};
const alphabet = alphabets[type];
-
---
<div class="key-generator" data-length={length} data-alphabet={alphabet}>
- <div class="flex items-center">
- <input type="text" aria-label="Generated secret" readonly class="key-input text-14px font-mono text-muted-foreground bg-transparent border border-muted-foreground/10 rounded-l px-2 w-full py-1" />
- <button class="btn-refresh flex items-center p-1.5 border-y" title="Generate new key">
- <span aria-label="Refresh" class="i-tabler-refresh inline-block size-5 text-muted-foreground hover:text-foreground transition" />
- </button>
- <button class="btn-copy flex items-center p-1.5 border rounded-r" title="Copy to clipboard">
- <span aria-label="Copy" class="icon-copy i-tabler-copy inline-block size-5 text-muted-foreground hover:text-foreground transition" />
- <span aria-label="Copied" class="icon-copied i-tabler-copy-check hidden inline-block size-5 text-muted-foreground hover:text-foreground transition" />
- </button>
- </div>
- <div class="text-xs text-muted-foreground mt-2">
- Securly generated in your browser - no network or server involved
- </div>
+ <div class="flex items-center">
+ <input
+ type="text"
+ aria-label="Generated secret"
+ readonly
+ class="key-input text-14px font-mono text-muted-foreground bg-transparent border border-muted-foreground/10 rounded-l px-2 w-full py-1"
+ />
+ <button class="btn-refresh flex items-center p-1.5 border-y" title="Generate new key">
+ <span
+ aria-label="Refresh"
+ class="i-tabler-refresh inline-block size-5 text-muted-foreground hover:text-foreground transition"
+ />
+ </button>
+ <button class="btn-copy flex items-center p-1.5 border rounded-r" title="Copy to clipboard">
+ <span
+ aria-label="Copy"
+ class="icon-copy i-tabler-copy inline-block size-5 text-muted-foreground hover:text-foreground transition"
+ />
+ <span
+ aria-label="Copied"
+ class="icon-copied i-tabler-copy-check hidden inline-block size-5 text-muted-foreground hover:text-foreground transition"
+ />
+ </button>
+ </div>
+ <div class="text-xs text-muted-foreground mt-2">
+ Securly generated in your browser - no network or server involved
+ </div>
</div>
<script>
-import { customAlphabet } from 'nanoid';
-
-function copyToClipboard({ keyInputElement, copyButtonElement, iconCopyElement, iconCopiedElement }: { keyInputElement: HTMLInputElement; copyButtonElement: HTMLButtonElement; iconCopyElement: HTMLSpanElement; iconCopiedElement: HTMLSpanElement }) {
- keyInputElement.select();
- keyInputElement.setSelectionRange(0, keyInputElement.value.length); // For mobile devices
-
- navigator.clipboard.writeText(keyInputElement.value).then(() => {
- iconCopyElement.classList.add('hidden');
- iconCopiedElement.classList.remove('hidden');
- copyButtonElement.disabled = true;
-
- setTimeout(() => {
- iconCopyElement.classList.remove('hidden');
- iconCopiedElement.classList.add('hidden');
- copyButtonElement.disabled = false;
- }, 1_000);
- }).catch(() => {
- // Fallback for older browsers
- document.execCommand('copy');
+ import { customAlphabet } from 'nanoid';
+
+ function copyToClipboard({
+ keyInputElement,
+ copyButtonElement,
+ iconCopyElement,
+ iconCopiedElement,
+ }: {
+ keyInputElement: HTMLInputElement;
+ copyButtonElement: HTMLButtonElement;
+ iconCopyElement: HTMLSpanElement;
+ iconCopiedElement: HTMLSpanElement;
+ }) {
+ keyInputElement.select();
+ keyInputElement.setSelectionRange(0, keyInputElement.value.length); // For mobile devices
+
+ navigator.clipboard
+ .writeText(keyInputElement.value)
+ .then(() => {
+ iconCopyElement.classList.add('hidden');
+ iconCopiedElement.classList.remove('hidden');
+ copyButtonElement.disabled = true;
+
+ setTimeout(() => {
+ iconCopyElement.classList.remove('hidden');
+ iconCopiedElement.classList.add('hidden');
+ copyButtonElement.disabled = false;
+ }, 1_000);
+ })
+ .catch(() => {
+ // Fallback for older browsers
+ document.execCommand('copy');
+ });
+ }
+
+ const keyGenerators = document.querySelectorAll('.key-generator');
+
+ keyGenerators.forEach((keyGenerator) => {
+ const refreshButtonElement = keyGenerator.querySelector('.btn-refresh')!;
+ const copyButtonElement = keyGenerator.querySelector<HTMLButtonElement>('.btn-copy')!;
+ const keyInputElement = keyGenerator.querySelector<HTMLInputElement>('.key-input')!;
+ const iconCopyElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copy')!;
+ const iconCopiedElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copied')!;
+ const length = Number(keyGenerator.getAttribute('data-length') ?? '32');
+ const alphabet =
+ keyGenerator.getAttribute('data-alphabet') ??
+ '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
+
+ const generateRandomString = customAlphabet(alphabet, length);
+
+ const refreshKey = () => {
+ const key = generateRandomString();
+ keyInputElement.value = key;
+ };
+
+ refreshKey();
+
+ refreshButtonElement.addEventListener('click', refreshKey);
+ copyButtonElement.addEventListener('click', () =>
+ copyToClipboard({ copyButtonElement, keyInputElement, iconCopyElement, iconCopiedElement }),
+ );
});
-}
-
-const keyGenerators = document.querySelectorAll('.key-generator');
-
-keyGenerators.forEach((keyGenerator) => {
- const refreshButtonElement = keyGenerator.querySelector('.btn-refresh')!;
- const copyButtonElement = keyGenerator.querySelector<HTMLButtonElement>('.btn-copy')!;
- const keyInputElement = keyGenerator.querySelector<HTMLInputElement>('.key-input')!;
- const iconCopyElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copy')!;
- const iconCopiedElement = keyGenerator.querySelector<HTMLSpanElement>('.icon-copied')!;
- const length = Number(keyGenerator.getAttribute('data-length') ?? '32');
- const alphabet = keyGenerator.getAttribute('data-alphabet') ?? '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
-
- const generateRandomString = customAlphabet(alphabet, length);
-
- const refreshKey = () => {
- const key = generateRandomString();
- keyInputElement.value = key;
- };
-
- refreshKey();
-
- refreshButtonElement.addEventListener('click', refreshKey);
- copyButtonElement.addEventListener('click', () => copyToClipboard({ copyButtonElement, keyInputElement, iconCopyElement, iconCopiedElement }));
-});
-
</script>
diff --git a/apps/website/src/docs/components/Steps.astro b/apps/website/src/docs/components/Steps.astro
index e814219c..9f71cf22 100644
--- a/apps/website/src/docs/components/Steps.astro
+++ b/apps/website/src/docs/components/Steps.astro
@@ -1,32 +1,32 @@
<div class="steps">
- <slot />
+ <slot />
</div>
<style>
-.steps>:global(ol) {
+ .steps > :global(ol) {
--step-size: 30px;
counter-reset: steps-counter;
list-style: none;
padding-left: 2rem;
-}
+ }
-.steps>:global(ol > li) {
+ .steps > :global(ol > li) {
position: relative;
display: flow-root;
margin-top: 0 !important;
margin-bottom: 0 !important;
-}
+ }
-.steps>:global(ol > li > :first-child) {
+ .steps > :global(ol > li > :first-child) {
margin: 0;
-}
+ }
-.steps>:global(ol > li:last-child > :last-child) {
+ .steps > :global(ol > li:last-child > :last-child) {
margin-bottom: 0;
-}
+ }
-.steps>:global(ol > li::before) {
+ .steps > :global(ol > li::before) {
content: counter(steps-counter);
position: absolute;
left: -2rem;
@@ -43,22 +43,21 @@
line-height: var(--step-size);
text-align: center;
background-color: #262626;
-}
+ }
-.steps>:global(ol > li::after) {
- --gutter-margin: .375rem;
+ .steps > :global(ol > li::after) {
+ --gutter-margin: 0.375rem;
content: '';
position: absolute;
left: -1.125rem;
top: calc(var(--step-size) + var(--gutter-margin));
width: 1px;
- height: calc(100% - var(--step-size) - var(--gutter-margin)*2);
+ height: calc(100% - var(--step-size) - var(--gutter-margin) * 2);
background-color: #262626;
-}
+ }
-.steps>:global(ol > li:last-child::after) {
+ .steps > :global(ol > li:last-child::after) {
background: linear-gradient(to bottom, #262626 90%, transparent);
-}
-
+ }
</style>
diff --git a/apps/website/src/docs/components/Tab.astro b/apps/website/src/docs/components/Tab.astro
index c29e2db4..6b181a7e 100644
--- a/apps/website/src/docs/components/Tab.astro
+++ b/apps/website/src/docs/components/Tab.astro
@@ -9,6 +9,13 @@ const { label } = Astro.props;
const panelId = `tab-panel-${nanoid()}`;
---
-<div data-tab-panel data-tab-label={label} id={panelId} role="tabpanel" aria-labelledby={`${panelId}-tab`} tabindex="0">
+<div
+ data-tab-panel
+ data-tab-label={label}
+ id={panelId}
+ role="tabpanel"
+ aria-labelledby={`${panelId}-tab`}
+ tabindex="0"
+>
<slot />
</div>
diff --git a/apps/website/src/docs/components/Tabs.astro b/apps/website/src/docs/components/Tabs.astro
index bea9c1ee..017b3ab1 100644
--- a/apps/website/src/docs/components/Tabs.astro
+++ b/apps/website/src/docs/components/Tabs.astro
@@ -2,59 +2,59 @@
// Astro can't read the props of slotted children, so extract labels and panel IDs from the
// rendered markup. Keep these attributes adjacent in <Tab> so the pairs stay in document order.
const html = await Astro.slots.render('default');
-const tabs = [...html.matchAll(/data-tab-label="([^"]*)" id="([^"]*)"/g)].map(([, label, panelId]) => ({ label, panelId }));
+const tabs = [...html.matchAll(/data-tab-label="([^"]*)" id="([^"]*)"/g)].map(
+ ([, label, panelId]) => ({ label, panelId }),
+);
---
<div class="tabs my-4" data-tabs>
<div class="flex items-center gap-2 border-b overflow-x-auto" role="tablist">
- {
- tabs.map(({ label, panelId }, index) => (
- <button
- type="button"
- role="tab"
- id={`${panelId}-tab`}
- aria-controls={panelId}
- data-tab-trigger
- data-active={index === 0 ? '' : undefined}
- aria-selected={index === 0 ? 'true' : 'false'}
- tabindex={index === 0 ? 0 : -1}
- class="text-14px text-muted-foreground font-medium border-b border-transparent hover:text-foreground transition py-2 px-2 whitespace-nowrap"
- >
- <Fragment set:html={label} />
- </button>
- ))
- }
+ {tabs.map(({ label, panelId }, index) => (
+ <button
+ type="button"
+ role="tab"
+ id={`${panelId}-tab`}
+ aria-controls={panelId}
+ data-tab-trigger
+ data-active={index === 0 ? '' : undefined}
+ aria-selected={index === 0 ? 'true' : 'false'}
+ tabindex={index === 0 ? 0 : -1}
+ class="text-14px text-muted-foreground font-medium border-b border-transparent hover:text-foreground transition py-2 px-2 whitespace-nowrap"
+ >
+ <Fragment set:html={label} />
+ </button>
+ ))}
</div>
<div class="tab-panels pt-4" set:html={html} />
</div>
<style>
-.tabs [data-tab-trigger][data-active] {
- @apply text-foreground border-primary;
-}
-
-/* Panels come from the slot, so they carry no scope attribute: match them with :global(). */
-.tab-panels > :global([data-tab-panel]) {
- display: none;
-}
-
-/* Without JS (or before it runs) the first panel is the visible one. */
-.tab-panels > :global([data-tab-panel]:first-child) {
- display: block;
-}
-
-.tabs[data-tabs-ready] .tab-panels > :global([data-tab-panel]) {
- display: none;
-}
-
-.tabs[data-tabs-ready] .tab-panels > :global([data-tab-panel][data-active]) {
- display: block;
-}
-
-.tab-panels > :global([data-tab-panel] > :first-child) {
- margin-top: 0;
-}
+ .tabs [data-tab-trigger][data-active] {
+ @apply text-foreground border-primary;
+ }
+
+ /* Panels come from the slot, so they carry no scope attribute: match them with :global(). */
+ .tab-panels > :global([data-tab-panel]) {
+ display: none;
+ }
+
+ /* Without JS (or before it runs) the first panel is the visible one. */
+ .tab-panels > :global([data-tab-panel]:first-child) {
+ display: block;
+ }
+
+ .tabs[data-tabs-ready] .tab-panels > :global([data-tab-panel]) {
+ display: none;
+ }
+
+ .tabs[data-tabs-ready] .tab-panels > :global([data-tab-panel][data-active]) {
+ display: block;
+ }
+
+ .tab-panels > :global([data-tab-panel] > :first-child) {
+ margin-top: 0;
+ }
</style>
<script>
@@ -75,7 +75,9 @@ const tabs = [...html.matchAll(/data-tab-label="([^"]*)" id="([^"]*)"/g)].map(([
trigger.tabIndex = isActive ? 0 : -1;
});
- panels.forEach((panel, panelIndex) => panel.toggleAttribute('data-active', panelIndex === index));
+ panels.forEach((panel, panelIndex) =>
+ panel.toggleAttribute('data-active', panelIndex === index),
+ );
if (focus) {
triggers[index].focus();
diff --git a/apps/website/src/layouts/DocsLayout.astro b/apps/website/src/layouts/DocsLayout.astro
index 876215a6..d74c6ef8 100644
--- a/apps/website/src/layouts/DocsLayout.astro
+++ b/apps/website/src/layouts/DocsLayout.astro
@@ -1,321 +1,281 @@
---
-import type { MarkdownHeading } from "astro";
-import { cn } from "../utils/cn";
-import Layout from "./Layout.astro";
-import { docCategories } from "../docs/docs.navigations";
-import type { DocsItem, DocsCategory } from "../docs/docs.types";
-import { getSocials } from "../socials";
-import { getDocContext, getDocUrl } from "../docs/docs.models";
-import { DOCS_LOCALES } from "../docs/docs.constants";
-import type { Locale } from "../i18n/i18n.constants";
-import { useI18n } from "../i18n/i18n";
-import DocSidenav from "../docs/components/DocSidenav.astro";
-import DocSearch from "../docs/components/DocSearch.astro";
-import DocMobileNav from "../docs/components/DocMobileNav.astro";
-import DocMarkdownActions from "../docs/components/DocMarkdownActions.astro";
+import type { MarkdownHeading } from 'astro';
+import { cn } from '../utils/cn';
+import Layout from './Layout.astro';
+import { docCategories } from '../docs/docs.navigations';
+import type { DocsItem, DocsCategory } from '../docs/docs.types';
+import { getSocials } from '../socials';
+import { getDocContext, getDocUrl } from '../docs/docs.models';
+import { DOCS_LOCALES } from '../docs/docs.constants';
+import type { Locale } from '../i18n/i18n.constants';
+import { useI18n } from '../i18n/i18n';
+import DocSidenav from '../docs/components/DocSidenav.astro';
+import DocSearch from '../docs/components/DocSearch.astro';
+import DocMobileNav from '../docs/components/DocMobileNav.astro';
+import DocMarkdownActions from '../docs/components/DocMarkdownActions.astro';
type Props = {
- title?: string;
- rawTitle?: string;
- description?: string;
- docId?: string;
- locale: Locale;
- contentLocale?: Locale;
- alternateLocales?: readonly Locale[];
- headings?: MarkdownHeading[];
+ title?: string;
+ rawTitle?: string;
+ description?: string;
+ docId?: string;
+ locale: Locale;
+ contentLocale?: Locale;
+ alternateLocales?: readonly Locale[];
+ headings?: MarkdownHeading[];
};
function getFirstItem(category: DocsCategory): DocsItem | null {
- for (const section of category.sections) {
- if (section.items.length > 0) {
- return section.items[0];
- }
+ for (const section of category.sections) {
+ if (section.items.length > 0) {
+ return section.items[0];
}
- return null;
+ }
+ return null;
}
const {
- title,
- rawTitle,
- description,
- docId,
- locale,
- contentLocale = locale,
- alternateLocales = DOCS_LOCALES,
- headings = [],
+ title,
+ rawTitle,
+ description,
+ docId,
+ locale,
+ contentLocale = locale,
+ alternateLocales = DOCS_LOCALES,
+ headings = [],
} = Astro.props;
const { t } = useI18n({ locale });
const isFallback = contentLocale !== locale;
const context = getDocContext(docId);
-const tocHeadings = headings.filter(
- (heading) => heading.depth >= 2 && heading.depth <= 3,
-);
+const tocHeadings = headings.filter((heading) => heading.depth >= 2 && heading.depth <= 3);
const socials = [
- ...getSocials().filter((social) =>
- ["github", "bluesky", "discord"].includes(social.id),
- ),
+ ...getSocials().filter((social) => ['github', 'bluesky', 'discord'].includes(social.id)),
];
-const titleSuffix = "Papra Docs";
+const titleSuffix = 'Papra Docs';
const fullTitle = title ? `${title} - ${titleSuffix}` : titleSuffix;
---
<Layout
- rawTitle={rawTitle ?? fullTitle}
- description={description}
- locale={contentLocale}
- canonicalUrl={
- new URL(getDocUrl({ docId, locale: contentLocale }), Astro.site)
- }
- alternateLocales={alternateLocales}
- excludeFromSearch={isFallback}
- class="bg-#121212 relative"
+ rawTitle={rawTitle ?? fullTitle}
+ description={description}
+ locale={contentLocale}
+ canonicalUrl={new URL(getDocUrl({ docId, locale: contentLocale }), Astro.site)}
+ alternateLocales={alternateLocales}
+ excludeFromSearch={isFallback}
+ class="bg-#121212 relative"
>
- <a
- href="#docs-content"
- class="docs-skip-link rounded bg-primary text-primary-foreground px-4 py-2 font-medium"
- >
- {t("docs.skip-to-content")}
- </a>
+ <a
+ href="#docs-content"
+ class="docs-skip-link rounded bg-primary text-primary-foreground px-4 py-2 font-medium"
+ >
+ {t('docs.skip-to-content')}
+ </a>
- <div class="absolute top-0 left-50% transform -translate-x-50% w-400px h-250px sm:w-700px sm:h-300px rounded-full bg-gradient-to-b from-primary/50 to-transparent blur-3xl opacity-30 z-0 pointer-events-none"></div>
+ <div class="absolute top-0 left-50% transform -translate-x-50% w-400px h-250px sm:w-700px sm:h-300px rounded-full bg-gradient-to-b from-primary/50 to-transparent blur-3xl opacity-30 z-0 pointer-events-none"></div>
- <header class="border-b sticky top-0 left-0 right-0 z-100 bg-#121212">
- <div class="h-64px border-b">
- <div class="max-w-1400px mx-auto px-6 h-full flex items-center justify-between">
- <a
- href={getDocUrl({ locale })}
- class="text-lg font-semibold group flex items-center gap-2 transition"
- >
- <div class="i-tabler-file-text size-6 group-hover:rotate-25deg text-primary transition transform rotate-12deg"></div>
- Papra
- <span class="text-muted-foreground text-base font-light uppercase">
- Docs
- </span>
- </a>
+ <header class="border-b sticky top-0 left-0 right-0 z-100 bg-#121212">
+ <div class="h-64px border-b">
+ <div class="max-w-1400px mx-auto px-6 h-full flex items-center justify-between">
+ <a
+ href={getDocUrl({ locale })}
+ class="text-lg font-semibold group flex items-center gap-2 transition"
+ >
+ <div class="i-tabler-file-text size-6 group-hover:rotate-25deg text-primary transition transform rotate-12deg"></div>
+ Papra
+ <span class="text-muted-foreground text-base font-light uppercase">Docs</span>
+ </a>
- <div class="flex items-center gap-3 sm:gap-4">
- <DocSearch locale={locale} />
- {socials.map((social) => (
- <a
- href={social.url}
- target="_blank"
- rel="noopener noreferrer"
- class="text-muted-foreground hover:text-primary transition"
- aria-label={social.name}
- >
- <div class={`${social.icon} size-5`}></div>
- </a>
- ))}
- </div>
- </div>
+ <div class="flex items-center gap-3 sm:gap-4">
+ <DocSearch locale={locale} />
+ {socials.map((social) => (
+ <a
+ href={social.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ class="text-muted-foreground hover:text-primary transition"
+ aria-label={social.name}
+ >
+ <div class={`${social.icon} size-5`}></div>
+ </a>
+ ))}
</div>
+ </div>
+ </div>
- <DocMobileNav currentDocId={docId} locale={locale} />
-
- <nav
- aria-label={t("docs.categories-label")}
- class="hidden md:block max-w-1400px mx-auto px-6 overflow-x-auto"
- >
- <div class="flex items-center gap-8 overflow-x-auto">
- {docCategories.map((category) => {
- const firstItem = getFirstItem(category);
- if (!firstItem) return null;
- return (
- <a
- href={getDocUrl({ ...firstItem, locale })}
- aria-current={
- category === context?.category
- ? "true"
- : undefined
- }
- class={cn(
- "text-14px text-muted-foreground font-medium border-b border-transparent hover:border-muted-foreground transition py-2 block whitespace-nowrap h-48px flex items-center",
- category === context?.category
- ? "border-primary text-foreground"
- : "",
- )}
- >
- {t(category.titleKey)}
- </a>
- );
- })}
- </div>
- </nav>
- </header>
-
- <div class="max-w-1400px mx-auto flex">
- {context && (
- <DocSidenav
- sections={context.category.sections}
- currentDocId={context.item.docId}
- locale={locale}
- />
- )}
+ <DocMobileNav currentDocId={docId} locale={locale} />
- <div class="flex-1 min-w-0">
- <main
- id="docs-content"
- tabindex="-1"
- class="max-w-728px mx-auto px-6 py-6 scroll-mt-150px"
+ <nav
+ aria-label={t('docs.categories-label')}
+ class="hidden md:block max-w-1400px mx-auto px-6 overflow-x-auto"
+ >
+ <div class="flex items-center gap-8 overflow-x-auto">
+ {docCategories.map((category) => {
+ const firstItem = getFirstItem(category);
+ if (!firstItem) return null;
+ return (
+ <a
+ href={getDocUrl({ ...firstItem, locale })}
+ aria-current={category === context?.category ? 'true' : undefined}
+ class={cn(
+ 'text-14px text-muted-foreground font-medium border-b border-transparent hover:border-muted-foreground transition py-2 block whitespace-nowrap h-48px flex items-center',
+ category === context?.category ? 'border-primary text-foreground' : '',
+ )}
>
- {docId && (
- <div class="flex flex-wrap items-center justify-between gap-x-4 gap-y-2 mb-6">
- {context && (
- <nav
- aria-label={t("docs.breadcrumb-label")}
- class="min-w-0 text-sm text-muted-foreground"
- >
- <ol class="flex flex-wrap items-center gap-1.5">
- <li>
- <a
- href={getDocUrl({
- docId: getFirstItem(
- context.category,
- )?.docId,
- locale,
- })}
- class="hover:text-foreground transition"
- >
- {t(context.category.titleKey)}
- </a>
- </li>
- <li
- aria-hidden="true"
- class="i-tabler-chevron-right size-3"
- ></li>
- <li class="text-primary font-medium">
- {t(context.section.titleKey)}
- </li>
- </ol>
- </nav>
- )}
- <DocMarkdownActions docId={docId} locale={locale} />
- </div>
- )}
- <slot />
- </main>
- </div>
+ {t(category.titleKey)}
+ </a>
+ );
+ })}
+ </div>
+ </nav>
+ </header>
+
+ <div class="max-w-1400px mx-auto flex">
+ {context && (
+ <DocSidenav
+ sections={context.category.sections}
+ currentDocId={context.item.docId}
+ locale={locale}
+ />
+ )}
- {/* Reserve the TOC column only when it has content or balances the sidenav. */}
- {(context || tocHeadings.length > 0) && (
- <aside class="max-w-300px w-full hidden xl:block flex-shrink-0 sticky top-113px h-[calc(100vh-113px)] overflow-y-auto px-6 py-6">
- {tocHeadings.length > 0 && (
- <nav aria-labelledby="docs-toc-heading">
- <div
- id="docs-toc-heading"
- class="text-13px font-medium mb-2"
- >
- {t("docs.on-this-page")}
- </div>
- <ul class="border-l">
- {tocHeadings.map((heading) => (
- <li>
- <a
- href={`#${heading.slug}`}
- data-toc-link
- data-toc-slug={heading.slug}
- class={cn(
- "block text-sm text-muted-foreground hover:text-foreground border-l border-transparent -ml-1px py-1 transition",
- heading.depth === 3
- ? "pl-7"
- : "pl-4",
- )}
- >
- {heading.text}
- </a>
- </li>
- ))}
- </ul>
- </nav>
- )}
- </aside>
+ <div class="flex-1 min-w-0">
+ <main id="docs-content" tabindex="-1" class="max-w-728px mx-auto px-6 py-6 scroll-mt-150px">
+ {docId && (
+ <div class="flex flex-wrap items-center justify-between gap-x-4 gap-y-2 mb-6">
+ {context && (
+ <nav
+ aria-label={t('docs.breadcrumb-label')}
+ class="min-w-0 text-sm text-muted-foreground"
+ >
+ <ol class="flex flex-wrap items-center gap-1.5">
+ <li>
+ <a
+ href={getDocUrl({
+ docId: getFirstItem(context.category)?.docId,
+ locale,
+ })}
+ class="hover:text-foreground transition"
+ >
+ {t(context.category.titleKey)}
+ </a>
+ </li>
+ <li aria-hidden="true" class="i-tabler-chevron-right size-3"></li>
+ <li class="text-primary font-medium">{t(context.section.titleKey)}</li>
+ </ol>
+ </nav>
+ )}
+ <DocMarkdownActions docId={docId} locale={locale} />
+ </div>
)}
+ <slot />
+ </main>
</div>
+
+ {/* Reserve the TOC column only when it has content or balances the sidenav. */}
+ {(context || tocHeadings.length > 0) && (
+ <aside class="max-w-300px w-full hidden xl:block flex-shrink-0 sticky top-113px h-[calc(100vh-113px)] overflow-y-auto px-6 py-6">
+ {tocHeadings.length > 0 && (
+ <nav aria-labelledby="docs-toc-heading">
+ <div id="docs-toc-heading" class="text-13px font-medium mb-2">
+ {t('docs.on-this-page')}
+ </div>
+ <ul class="border-l">
+ {tocHeadings.map((heading) => (
+ <li>
+ <a
+ href={`#${heading.slug}`}
+ data-toc-link
+ data-toc-slug={heading.slug}
+ class={cn(
+ 'block text-sm text-muted-foreground hover:text-foreground border-l border-transparent -ml-1px py-1 transition',
+ heading.depth === 3 ? 'pl-7' : 'pl-4',
+ )}
+ >
+ {heading.text}
+ </a>
+ </li>
+ ))}
+ </ul>
+ </nav>
+ )}
+ </aside>
+ )}
+ </div>
</Layout>
<script>
- const HEADER_OFFSET = 150;
+ const HEADER_OFFSET = 150;
- const links = [
- ...document.querySelectorAll<HTMLAnchorElement>("[data-toc-link]"),
- ];
- const headings = links
- .map((link) => ({
- link,
- heading: document.getElementById(link.dataset.tocSlug ?? ""),
- }))
- .filter(
- (
- entry,
- ): entry is { link: HTMLAnchorElement; heading: HTMLElement } =>
- entry.heading !== null,
- );
+ const links = [...document.querySelectorAll<HTMLAnchorElement>('[data-toc-link]')];
+ const headings = links
+ .map((link) => ({
+ link,
+ heading: document.getElementById(link.dataset.tocSlug ?? ''),
+ }))
+ .filter(
+ (entry): entry is { link: HTMLAnchorElement; heading: HTMLElement } => entry.heading !== null,
+ );
- function setActive() {
- if (headings.length === 0) {
- return;
- }
+ function setActive() {
+ if (headings.length === 0) {
+ return;
+ }
- const isAtBottom =
- window.innerHeight + window.scrollY >=
- document.body.scrollHeight - 2;
- const lastPassed = headings.findLast(
- ({ heading }) =>
- heading.getBoundingClientRect().top <= HEADER_OFFSET,
- );
- const active = isAtBottom
- ? headings[headings.length - 1]
- : (lastPassed ?? headings[0]);
+ const isAtBottom = window.innerHeight + window.scrollY >= document.body.scrollHeight - 2;
+ const lastPassed = headings.findLast(
+ ({ heading }) => heading.getBoundingClientRect().top <= HEADER_OFFSET,
+ );
+ const active = isAtBottom ? headings[headings.length - 1] : (lastPassed ?? headings[0]);
- for (const { link } of headings) {
- const isActive = link === active.link;
- if (isActive) {
- link.setAttribute("aria-current", "location");
- } else {
- link.removeAttribute("aria-current");
- }
- link.classList.toggle("border-primary", isActive);
- link.classList.toggle("text-foreground", isActive);
- link.classList.toggle("border-transparent", !isActive);
- link.classList.toggle("text-muted-foreground", !isActive);
- }
+ for (const { link } of headings) {
+ const isActive = link === active.link;
+ if (isActive) {
+ link.setAttribute('aria-current', 'location');
+ } else {
+ link.removeAttribute('aria-current');
+ }
+ link.classList.toggle('border-primary', isActive);
+ link.classList.toggle('text-foreground', isActive);
+ link.classList.toggle('border-transparent', !isActive);
+ link.classList.toggle('text-muted-foreground', !isActive);
}
+ }
- if (headings.length > 0) {
- let ticking = false;
+ if (headings.length > 0) {
+ let ticking = false;
- const onScroll = () => {
- if (ticking) {
- return;
- }
-
- ticking = true;
- requestAnimationFrame(() => {
- ticking = false;
- setActive();
- });
- };
+ const onScroll = () => {
+ if (ticking) {
+ return;
+ }
+ ticking = true;
+ requestAnimationFrame(() => {
+ ticking = false;
setActive();
- window.addEventListener("scroll", onScroll, { passive: true });
- window.addEventListener("resize", onScroll, { passive: true });
- }
+ });
+ };
+
+ setActive();
+ window.addEventListener('scroll', onScroll, { passive: true });
+ window.addEventListener('resize', onScroll, { passive: true });
+ }
</script>
<style>
- .docs-skip-link {
- position: fixed;
- top: 1rem;
- left: 1rem;
- z-index: 101;
- transform: translateY(calc(-100% - 2rem));
- }
+ .docs-skip-link {
+ position: fixed;
+ top: 1rem;
+ left: 1rem;
+ z-index: 101;
+ transform: translateY(calc(-100% - 2rem));
+ }
- .docs-skip-link:focus {
- transform: translateY(0);
- outline: 2px solid hsl(var(--ring));
- outline-offset: 2px;
- }
+ .docs-skip-link:focus {
+ transform: translateY(0);
+ outline: 2px solid hsl(var(--ring));
+ outline-offset: 2px;
+ }
</style>
diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro
index 23cef9dd..873b96f5 100644
--- a/apps/website/src/layouts/Layout.astro
+++ b/apps/website/src/layouts/Layout.astro
@@ -10,7 +10,7 @@ export type Props = {
excludeFromSearch?: boolean;
} & HeaddProps;
-const { class: className, excludeFromSearch = false, ...headProps } = Astro.props;
+const { class: className, excludeFromSearch = false, ...headProps } = Astro.props;
const locale = Astro.currentLocale ?? DEFAULT_LOCALE;
---
@@ -18,7 +18,12 @@ const locale = Astro.currentLocale ?? DEFAULT_LOCALE;
<!doctype html>
<html lang={locale} data-pagefind-ignore={excludeFromSearch ? 'all' : undefined}>
<Head {...headProps} />
- <body class={cn(`bg-background font-sans antialiased min-h-screen text-foreground text-sm ${className}`)} data-kb-theme="dark">
+ <body
+ class={cn(
+ `bg-background font-sans antialiased min-h-screen text-foreground text-sm ${className}`,
+ )}
+ data-kb-theme="dark"
+ >
<slot />
</body>
</html>
diff --git a/apps/website/src/layouts/MdPage.astro b/apps/website/src/layouts/MdPage.astro
index d791cb87..6d0d7ec7 100644
--- a/apps/website/src/layouts/MdPage.astro
+++ b/apps/website/src/layouts/MdPage.astro
@@ -7,33 +7,41 @@ import Layout from './Layout.astro';
---
<Layout>
-<div class="bg-card">
- <Header />
+ <div class="bg-card">
+ <Header />
- <div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24">
+ <div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24">
<div class="max-w-700px mx-auto p-4">
<h1 class="text-4xl mb-2 font-bold">{Astro.props.frontmatter.title}</h1>
- <p class="text-base mb-2 text-muted-foreground lh-1.75rem">{Astro.props.frontmatter.description}</p>
+ <p class="text-base mb-2 text-muted-foreground lh-1.75rem">
+ {Astro.props.frontmatter.description}
+ </p>
{Astro.props.frontmatter.tags && (
<div class="flex flex-wrap mt-2">
{Astro.props.frontmatter.tags.map((tag: string) => (
- <span class="text-xs bg-card border rounded-lg px-2 py-1 mr-2 mb-2 font-medium">{tag}</span>
+ <span class="text-xs bg-card border rounded-lg px-2 py-1 mr-2 mb-2 font-medium">
+ {tag}
+ </span>
))}
</div>
)}
</div>
-
</div>
- <div class="px-6">
- <div class={cn('prose prose-invert prose-neutral mx-auto text-base bg-card', !Astro.props.frontmatter.withCta && 'pb-32')}>
- <slot />
- </div>
- </div>
+ <div class="px-6">
+ <div
+ class={cn(
+ 'prose prose-invert prose-neutral mx-auto text-base bg-card',
+ !Astro.props.frontmatter.withCta && 'pb-32',
+ )}
+ >
+ <slot />
+ </div>
+ </div>
- {Astro.props.frontmatter.withCta && (<Cta />)}
+ {Astro.props.frontmatter.withCta && <Cta />}
- <Footer class="bg-background" />
-</div>
+ <Footer class="bg-background" />
+ </div>
</Layout>
diff --git a/apps/website/src/pages/[locale]/404.astro b/apps/website/src/pages/[locale]/404.astro
index 4eb33c6a..caec26d8 100644
--- a/apps/website/src/pages/[locale]/404.astro
+++ b/apps/website/src/pages/[locale]/404.astro
@@ -7,7 +7,7 @@ import Layout from '../../layouts/Layout.astro';
const { t } = useI18n({ locale: Astro.currentLocale });
export async function getStaticPaths() {
- return LOCALES.map(locale => ({ params: { locale } }));
+ return LOCALES.map((locale) => ({ params: { locale } }));
}
---
diff --git a/apps/website/src/pages/[locale]/contact.astro b/apps/website/src/pages/[locale]/contact.astro
index 68ff54e7..3174d301 100644
--- a/apps/website/src/pages/[locale]/contact.astro
+++ b/apps/website/src/pages/[locale]/contact.astro
@@ -8,7 +8,7 @@ import { DISCORD_INVITE_URL, getSocials, GITHUB_ISSUES_URL } from '../../socials
import { cn } from '../../utils/cn';
export async function getStaticPaths() {
- return LOCALES.map(locale => ({ params: { locale } }));
+ return LOCALES.map((locale) => ({ params: { locale } }));
}
const { t } = useI18n({ locale: Astro.currentLocale });
@@ -58,45 +58,41 @@ const socials = getSocials({ t });
<div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-24 md:pt-32 pb-8 md:pb-18">
<div class="max-w-700px mx-auto p-6 md:text-center">
<h1 class="text-3xl md:text-5xl mb-4 font-bold">{t('contact.title')}</h1>
- <p class="text-base md:text-xl leading-tight text-muted-foreground text-pretty">{t('contact.subtitle')}</p>
+ <p class="text-base md:text-xl leading-tight text-muted-foreground text-pretty">
+ {t('contact.subtitle')}
+ </p>
</div>
</div>
<div class="max-w-4xl mx-auto px-6 py-8 md:py-24">
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
- {
- generalCards.map(card => (
- <div class={cn('border border-border rounded-lg p-6 bg-background/50')}>
- <div class="size-14 flex items-center justify-center bg-primary/10 rounded-xl">
- <div class={`${card.icon} size-8 text-primary`} aria-hidden="true" />
- </div>
- <h2 class="text-2xl font-semibold mt-4 mb-3">{card.title}</h2>
- <p class="text-base text-muted-foreground mb-4">{card.description}</p>
- {card.email
-? (
- <a
- href={`mailto:${card.email}`}
- class="text-base font-semibold text-primary hover:underline"
- >
- {card.email}
- </a>
- )
-: card.button
-? (
- <a
- href={card.button.url}
- class="text-base font-semibold bg-primary rounded-lg py-2 px-4 text-primary-foreground transition hover:bg-primary/80 inline-flex items-center"
- target="_blank"
- rel="noopener noreferrer"
- >
- <div class={`${card.button.icon} size-6 inline-block mr-2`} aria-hidden="true" />
- {card.button.label}
- </a>
- )
-: null}
+ {generalCards.map((card) => (
+ <div class={cn('border border-border rounded-lg p-6 bg-background/50')}>
+ <div class="size-14 flex items-center justify-center bg-primary/10 rounded-xl">
+ <div class={`${card.icon} size-8 text-primary`} aria-hidden="true" />
</div>
- ))
- }
+ <h2 class="text-2xl font-semibold mt-4 mb-3">{card.title}</h2>
+ <p class="text-base text-muted-foreground mb-4">{card.description}</p>
+ {card.email ? (
+ <a
+ href={`mailto:${card.email}`}
+ class="text-base font-semibold text-primary hover:underline"
+ >
+ {card.email}
+ </a>
+ ) : card.button ? (
+ <a
+ href={card.button.url}
+ class="text-base font-semibold bg-primary rounded-lg py-2 px-4 text-primary-foreground transition hover:bg-primary/80 inline-flex items-center"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ <div class={`${card.button.icon} size-6 inline-block mr-2`} aria-hidden="true" />
+ {card.button.label}
+ </a>
+ ) : null}
+ </div>
+ ))}
</div>
<div class="flex flex-col md:flex-row justify-between items-center gap-8 border rounded-lg mt-8 p-6 bg-background/50">
@@ -106,20 +102,18 @@ const socials = getSocials({ t });
</div>
<div class="flex items-center gap-4 flex-wrap md:flex-nowrap">
- {
- socials.map(social => (
- <a
- href={social.url}
- target="_blank"
- rel="noopener noreferrer"
- aria-label={social.name}
- class="size-12 text-primary bg-primary/10 rounded-lg flex items-center justify-center hover:bg-primary/20 transition"
- title={social.name}
- >
- <div class={cn('size-6', social.icon)} aria-hidden="true" />
- </a>
- ))
- }
+ {socials.map((social) => (
+ <a
+ href={social.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ aria-label={social.name}
+ class="size-12 text-primary bg-primary/10 rounded-lg flex items-center justify-center hover:bg-primary/20 transition"
+ title={social.name}
+ >
+ <div class={cn('size-6', social.icon)} aria-hidden="true" />
+ </a>
+ ))}
</div>
</div>
</div>
diff --git a/apps/website/src/pages/[locale]/docs/[...slug].astro b/apps/website/src/pages/[locale]/docs/[...slug].astro
index 8a808740..88ff8eeb 100644
--- a/apps/website/src/pages/[locale]/docs/[...slug].astro
+++ b/apps/website/src/pages/[locale]/docs/[...slug].astro
@@ -27,9 +27,7 @@ const { previous, next } = getDocPagination(docId);
headings={headings}
>
{isFallback && (
- <p class="mb-6 rounded-lg border p-4 text-muted-foreground">
- {t('docs.translation-fallback')}
- </p>
+ <p class="mb-6 rounded-lg border p-4 text-muted-foreground">{t('docs.translation-fallback')}</p>
)}
<div class="doc prose dark:prose-invert max-w-none" lang={contentLocale} data-pagefind-body>
@@ -37,7 +35,12 @@ const { previous, next } = getDocPagination(docId);
<Content />
</div>
- <DocFooter editUrl={getDocEditUrl(entry)} previous={previous} next={next} locale={requestedLocale} />
+ <DocFooter
+ editUrl={getDocEditUrl(entry)}
+ previous={previous}
+ next={next}
+ locale={requestedLocale}
+ />
</DocsLayout>
<style is:global>
diff --git a/apps/website/src/pages/[locale]/index.astro b/apps/website/src/pages/[locale]/index.astro
index 094f0632..b1ded6d3 100644
--- a/apps/website/src/pages/[locale]/index.astro
+++ b/apps/website/src/pages/[locale]/index.astro
@@ -1,5 +1,4 @@
---
-
import Cta from '../../components/Cta.astro';
import FaqAccordion from '../../components/FaqAccordion.astro';
import FeaturesBento from '../../components/FeaturesBento.astro';
@@ -13,17 +12,13 @@ import Layout from '../../layouts/Layout.astro';
import Hero from '../../components/Hero.astro';
import IntakeEmails from '../../components/IntakeEmails.astro';
-
export async function getStaticPaths() {
- return LOCALES.map(locale => ({ params: { locale } }));
+ return LOCALES.map((locale) => ({ params: { locale } }));
}
const { t } = useI18n({ locale: Astro.currentLocale });
---
-<Layout
- rawTitle={t('site.title')}
- description={t('site.description')}
->
+<Layout rawTitle={t('site.title')} description={t('site.description')}>
<Header />
<Hero />
@@ -45,5 +40,4 @@ const { t } = useI18n({ locale: Astro.currentLocale });
<Cta />
<Footer />
-
</Layout>
diff --git a/apps/website/src/pages/[locale]/pricing.astro b/apps/website/src/pages/[locale]/pricing.astro
index 31f7ec6f..da02b859 100644
--- a/apps/website/src/pages/[locale]/pricing.astro
+++ b/apps/website/src/pages/[locale]/pricing.astro
@@ -8,7 +8,7 @@ import { LOCALES } from '../../i18n/i18n.constants';
import Layout from '../../layouts/Layout.astro';
export async function getStaticPaths() {
- return LOCALES.map(locale => ({ params: { locale } }));
+ return LOCALES.map((locale) => ({ params: { locale } }));
}
const { t } = useI18n({ locale: Astro.currentLocale });
@@ -28,7 +28,7 @@ type Plan = {
discountedMonthlyPrice?: undefined;
discountedAnnualPrice?: undefined;
}
- | {
+ | {
discountedMonthlyPrice: number;
discountedAnnualPrice: number;
}
@@ -77,107 +77,144 @@ const plans: Plan[] = [
<div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24">
<div class="max-w-700px mx-auto p-4 text-center">
<h1 class="text-3xl md:text-4xl mb-4 font-bold">{t('pricing.title')}</h1>
- <p class="text-base md:text-lg text-muted-foreground leading-tight">{t('pricing.subtitle')}</p>
+ <p class="text-base md:text-lg text-muted-foreground leading-tight">
+ {t('pricing.subtitle')}
+ </p>
</div>
</div>
<div class="max-w-1200px mx-auto px-6 md:px-8 flex-1 w-full">
<div class="flex flex-col items-center justify-center my-12 gap-3">
<div class="inline-flex rounded-lg border border-border bg-muted p-1" role="group">
- <button id="monthly-btn" type="button" class="px-4 py-2 text-sm font-medium rounded-md transition-colors">{t('pricing.toggle.monthly')}</button>
- <button id="annual-btn" type="button" class="px-4 py-2 text-sm font-medium rounded-md transition-colors bg-background text-foreground shadow-sm flex items-center">
+ <button
+ id="monthly-btn"
+ type="button"
+ class="px-4 py-2 text-sm font-medium rounded-md transition-colors"
+ >
+ {t('pricing.toggle.monthly')}
+ </button>
+ <button
+ id="annual-btn"
+ type="button"
+ class="px-4 py-2 text-sm font-medium rounded-md transition-colors bg-background text-foreground shadow-sm flex items-center"
+ >
{t('pricing.toggle.annual')}
</button>
</div>
- <p class="text-sm text-muted-foreground text-center">
- {t('pricing.currency-note')}
- </p>
+ <p class="text-sm text-muted-foreground text-center">{t('pricing.currency-note')}</p>
</div>
-
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
- {
- plans.map(plan => (
- <div class={`relative border rounded-xl bg-background p-6 flex flex-col ${plan.popular ? 'border-primary' : ''}`}>
- <div class="flex gap-2 absolute top--3 right-6">
- {plan.popular && <div class="bg-primary text-primary-foreground text-xs font-bold px-3 py-1 rounded-full">{t('pricing.most-popular')}</div>}
- </div>
+ {plans.map((plan) => (
+ <div
+ class={`relative border rounded-xl bg-background p-6 flex flex-col ${plan.popular ? 'border-primary' : ''}`}
+ >
+ <div class="flex gap-2 absolute top--3 right-6">
+ {plan.popular && (
+ <div class="bg-primary text-primary-foreground text-xs font-bold px-3 py-1 rounded-full">
+ {t('pricing.most-popular')}
+ </div>
+ )}
+ </div>
- <h2 class="text-2xl font-bold mb-2">{plan.name}</h2>
+ <h2 class="text-2xl font-bold mb-2">{plan.name}</h2>
- <div class="mb-6 border-b pb-6">
- <div>
- {plan.discountedMonthlyPrice !== undefined
-? (
- <div class="flex gap-1 flex-wrap items-end">
+ <div class="mb-6 border-b pb-6">
+ <div>
+ {plan.discountedMonthlyPrice !== undefined ? (
+ <div class="flex gap-1 flex-wrap items-end">
+ <div class="flex flex-col items-start gap-1">
+ <span class="monthly-price text-2xl font-medium text-muted-foreground hidden lh-none relative after:(content-[''] absolute left--5px right--5px top-1/2 h-2px bg-muted-foreground/40 rounded-full -rotate-12 origin-center)">
+ ${plan.monthlyPrice}
+ </span>
+ <span class="monthly-price text-5xl font-semibold hidden lh-none text-primary">
+ ${plan.discountedMonthlyPrice}
+ </span>
+ </div>
+ {plan.annualPrice > 0 ? (
<div class="flex flex-col items-start gap-1">
- <span class="monthly-price text-2xl font-medium text-muted-foreground hidden lh-none relative after:(content-[''] absolute left--5px right--5px top-1/2 h-2px bg-muted-foreground/40 rounded-full -rotate-12 origin-center)">${plan.monthlyPrice}</span>
- <span class="monthly-price text-5xl font-semibold hidden lh-none text-primary">${plan.discountedMonthlyPrice}</span>
+ <span class="annual-price text-2xl text-muted-foreground lh-none relative after:(content-[''] absolute left--5px right--5px top-1/2 h-2px bg-muted-foreground/40 rounded-full -rotate-12 origin-center)">
+ ${Math.round((100 * plan.annualPrice) / 12) / 100}
+ </span>
+ <span class="annual-price text-5xl font-semibold lh-none text-primary">
+ ${Math.round((100 * plan.discountedAnnualPrice) / 12) / 100}
+ </span>
</div>
- {plan.annualPrice > 0
-? (
- <div class="flex flex-col items-start gap-1">
- <span class="annual-price text-2xl text-muted-foreground lh-none relative after:(content-[''] absolute left--5px right--5px top-1/2 h-2px bg-muted-foreground/40 rounded-full -rotate-12 origin-center)">${Math.round((100 * plan.annualPrice) / 12) / 100}</span>
- <span class="annual-price text-5xl font-semibold lh-none text-primary">${Math.round((100 * plan.discountedAnnualPrice) / 12) / 100}</span>
+ ) : (
+ <span class="annual-price text-5xl font-semibold">$0</span>
+ )}
+ <div>
+ <span class="text-muted-foreground">{t('pricing.per-month')}</span>
+ {plan.annualPrice > 0 && (
+ <div class="text-xs text-muted-foreground annual-price">
+ {t('pricing.billed-annually', {
+ price: `$${plan.discountedAnnualPrice}`,
+ })}
</div>
- )
-: (
- <span class="annual-price text-5xl font-semibold">$0</span>
)}
- <div>
- <span class="text-muted-foreground">{t('pricing.per-month')}</span>
- {plan.annualPrice > 0 && <div class="text-xs text-muted-foreground annual-price">{t('pricing.billed-annually', { price: `$${plan.discountedAnnualPrice}` })}</div>}
- </div>
</div>
- )
-: (
- <div class="flex gap-1 flex-wrap items-end">
- <span class="monthly-price text-5xl font-semibold hidden lh-none">${plan.monthlyPrice}</span>
- {plan.annualPrice > 0
-? (
- <span class="annual-price text-5xl font-semibold lh-none">${Math.round((100 * plan.annualPrice) / 12) / 100}</span>
- )
-: (
- <span class="annual-price text-5xl font-semibold">$0</span>
+ </div>
+ ) : (
+ <div class="flex gap-1 flex-wrap items-end">
+ <span class="monthly-price text-5xl font-semibold hidden lh-none">
+ ${plan.monthlyPrice}
+ </span>
+ {plan.annualPrice > 0 ? (
+ <span class="annual-price text-5xl font-semibold lh-none">
+ ${Math.round((100 * plan.annualPrice) / 12) / 100}
+ </span>
+ ) : (
+ <span class="annual-price text-5xl font-semibold">$0</span>
+ )}
+ <div>
+ <span class="text-muted-foreground">{t('pricing.per-month')}</span>
+ {plan.annualPrice > 0 && (
+ <div class="text-xs text-muted-foreground annual-price">
+ {t('pricing.billed-annually', { price: `$${plan.annualPrice}` })}
+ </div>
)}
- <div>
- <span class="text-muted-foreground">{t('pricing.per-month')}</span>
- {plan.annualPrice > 0 && <div class="text-xs text-muted-foreground annual-price">{t('pricing.billed-annually', { price: `$${plan.annualPrice}` })}</div>}
- </div>
</div>
- )}
- </div>
+ </div>
+ )}
</div>
+ </div>
- <ul class="space-y-3 mb-8 flex-1">
- {plan.features.map(feature => (
- <li class="flex items-start gap-2">
- <div class="rounded-lg bg-muted p-0.75">
- <div class="i-tabler-check size-4 text-primary flex-shrink-0" />
- </div>
- <span class="text-sm">{feature}</span>
- </li>
- ))}
- </ul>
+ <ul class="space-y-3 mb-8 flex-1">
+ {plan.features.map((feature) => (
+ <li class="flex items-start gap-2">
+ <div class="rounded-lg bg-muted p-0.75">
+ <div class="i-tabler-check size-4 text-primary flex-shrink-0" />
+ </div>
+ <span class="text-sm">{feature}</span>
+ </li>
+ ))}
+ </ul>
- <a
- href={plan.cta.url}
- class={`text-center font-semibold px-4 py-2.5 rounded-lg transition ${
- plan.popular ? 'bg-primary text-primary-foreground hover:bg-primary/80' : 'border border-border hover:border-primary hover:text-primary'
- }`}
- >
- {plan.cta.text}
- </a>
- </div>
- ))
- }
+ <a
+ href={plan.cta.url}
+ class={`text-center font-semibold px-4 py-2.5 rounded-lg transition ${
+ plan.popular
+ ? 'bg-primary text-primary-foreground hover:bg-primary/80'
+ : 'border border-border hover:border-primary hover:text-primary'
+ }`}
+ >
+ {plan.cta.text}
+ </a>
+ </div>
+ ))}
</div>
<div class="mt-6 grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="border rounded-xl bg-background p-6 flex-col items-start">
<h2 class="text-2xl font-bold">{t('pricing.enterprise.title')}</h2>
- <p class="text-muted-foreground mt-2 mb-4 flex-1" set:html={t('pricing.enterprise.description')} />
- <a href="/contact" class="inline-flex items-center gap-2 border font-semibold px-4 py-2 rounded-lg hover:border-primary hover:text-primary transition">
+ <p
+ class="text-muted-foreground mt-2 mb-4 flex-1"
+ set:html={t('pricing.enterprise.description')}
+ />
+ <a
+ href="/contact"
+ class="inline-flex items-center gap-2 border font-semibold px-4 py-2 rounded-lg hover:border-primary hover:text-primary transition"
+ >
{t('pricing.contact-us')}
<div class="i-tabler-arrow-right size-5"></div>
</a>
@@ -185,7 +222,10 @@ const plans: Plan[] = [
<div class="border rounded-xl bg-background p-6 flex flex-col items-start">
<h2 class="text-2xl font-bold">{t('pricing.self-hosting.title')}</h2>
- <p class="text-muted-foreground mt-2 mb-4 flex-1" set:html={t('pricing.self-hosting.description')} />
+ <p
+ class="text-muted-foreground mt-2 mb-4 flex-1"
+ set:html={t('pricing.self-hosting.description')}
+ />
<a
href="https://docs.papra.app/self-hosting/using-docker/"
target="_blank"
@@ -207,13 +247,16 @@ const plans: Plan[] = [
<div class="bg-card pb-32">
<div class="max-w-1200px mx-auto px-6">
- <div
- class="border rounded-xl bg-background pt-32 pb-24 bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] px-6"
- >
- <h2 class="text-2xl sm:text-4xl font-bold text-center max-w-650px mx-auto">{t('pricing.final-cta.title')}</h2>
+ <div class="border rounded-xl bg-background pt-32 pb-24 bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] px-6">
+ <h2 class="text-2xl sm:text-4xl font-bold text-center max-w-650px mx-auto">
+ {t('pricing.final-cta.title')}
+ </h2>
<div class="flex mt-4 items-center justify-center">
- <a href={config.getStartedLink} class="font-semibold text-background px-4 py-2 hover:bg-primary/80 rounded-lg bg-primary transition mt-8 inline-block flex items-center">
+ <a
+ href={config.getStartedLink}
+ class="font-semibold text-background px-4 py-2 hover:bg-primary/80 rounded-lg bg-primary transition mt-8 inline-block flex items-center"
+ >
{t('pricing.final-cta.button')}
<div class="i-tabler-arrow-right ml-2 size-5" aria-hidden="true"></div>
@@ -247,10 +290,10 @@ const plans: Plan[] = [
monthlyBtn?.classList.add(...inactiveClasses);
// Toggle price visibility
- monthlyPrices.forEach(el => el.classList.add('hidden'));
- annualPrices.forEach(el => el.classList.remove('hidden'));
- monthlyPromoPrices.forEach(el => el.classList.add('hidden'));
- annualPromoPrices.forEach(el => el.classList.remove('hidden'));
+ monthlyPrices.forEach((el) => el.classList.add('hidden'));
+ annualPrices.forEach((el) => el.classList.remove('hidden'));
+ monthlyPromoPrices.forEach((el) => el.classList.add('hidden'));
+ annualPromoPrices.forEach((el) => el.classList.remove('hidden'));
}
function setMonthly() {
@@ -261,10 +304,10 @@ const plans: Plan[] = [
annualBtn?.classList.add(...inactiveClasses);
// Toggle price visibility
- monthlyPrices.forEach(el => el.classList.remove('hidden'));
- annualPrices.forEach(el => el.classList.add('hidden'));
- monthlyPromoPrices.forEach(el => el.classList.remove('hidden'));
- annualPromoPrices.forEach(el => el.classList.add('hidden'));
+ monthlyPrices.forEach((el) => el.classList.remove('hidden'));
+ annualPrices.forEach((el) => el.classList.add('hidden'));
+ monthlyPromoPrices.forEach((el) => el.classList.remove('hidden'));
+ annualPromoPrices.forEach((el) => el.classList.add('hidden'));
}
monthlyBtn?.addEventListener('click', setMonthly);
diff --git a/apps/website/src/pages/blog/[...page].astro b/apps/website/src/pages/blog/[...page].astro
index 90dd8d10..cef89c7e 100644
--- a/apps/website/src/pages/blog/[...page].astro
+++ b/apps/website/src/pages/blog/[...page].astro
@@ -14,21 +14,25 @@ const { t } = useI18n({ locale: Astro.currentLocale });
export async function getStaticPaths({ paginate }: GetStaticPathsOptions) {
const posts = await getCollection('blog');
- const sortedPosts = posts.sort((a, b) => b.data.publishedAt.getTime() - a.data.publishedAt.getTime());
+ const sortedPosts = posts.sort(
+ (a, b) => b.data.publishedAt.getTime() - a.data.publishedAt.getTime(),
+ );
return paginate(sortedPosts, { pageSize: 12 });
}
-
const { page } = Astro.props as { page: Page<CollectionEntry<'blog'>> };
// const allPages = Array.from({ length: page.lastPage }).map((_, index) => {
// return `/blog${index === 0 ? '' : `/${String(index + 1)}`}`;
// });
-
---
-<Layout title="Blog" description="Stay updated with the latest news and updates from Papra." image={{ src: '/og/blog.png', alt: 'What’s new in the Papra ecosystem' }}>
+<Layout
+ title="Blog"
+ description="Stay updated with the latest news and updates from Papra."
+ image={{ src: '/og/blog.png', alt: 'What’s new in the Papra ecosystem' }}
+>
<Header />
<div class="flex flex-col min-h-screen">
@@ -41,11 +45,9 @@ const { page } = Astro.props as { page: Page<CollectionEntry<'blog'>> };
<h2 class="sr-only">{t('blog.posts-heading')}</h2>
<div class="p-6 flex-1 py-20 flex flex-col gap-8">
- {
- page.data.map(post => (
- <BlogCard {...{ post }} />
- ))
- }
+ {page.data.map((post) => (
+ <BlogCard {...{ post }} />
+ ))}
</div>
<!-- <Pagination page={page} allPages={allPages} /> -->
diff --git a/apps/website/src/pages/blog/[slug].astro b/apps/website/src/pages/blog/[slug].astro
index 728df4f2..f50e1803 100644
--- a/apps/website/src/pages/blog/[slug].astro
+++ b/apps/website/src/pages/blog/[slug].astro
@@ -12,7 +12,7 @@ import { resolveImage } from '../../utils/urls';
export async function getStaticPaths() {
const blog = await getCollection('blog');
- return blog.map(post => ({
+ return blog.map((post) => ({
params: { slug: post.id },
props: { post },
}));
@@ -39,17 +39,20 @@ const structuredData = {
...(ogImageUrl && { thumbnailUrl: ogImageUrl, image: [ogImageUrl] }),
'datePublished': data.publishedAt.toISOString(),
'potentialAction': [{ '@type': 'ReadAction', 'target': [Astro.url] }],
-
};
---
-<Layout title={data.title} description={data.description} image={ogImage ? { src: ogImage.src, alt: data.title } : undefined} jsonLd={structuredData}>
+<Layout
+ title={data.title}
+ description={data.description}
+ image={ogImage ? { src: ogImage.src, alt: data.title } : undefined}
+ jsonLd={structuredData}
+>
<Header />
<div class="flex flex-col min-h-screen">
<div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-26 pb-12">
<div class="max-w-800px mx-auto p-4 sm:text-center">
-
<h1 class="text-3xl my-4 font-bold">{data.title}</h1>
<p class="text-base leading-tight">{data.description}</p>
@@ -59,8 +62,22 @@ const structuredData = {
</time>
<span class="text-muted-foreground"> - </span>
By
- <a href="https://corentin.tech" class="text-muted-foreground hover:text-primary transition flex items-center gap-1" target="_blank" rel="noreferrer">
- <Image src={CorentinAvatar} alt="Corentin Thomasset" width={30} height={30} class="rounded-full border" aria-hidden="true" loading="eager" decoding="async" />
+ <a
+ href="https://corentin.tech"
+ class="text-muted-foreground hover:text-primary transition flex items-center gap-1"
+ target="_blank"
+ rel="noreferrer"
+ >
+ <Image
+ src={CorentinAvatar}
+ alt="Corentin Thomasset"
+ width={30}
+ height={30}
+ class="rounded-full border"
+ aria-hidden="true"
+ loading="eager"
+ decoding="async"
+ />
Corentin Thomasset
</a>
</div>
@@ -73,6 +90,4 @@ const structuredData = {
<Footer class="bg-background" />
</div>
-
-
</Layout>
diff --git a/apps/website/src/pages/blog/_components/BlogCard.astro b/apps/website/src/pages/blog/_components/BlogCard.astro
index b74f69a6..f3b865e9 100644
--- a/apps/website/src/pages/blog/_components/BlogCard.astro
+++ b/apps/website/src/pages/blog/_components/BlogCard.astro
@@ -20,12 +20,27 @@ const { post } = Astro.props;
const coverImage = await resolveImage(post.data.coverImage);
---
-<article class="relative border max-w-700px mx-auto bg-card rounded-xl transition hover:border-primary overflow-hidden" aria-labelledby={post.id}>
- {coverImage && <Image src={coverImage} alt={post.data.title} height={(630 * 700) / 1500} width={700} class="border-b" />}
+<article
+ class="relative border max-w-700px mx-auto bg-card rounded-xl transition hover:border-primary overflow-hidden"
+ aria-labelledby={post.id}
+>
+ {coverImage && (
+ <Image
+ src={coverImage}
+ alt={post.data.title}
+ height={(630 * 700) / 1500}
+ width={700}
+ class="border-b"
+ />
+ )}
<div class="p-6">
<h3 class="font-medium text-2xl" id={post.id}>
- <a href={`/blog/${post.id}/`} data-astro-prefetch class="outline-none after:absolute after:inset-0 after:content-['']">
+ <a
+ href={`/blog/${post.id}/`}
+ data-astro-prefetch
+ class="outline-none after:absolute after:inset-0 after:content-['']"
+ >
{post.data.title}
</a>
</h3>
diff --git a/apps/website/src/pages/index.astro b/apps/website/src/pages/index.astro
index 413bd015..d5a34729 100644
--- a/apps/website/src/pages/index.astro
+++ b/apps/website/src/pages/index.astro
@@ -5,10 +5,13 @@ export const prerender = false;
const preferredLocales = Astro.preferredLocaleList ?? [];
-const locale = preferredLocales.find(locale => (LOCALES as readonly string[]).includes(locale)) ?? DEFAULT_LOCALE;
+const locale =
+ preferredLocales.find((locale) => (LOCALES as readonly string[]).includes(locale)) ??
+ DEFAULT_LOCALE;
Astro.response.headers.set('Vary', 'Accept-Language');
return Astro.redirect(`/${locale}/`, 302);
---
+
diff --git a/oxfmt.config.ts b/oxfmt.config.ts
index 43be264a..8069417c 100644
--- a/oxfmt.config.ts
+++ b/oxfmt.config.ts
@@ -12,6 +12,7 @@ export default defineConfig({
tabWidth: 2,
useTabs: false,
quoteProps: 'consistent',
+ astro: true,
ignorePatterns: [
// MDX with markdown inside JSX component children gets mangled by the formatter
// (the markdown/JSX boundary is ambiguous and indentation-sensitive). Plain .md is fine.
diff --git a/package.json b/package.json
index 7168ab97..3cd9a407 100644
--- a/package.json
+++ b/package.json
@@ -20,11 +20,12 @@
"lint:fix": "pnpm run check:fix"
},
"devDependencies": {
+ "@astrojs/compiler-rs": "0.5.2",
"@changesets/changelog-github": "1.0.0",
"@changesets/cli": "3.0.1",
- "oxfmt": "0.68.0",
- "oxlint": "1.83.0",
- "oxlint-tsgolint": "7.0.2001",
+ "oxfmt": "0.74.0",
+ "oxlint": "1.89.0",
+ "oxlint-tsgolint": "7.0.2004",
"vitest": "catalog:"
},
"packageManager": "[email protected]"
diff --git a/packages/search-parser/demo/src/pages/index.astro b/packages/search-parser/demo/src/pages/index.astro
index 689e2bff..8f10b764 100644
--- a/packages/search-parser/demo/src/pages/index.astro
+++ b/packages/search-parser/demo/src/pages/index.astro
@@ -3,10 +3,11 @@ import { ParserDemo } from '../components/parser-demo';
const meta = {
title: 'Search Parser - Advanced search query parser for TypeScript',
- description: 'A typesafe, dependency-free, error-resilient AST-based search query parser for TypeScript. Supports logical operators, grouping, filters, and more.',
- keywords: 'search parser, query parser, typescript, ast parser, search syntax, logical operators, filters, search query',
+ description:
+ 'A typesafe, dependency-free, error-resilient AST-based search query parser for TypeScript. Supports logical operators, grouping, filters, and more.',
+ keywords:
+ 'search parser, query parser, typescript, ast parser, search syntax, logical operators, filters, search query',
};
-
---
<!doctype html>
@@ -31,7 +32,10 @@ const meta = {
<meta property="og:image" content="https://search-parser.papra.app/og-image.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
- <meta property="og:image:alt" content="Papra Search Parser - Advanced query parser for TypeScript" />
+ <meta
+ property="og:image:alt"
+ content="Papra Search Parser - Advanced query parser for TypeScript"
+ />
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image" />
@@ -40,7 +44,10 @@ const meta = {
<meta name="twitter:description" content={meta.description} />
<meta name="twitter:creator" content="@cthmsst" />
<meta name="twitter:image" content="https://search-parser.papra.app/og-image.png" />
- <meta name="twitter:image:alt" content="Papra Search Parser - Advanced query parser for TypeScript" />
+ <meta
+ name="twitter:image:alt"
+ content="Papra Search Parser - Advanced query parser for TypeScript"
+ />
<!-- Structured Data -->
<script type="application/ld+json">
@@ -66,18 +73,38 @@ const meta = {
<body class="bg-background font-sans text-foreground min-h-screen pt-12 sm:pt-18 flex flex-col">
<main class="mx-auto max-w-3xl px-6 flex-1">
<div class="flex items-center gap-2 justify-between flex-wrap">
- <h1 class="text-3xl sm:text-4xl font-light">@papra/<span class="text-primary font-semibold">search-parser</span></h1>
+ <h1 class="text-3xl sm:text-4xl font-light">
+ @papra/<span class="text-primary font-semibold">search-parser</span>
+ </h1>
<div class="flex items-center gap-2">
- <a class="transition-colors hover:text-primary" href="https://github.com/papra-hq/papra/tree/main/packages/search-parser" target="_blank" rel="noopener noreferrer" title="GitHub Repository">
+ <a
+ class="transition-colors hover:text-primary"
+ href="https://github.com/papra-hq/papra/tree/main/packages/search-parser"
+ target="_blank"
+ rel="noopener noreferrer"
+ title="GitHub Repository"
+ >
<div class="i-tabler-brand-github size-7" aria-label="GitHub"></div>
</a>
- <a class="transition-colors hover:text-primary" href="https://github.com/sponsors/papra-hq" target="_blank" rel="noopener noreferrer" title="Sponsor the project">
+ <a
+ class="transition-colors hover:text-primary"
+ href="https://github.com/sponsors/papra-hq"
+ target="_blank"
+ rel="noopener noreferrer"
+ title="Sponsor the project"
+ >
<div class="i-tabler-pig-money size-7" aria-label="Sponsor"></div>
</a>
- <a class="transition-colors hover:text-primary" href="https://www.npmjs.com/package/@papra/search-parser" target="_blank" rel="noopener noreferrer" title="NPM Package">
+ <a
+ class="transition-colors hover:text-primary"
+ href="https://www.npmjs.com/package/@papra/search-parser"
+ target="_blank"
+ rel="noopener noreferrer"
+ title="NPM Package"
+ >
<div class="i-tabler-brand-npm size-7" aria-label="NPM"></div>
</a>
</div>
@@ -91,30 +118,46 @@ const meta = {
<div class="bg-#171717 text-background mt-12 sm:mt-20">
<div class="mx-auto max-w-3xl px-6 py-12">
<p class="text-base max-w-xl lh-normal">
- Made with <span class="i-tabler-heart size-5 text-primary inline-block align-middle"></span> by <a
+ Made with{' '}
+ <span class="i-tabler-heart size-5 text-primary inline-block align-middle"></span> by{' '}
+ <a
class="text-primary hover:underline"
href="https://corentin.tech"
target="_blank"
rel="noopener noreferrer"
- >
+ >
Corentin Thomasset
- </a> initially for <a class="text-primary hover:underline" href="https://papra.app" target="_blank" rel="noopener noreferrer">Papra</a>.
+ </a>{' '}
+ initially for{' '}
+ <a
+ class="text-primary hover:underline"
+ href="https://papra.app"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ Papra
+ </a>
+ .
</p>
<p>
- Use it in your project, it's <a
+ Use it in your project, it's{' '}
+ <a
class="text-primary hover:underline"
href="https://github.com/papra-hq/papra/tree/main/packages/search-parser/LICENSE"
target="_blank"
rel="noopener noreferrer"
- >MIT licensed</a
- >: <span class="bg-background/10 font-mono px-2 py-1 rounded-md text-sm">pnpm i @papra/search-parser</span>
+ >
+ MIT licensed
+ </a>
+ :{' '}
+ <span class="bg-background/10 font-mono px-2 py-1 rounded-md text-sm">
+ pnpm i @papra/search-parser
+ </span>
</p>
<hr class="border-muted my-6" />
- <p>
- © {new Date().getFullYear()} Corentin Thomasset. All rights reserved.
- </p>
+ <p>© {new Date().getFullYear()} Corentin Thomasset. All rights reserved.</p>
</div>
</div>
</body>
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f11ee901..b5286423 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -234,6 +234,9 @@ importers:
.:
devDependencies:
+ '@astrojs/compiler-rs':
+ specifier: 0.5.2
+ version: 0.5.2
'@changesets/changelog-github':
specifier: 1.0.0
version: 1.0.0
@@ -241,14 +244,14 @@ importers:
specifier: 3.0.1
version: 3.0.1
oxfmt:
- specifier: 0.68.0
- version: 0.68.0
+ specifier: 0.74.0
+ version: 0.74.0(@astrojs/[email protected])
oxlint:
- specifier: 1.83.0
- version: 1.83.0([email protected])
+ specifier: 1.89.0
+ version: 1.89.0([email protected])
oxlint-tsgolint:
- specifier: 7.0.2001
- version: 7.0.2001
+ specifier: 7.0.2004
+ version: 7.0.2004
vitest:
specifier: 'catalog:'
@@ -260,13 +263,13 @@ importers:
'@astrojs/starlight':
specifier: ^0.41.1
'@valibot/to-json-schema':
specifier: ^1.6.0
astro:
specifier: 'catalog:'
sharp:
specifier: 'catalog:'
version: 0.35.4(@types/[email protected])
@@ -275,10 +278,10 @@ importers:
version: 3.21.0
starlight-links-validator:
specifier: ^0.25.1
starlight-theme-rapide:
specifier: ^0.5.2
tailwind-merge:
specifier: ^2.6.0
version: 2.6.0
@@ -801,7 +804,7 @@ importers:
'@astrojs/cloudflare':
specifier: ^14.0.1
'@astrojs/rss':
specifier: ^4.0.18
version: 4.0.19
@@ -819,13 +822,13 @@ importers:
version: 1.3.0
astro:
specifier: 'catalog:'
astro-capo:
specifier: ^0.0.1
astro-expressive-code:
specifier: ^0.44.0
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -841,7 +844,7 @@ importers:
devDependencies:
'@astrojs/mdx':
specifier: 7.0.0
'@iconify-json/tabler':
specifier: 'catalog:'
version: 1.2.35
@@ -1023,7 +1026,7 @@ importers:
version: link:..
astro:
specifier: 'catalog:'
shiki:
specifier: ^3.4.2
version: 3.21.0
@@ -1118,18 +1121,36 @@ packages:
astro: ^7.0.0-alpha.2
wrangler: ^4.83.0
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-kckIxon6Rm/Bxzh9mGPYpRRqUbToUQoHptCmpMmE+Yt0Xumq8CqrKUidyYhrBsrHVO7bxuRzzWUUqvpf+iYceQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [android]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-ZVUwHundaQyFNjE6uoa0usaC0WOCitDCLS/4mdb4rOiJXwVUuKJBMxI5WMzXLWmamsXtK/Z//ifLXvV5Yeh4Hw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-1ZG5Ar3dD8HtodX9XH1mRmE0qBXZlvjYXSFfpgFwocqfWnvhFuqtGUNseL8wgfImiRMztIjpQqlogQFQQtgiag==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [darwin]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-FI6G8AY8u6fR1SI/QRR5yGMwtvZwP34CDmZpZ5HwJGa50UM1VISTLhqkhV4a476pmgd25X1Aur2dqw6hUnrlKA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-+kl35S7hiHJ2cb7eujwEsPFYYuSgE11uEE2Z20lAJ+undpgulMcW+weQqFPOSSZccEKHOiLIY+kQHkb4e4092w==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [darwin]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-lB9gLFJK7m82EnjaU8nlRBEfcwGNeHidW3sSjODTUjMNaoewVuUz9fwwdY5M4jiSXIqWLH3yl6TX8FTDKA74Sw==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -1137,6 +1158,13 @@ packages:
os: [linux]
libc: [glibc]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-BqlR0EHNQLPLwgL9+xogjsAc7zGf0cHho2CPdhv0P1yqbVMwGVaGAqrANP6VYAXCqSC43AF4Czcxc2n+oqdesg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-HPbvWqbxFxyaoQJhLxCaSjtYBx9KBo7JGVzEFZCmMl968a2PsSH0UfiODYgYPXofTOIsIH2aoCcrHXML0IA3ig==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -1144,6 +1172,13 @@ packages:
os: [linux]
libc: [musl]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-GRGyby3AZWw5d6JQzidyxPyvGgHWsSusrpgKyFVpDTKctABF7L3Pd5V1cRJbV36/rcu+Eh292/wL7pF7MkmGkQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-tQKolMxoJ/+0AmLWm1PmJ/i+z3i10ZU1bNuVjEDulCf48azEMtUNjTZgHJ5MPtpYRNc7dlETr8QujUfduzoC7Q==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -1151,6 +1186,13 @@ packages:
os: [linux]
libc: [glibc]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-9XAqGTMQAtIslMsjK3xdyY6OI9d59OZqcLBB6pvD/DcoR0daYswfrKx2azdDERDY4AqAnWPC7odVM1BmxYv3Vw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-5v5YymudsxMHp3NBLCS8BUlu5CRqeLtWD9cKS/4nIhIEHCbpz9okmVV6I0HWqmBAPhWYcDa3vw/vltYPrOQCTA==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -1158,31 +1200,63 @@ packages:
os: [linux]
libc: [musl]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-jOViewGeTh9bSfS8vK72ECxoy2yvmA+Pd/ZcEvBI5c7+7IcfHwZ5qA4L9fRYuOhSrAifvQ2dV4vm1XAtloaWBw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-m/phuH3x3PREvv1OnkM44NoPh4MatUadix1fB1u5SvMLCyDTUZykDJbKnWf1cjnYmHdlB8HcjTjl6JrCqAIXcw==}
engines: {node: '>=14.0.0'}
cpu: [wasm32]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-Z7p64doar1uvR5C9Xs6j1CV9lGlPVQX7OQ2aAtZ/xKC5aGS6GB13nyc2UfQXTQLvZrvVwsyaflTQy6ziY5Bekw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [wasm32]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-B9zYf3okEY83kM8gydlpH2BHP00w4ifxPqlYlWrgTwuD6wnkrJDCwBlgy1q31cERjCJRXN1lrE2VmkLvFjv/6g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-Tr13bh+ahTWsjXjzctK7pFpWV+dUU4FtBfETlR7gO+ueex0F+RDch7eRr0YfKysaRhk9tWm14lsCJ5uWyFPNHQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [win32]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-zB0Nrv0dGc0zZWPGDRmmETTPhDRqyZjAjk+gWMlVrJX5U89obpB3VUUE1ZiHxOCN5LQojeLK6O8L/dnoHolvNQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-SfKkI+jOQYLh6wojPvVPV0lFfQnxisweN9B+qCzRvZp7DHAuGif8Y0WcC5PUgN4jb8VKy57LggQDtggR46Du1g==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [win32]
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-x2RjDUuWfwLNtc3mjAdSRInwqh/rqbLar9cm/5FOMbHvmYZB7yfKewzSclAxWjIZsypJDXv1lhaP2WG+P8TK3g==}
engines: {node: ^20.19.0 || >=22.12.0}
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-lEn76+0JcMQ5RDXU0wSMWJg2ZppiZvSULpghC29cfv4o9bhvWFDbQjsCtvjjXN9iVLFQ7fL3wTR2L2UU13mP8g==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-koVikeon1kreEy+/JzLQRy3vzHHQVOjycs4degg4vFufKApZOwMZvSSAEztYNhmcQVfNVsVZZI4cEge3cexAbQ==}
engines: {node: '>=22.12.0'}
+ '@astrojs/[email protected]':
+ resolution: {integrity: sha512-IvwYLB8t1M86rKO4oPdBi9GP4gzXcgrVlNgocjwos1jeeUuEIV8d9Crn1PvYD/5IKteWOxpIHomf7e8iYlkE+Q==}
+ engines: {node: '>=22.12.0'}
+
'@astrojs/[email protected]':
resolution: {integrity: sha512-f3FN83d2G/v32ipNClRKgYv30onQlMZX1vCeZMjPsMMPl1mDpmbl0+N5BYo4S/ofzqJyS5hvwacEo0CCVDn/Qg==}
@@ -2355,6 +2429,9 @@ packages:
'@emnapi/[email protected]':
resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==}
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==}
+
'@emnapi/[email protected]':
resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==}
@@ -2364,6 +2441,9 @@ packages:
'@emnapi/[email protected]':
resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==}
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==}
+
'@esbuild-kit/[email protected]':
resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==}
deprecated: 'Merged into tsx: https://tsx.hirok.io'
@@ -3845,6 +3925,13 @@ packages:
'@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4
'@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-HshSvXzmBxNzqejd3k/KemgQ3hdREUYFRRrgxOZ+gPljDIsO2SDZrVZMd4Z/HsxudQbE62OVyVFE8z9BCurfjA==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
+ peerDependencies:
+ '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4
+ '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4
+
'@neon-rs/[email protected]':
resolution: {integrity: sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==}
@@ -3919,276 +4006,276 @@ packages:
'@oxc-project/[email protected]':
resolution: {integrity: sha512-Efcc+iF0j3Bf67YjEqIqWXbX5XddXoK/Mw4K1/JuXwRCZ8N16VR7iT23nlCc9XrveFVh/E5Rqs2StT0V8v9LdA==}
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-dhfYPbzv/h9JgHjNkl2R6sOjUfxDyLGOZVb3g8/ScaTNwwJcYgmHh8kcYFDUhinuy1QAoANCWUvw1jlk+z6gAg==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-xxQwrf5EPI5zxvuCTW8r6tzCTjPQ+h6+HqJ0iRKRy2zS1yBllt/xLVjoIyUc+FnR7g0a5g1SZv2yyDYhTItLbA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [android]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-v3Njdi6qY0O/5eGfg01ww2w6gTn2mUvZ72Bnx1/UN53A9wruh3Nk6otc3WkgJLkXD4Qgz1SOcVQieH1oD03V9Q==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-FJW3sATVvrWbV64al8xofCPZj4500Z/1W0ad7Tg1rcCUyh0EMbuSrsf3jsZS7CEbwQ5fQ0mRhmkc129GFgofSQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-ei4MCMzHFREmZwPJ7KuWUB4kBuHdsgDrnXGJVcEAopU7fj7S42I8BChdFILWdHvhFqR08FLJtOfbZIr2CDw0cA==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-TfmNKBD30dGyMu9GCLiaw2rt/z7fms9LS+5cKcNOyWst0QgAs8oZs6wPxMbVaaDVE0/PCdCosgWM1vbu6f5NUg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-UrKgzZxYhwB9DSvTX+vdgl9M32wLUNKJcAKIoiyx/Kzn/zveqi7W6kYVcRroFMhS3Kwz0KhTk3WBeSuQn4YCTg==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-5Usf8+DfC4Q3o/MD8FkN47GrI6y0KbhQ4KhZ2HGzMZcXjcW1AeldwbUn51aKih+1TVuJFF9qkNm6X1nzm6NYng==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-6jrEKgpJbilM1QaRv7hEtKXr4p4AK4jvvyOtajwyhu0kOz3e0O7OLnSTk6tBotRqCcUC4ehZRJ1Zx+Y99wieLw==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-eL+1O3gykw1XihbZh2MRAciQvU2988LByrnjhyo/dmNG74X4oZ7XzigRoWPRFLfJCp8hzRkp/LbEhwe7uuT2eA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-YOIVnKOBaLeGullskS179N12hjSAdFYnzLjOaKiLhAKNWgnShq9w4xRdtmUm6BlnP65l2/EA9Aw/KlftNxDM7Q==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-Xt0QtO2hJ4stnul8IL4LJGVLyp0xnc6ccN9fZ30yuubv8FWSRYxWwd1Za62KsEqAfmPSazoS/cLSUUJpja6npA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-xW5XoEHVNqydPBv2KXvk9lmEzyAlOQHVEazKoXUuAacqekjya+OdiaFjjEBl0oJD02raG8g3TRl9OVCh9PDIHA==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-/4wYQ0gZl4vUR0QoBTGaay73FmQ1GAjUa9z9101TR2xbGNrg4a+grazlR0yzEOe3/E+PJr5BGfj66MMzm/54vg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-QCvYwVVQieu6oyJglAgV9vH/YMDxZyR4cwVSYtoq9oOXd5N+D3TDUBjNwxFrLn5AdcJZOcvn/7IB17vJGp+2Og==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-846bKzF+HJd+JkOFh3rxzmYvSq4Cm+GMT+p+mW7S13ZYo6GAAGv8bL8cAOi/XcdeMqxEJDCIMTVQLVBXHMCdig==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-4TVz5iFQ8ndrHnhX50UXiz9BIWAtUSOHJ6Nus4qWFfJBXq/Ed/krXbF/ehJu42BXM5tIvBs99jNIM22s9agY5A==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-nI5FJwZ4Flo6CBdscpwxymZXxO3m3IErQJX55ZS6h+ObfGXu8FostL85L/RWPFaCLnIVE4/WfLw+2q8XvVEeUA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-qLe3ao0RP84bnPxBvRI+GnlK/jybo538NWu0Xrm+zYeTmJtpzqLhnnd5BH21NafqKnplbGZjtN1cnrOlWF73lw==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-BoQYKuqUdsKAFAkK6DLBvkdv4+t0hppSm79sB0wIcE2o/eOwNj+6Z3OlKY4q3Eta/tlssP65FaS9vHn8TeF7vQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
libc: [glibc]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-Yvyl7a6gbb0vM6r925KW2dO+/CmXySO5TVbcX7o/uZJ+d108HFOG0TxIyHApmn5USuj5mhDPxzhiVwOlGP7uSA==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-FSroRrM12+jCdSQklF9aOxsKpI6wFs4ZCo/1cSYG80RWZS6z4LV+l9tXRMT8lDGu+yohIZBwi9M76FzGPFDE2A==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [glibc]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-mJlFuFVCxzrYM5sFStN433D/s/mb6Wq4aCQAM02vs/OudHywnaSAd2rb1vlYUJtqdYIciJtiasuxvfbYkv5fLg==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-0VLQD0dhGBLY9Ik/w+otMvD81D0YXi4VDwql65macV+O9UzmSWmUr6CKf+dMtysDeC0PnG3y6kBkRO08BJx52g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [musl]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-RlfSg++qs1hbKltRR6lYvV9EoI3MdlfSQD9w1hdHVYjHqjIn1tkH4FWOpMSmjKGN20zr+nI+W9o4ARogCDudGQ==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-6X7BbZNz34+OHM6Oqjf6TRcUyRn6aRcB4VtIDZAF/uQRyeVhg+G2hv6MlMvmnRekVSyTJ/8rG/u8W2dRFW6glg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
libc: [glibc]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-nyzRB9U+dlYUKu3pMo3afHzZBUv/oTHZMG36ZfJViNVfOIzp70Q4GS8FFRGgYJ/p0zcyDCgpBvYISOdJOMh+jQ==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-4kYIQK53yJXrxwxSzx8H2bojlf6/KezLGYLRXzV9QCCkoiCsvBTCid9Bg83dUPTLPa3g9K0730f6MKDbck1+OA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-iCx3sbZRIvGrL1RafphEiUKBaW1lc0/tAjKOIB/Wjw2+STRBEdu5+fH1Gc1faEWEmc2k5Ks4iUUV54Zd5C9a1A==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-MfWz4wDREjp/JQDmuxtKieix4FHGa1z5rBvB3betdcPwZvf5fqeQrlCm1mmoyuUVQOh9Pt3M61HwN94kJCxw7Q==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-x2X5AZez7OgyLLFpwIgItoXBUqudDM7yiaTsxv8R8vKQ6e81l0jVw0NFeUCXzcl1sAJq8h+tC8N4mY8EiMeL4w==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-6rmAApkq5s1kbDjvNI6Nl5A+JqQkLORb2sR941pf5HWsrd01WGKyagK/B4vX9+kh1FfvRkNgEu59FHvVk4H8cQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-AHVPjXkenLPQUh6kB8zSC8pX2ct9r4T1Edk9r/RNJyov6wPsS5uAfYtipwG4chn6+3bPFG5rI/3DxEeH8vib1w==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-+5SpRUnZNGeXTyumHnpHa791tQtt04qZs076WT8eTcGF2OJ631VLnf7S0kQSPuDG+PtJM0phadEB2WAr5n1w9g==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-n09SjEk5VH7z8Hl4WVP7hho+cCwGViENkQFiM45vbW85dJd7kEhWaHRUobaPzEmrWyu6uumd4EuNfNyDKLtzDA==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-1Fg+wYBO3Dsti1QX+/6EYHjeQzLC84tLOAqPu/r7ah3UJlUs9C/DB703Ay9Vcg+8VMzqZA2P5VGhzJraVUD4OQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ia32]
os: [win32]
- '@oxfmt/[email protected]':
- resolution: {integrity: sha512-gPe+dJLXaPuWPWqlpklDAJp0k+K9KhQPYiQLHfb+i2rmFuUGfJ/5Qlj6tr1mO6of5g0DiLjG/XCFHIaPhotqqA==}
+ '@oxfmt/[email protected]':
+ resolution: {integrity: sha512-y9jXUgPBm2TZIWbQhMYRRYAQM57+r4fbykgc+j24ICIIZl+pcuoNhnq1CRGm3oFiHnEUnZO00qOtSPGQdJ2ziQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-CUJEdbSZ54+Xy9OXqOhWLTKZKV0BBiV7C2i/ygyVmXtkUNXx5YCzN8DpSSshTAKktoL7S+tnQ/ftFG/i7X896w==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-uJk3ttju7Lz+Nv8WG4CsLyewoL1qf/Ny8S8OksJ7Bm/F14Tc9gMfW6arM1PCc57IzH/X/I79YsCWTgxX1FKibQ==}
cpu: [arm64]
os: [darwin]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-pXfBb5BqONCcgrXQNUZWXgiYmRSWJzd97S8i41VVOh6ut0tyo+cJ5FKFpczDHxiVNfj/3e7c9B4MtztNdpIVCw==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-0BFfHTzDxNDFPcu0UZAXT6CyCJHAXM0dZveyDb4KEHa2qF/DSnOKOrmvK/wFuFol9kvijbGM9JfuOsor+zWXRw==}
cpu: [x64]
os: [darwin]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-roP7zujb/QDPzDwEKsFFpzNHHy91/Y7oX9vQXk78ekyZtcQj1QXDIMH33gjDdHBfRl4K9pZ36xhRgrP4Zr+R8A==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-TAehQc+qdRXyDN3nl/r/3/oPrBVrbtrDeGMkFyG6mf+XphpoJ2lAMVFLclyvrVZCw02RbKROjyw8h72XwQQHcw==}
cpu: [arm64]
os: [linux]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-UDezNqdECVmngu2TPnjaS1YoAmcTaBoI5lV9vk3VahBxoi+I5r9k3iJTT7qZoYWOXTD/7T7bNcwRgrocR6BscQ==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-LPunZvm6ZbWPfHMAyfZf9ci3HHvNEzLejO8zdqO3GoVGoSEHqqufHUD7+OgeatVSaJP7uXDJ2HaNOHIoH7go4Q==}
cpu: [x64]
os: [linux]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-uJZhqB6pdXLuN+AD1F5082byyQti/NPmJA77GtcFlmT2HzRelqbNls3SaIqxpjdFgvSBF9g0yOKGBkGFg7kX8Q==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-FVWplzDImWhiuawnIZVETaQecv4GWom6Jv4Fx2xj7hhXXDZ5okEgiw1gTCImHTIQsi2ycC5oSxVwrn69bMh7iw==}
cpu: [arm64]
os: [win32]
- '@oxlint-tsgolint/[email protected]':
- resolution: {integrity: sha512-FkDRm8hx9OwzGQqyWG1tO5QrTLRApff9DzSgpz9QZau37BR8d1VYKOxMLGf6shPZntJFoTwIIJYT68VndYDCog==}
+ '@oxlint-tsgolint/[email protected]':
+ resolution: {integrity: sha512-7PsxuUx11Ry9DYTWcljTzRbmZY9B6O9fFFfZV+aodQEMy6pfRT3fhoQRv9PtGN/89z1pPz3nFKrsFm6WqNtX7w==}
cpu: [x64]
os: [win32]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-0yGY24EwsLk5YDe6F+VkmZyRHSwJDALa3nIrPpq7FXmp2lV2d0TzvBCGeZk+wgiULRGr5blhyr4QMp5KCXJUqA==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-Pflpba5F3gRAQ12sWglRxvWTHEdAusNDvmi4Y5N1T5SY1AGkM7AixOnET8qkrnLJ/F32qAlNokO6eCknT8tmnw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [android]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-hHfJ0vc17A4iUjH5p9BsTUPYbYRNxGpvD2lbu1aBRk54bzNIx9o5TtYF39QPZcV95DagZd+4DEAw2RH3G2ZsMg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-dYmyD1x7LaPlb79vZWUcpTShk8dI9z1I+IubtqrBxWNJaDhQdPHwcsvg7q5StTU4xWyd9AwPfLaTYFZY8NZgtQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [android]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-hsOjYjszLb/3zym/TkzUMPAoQlTJcuzSyEPOAyA+skXJIX9M0o+4JfOtqopX/Vf4hSLrJ98j0nvFo23gzk8auQ==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-Z/oxOPiIqiS7fItRdxaaOEC+6GD3OpGi0IxoR0dMefzQHolsKLzScw2DNcu/5gUPok3tv+G9mslvYB5bo3i0qg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [darwin]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-mjh5oH2EA+wl5yRJYT9K9G61O2zFlpuv+yf2JwZOi0+dq2FnTUtm1h8i+5Ik0fXPWIu/k84I1psZR9aQsLAnyA==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-eAjTkHSjAxrdCPJxO6y5sPQL5pYLKb2kvxZz9UU7tXnOZk9I/HLtkvx9S7GHY883k+AmL/eC7mqFt+w7WCwk0w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [darwin]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-fNHr64/YaO8YssuoDVC8+F4Uk5enR86q5uxfHkQrjAPs1dbAILOrD2uaud+J7MO8Fx774g44ERLD0IGIvZE48w==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-0lNCA9Tl1n1FKpqy2/9ckp0kIuSrtJ/l9bMRgaEhOtM7TsOHshFuwOcvW8oA9teXLMOJT61LjEKWiaHDFGxF/w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [freebsd]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-Qpwy3zzAwMj+8/lyYItHmkSMwbkprFNWTK7jPYDOxSyxEhaSLOWYUTCMkjF334J8/WD0nznCCsoBbIH6hpsuIw==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-OTFEvi9W+JczaZD1Caj17SGCoW8H7TE+fvx0D7ATEWa1Lohn91UMxFQ6r145SiGy/yCxeIwptMys/RAM7gSVSQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-s+BirYLFq7JL2k9sP0XI3ZXJ9dYvJ8sX3jLCLoag7tt+zrSHpZxP0jqznfL+Gdgwu7ay0dYgGYJXrQvq3iWloA==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-fRxgNHvBLswj6MrhW2uBq5UDhPRQlCbHeq/Nf8yuG9zOxhDsXqX/mi2PX1axgsQxMm88el7HLiJAzglAnflYxw==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm]
os: [linux]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-7lihXt3vKr+GIyapNbHrnFHm/biiW30le6Zv/DExbAFPF6YwCQXVFlONPFehxs0CpGO4CBfYPM9rdDT+XMoIlg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-v9ENzHvwrQoYSWTtviH1pOYc7R9UovDxVofnck50cNmPihRRTcrg5X0UlRbLOZ7IVtxPOlh2hb7kDO+FpE8SfQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-q63JalLYVkZiZvls1z3PPUnpmQluOMXp0khqQMznCeAPLGydfNY8JhvuA4WlK57JfrvikU8wB5lPVveqpIXvew==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-vfffe8mQ484AzVadlUOFpgL+JDwhvs9hrzxTgQP1FVfi4ZEUUYeffXlzC9dFV7Dgnu5s/KrNKvfmG6HxBd/ISQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-krQmDF+dRbxvdqVPV88ZuOoPPu8X5BuqDA8Hd+qcS4YMRQCb+nexA57DazgGsc/rGdKBe3QmV0mnv0bdpW/p5g==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-Buonlp4hVS7RGNP5M7bPpGNQrenyzA2C64JcO/oz9C1c6dGOXJ7VEAnaiAMY7voou0JYyCJdvDVlFQc5DZX3DQ==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ppc64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-MmOl8Y6txEAXZU1RG8Rr264jQ6D7VPmqFsU/45x/FeWsGe32hklTqGrLE6UxHzp5Rjt0wP+20tY8YXKgSFB3mw==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-1eVwJJrJ3lYIPT+cm7BcBBZZXY6IQZP/oyonaruTor/MrVyWOpvnwt1oD5CLdsHg5aVBIxXodQSvt+1gK6ck5w==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-u1rMymh0W3JZkq370kzQsYPULGWqhE09pZRqnZvUSoYaI9pVO5yVX+iYIslmWuEgwuzH9YAaOsScJiobWCHoOw==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-fRQQsKUGShdEL5Fl9o9uhj3grkZbeXKLv0icQ5tspUCNYSDy8wzzEcP1WC2bKdTQ0rSszbKlO3iiHORxV22DLg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [riscv64]
os: [linux]
libc: [musl]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-y0zK3HNwGysu7rqtE+BQG/d0bx5gh/KwlOtghN8oWeK1KcWzeaLqtZrbm8owqdma1lFyrce/hTO5ismuNu+INQ==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-dEtYjIy6+fHcjKklsmtmMkZRhwHr2UbzjmpvuPtQYSeN9awQ2hx5JLms5Wvri+8P/NZtD8v5hfgHALUql+/Ycg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [s390x]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-rS5gM0NgD7ngmuJmbIehsidtrOwKkLFwCQbKEeb9KuyQrrWNq5Zkn0uV6AYdXOMJ0grrWEiLwBuvMxt8w5vsNw==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-hqjwIj5KOYM8Wjef/p7IruNi1iByLhSzbMBk62y22P/E8q7Jj0Pp+DeUTKTRYyZYCDtU1wEGlnWOnttHbyNIww==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-W2IH4EtpcPaWcvNGCA95YoDg4vxqE/ZiPCi3arrxEEpsK7+JQN9WYwrlYFx9pcdP6KPXqRqkv3zdQPHcx7b6YQ==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-iAQN3e6o9UgUCcdGwqRx/jYcKbG3HK7ur3rH6lTqVcQeNGZ85AeWIg6cgn/edwFQ0ofEZZItMwkzyCVTahnvEA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [linux]
libc: [musl]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-6LyKkUyoajssTPLlZmDbZIbu4IZ5B4bGuRUnBgCGpEvHP3FQMaYITncHA/unPUo7q+Z+pIu2HhdkQ+8d1SG7iA==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-MNxjEByz3N/7Q4qFQuPWvc14TpN9LoD3pECEDsJTZbP/wyB7U+hduUXEl7QAbbgVezFwsb9sWtNUO6XVBndOhg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [openharmony]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-Uz/fObEtF0jmNJQJ8CGRBKfefYstS0/wjD3s6IGzP8nUwsJykHQJBiN3npHwKiGRGn/vvBEgNr4B3cCzmmatvg==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-xxe+i9wfuFso/VnoL4mfj0UlzE+cfCFiUB06vkXCMyQdgVVmItF5FfAF4tATAktSU6uHruWR+FjqvAT9cHZZzg==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [arm64]
os: [win32]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-u7XcvPW6Bk58tY5iWs2ESb0vJjoE/kuSpHxopbwp/p3ZtWVQXZ6wor5w3ssVTHOqd/v8b+QdhSFWQ4grEUNWpA==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-saFy07cO94E664glwgLmKLI40HgTL1PY86y4T6+ud4niX4H0Kdqjcmqmjps7mQNdBytV5guGbXDdyQtRfeLbLA==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [ia32]
os: [win32]
- '@oxlint/[email protected]':
- resolution: {integrity: sha512-LZRubd7ph13QmAg4fFecTYVZkiYbROR2Htaxh/ufWRkDhPOm2wrwaEYR89e0YpPFD3dqBrPoxS7myBw5hmYA7Q==}
+ '@oxlint/[email protected]':
+ resolution: {integrity: sha512-hLFJ/o0f/dTJh/EW0vmcbREYSQO9tYgfiAAlsOkiLFiJuRRWvYtFELUXN5o2ijpSo/tlO1n+YlWN58tZwPG18A==}
engines: {node: ^20.19.0 || >=22.12.0}
cpu: [x64]
os: [win32]
@@ -9097,29 +9184,32 @@ packages:
resolution: {integrity: sha512-9tXIMPvjZ7hPTbk8DFq1f7Kow/HU/pQYB60JbNq+QnGwcyhWVZaQ4hM9zQDEsPxw/muLpgiHSaumUZxCAmod/w==}
engines: {node: '>=10'}
- resolution: {integrity: sha512-Z0XMofcXCGUXbcpBHnWyUiX93BGiw1B+lcHNbQDWEtOhX06ewoFfu4zXkyiLhRrNnMq0twqXRHUcJetf+GsiQQ==}
+ resolution: {integrity: sha512-G4OP7FgwGYZR5ttRpCOOfJdyRsSyvtn34vSXnjDq6Oqed5Dufg5mB44mank+51nAdHOKuTJ0lj0mksY7L+N61A==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
peerDependencies:
+ '@astrojs/compiler-rs': ^0.4.0 || ^0.5.0
svelte: ^5.0.0
vite-plus: '*'
peerDependenciesMeta:
+ '@astrojs/compiler-rs':
+ optional: true
svelte:
optional: true
vite-plus:
optional: true
- resolution: {integrity: sha512-KjK/XLcXr1DSyonKhsuFqJRiuKqcyG9j3LJ8nkOsrLzGvodBPqzHOKauy10asLMDI0sUpvb+1sxlzff3udZvfg==}
+ resolution: {integrity: sha512-vQ9WDF3fiZJvRdSDosNOflerOCOpwol6vWzVDxW76RcU19cjTh7engvkHLvmv+tzedR8fAiJUVUGr6IVZdkzXQ==}
hasBin: true
- resolution: {integrity: sha512-cyDzSzaw3uzP0TeCeq3lLRPPoaUxkbB4ZOXj+kn+5r+BX9V+4bNVGk9lxer+WrgcpebH4JxLlJ3KQjveVztOLQ==}
+ resolution: {integrity: sha512-a25hkfo61okGPvJz432fRIPoxlKtNnOVy9w4rzrmGgNm4iVTPwpSQlmdqNWnp6p9QyyPVfAZRgnf5XvSBZFk/A==}
engines: {node: ^20.19.0 || >=22.12.0}
hasBin: true
peerDependencies:
- oxlint-tsgolint: '>=7.0.2001'
+ oxlint-tsgolint: '>=7.0.2003'
vite-plus: '*'
peerDependenciesMeta:
oxlint-tsgolint:
@@ -10409,8 +10499,8 @@ packages:
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
engines: {node: '>=12.0.0'}
- resolution: {integrity: sha512-9YodfrxS9g9IbFr/KOjE5bAeJ0p61n3bW6mqvy0jtoeKd1kTW1Cxm0oulm6KX2lyM9Gl6WIe8nEbY7LWv5ZJww==}
+ resolution: {integrity: sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ==}
engines: {node: ^20.0.0 || >=22.0.0}
@@ -11460,12 +11550,12 @@ snapshots:
- prettier
- prettier-plugin-astro
dependencies:
'@astrojs/internal-helpers': 0.10.0
'@astrojs/underscore-redirects': 1.0.3
piccolore: 0.1.3
wrangler: 4.105.0
@@ -11486,39 +11576,73 @@ snapshots:
- workerd
- yaml
+ '@astrojs/[email protected]':
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
dependencies:
- '@napi-rs/wasm-runtime': 1.2.3(@emnapi/[email protected])(@emnapi/[email protected])
+ '@napi-rs/wasm-runtime': 1.2.3(@emnapi/[email protected])(@emnapi/[email protected])
transitivePeerDependencies:
- '@emnapi/core'
- '@emnapi/runtime'
optional: true
+ '@astrojs/[email protected]':
+ dependencies:
+ '@emnapi/core': 1.11.3
+ '@emnapi/runtime': 1.11.3
+ '@napi-rs/wasm-runtime': 1.2.5(@emnapi/[email protected])(@emnapi/[email protected])
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
'@astrojs/[email protected]':
optional: true
+ '@astrojs/[email protected]':
+ optional: true
+
optionalDependencies:
'@astrojs/compiler-binding-darwin-arm64': 0.4.0
'@astrojs/compiler-binding-darwin-x64': 0.4.0
@@ -11526,20 +11650,37 @@ snapshots:
'@astrojs/compiler-binding-linux-arm64-musl': 0.4.0
'@astrojs/compiler-binding-linux-x64-gnu': 0.4.0
'@astrojs/compiler-binding-linux-x64-musl': 0.4.0
- '@astrojs/compiler-binding-wasm32-wasi': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
+ '@astrojs/compiler-binding-wasm32-wasi': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
'@astrojs/compiler-binding-win32-arm64-msvc': 0.4.0
'@astrojs/compiler-binding-win32-x64-msvc': 0.4.0
transitivePeerDependencies:
- '@emnapi/core'
- '@emnapi/runtime'
+ '@astrojs/[email protected]':
+ optionalDependencies:
+ '@astrojs/compiler-binding-android-arm64': 0.5.2
+ '@astrojs/compiler-binding-darwin-arm64': 0.5.2
+ '@astrojs/compiler-binding-darwin-x64': 0.5.2
+ '@astrojs/compiler-binding-linux-arm64-gnu': 0.5.2
+ '@astrojs/compiler-binding-linux-arm64-musl': 0.5.2
+ '@astrojs/compiler-binding-linux-x64-gnu': 0.5.2
+ '@astrojs/compiler-binding-linux-x64-musl': 0.5.2
+ '@astrojs/compiler-binding-wasm32-wasi': 0.5.2
+ '@astrojs/compiler-binding-win32-arm64-msvc': 0.5.2
+ '@astrojs/compiler-binding-win32-x64-msvc': 0.5.2
+
dependencies:
- '@astrojs/compiler-binding': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
+ '@astrojs/compiler-binding': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
transitivePeerDependencies:
- '@emnapi/core'
- '@emnapi/runtime'
+ '@astrojs/[email protected]':
+ dependencies:
+ '@astrojs/compiler-binding': 0.5.2
+
'@astrojs/[email protected]': {}
'@astrojs/[email protected]':
@@ -11625,13 +11766,13 @@ snapshots:
github-slugger: 2.0.0
satteri: 0.10.5
dependencies:
'@astrojs/internal-helpers': 0.10.0
'@astrojs/markdown-remark': 7.2.0([email protected])
'@mdx-js/mdx': 3.1.1([email protected])
acorn: 8.17.0
es-module-lexer: 2.1.0
estree-util-visit: 2.0.0
hast-util-to-html: 9.0.5
@@ -11647,13 +11788,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@astrojs/internal-helpers': 0.10.0
'@astrojs/markdown-remark': 7.2.0([email protected])
'@mdx-js/mdx': 3.1.1([email protected])
acorn: 8.17.0
es-module-lexer: 2.1.0
estree-util-visit: 2.0.0
hast-util-to-html: 9.0.5
@@ -11727,17 +11868,17 @@ snapshots:
- tsx
- yaml
dependencies:
'@astrojs/markdown-satteri': 0.3.2
'@astrojs/sitemap': 3.7.3
'@pagefind/default-ui': 1.3.0
'@types/hast': 3.0.4
'@types/js-yaml': 4.0.9
'@types/mdast': 4.0.4
bcp-47: 2.1.0
hast-util-from-html: 2.0.3
hast-util-select: 6.0.4
@@ -13577,6 +13718,12 @@ snapshots:
tslib: 2.8.1
optional: true
+ '@emnapi/[email protected]':
+ dependencies:
+ '@emnapi/wasi-threads': 1.2.3
+ tslib: 2.8.1
+ optional: true
+
'@emnapi/[email protected]':
dependencies:
tslib: 2.8.1
@@ -13592,6 +13739,11 @@ snapshots:
tslib: 2.8.1
optional: true
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@esbuild-kit/[email protected]':
dependencies:
esbuild: 0.18.20
@@ -15399,9 +15551,16 @@ snapshots:
'@tybys/wasm-util': 0.10.3
optional: true
dependencies:
- '@emnapi/core': 1.11.1
+ '@emnapi/core': 1.11.3
+ '@emnapi/runtime': 1.11.3
+ '@tybys/wasm-util': 0.10.3
+ optional: true
+
+ dependencies:
+ '@emnapi/core': 1.11.3
'@emnapi/runtime': 1.11.3
'@tybys/wasm-util': 0.10.3
optional: true
@@ -15529,136 +15688,136 @@ snapshots:
'@oxc-project/[email protected]': {}
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxfmt/[email protected]':
+ '@oxfmt/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint-tsgolint/[email protected]':
+ '@oxlint-tsgolint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
- '@oxlint/[email protected]':
+ '@oxlint/[email protected]':
optional: true
'@pagefind/[email protected]':
@@ -17737,26 +17896,26 @@ snapshots:
dependencies:
ultrahtml: 1.6.0
dependencies:
rehype-expressive-code: 0.44.0
url-extras: 0.1.0
dependencies:
rehype-expressive-code: 0.44.0
url-extras: 0.1.0
dependencies:
- '@astrojs/compiler-rs': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
+ '@astrojs/compiler-rs': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
'@astrojs/internal-helpers': 0.10.4
'@astrojs/markdown-satteri': 0.3.8
'@astrojs/telemetry': 3.3.3
@@ -17845,9 +18004,9 @@ snapshots:
- uploadthing
- yaml
dependencies:
- '@astrojs/compiler-rs': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
+ '@astrojs/compiler-rs': 0.4.0(@emnapi/[email protected])(@emnapi/[email protected])
'@astrojs/internal-helpers': 0.10.4
'@astrojs/markdown-satteri': 0.3.8
'@astrojs/telemetry': 3.3.3
@@ -22104,61 +22263,62 @@ snapshots:
strip-ansi: 6.0.1
wcwidth: 1.0.1
dependencies:
- tinypool: 2.1.2
+ tinypool: 2.2.0
optionalDependencies:
- '@oxfmt/binding-android-arm-eabi': 0.68.0
- '@oxfmt/binding-android-arm64': 0.68.0
- '@oxfmt/binding-darwin-arm64': 0.68.0
- '@oxfmt/binding-darwin-x64': 0.68.0
- '@oxfmt/binding-freebsd-x64': 0.68.0
- '@oxfmt/binding-linux-arm-gnueabihf': 0.68.0
- '@oxfmt/binding-linux-arm-musleabihf': 0.68.0
- '@oxfmt/binding-linux-arm64-gnu': 0.68.0
- '@oxfmt/binding-linux-arm64-musl': 0.68.0
- '@oxfmt/binding-linux-ppc64-gnu': 0.68.0
- '@oxfmt/binding-linux-riscv64-gnu': 0.68.0
- '@oxfmt/binding-linux-riscv64-musl': 0.68.0
- '@oxfmt/binding-linux-s390x-gnu': 0.68.0
- '@oxfmt/binding-linux-x64-gnu': 0.68.0
- '@oxfmt/binding-linux-x64-musl': 0.68.0
- '@oxfmt/binding-openharmony-arm64': 0.68.0
- '@oxfmt/binding-win32-arm64-msvc': 0.68.0
- '@oxfmt/binding-win32-ia32-msvc': 0.68.0
- '@oxfmt/binding-win32-x64-msvc': 0.68.0
-
+ '@astrojs/compiler-rs': 0.5.2
+ '@oxfmt/binding-android-arm-eabi': 0.74.0
+ '@oxfmt/binding-android-arm64': 0.74.0
+ '@oxfmt/binding-darwin-arm64': 0.74.0
+ '@oxfmt/binding-darwin-x64': 0.74.0
+ '@oxfmt/binding-freebsd-x64': 0.74.0
+ '@oxfmt/binding-linux-arm-gnueabihf': 0.74.0
+ '@oxfmt/binding-linux-arm-musleabihf': 0.74.0
+ '@oxfmt/binding-linux-arm64-gnu': 0.74.0
+ '@oxfmt/binding-linux-arm64-musl': 0.74.0
+ '@oxfmt/binding-linux-ppc64-gnu': 0.74.0
+ '@oxfmt/binding-linux-riscv64-gnu': 0.74.0
+ '@oxfmt/binding-linux-riscv64-musl': 0.74.0
+ '@oxfmt/binding-linux-s390x-gnu': 0.74.0
+ '@oxfmt/binding-linux-x64-gnu': 0.74.0
+ '@oxfmt/binding-linux-x64-musl': 0.74.0
+ '@oxfmt/binding-openharmony-arm64': 0.74.0
+ '@oxfmt/binding-win32-arm64-msvc': 0.74.0
+ '@oxfmt/binding-win32-ia32-msvc': 0.74.0
+ '@oxfmt/binding-win32-x64-msvc': 0.74.0
+
optionalDependencies:
- '@oxlint-tsgolint/darwin-arm64': 7.0.2001
- '@oxlint-tsgolint/darwin-x64': 7.0.2001
- '@oxlint-tsgolint/linux-arm64': 7.0.2001
- '@oxlint-tsgolint/linux-x64': 7.0.2001
- '@oxlint-tsgolint/win32-arm64': 7.0.2001
- '@oxlint-tsgolint/win32-x64': 7.0.2001
-
+ '@oxlint-tsgolint/darwin-arm64': 7.0.2004
+ '@oxlint-tsgolint/darwin-x64': 7.0.2004
+ '@oxlint-tsgolint/linux-arm64': 7.0.2004
+ '@oxlint-tsgolint/linux-x64': 7.0.2004
+ '@oxlint-tsgolint/win32-arm64': 7.0.2004
+ '@oxlint-tsgolint/win32-x64': 7.0.2004
+
optionalDependencies:
- '@oxlint/binding-android-arm-eabi': 1.83.0
- '@oxlint/binding-android-arm64': 1.83.0
- '@oxlint/binding-darwin-arm64': 1.83.0
- '@oxlint/binding-darwin-x64': 1.83.0
- '@oxlint/binding-freebsd-x64': 1.83.0
- '@oxlint/binding-linux-arm-gnueabihf': 1.83.0
- '@oxlint/binding-linux-arm-musleabihf': 1.83.0
- '@oxlint/binding-linux-arm64-gnu': 1.83.0
- '@oxlint/binding-linux-arm64-musl': 1.83.0
- '@oxlint/binding-linux-ppc64-gnu': 1.83.0
- '@oxlint/binding-linux-riscv64-gnu': 1.83.0
- '@oxlint/binding-linux-riscv64-musl': 1.83.0
- '@oxlint/binding-linux-s390x-gnu': 1.83.0
- '@oxlint/binding-linux-x64-gnu': 1.83.0
- '@oxlint/binding-linux-x64-musl': 1.83.0
- '@oxlint/binding-openharmony-arm64': 1.83.0
- '@oxlint/binding-win32-arm64-msvc': 1.83.0
- '@oxlint/binding-win32-ia32-msvc': 1.83.0
- '@oxlint/binding-win32-x64-msvc': 1.83.0
- oxlint-tsgolint: 7.0.2001
+ '@oxlint/binding-android-arm-eabi': 1.89.0
+ '@oxlint/binding-android-arm64': 1.89.0
+ '@oxlint/binding-darwin-arm64': 1.89.0
+ '@oxlint/binding-darwin-x64': 1.89.0
+ '@oxlint/binding-freebsd-x64': 1.89.0
+ '@oxlint/binding-linux-arm-gnueabihf': 1.89.0
+ '@oxlint/binding-linux-arm-musleabihf': 1.89.0
+ '@oxlint/binding-linux-arm64-gnu': 1.89.0
+ '@oxlint/binding-linux-arm64-musl': 1.89.0
+ '@oxlint/binding-linux-ppc64-gnu': 1.89.0
+ '@oxlint/binding-linux-riscv64-gnu': 1.89.0
+ '@oxlint/binding-linux-riscv64-musl': 1.89.0
+ '@oxlint/binding-linux-s390x-gnu': 1.89.0
+ '@oxlint/binding-linux-x64-gnu': 1.89.0
+ '@oxlint/binding-linux-x64-musl': 1.89.0
+ '@oxlint/binding-openharmony-arm64': 1.89.0
+ '@oxlint/binding-win32-arm64-msvc': 1.89.0
+ '@oxlint/binding-win32-ia32-msvc': 1.89.0
+ '@oxlint/binding-win32-x64-msvc': 1.89.0
+ oxlint-tsgolint: 7.0.2004
dependencies:
@@ -23581,12 +23741,12 @@ snapshots:
'@stablelib/base64': 1.0.1
fast-sha256: 1.3.0
dependencies:
'@astrojs/markdown-satteri': 0.3.2
'@types/picomatch': 4.0.3
github-slugger: 2.0.0
hast-util-from-html: 2.0.3
is-absolute-url: 5.0.0
@@ -23600,9 +23760,9 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
@@ -23906,7 +24066,7 @@ snapshots:
fdir: 6.5.0([email protected])
picomatch: 4.0.7