Rename project for AdCloud tracking and ad delivery
This commit is contained in:
@@ -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");
|
||||
|
||||
Generated
+2
-2
@@ -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
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@entroia/react-sdk",
|
||||
"name": "@entroia/adcloud-react-sdk",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
Reference in New Issue
Block a user