1Panel/frontend
KOMATA af48fed3c2
feat: Add file preview functionality and interface (#11200)
* feat: Add file content preview functionality

- Implemented a new API endpoint for previewing file content.
- Added PreviewContent method in BaseApi to handle requests.
- Introduced GetPreviewContent method in FileService to retrieve file previews.
- Updated frontend to include a TextPreview component for displaying file previews.
- Added localization support for preview-related messages in multiple languages.
- Enhanced file management view to support previewing large files.

* feat: Update file preview functionality and interface

- Added PreviewContentReq interface to define request parameters for file preview.
- Updated getPreviewContent function to use the new PreviewContentReq type.
- Modified text-preview component to align with updated API, removing unnecessary parameters.
2025-12-08 16:37:50 +08:00
..
public feat: Adjust the logo’s aspect ratio to prevent it from appearing stretched 2025-06-24 17:29:15 +08:00
src feat: Add file preview functionality and interface (#11200) 2025-12-08 16:37:50 +08:00
.editorconfig fix: Move inline editorconfig comments (#9839) 2025-08-05 10:38:50 +08:00
.env
.env.development
.env.production
.eslintignore
.eslintrc.js
.gitignore
.prettierignore
.prettierrc.js
.stylelintignore
.stylelintrc.js
index.html
lint-staged.config.js
package.json fix: Fix style issues caused by element upgrade (#11224) 2025-12-06 14:16:34 +00:00
postcss.config.cjs feat: File management supports file format conversion (#10541) 2025-09-29 09:26:21 +00:00
tailwind.config.js
tsconfig.json feat: Remove unused front-end components (#10432) 2025-09-22 08:00:07 +00:00
vite-env.d.ts
vite.config.ts fix: Fixed file comparison highlighting loss issue (#11237) 2025-12-08 03:28:35 +00:00