feat: implement AI schedule app with multi-device sync
- Qt 6 desktop client with day/month/year views, AI scheduling, and TOML settings\n- Go sync server with SQLite change stream, WebSocket notifications, and Docker deployment\n- Client outbox/LWW sync, offline retry, and dual-client integration tests\n- Linux fcitx5 setup, validation reports, and Windows MinGW preset
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
add_library(schedule_core STATIC
|
||||
core/DateTimeUtils.cpp
|
||||
core/DateTimeUtils.h
|
||||
core/ProposedDiff.h
|
||||
core/SchedulerEngine.cpp
|
||||
core/SchedulerEngine.h
|
||||
core/ScheduleItem.h
|
||||
core/Task.h
|
||||
core/TimeBlock.h
|
||||
storage/Migrations.cpp
|
||||
storage/Migrations.h
|
||||
storage/SqliteStore.cpp
|
||||
storage/SqliteStore.h
|
||||
)
|
||||
target_include_directories(schedule_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(schedule_core
|
||||
PUBLIC Qt6::Core Qt6::Sql
|
||||
PRIVATE schedule_warnings
|
||||
)
|
||||
|
||||
add_library(schedule_services STATIC
|
||||
services/NotificationService.cpp
|
||||
services/NotificationService.h
|
||||
services/ScheduleService.cpp
|
||||
services/ScheduleService.h
|
||||
utils/AppPaths.cpp
|
||||
utils/AppPaths.h
|
||||
utils/AppSettings.cpp
|
||||
utils/AppSettings.h
|
||||
)
|
||||
target_include_directories(schedule_services PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(schedule_services
|
||||
PUBLIC schedule_core Qt6::Core
|
||||
PRIVATE schedule_warnings tomlplusplus
|
||||
)
|
||||
|
||||
|
||||
add_library(schedule_ai STATIC
|
||||
ai/AIService.cpp
|
||||
ai/AIService.h
|
||||
ai/FileExtractor.cpp
|
||||
ai/FileExtractor.h
|
||||
ai/IAIProvider.h
|
||||
ai/OpenAiProvider.cpp
|
||||
ai/OpenAiProvider.h
|
||||
ai/PromptLoader.cpp
|
||||
ai/PromptLoader.h
|
||||
ai/ScheduleProposal.h
|
||||
${CMAKE_SOURCE_DIR}/client/resources/prompts.qrc
|
||||
)
|
||||
target_include_directories(schedule_ai PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(schedule_ai
|
||||
PUBLIC schedule_services Qt6::Core Qt6::Network Qt6::Concurrent
|
||||
PRIVATE schedule_warnings
|
||||
)
|
||||
|
||||
|
||||
add_library(schedule_sync STATIC
|
||||
sync/SyncService.cpp
|
||||
sync/SyncService.h
|
||||
core/SyncTypes.h
|
||||
)
|
||||
target_include_directories(schedule_sync PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(schedule_sync
|
||||
PUBLIC schedule_services Qt6::Core Qt6::Network Qt6::WebSockets
|
||||
PRIVATE schedule_warnings
|
||||
)
|
||||
|
||||
add_library(schedule_ui STATIC
|
||||
platform/SystemTray.cpp
|
||||
platform/SystemTray.h
|
||||
ui/AppIcon.cpp
|
||||
ui/AppIcon.h
|
||||
ui/CompactWindow.cpp
|
||||
ui/CompactWindow.h
|
||||
ui/MainWindow.cpp
|
||||
ui/MainWindow.h
|
||||
ui/dialogs/BlockEditDialog.cpp
|
||||
ui/dialogs/BlockEditDialog.h
|
||||
ui/dialogs/SettingsDialog.cpp
|
||||
ui/dialogs/SettingsDialog.h
|
||||
ui/panels/ChatPanel.cpp
|
||||
ui/panels/ChatPanel.h
|
||||
ui/panels/DiffPreviewCard.cpp
|
||||
ui/panels/DiffPreviewCard.h
|
||||
ui/panels/TodayItemCard.cpp
|
||||
ui/panels/TodayItemCard.h
|
||||
ui/panels/TodayPanel.cpp
|
||||
ui/panels/TodayPanel.h
|
||||
ui/theme/ThemeManager.cpp
|
||||
ui/theme/ThemeManager.h
|
||||
ui/theme/ThemeTokens.h
|
||||
ui/theme/WindowEffects.cpp
|
||||
ui/theme/WindowEffects.h
|
||||
ui/views/MonthView.cpp
|
||||
ui/views/MonthView.h
|
||||
ui/views/ScheduleGridView.cpp
|
||||
ui/views/ScheduleGridView.h
|
||||
ui/views/YearView.cpp
|
||||
ui/views/YearView.h
|
||||
)
|
||||
target_include_directories(schedule_ui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(schedule_ui
|
||||
PUBLIC schedule_ai schedule_sync Qt6::Widgets ElaWidgetTools
|
||||
PRIVATE schedule_warnings
|
||||
)
|
||||
|
||||
qt_add_executable(Schedule
|
||||
main.cpp
|
||||
)
|
||||
set_target_properties(Schedule PROPERTIES
|
||||
WIN32_EXECUTABLE ON
|
||||
MACOSX_BUNDLE ON
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
|
||||
)
|
||||
target_link_libraries(Schedule PRIVATE schedule_ui schedule_sync)
|
||||
Reference in New Issue
Block a user