litecloud/frontend
Mercurio 2cf335c5ef feat: Add file preview functionality and enhance file handling
- Added `FilePreviewer` component to handle different file types (images, markdown, PDFs, and text).
- Integrated `react-easy-crop` for image cropping in `ImagePreview`.
- Implemented PDF viewing with pagination using `react-pdf`.
- Updated `FilesComponent` to support file previews and downloads.
- Refactored API calls to use a centralized `apiCall` function for better token management.
- Enhanced `Login` and `Register` components to utilize the new API client.
- Removed unused theme toggle functionality from `SettingsComponent`.
- Improved shared files display in `ShareComponent` with a table layout.
- Added error handling and loading states for file operations.
- Updated dependencies in `package.json` for new features.
2025-06-07 23:36:20 +02:00
..
public wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
src feat: Add file preview functionality and enhance file handling 2025-06-07 23:36:20 +02:00
.gitignore wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
eslint.config.js wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
index.html wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
package-lock.json feat: Add file preview functionality and enhance file handling 2025-06-07 23:36:20 +02:00
package.json feat: Add file preview functionality and enhance file handling 2025-06-07 23:36:20 +02:00
postcss.config.cjs wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
README.md wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
tailwind.config.js wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
tsconfig.app.json wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
tsconfig.json wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
tsconfig.node.json wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00
vite.config.ts wip frontend [do not push to live] 2025-06-05 23:33:32 +02:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default tseslint.config({
  extends: [
    // Remove ...tseslint.configs.recommended and replace with this
    ...tseslint.configs.recommendedTypeChecked,
    // Alternatively, use this for stricter rules
    ...tseslint.configs.strictTypeChecked,
    // Optionally, add this for stylistic rules
    ...tseslint.configs.stylisticTypeChecked,
  ],
  languageOptions: {
    // other options...
    parserOptions: {
      project: ['./tsconfig.node.json', './tsconfig.app.json'],
      tsconfigRootDir: import.meta.dirname,
    },
  },
})

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default tseslint.config({
  plugins: {
    // Add the react-x and react-dom plugins
    'react-x': reactX,
    'react-dom': reactDom,
  },
  rules: {
    // other rules...
    // Enable its recommended typescript rules
    ...reactX.configs['recommended-typescript'].rules,
    ...reactDom.configs.recommended.rules,
  },
})