- Edit
- components/HelloWorld.vue to test HMR
-
- Check out - create-vue, the official Vue + Vite starter -
-- Learn more about IDE Support for Vue in the - Vue Docs Scaling up Guide. -
-Click on the Vite and Vue logos to learn more
- - - diff --git a/frontend/admin/src/main.js b/frontend/admin/src/main.js index df3c224..a6c3c57 100644 --- a/frontend/admin/src/main.js +++ b/frontend/admin/src/main.js @@ -1,6 +1,11 @@ +import Aura from '@primeuix/themes/aura'; +import PrimeVue from 'primevue/config'; import { createApp } from 'vue'; import App from './App.vue'; -import { router } from './router'; +import { router } from './router.js'; + +// Import only the required PrimeVue styles +import 'primeicons/primeicons.css'; // Icons import './style.css'; // Log environment information during app initialization @@ -13,4 +18,18 @@ if (typeof import.meta !== 'undefined') { } console.log('============================='); -createApp(App).use(router).mount('#app'); +const app = createApp(App) +app.use(router); +app.use(PrimeVue, { + theme: { + preset: Aura, + }, + ripple: true, + options: { + darkModeSelector: '.my-app-dark', + } +}) + +// Remove global component registrations + +app.mount('#app'); diff --git a/frontend/admin/src/pages/HomePage.vue b/frontend/admin/src/pages/HomePage.vue index fac9492..5c8402a 100644 --- a/frontend/admin/src/pages/HomePage.vue +++ b/frontend/admin/src/pages/HomePage.vue @@ -1,135 +1,91 @@ - -Drag and drop files here or click to browse
-Supports: JPG, PNG, GIF, MP4, PDF
- -|
-
- File Name
-
-
- |
-
-
- Upload Time
-
-
- |
-
-
- File Size
-
-
- |
-
-
- File Type
-
-
- |
- - Actions - | -
|---|---|---|---|---|
|
-
-
-
-
-
-
-
- {{ file.fileName }}
- |
- - {{ file.uploadTime }} - | -- {{ file.fileSize }} - | -- - {{ file.fileType }} - - | -
-
-
-
-
-
- |
-
- Showing {{ startItem }} to {{ - endItem }} of {{ filteredFiles.length }} results -
-| - 标题 - | -- 价格 - | -- 发布时间 - | -- 发布状态 - | -- 媒体类型 - | -- 观看次数 - | -- 操作 - | -
|---|---|---|---|---|---|---|
|
-
-
-
-
-
-
- {{ post.title }}
- 作者: {{ post.author }}
- |
-
- ¥{{ post.price }}
- |
-
- {{ post.publishTime }}
- |
- - - {{ post.status }} - - | -
- {{ post.mediaTypes.join(', ') }}
- |
- - {{ post.viewCount }} - | -
-
-
-
-
-
- |
-