feat: 新增后台布局拖拽编辑器
- 布局改为 JSON 文件持久化,新增 /api/layouts 读写接口与坐标/组件校验 - 新增 /editor 拖拽编辑器:12 列网格画布、拖动缩放、属性面板、增删组件 - 图片接口支持外部目录,Content-Type 按扩展名返回 - deploy.yaml 挂载 /opt/composeremote/data,布局与图片持久化
This commit is contained in:
1 parent
484380b11a
commit
07b038b4e7
10 files changed
+1183
-13
No files matched your search
@@ -22,7 +22,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: server
|
||||
image: composeremote/server:1.0.0-layout2
|
||||
image: composeremote/server:1.0.0-editor2
|
||||
imagePullPolicy: Never
|
||||
ports:
|
||||
- name: http
|
||||
@@ -30,6 +30,13 @@ spec:
|
||||
env:
|
||||
- name: JAVA_TOOL_OPTIONS
|
||||
value: "-XX:MaxRAMPercentage=60 -XX:+ExitOnOutOfMemoryError"
|
||||
- name: LAYOUT_DIR
|
||||
value: /app/data/layouts
|
||||
- name: ASSETS_DIR
|
||||
value: /app/data/assets
|
||||
volumeMounts:
|
||||
- name: layouts
|
||||
mountPath: /app/data
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
@@ -47,6 +54,12 @@ spec:
|
||||
port: 8000
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
volumes:
|
||||
# 布局 JSON 落在宿主机,Pod 重建 / 镜像升级不丢数据。
|
||||
- name: layouts
|
||||
hostPath:
|
||||
path: /opt/composeremote/data
|
||||
type: DirectoryOrCreate
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
Reference in new issue
Block a user