Skip to content

feat: Add CodeLess platform basic structure and API definition#35

Merged
topfunplusnew merged 4 commits intofront-devfrom
cursor/init-codeless-platform
Jan 12, 2026
Merged

feat: Add CodeLess platform basic structure and API definition#35
topfunplusnew merged 4 commits intofront-devfrom
cursor/init-codeless-platform

Conversation

@topfunplusnew
Copy link
Owner

@topfunplusnew topfunplusnew commented Jan 11, 2026

Note

Introduces a new low‑code platform and wires it into the app.

  • Adds @code-less/platform package with:
    • OpenAPI spec (openapi.yaml) for schemas and generic data CRUD
    • API layer (api/request.js, api/data.js) and utility crud wrapper with Element UI messages
    • Basic UI component CodeLessEditor.vue and plugin entry src/index.js that registers global component, $codelessCrud, and dynamic route /codeless
  • Integrates into order-system:
    • Declares dependency on @code-less/platform
    • Installs plugin in src/main.js using shared service (axios) and router for dynamic routes
  • Updates yarn.lock; adds an additional OpenAPI JSON file for default module

Written by Cursor Bugbot for commit 9a95587. This will update automatically on new commits. Configure here.

cursoragent and others added 4 commits January 11, 2026 09:09
Co-authored-by: ming10655 <ming10655@gmail.com>
Co-authored-by: ming10655 <ming10655@gmail.com>
Co-authored-by: ming10655 <ming10655@gmail.com>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

if (!id) {
Message.error('更新失败:缺少ID');
return false;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falsy ID check incorrectly rejects zero as valid

Low Severity

The update and remove functions use !id to validate the ID parameter. Since the JSDoc explicitly documents id as string|number, passing the numeric value 0 would incorrectly trigger the "缺少ID" error because !0 evaluates to true. A stricter null check like id == null would properly allow 0 as a valid ID while still catching undefined and null.

Additional Locations (1)

Fix in Cursor Fix in Web

*/
export function apiSearchData(schemaKey, params) {
return getRequest()({
url: `/codeless/data/${schemaKey}/search`,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API paths don't match OpenAPI specification prefix

High Severity

The API URL paths in data.js use /codeless/data/... but the OpenAPI specification defines the server base as /api/codeless, meaning the backend would expose endpoints at /api/codeless/data/.... Given the proxy configuration strips the /dev-api prefix and forwards the rest unchanged, requests would hit /codeless/data/... instead of the expected /api/codeless/data/..., resulting in 404 errors when the backend is implemented per the spec.

Additional Locations (2)

Fix in Cursor Fix in Web

@topfunplusnew topfunplusnew merged commit 9a95587 into front-dev Jan 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants