@kongxiangyiren/dhs-theme-plugin: Theme Management Plugin for DSH Web Interface

# Introduction The default DSH web interface offers only three appearance modes: "Follow System," "Light," and "Dark." There is no built-in entry to change the color scheme. `@kongxiangyiren/dhs-theme-plugin` fills this gap: it adds a "Themes" category under "Settings," includes two built-in themes (Forest Green and Ocean Blue), and allows users to upload custom JS themes. Themes can be switched with a single click, and the data is persisted on the disk, ensuring it remains available when switching browsers. Below is an introduction to its features, installation, and usage. # What is This This is a DSH theme management plugin developed by kongxiangyiren, currently at version 0.0.3 under the MIT license. DSH's philosophy is "Everything is a Plugin," and this plugin extends the interface layer: it performs two main functions, the first of which is providing...

Read More
Enhancing FastAPI Documentation: Tips for Customizing Swagger UI

Swagger UI is the default API documentation tool for FastAPI, enabling interface visualization and testing. Customization can enhance its professionalism. For basic modifications, set parameters like title and description when creating the FastAPI instance to display personalized information on the `/docs` page. There are two styles customization methods: injecting CSS via middleware to quickly modify the background, navigation bar, etc.; or using static files to inject complex styles (e.g., logos). Sensitive information can be hidden by excluding fields with `Pydantic` model `Field(exclude=True)` or the interface `response_model_exclude`. Advanced techniques include layout adjustment, adding descriptions, and replacing buttons. The core implementation relies on basic information, CSS, and parameter control. Beginners can start with simple modifications while noting version compatibility.

Read More