Enhance market module with new chat and events features
- Introduce chat module with components, services, and composables for real-time messaging. - Implement events module with API service, components, and ticket purchasing functionality. - Update app configuration to include new modules and their respective settings. - Refactor existing components to integrate with the new chat and events features. - Enhance market store and services to support new functionalities and improve order management. - Update routing to accommodate new views for chat and events, ensuring seamless navigation.
This commit is contained in:
parent
519a9003d4
commit
e40ac91417
46 changed files with 6305 additions and 3264 deletions
27
src/app.ts
27
src/app.ts
|
|
@ -12,6 +12,9 @@ import appConfig from './app.config'
|
|||
// Base modules
|
||||
import baseModule from './modules/base'
|
||||
import nostrFeedModule from './modules/nostr-feed'
|
||||
import chatModule from './modules/chat'
|
||||
import eventsModule from './modules/events'
|
||||
import marketModule from './modules/market'
|
||||
|
||||
// Root component
|
||||
import App from './App.vue'
|
||||
|
|
@ -81,10 +84,26 @@ export async function createAppInstance() {
|
|||
)
|
||||
}
|
||||
|
||||
// TODO: Register other modules as they're converted
|
||||
// - market module
|
||||
// - chat module
|
||||
// - events module
|
||||
// Register chat module
|
||||
if (appConfig.modules.chat.enabled) {
|
||||
moduleRegistrations.push(
|
||||
pluginManager.register(chatModule, appConfig.modules.chat)
|
||||
)
|
||||
}
|
||||
|
||||
// Register events module
|
||||
if (appConfig.modules.events.enabled) {
|
||||
moduleRegistrations.push(
|
||||
pluginManager.register(eventsModule, appConfig.modules.events)
|
||||
)
|
||||
}
|
||||
|
||||
// Register market module
|
||||
if (appConfig.modules.market.enabled) {
|
||||
moduleRegistrations.push(
|
||||
pluginManager.register(marketModule, appConfig.modules.market)
|
||||
)
|
||||
}
|
||||
|
||||
// Wait for all modules to register
|
||||
await Promise.all(moduleRegistrations)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue