weapp-sqlite
+{locale === 'zh-CN' ? '把本地数据能力放回真实运行时:为多端小程序提供可复用的 SQLite 数据层。' : 'Keep local data close to the runtime with a reusable SQLite layer for multi-platform mini-apps.'}
+ {locale === 'zh-CN' ? '查看数据能力' : 'Explore data layer'} +From 9f204c36ecd65c1351ab33992d18a8fb35d54da1 Mon Sep 17 00:00:00 2001 From: ice breaker <1324318532@qq.com> Date: Wed, 2 Sep 2026 01:26:25 +0800 Subject: [PATCH 1/3] feat(web): redesign weapp.dev developer platform site --- apps/web/src/components/Footer.astro | 4 + apps/web/src/components/Header.astro | 24 ++ apps/web/src/components/HomePage.astro | 45 ++- apps/web/src/i18n/ui.ts | 12 +- apps/web/src/lib/seo.ts | 1 + apps/web/src/pages/en/index.astro | 2 +- apps/web/src/pages/index.astro | 2 +- apps/web/src/styles/classes.ts | 16 +- apps/web/src/styles/global.css | 409 ++++++++++++++++++++++++- apps/web/tests/e2e/site.spec.ts | 2 + 10 files changed, 484 insertions(+), 33 deletions(-) diff --git a/apps/web/src/components/Footer.astro b/apps/web/src/components/Footer.astro index d096e0e..9a0e895 100644 --- a/apps/web/src/components/Footer.astro +++ b/apps/web/src/components/Footer.astro @@ -31,6 +31,10 @@ const copy = siteCopy[locale] ))} + + weapp-sqlite + +
{locale === 'zh-CN' ? '把本地数据能力放回真实运行时:为多端小程序提供可复用的 SQLite 数据层。' : 'Keep local data close to the runtime with a reusable SQLite layer for multi-platform mini-apps.'}
+ {locale === 'zh-CN' ? '查看数据能力' : 'Explore data layer'} +{locale === 'zh-CN' ? '把本地数据能力放回真实运行时:为多端小程序提供可复用的 SQLite 数据层。' : 'Keep local data close to the runtime with a reusable SQLite layer for multi-platform mini-apps.'}
- {locale === 'zh-CN' ? '查看数据能力' : 'Explore data layer'} -{copy.releases.released} {formatReleaseDate(projectMetrics.releasedAt, numberLocale)}
v{projectMetrics.version} - + {project.data.npmUrl && - + } ) })} diff --git a/apps/web/src/components/ProjectPage.astro b/apps/web/src/components/ProjectPage.astro index 8132fdb..b3d6e37 100644 --- a/apps/web/src/components/ProjectPage.astro +++ b/apps/web/src/components/ProjectPage.astro @@ -48,10 +48,10 @@ const secondaryVisualCopy = secondaryVisual.locales[locale] {copy.project.source} - + {project.data.npmUrl && {copy.project.npm} - + } diff --git a/apps/web/src/content.config.ts b/apps/web/src/content.config.ts index 12b7e02..c8ca3b6 100644 --- a/apps/web/src/content.config.ts +++ b/apps/web/src/content.config.ts @@ -34,7 +34,7 @@ const projects = defineCollection({ packageName: z.string().min(1), github: z.string().regex(/^[\w.-]+\/[\w.-]+$/), docsUrl: z.url(), - npmUrl: z.url(), + npmUrl: z.url().optional(), license: z.url().optional(), maintainer: z.string().min(1), keywords: z.array(z.string().min(1)).min(1), diff --git a/apps/web/src/content.test.ts b/apps/web/src/content.test.ts index 82e2922..3d3eb25 100644 --- a/apps/web/src/content.test.ts +++ b/apps/web/src/content.test.ts @@ -1,14 +1,16 @@ import { describe, expect, it } from 'vitest' import varo from './content/projects/varo.json' +import sqlite from './content/projects/weapp-sqlite.json' import tailwind from './content/projects/weapp-tailwindcss.json' import vite from './content/projects/weapp-vite.json' describe('project definitions', () => { - const projects = [tailwind, vite, varo] + const projects = [tailwind, vite, sqlite, varo] const officialDocsUrls: Record