mirror of
https://github.com/m1ngsama/TUT.git
synced 2026-02-08 09:04:04 +00:00
Major architectural refactoring from ncurses to FTXUI framework with professional engineering structure. Project Structure: - src/core/: Browser engine, URL parser, HTTP client - src/ui/: FTXUI components (main window, address bar, content view, panels) - src/renderer/: HTML renderer, text formatter, style parser - src/utils/: Logger, config manager, theme manager - tests/unit/: Unit tests for core components - tests/integration/: Integration tests - assets/: Default configs, themes, keybindings New Features: - btop-style four-panel layout with rounded borders - TOML-based configuration system - Multiple color themes (default, nord, gruvbox, solarized) - Comprehensive logging system - Modular architecture with clear separation of concerns Build System: - Updated CMakeLists.txt for modular build - Prefer system packages (Homebrew) over FetchContent - Google Test integration for testing - Version info generation via cmake/version.hpp.in Configuration: - Default config.toml with browser settings - Four built-in themes - Default keybindings configuration - Config stored in ~/.config/tut/ Removed: - Legacy v1 source files (ncurses-based) - Old render/ directory - Duplicate and obsolete test files - Old documentation files Binary: ~827KB (well under 5MB goal) Dependencies: FTXUI, cpp-httplib, toml11, gumbo-parser, OpenSSL
42 lines
971 B
C++
42 lines
971 B
C++
/**
|
|
* @file version.hpp
|
|
* @brief TUT 版本信息
|
|
*
|
|
* 此文件由 CMake 自动生成,请勿手动修改
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace tut {
|
|
|
|
/// 主版本号
|
|
constexpr int VERSION_MAJOR = @PROJECT_VERSION_MAJOR@;
|
|
|
|
/// 次版本号
|
|
constexpr int VERSION_MINOR = @PROJECT_VERSION_MINOR@;
|
|
|
|
/// 补丁版本号
|
|
constexpr int VERSION_PATCH = @PROJECT_VERSION_PATCH@;
|
|
|
|
/// 完整版本字符串
|
|
constexpr const char* VERSION_STRING = "@PROJECT_VERSION@";
|
|
|
|
/// 项目名称
|
|
constexpr const char* PROJECT_NAME = "@PROJECT_NAME@";
|
|
|
|
/// 项目描述
|
|
constexpr const char* PROJECT_DESCRIPTION = "@PROJECT_DESCRIPTION@";
|
|
|
|
/// 项目主页
|
|
constexpr const char* PROJECT_HOMEPAGE = "@PROJECT_HOMEPAGE_URL@";
|
|
|
|
/// 构建类型
|
|
constexpr const char* BUILD_TYPE = "@CMAKE_BUILD_TYPE@";
|
|
|
|
/// 编译器 ID
|
|
constexpr const char* COMPILER_ID = "@CMAKE_CXX_COMPILER_ID@";
|
|
|
|
/// 编译器版本
|
|
constexpr const char* COMPILER_VERSION = "@CMAKE_CXX_COMPILER_VERSION@";
|
|
|
|
} // namespace tut
|