Compare commits

...

2 Commits

Author SHA1 Message Date
66964305d3 update 2025-10-19 15:43:04 +08:00
9894e82a99 update 2025-10-19 15:36:50 +08:00
5 changed files with 56 additions and 46 deletions

View File

@@ -1,14 +1,14 @@
{ {
"name": "@kevisual/astro-simplate-template", "name": "@kevisual/me-dnake-docs",
"version": "0.0.1", "version": "0.0.1",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"basename": "/root/astro-simplate-template", "basename": "/root/me-dnake-docs",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"pub": "envision deploy ./dist -k astro-simplate-template -v 0.0.1 -u", "pub": "envision deploy ./dist -k me-dnake-docs -v 0.0.1 -u",
"sn": "pnpm dlx shadcn@latest add " "sn": "pnpm dlx shadcn@latest add "
}, },
"keywords": [], "keywords": [],

View File

@@ -1,8 +1,3 @@
---
title: 'ADB 文档'
description: 'Android Debug Bridge 使用指南'
---
## ADB ## ADB
这是关于 Android Debug Bridge 的文档。 这是关于 Android Debug Bridge 的文档。

View File

@@ -1,47 +1,51 @@
--- ---
// import { query } from '@/modules/query.ts';
console.log('Hello from index.astro');
import '../styles/global.css'; import '../styles/global.css';
const links = [
{
link: './adb/',
title: 'ADB 文档',
},
{
link: './mz/',
title: 'Dnake的adb 的快捷指令,相关资料',
},
];
--- ---
<html lang='en'> <html lang='zh-CN'>
<head> <head>
<meta charset="UTF-8" />
<title>My Homepage</title> <title>My Homepage</title>
<script src="https://cdn.tailwindcss.com"></script>
</head> </head>
<body> <body class="bg-gray-50 min-h-screen">
<h1 onclick="{onClick}">Welcome to my website!</h1> <div class="container mx-auto px-4 py-8">
<div class='bg-amber-50 w-20 h-20 rounded-full'></div> <h1 class="text-3xl font-bold text-gray-800 mb-8 text-center">文档导航</h1>
<div id='root'></div>
<script type='importmap' data-vite-ignore is:inline> <div class="max-w-2xl mx-auto">
{ <ul class="space-y-4">
"imports": { {links.map((item) => (
"react": "https://esm.sh/react@19.1.0", <li>
"react-dom": "https://esm.sh/react-dom@19.1.0/client.js", <a
"react-toastify": "https://esm.sh/react-toastify@11.0.5" href={item.link}
} class="block p-6 bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow duration-300 border border-gray-200 hover:border-blue-300 group"
} >
</script> <h2 class="text-xl font-semibold text-gray-800 group-hover:text-blue-600 transition-colors duration-200">
<script type='module' data-vite-ignore is:inline> {item.title}
import { Button, message } from 'https://esm.sh/antd?standalone'; </h2>
import React from 'react'; <p class="text-gray-600 mt-2">点击查看详细文档</p>
import { ToastContainer, toast } from 'react-toastify'; <div class="flex items-center mt-3 text-blue-500 group-hover:text-blue-700">
import { createRoot } from 'react-dom'; <span class="text-sm">查看文档</span>
setTimeout(() => { <svg class="w-4 h-4 ml-2 transform group-hover:translate-x-1 transition-transform duration-200" fill="none" stroke="currentColor" viewBox="0 0 24 24">
toast.loading('Hello from index.astro'); <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
window.toast = toast; </svg>
console.log('message', toast); </div>
}, 1000); </a>
console.log('Hello from index.astro', Button); </li>
const root = document.getElementById('root'); ))}
const render = createRoot(root); </ul>
const App = () => { </div>
const button = React.createElement(Button, null, 'Hello'); </div>
const messageEl = React.createElement(ToastContainer, null, 'Hello');
const wrapperMessage = React.createElement('div', null, [button, messageEl]);
return wrapperMessage;
};
// render.render(React.createElement(Button, null, 'Hello'), root);
render.render(App(), root);
</script>
</body> </body>
</html> </html>

View File

@@ -5,6 +5,10 @@
连接 `192.168.3.1` 查看 设备的ip地址信息 连接 `192.168.3.1` 查看 设备的ip地址信息
```sh ```sh
# 开放 5555 端口
adb tcpip 5555
# 链接地址dnake # 链接地址dnake
adb connect 192.168.3.3:5555 adb connect 192.168.3.3:5555

View File

@@ -0,0 +1,7 @@
import '../../styles/global.css';
export const title = '我的第一篇 MDX 博客'
# {title}
<div class='bg-red-200'>sdf</div>