Files
flvx/vite-frontend
sagit 45d7970177 feat: 添加公告系统(支持SQLite和PostgreSQL) (#129)
* feat(announcement): add database schema for SQLite and PostgreSQL

Add announcement table with id, title, content, enabled, created_at, updated_at columns to both SQLite and PostgreSQL schemas to support announcement system.

* feat(announcement): implement SQLite repository for announcement management

Add announcement CRUD operations in SQLite repository including create, read, update, delete, and list methods with proper error handling.

* feat(announcement): add HTTP handlers and auth middleware for announcement API

Implement admin-only update endpoint and public read endpoint for announcements. Add auth middleware to enforce admin-only access for update operations.

* feat(announcement): add frontend API client for announcement endpoints

Implement API client methods for fetching announcements and updating announcement settings with proper error handling.

* feat(announcement): add announcement display component to dashboard

Implement announcement display section in dashboard with real-time updates and proper styling using HeroUI components.

* feat(announcement): add announcement management UI to config page

Implement announcement settings panel with enable/disable toggle and content editor for admin users to manage announcements.
2026-02-15 15:43:41 +00:00
..
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2026-01-06 11:30:39 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00
2025-07-02 15:40:14 +08:00

Vite & HeroUI Template

This is a template for creating applications using Vite and HeroUI (v2).

Try it on CodeSandbox

Technologies Used

How to Use

To clone the project, run the following command:

git clone https://github.com/frontio-ai/vite-template.git

Install dependencies

You can use one of them npm, yarn, pnpm, bun, Example using npm:

npm install

Run the development server

npm run dev

Setup pnpm (optional)

If you are using pnpm, you need to add the following code to your .npmrc file:

public-hoist-pattern[]=*@heroui/*

After modifying the .npmrc file, you need to run pnpm install again to ensure that the dependencies are installed correctly.

License

Licensed under the MIT license.