update
This commit is contained in:
		@@ -1,55 +1,8 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
import Html from '@/components/html.astro';
 | 
					import Html from '../components/html.astro';
 | 
				
			||||||
import { Call, CallProps } from '@/apps/test/run';
 | 
					import { App } from '@/apps/muse/index.tsx';
 | 
				
			||||||
 | 
					 | 
				
			||||||
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, 返回签到的列表',
 | 
					 | 
				
			||||||
  },
 | 
					 | 
				
			||||||
];
 | 
					 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<Html>
 | 
					<Html>
 | 
				
			||||||
  <main>
 | 
					  <App client:only />
 | 
				
			||||||
    {callDocs.map((doc) => <Call {...doc} client:only />)}
 | 
					 | 
				
			||||||
  </main>
 | 
					 | 
				
			||||||
</Html>
 | 
					</Html>
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										55
									
								
								web/src/pages/lightcode.astro
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								web/src/pages/lightcode.astro
									
									
									
									
									
										Normal file
									
								
							@@ -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, 返回签到的列表',
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					];
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<Html>
 | 
				
			||||||
 | 
					  <main>
 | 
				
			||||||
 | 
					    {callDocs.map((doc) => <Call {...doc} client:only />)}
 | 
				
			||||||
 | 
					  </main>
 | 
				
			||||||
 | 
					</Html>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user