Rename project for AdCloud tracking and ad delivery

This commit is contained in:
2026-09-15 19:04:53 +08:00
parent 592bf1a220
commit 25c63a6f2d
3 changed files with 9 additions and 7 deletions
+6 -4
View File
@@ -1,6 +1,8 @@
# React SDK
# AdCloud React SDK
使用 TypeScript 开发的 React SDK,配套 `backend-server`。
面向开发者和 coding agent 的广告云埋点与广告推送系统 React SDK,配套 `adcloud-server`。
当前为开发脚手架,提供健康检查客户端及 React Hook;埋点与广告推送功能待实现。
## 开发
@@ -15,11 +17,11 @@ npm run build
本包尚未发布。先运行 `npm run build`,再在 React 项目中安装本地目录:
```sh
npm install /absolute/path/to/react-sdk
npm install /absolute/path/to/adcloud-react-sdk
```
```tsx
import { useHealth } from "@entroia/react-sdk";
import { useHealth } from "@entroia/adcloud-react-sdk";
export function ServerStatus() {
const { data, error, loading } = useHealth("http://localhost:8000");
+2 -2
View File
@@ -1,11 +1,11 @@
{
"name": "@entroia/react-sdk",
"name": "@entroia/adcloud-react-sdk",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@entroia/react-sdk",
"name": "@entroia/adcloud-react-sdk",
"version": "0.1.0",
"devDependencies": {
"@types/react": "^19.0.0",
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "@entroia/react-sdk",
"name": "@entroia/adcloud-react-sdk",
"version": "0.1.0",
"private": true,
"type": "module",