- Added `UserLocation` model to `prisma/schema.prisma` to store user location data including coordinates (point geometry), name, avatar, and bindings to Logto and Kaiqiu users. - Created new API endpoints under `/api/account/location` to handle location operations: - `POST`: Create a new location record for a user. - `GET`: Retrieve nearby locations based on latitude and longitude. - `PUT`: Update an existing location record, including coordinate updates via spatial index. - `DELETE`: Remove a specific location record. - Integrated the custom spatial operations from `xprisma` DAO to support geospatial queries and updates. - Updated dependencies to include `@mui/icons-material` (and its peer dependencies like `prop-types` and `react-transition-group` which are implicitly required by the new icon components). - Implemented `verifyLogtoToken` logic to secure the new endpoints and associate locations with authenticated users. No breaking changes in API contracts; new endpoints are additive.
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"name": "my-kaiqiuwang",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --hot src/index.tsx",
|
|
"build": "bun build ./src/index.html --outdir=dist --sourcemap --target=browser --minify --define:process.env.NODE_ENV='\"production\"' --env='BUN_PUBLIC_*'",
|
|
"start": "NODE_ENV=production bun src/index.tsx"
|
|
},
|
|
"dependencies": {
|
|
"@ant-design/icons": "^6.1.0",
|
|
"@logto/react": "^4.0.13",
|
|
"@mui/icons-material": "^7.3.9",
|
|
"@prisma/adapter-mariadb": "^7.4.2",
|
|
"@prisma/client": "^7.4.2",
|
|
"ahooks": "^3.9.6",
|
|
"antd": "^6.3.2",
|
|
"cheerio": "^1.2.0",
|
|
"dayjs": "^1.11.19",
|
|
"ics": "^3.8.1",
|
|
"jose": "^6.2.1",
|
|
"lodash": "^4.17.23",
|
|
"mariadb": "^3.5.2",
|
|
"react": "^19",
|
|
"react-dom": "^19",
|
|
"react-router": "^7.13.0",
|
|
"styled-components": "^6.3.8",
|
|
"zustand": "^5.0.10"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest",
|
|
"@types/lodash": "^4.17.23",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"prisma": "^7.4.2"
|
|
}
|
|
}
|