Skip to content

Commit e31e577

Browse files
authored
Merge pull request #2822 from goplus/dev
Release v1.12.1
2 parents 4a0bb9f + 85bebce commit e31e577

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4973
-910
lines changed

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./README.md

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./README.md

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ WORKDIR /app/spx-gui
2727
COPY spx-gui/package.json spx-gui/package-lock.json .
2828
COPY spx-gui/public ./public
2929
COPY spx-gui/install-spx.sh .
30+
COPY spx-gui/build-tutorial-books.sh .
3031
ARG NPM_CONFIG_REGISTRY
3132
RUN npm install
3233

3334
COPY spx-gui .
3435
COPY docs ../docs
3536
COPY tools ../tools
37+
COPY tutorial ../tutorial
3638
# Copy assets (with wasm)
3739
COPY --from=go-builder /app/spx-gui/src/assets /app/spx-gui/src/assets
3840

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ You can try XBuilder online at https://xbuilder.com.
1212

1313
For users in mainland China, we recommend visiting https://x.qiniu.com for optimal performance.
1414

15+
## Learn more about XBuilder
16+
17+
Read [Product Design](./docs/product/index.md) to understand the core concepts in XBuilder.
18+
19+
Read other content in [product docs directory](./docs/product/) to learn more about XBuilder's key features.
20+
1521
## How to develop
1622

17-
See details in [Develop XBuilder](./docs/develop/index.md).
23+
For information like project structure, environment requirements, etc., refer to [Develop XBuilder](./docs/develop/index.md).

docs/develop/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
### Project Structure
44

55
- **`/docs`**: Documentations for XBuilder.
6+
- **`/scripts`**: Scripts for building, deploying, or other automation tasks.
67
- **`/spx-gui`**: Front-end project.
78
- **`/tools`**: Other independent tools that XBuilder depends on.
8-
- **`/scripts`**: Scripts for building, deploying, or other automation tasks.
9+
- **`/tutorial`**: Tutorial content for learning in XBuilder.
910

1011
### Environment Requirements
1112

12-
- **Node.js**: >= 20.11.1
13-
- **Go**: >= 1.24.0
13+
See `package.json` or `go.mod` files in subdirectories for details.
1414

1515
### Architecture Design
1616

docs/openapi.yaml

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,6 +2255,23 @@ paths:
22552255
type: array
22562256
items:
22572257
$ref: "#/components/schemas/AIGCAnimationSettings"
2258+
animationBindings:
2259+
description: |
2260+
Recommended mapping from sprite state enum values to animation names.
2261+
Keys are sprite state enum values; values are animation name strings that should
2262+
match the 'name' field from the animations array, omitted if no animation is bound to that state.
2263+
type: object
2264+
additionalProperties: false
2265+
properties:
2266+
default:
2267+
type: string
2268+
step:
2269+
type: string
2270+
die:
2271+
type: string
2272+
example:
2273+
default: "idle"
2274+
step: "walk"
22582275
"403":
22592276
description: Insufficient permissions or quota.
22602277
headers:
@@ -2270,43 +2287,6 @@ paths:
22702287
schema:
22712288
type: integer
22722289

2273-
/aigc/matting:
2274-
post:
2275-
tags:
2276-
- AIGC
2277-
deprecated: true
2278-
summary: Remove image background
2279-
description: |
2280-
Process the provided image URL to remove its background, resulting in a transparent background.
2281-
2282-
**Deprecated**: This endpoint is deprecated and will be removed in a future version. Use `POST /aigc/task` with
2283-
`type: "removeBackground"` instead, which provides better reliability for long-running operations.
2284-
requestBody:
2285-
required: true
2286-
content:
2287-
application/json:
2288-
schema:
2289-
type: object
2290-
required:
2291-
- imageUrl
2292-
properties:
2293-
imageUrl:
2294-
description: URL of the image to process for background removal.
2295-
type: string
2296-
format: uri
2297-
responses:
2298-
"200":
2299-
description: Successfully processed the image for background removal.
2300-
content:
2301-
application/json:
2302-
schema:
2303-
type: object
2304-
properties:
2305-
resultUrl:
2306-
description: URL of the processed image with background removed.
2307-
type: string
2308-
format: uri
2309-
23102290
/util/upinfo:
23112291
get:
23122292
tags:

spx-gui/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ VITE_CASDOOR_ORGANIZATION_NAME=""
5050
VITE_DISABLE_AIGC="false"
5151

5252
# Version of spx, keep in sync with the version in `install-spx.sh`.
53-
VITE_SPX_VERSION=2.0.0-pre.44
53+
VITE_SPX_VERSION=2.0.0-pre.45
5454

5555
# Whether to show the license information (including copyright) in the footer.
5656
VITE_SHOW_LICENSE="false"

spx-gui/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ dist-ssr
1515
.eslintcache
1616
report.html
1717

18+
# GitBook generated files
19+
public/tutorial-books
20+
1821
npm-debug.log*
1922
.pnpm-error.log*
2023
.pnpm-debug.log

spx-gui/build-tutorial-books.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# GitBook build script wrapper
4+
# This script calls the actual build script in the tutorial directory
5+
6+
set -e
7+
8+
# Execute the tutorial build script
9+
( cd ../tutorial && ./build.sh )

spx-gui/install-spx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44
cd "$(dirname "$0")"
55

66
# Version of spx, keep in sync with the version in `.env`.
7-
SPX_VERSION=2.0.0-pre.44
7+
SPX_VERSION=2.0.0-pre.45
88
SPX_NAME="spx_${SPX_VERSION}"
99
SPX_FILE_NAME="${SPX_NAME}.zip"
1010
SPX_FILE_URL="https://github.com/goplus/spx/releases/download/v${SPX_VERSION}/spx_web.zip"

0 commit comments

Comments
 (0)