pinme 2.0.0-beta.2 → 2.0.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1544 -962
- package/package.json +32 -32
- package/template/README.md +0 -177
- package/template/backend/package.json +0 -12
- package/template/backend/schema/001_init.sql +0 -35
- package/template/backend/src/worker.ts +0 -108
- package/template/backend/wrangler.toml +0 -11
- package/template/frontend/.env.example +0 -4
- package/template/frontend/index.html +0 -12
- package/template/frontend/package.json +0 -25
- package/template/frontend/pnpm-lock.yaml +0 -1119
- package/template/frontend/src/App.css +0 -389
- package/template/frontend/src/App.tsx +0 -38
- package/template/frontend/src/components/Header.tsx +0 -29
- package/template/frontend/src/main.tsx +0 -21
- package/template/frontend/src/pages/About/index.tsx +0 -39
- package/template/frontend/src/pages/Demo/index.tsx +0 -87
- package/template/frontend/src/pages/Home/index.tsx +0 -94
- package/template/frontend/src/utils/api.ts +0 -6
- package/template/frontend/src/vite-env.d.ts +0 -1
- package/template/frontend/tsconfig.json +0 -22
- package/template/frontend/tsconfig.node.json +0 -11
- package/template/frontend/vite.config.ts +0 -27
- package/template/package.json +0 -16
- package/template/pinme.toml +0 -18
- package/template/pnpm-workspace.yaml +0 -3
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
-
"module": "ESNext",
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"moduleResolution": "bundler",
|
|
9
|
-
"allowImportingTsExtensions": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
"isolatedModules": true,
|
|
12
|
-
"noEmit": true,
|
|
13
|
-
"jsx": "react-jsx",
|
|
14
|
-
"strict": true,
|
|
15
|
-
"noUnusedLocals": false,
|
|
16
|
-
"noUnusedParameters": false,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"types": []
|
|
19
|
-
},
|
|
20
|
-
"include": ["src"],
|
|
21
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
22
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
import path from "path";
|
|
4
|
-
|
|
5
|
-
export default defineConfig({
|
|
6
|
-
plugins: [react()],
|
|
7
|
-
build: {
|
|
8
|
-
outDir: "dist",
|
|
9
|
-
sourcemap: true,
|
|
10
|
-
},
|
|
11
|
-
resolve: {
|
|
12
|
-
alias: {
|
|
13
|
-
"@": path.resolve(__dirname, "./src"),
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
// 环境变量前缀,确保 VITE_ 开头的变量可在前端使用
|
|
17
|
-
envPrefix: ["VITE_", "REACT_APP_"],
|
|
18
|
-
// 开发环境代理配置
|
|
19
|
-
server: {
|
|
20
|
-
proxy: {
|
|
21
|
-
'/api': {
|
|
22
|
-
target: 'http://localhost:8787',
|
|
23
|
-
changeOrigin: true,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
});
|
package/template/package.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "pinme-managed-template",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "wrangler dev --config backend/wrangler.toml",
|
|
8
|
-
"build:worker": "cd backend && wrangler deploy --dry-run --outdir ../dist-worker",
|
|
9
|
-
"dev:frontend": "cd frontend && npm run dev",
|
|
10
|
-
"build:frontend": "cd frontend && npm run build",
|
|
11
|
-
"build": "npm run build:worker && npm run build:frontend"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"wrangler": "^3.0.0"
|
|
15
|
-
}
|
|
16
|
-
}
|
package/template/pinme.toml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# Pinme 配置文件
|
|
2
|
-
# 项目名称(必填)
|
|
3
|
-
project_name = "my-app"
|
|
4
|
-
|
|
5
|
-
# CORS 配置
|
|
6
|
-
[cors]
|
|
7
|
-
origins = ["*"]
|
|
8
|
-
|
|
9
|
-
# D1 数据库配置
|
|
10
|
-
[d1]
|
|
11
|
-
# 数据库迁移文件目录(指向 backend)
|
|
12
|
-
migrations_dir = "backend/schema"
|
|
13
|
-
# D1 数据库 UUID(创建项目时自动填充)
|
|
14
|
-
# database_id = ""
|
|
15
|
-
|
|
16
|
-
# 环境变量
|
|
17
|
-
[vars]
|
|
18
|
-
VITE_WORKER_URL = "https://your-worker-{hash}.pinme.pro"
|