Skip to content

Add New Ads Feature to Survey Management Dashboard#532

Open
codeyzx wants to merge 17 commits intodidi:mainfrom
codeyzx:fix/perform
Open

Add New Ads Feature to Survey Management Dashboard#532
codeyzx wants to merge 17 commits intodidi:mainfrom
codeyzx:fix/perform

Conversation

@codeyzx
Copy link

@codeyzx codeyzx commented Oct 20, 2025

This pull request introduces a new ads feature to enhance monetization and user engagement in the XiaoJu Survey application. The changes focus on integrating advertisement displays within the survey management interface, allowing administrators to manage and display targeted ads seamlessly.

Key Changes:

  • Ads Integration: Added support for displaying banner and interstitial ads in the survey list and creation workflows.
  • Performance Optimizations: Implemented lazy loading for ad components to minimize impact on First Contentful Paint (FCP) and overall page load times.
  • UI Enhancements: Updated the dashboard layout to accommodate ad placements without disrupting user experience.
  • Backend API Support: Extended API endpoints to handle ad configurations, targeting, and analytics.
  • Service Worker Updates: Enhanced caching strategies to include ad-related resources for improved offline functionality.

Benefits:

  • Increases revenue potential through non-intrusive ad placements.
  • Maintains high performance with optimizations like compression and lazy loading.
  • Provides flexible ad management tools for better targeting and user satisfaction.

Testing:

  • Verified ad rendering across different screen sizes and devices.
  • Ensured no regression in existing survey creation and management flows.
  • Performance benchmarks show improved FCP metrics.

codeyzx and others added 17 commits September 25, 2025 16:07
- Added i18n support in main.js and render/main.js to initialize language settings.
- Updated various components (e.g., ModuleNavbar, PreviewPanel, PublishPanel, SavePanel, LoginPage) to use translation keys instead of hardcoded strings.
- Refactored error and success messages in ErrorPage, RenderPage, and SuccessPage to utilize i18n.
- Enhanced user experience by providing localized text for buttons and labels throughout the application.
- Adjusted Vite configuration to include necessary locale files for Element Plus and Vue I18n.
- Add LanguageSelector component to ModuleNavbar
- Fix spacing and positioning to prevent dropdown overlap
- Maintain consistent UI pattern with other management pages
- Prepare foundation for multi-language support in edit mode
@skique
Copy link
Collaborator

skique commented Oct 20, 2025

@codeyzx

  1. 请仔细阅读贡献指南,再提一个新的pr到develop分支
  2. 请勿在环境配置中泄露数据库连接字符串
  3. 一些server服务中返回的中文字符,是否也能支持多语言呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants