From dd3a9edc71a8d70f00b652083deca90cd2c5cebf Mon Sep 17 00:00:00 2001 From: abearxiong Date: Wed, 22 Oct 2025 03:31:12 +0800 Subject: [PATCH] update --- web/src/pages/index.astro | 53 ++------------------------------- web/src/pages/lightcode.astro | 55 +++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 50 deletions(-) create mode 100644 web/src/pages/lightcode.astro diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index 13c5613..941c6ba 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -1,55 +1,8 @@ --- -import Html from '@/components/html.astro'; -import { Call, CallProps } from '@/apps/test/run'; - -const callDocs: CallProps[] = [ - { - filename: 'root/listen-demo/router.ts', - title: 'Listen Demo Simple', - description: '最简单的监听函数的功能, app的函数, 执行什么功能,返回body的内容.', - data: { foo: 'bar' }, - }, - { - filename: 'root/listen-demo/origin.ts', - title: 'Listen Demo Origin', - data: {}, - description: '原生模块, 使用process传递信息的代码.', - }, - { - filename: 'root/light-code-demo/main.ts', - title: '根据path调用不同的函数', - data: { path: 'main2' }, - description: '使用router监听内容, 根据不同的path去调用不同的route的函数模块,main为默认的,main2是修改的另一个函数.', - }, - { - filename: 'root/light-code-demo/weather.ts', - title: '获取天气', - data: {}, - description: '获取西湖的3天内的天气的功能.', - }, - { - filename: 'root/light-code-demo/sign.ts', - title: '用户签到', - data: { Title: '签到名字', Description: '用户签到', path: 'sign' }, - description: '签到功能, 传递Title和Description, 返回签到的结果', - }, - { - filename: 'root/light-code-demo/sign.ts', - title: '获取签到列表', - data: { path: 'sign', key: 'list' }, - description: '获取签到列表的功能, 传递key为list, 返回签到的列表', - }, - { - filename: 'root/light-code-demo/sign.ts', - title: '获取签到描述列表', - data: { path: 'sign', key: 'delete', id: 3 }, - description: '获取签到描述列表的功能, 传递key为delete, 返回签到的列表', - }, -]; +import Html from '../components/html.astro'; +import { App } from '@/apps/muse/index.tsx'; --- -
- {callDocs.map((doc) => )} -
+ diff --git a/web/src/pages/lightcode.astro b/web/src/pages/lightcode.astro new file mode 100644 index 0000000..13c5613 --- /dev/null +++ b/web/src/pages/lightcode.astro @@ -0,0 +1,55 @@ +--- +import Html from '@/components/html.astro'; +import { Call, CallProps } from '@/apps/test/run'; + +const callDocs: CallProps[] = [ + { + filename: 'root/listen-demo/router.ts', + title: 'Listen Demo Simple', + description: '最简单的监听函数的功能, app的函数, 执行什么功能,返回body的内容.', + data: { foo: 'bar' }, + }, + { + filename: 'root/listen-demo/origin.ts', + title: 'Listen Demo Origin', + data: {}, + description: '原生模块, 使用process传递信息的代码.', + }, + { + filename: 'root/light-code-demo/main.ts', + title: '根据path调用不同的函数', + data: { path: 'main2' }, + description: '使用router监听内容, 根据不同的path去调用不同的route的函数模块,main为默认的,main2是修改的另一个函数.', + }, + { + filename: 'root/light-code-demo/weather.ts', + title: '获取天气', + data: {}, + description: '获取西湖的3天内的天气的功能.', + }, + { + filename: 'root/light-code-demo/sign.ts', + title: '用户签到', + data: { Title: '签到名字', Description: '用户签到', path: 'sign' }, + description: '签到功能, 传递Title和Description, 返回签到的结果', + }, + { + filename: 'root/light-code-demo/sign.ts', + title: '获取签到列表', + data: { path: 'sign', key: 'list' }, + description: '获取签到列表的功能, 传递key为list, 返回签到的列表', + }, + { + filename: 'root/light-code-demo/sign.ts', + title: '获取签到描述列表', + data: { path: 'sign', key: 'delete', id: 3 }, + description: '获取签到描述列表的功能, 传递key为delete, 返回签到的列表', + }, +]; +--- + + +
+ {callDocs.map((doc) => )} +
+