generated from template/astro-template
temp
This commit is contained in:
parent
1d757c0422
commit
08a8bffe1f
@ -50,7 +50,8 @@
|
|||||||
"dotenv": "^16.5.0",
|
"dotenv": "^16.5.0",
|
||||||
"inquire": "^0.4.8",
|
"inquire": "^0.4.8",
|
||||||
"tailwindcss": "^4.1.7",
|
"tailwindcss": "^4.1.7",
|
||||||
"tw-animate-css": "^1.3.0"
|
"tw-animate-css": "^1.3.0",
|
||||||
|
"vite-plugin-remote-assets": "^2.0.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.11.0"
|
"packageManager": "pnpm@10.11.0"
|
||||||
}
|
}
|
18
pnpm-lock.yaml
generated
18
pnpm-lock.yaml
generated
@ -96,6 +96,9 @@ importers:
|
|||||||
tw-animate-css:
|
tw-animate-css:
|
||||||
specifier: ^1.3.0
|
specifier: ^1.3.0
|
||||||
version: 1.3.0
|
version: 1.3.0
|
||||||
|
vite-plugin-remote-assets:
|
||||||
|
specifier: ^2.0.0
|
||||||
|
version: 2.0.0(vite@6.3.5(@types/node@18.19.87)(jiti@2.4.2)(lightningcss@1.30.1))
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
@ -2298,6 +2301,11 @@ packages:
|
|||||||
vfile@6.0.3:
|
vfile@6.0.3:
|
||||||
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
|
resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
|
||||||
|
|
||||||
|
vite-plugin-remote-assets@2.0.0:
|
||||||
|
resolution: {integrity: sha512-wC/VkbnyONjMZJW5icoYLLOLfrvjcSWNnRuW8wmre03A8EoeQTwFdvJIs8lIchys+KT2SOxJ2ditQxwMT6eaiA==}
|
||||||
|
peerDependencies:
|
||||||
|
vite: '>=5.0.0'
|
||||||
|
|
||||||
vite@6.3.5:
|
vite@6.3.5:
|
||||||
resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==}
|
resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==}
|
||||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||||
@ -5112,6 +5120,16 @@ snapshots:
|
|||||||
'@types/unist': 3.0.3
|
'@types/unist': 3.0.3
|
||||||
vfile-message: 4.0.2
|
vfile-message: 4.0.2
|
||||||
|
|
||||||
|
vite-plugin-remote-assets@2.0.0(vite@6.3.5(@types/node@18.19.87)(jiti@2.4.2)(lightningcss@1.30.1)):
|
||||||
|
dependencies:
|
||||||
|
debug: 4.4.0
|
||||||
|
magic-string: 0.30.17
|
||||||
|
node-fetch-native: 1.6.6
|
||||||
|
ohash: 2.0.11
|
||||||
|
vite: 6.3.5(@types/node@18.19.87)(jiti@2.4.2)(lightningcss@1.30.1)
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
vite@6.3.5(@types/node@18.19.87)(jiti@2.4.2)(lightningcss@1.30.1):
|
vite@6.3.5(@types/node@18.19.87)(jiti@2.4.2)(lightningcss@1.30.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.25.3
|
esbuild: 0.25.3
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
packages:
|
packages:
|
||||||
- packages/*
|
- packages/*
|
||||||
- apps/*
|
- apps/*
|
||||||
- submodules/*
|
- submodules/*
|
||||||
|
onlyBuiltDependencies:
|
||||||
|
- '@tailwindcss/oxide'
|
||||||
|
- esbuild
|
||||||
|
- sharp
|
||||||
|
@ -1,50 +1,16 @@
|
|||||||
---
|
---
|
||||||
// import { query } from '@/modules/query.ts';
|
|
||||||
console.log('Hello from index.astro');
|
|
||||||
import { Test } from '@/components/Test.tsx';
|
|
||||||
import '../styles/global.css';
|
import '../styles/global.css';
|
||||||
|
// const demo = await fetch('https://kevisual.xiongxiao.me/root/ai/kevisual/README.md');
|
||||||
|
import READ from 'https://kevisual.xiongxiao.me/root/ai/kevisual/README.md'
|
||||||
---
|
---
|
||||||
|
|
||||||
<html lang='en'>
|
<html lang='zh-CN'>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset='UTF-8' />
|
||||||
<title>My Homepage</title>
|
<title>My Homepage</title>
|
||||||
</head>e
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 onclick="{onClick}">Welcome to my website!</h1>
|
合并一些功能模块,ai相关的,导航,文字转语音,语音转文字,对话等
|
||||||
<div class='bg-amber-50 w-20 h-20 rounded-full'></div>
|
<READ />
|
||||||
<div id='root'></div>
|
|
||||||
<Test client:only />
|
|
||||||
<!-- <Button client:only="react">sdf sdf</Button> -->
|
|
||||||
<script type='importmap' data-vite-ignore is:inline>
|
|
||||||
{
|
|
||||||
"imports": {
|
|
||||||
"react": "https://esm.sh/react@19.1.0",
|
|
||||||
"react-dom": "https://esm.sh/react-dom@19.1.0/client.js",
|
|
||||||
"react-toastify": "https://esm.sh/react-toastify@11.0.5"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script type='module' data-vite-ignore is:inline>
|
|
||||||
import { Button, message } from 'https://esm.sh/antd?standalone';
|
|
||||||
import React from 'react';
|
|
||||||
import { ToastContainer, toast } from 'react-toastify';
|
|
||||||
import { createRoot } from 'react-dom';
|
|
||||||
setTimeout(() => {
|
|
||||||
toast.loading('Hello from index.astro');
|
|
||||||
window.toast = toast;
|
|
||||||
console.log('message', toast);
|
|
||||||
}, 1000);
|
|
||||||
console.log('Hello from index.astro', Button);
|
|
||||||
const root = document.getElementById('root');
|
|
||||||
const render = createRoot(root);
|
|
||||||
const App = () => {
|
|
||||||
const button = React.createElement(Button, null, 'Hello');
|
|
||||||
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user