mirror of
https://github.com/Dvorinka/Dash.git
synced 2026-06-03 23:12:56 +00:00
refactor(frontend): restructure project layout and update API schema
Relocate frontend source code from `next-app/` to `frontend/` to align with the new project structure. This includes removing the old Next.js boilerplate files and establishing a cleaner workspace. Additionally, updates the OpenAPI specification to include support for the `immich` widget type and its corresponding configuration schema. - Move frontend files to `frontend/` - Delete obsolete `next-app/` directory and its configuration - Add `immich` widget type to `openapi.yaml` - Update `FrontendPlan.md` with dashboard refactor and UX direction
This commit is contained in:
@@ -521,7 +521,7 @@ components:
|
||||
type: object
|
||||
required: [type, title, config]
|
||||
properties:
|
||||
type: { type: string, enum: [clock, image, pihole, memos] }
|
||||
type: { type: string, enum: [clock, image, pihole, memos, immich] }
|
||||
title: { type: string, minLength: 1, maxLength: 80 }
|
||||
enabled: { type: boolean, default: true }
|
||||
config:
|
||||
@@ -530,6 +530,7 @@ components:
|
||||
- $ref: "#/components/schemas/ImageWidgetConfig"
|
||||
- $ref: "#/components/schemas/PiHoleWidgetConfig"
|
||||
- $ref: "#/components/schemas/MemosWidgetConfig"
|
||||
- $ref: "#/components/schemas/ImmichWidgetConfig"
|
||||
ClockWidgetConfig:
|
||||
type: object
|
||||
properties:
|
||||
@@ -555,6 +556,12 @@ components:
|
||||
baseUrl: { type: string, format: uri }
|
||||
apiToken: { type: string, writeOnly: true }
|
||||
pageSize: { type: integer, default: 5 }
|
||||
ImmichWidgetConfig:
|
||||
type: object
|
||||
required: [baseUrl, apiKey]
|
||||
properties:
|
||||
baseUrl: { type: string, format: uri }
|
||||
apiKey: { type: string, writeOnly: true }
|
||||
ErrorResponse:
|
||||
type: object
|
||||
required: [code, message, details]
|
||||
|
||||
Reference in New Issue
Block a user