Files
riwa-ionic/packages/distribute/data/apps.ts

454 lines
13 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { AppInfo, AppCategory } from '~/types'
// 应用分类
export const categories: AppCategory[] = [
{ id: 'all', name: { 'zh-CN': '全部', 'en-US': 'All' } },
{ id: 'finance', name: { 'zh-CN': '金融', 'en-US': 'Finance' } },
{ id: 'social', name: { 'zh-CN': '社交', 'en-US': 'Social' } },
{ id: 'tools', name: { 'zh-CN': '工具', 'en-US': 'Tools' } },
{ id: 'entertainment', name: { 'zh-CN': '娱乐', 'en-US': 'Entertainment' } },
]
// 应用列表
export const apps: AppInfo[] = [
{
id: 'riwa-app',
name: 'Riwa',
icon: 'https://static.riwa.com/app-icon.png',
shortDescription: {
'zh-CN': '数字资产交易平台',
'en-US': 'Digital Asset Trading Platform',
},
description: {
'zh-CN': 'Riwa 是一个安全、快速的数字资产交易平台,提供专业的交易工具和实时行情数据。',
'en-US': 'Riwa is a secure and fast digital asset trading platform with professional trading tools and real-time market data.',
},
category: 'finance',
version: '1.0.0',
buildNumber: '100',
releaseDate: '2025-12-30',
releaseNotes: {
'zh-CN': [
'🎉 首次发布',
'✨ 全新的用户界面设计',
'🔐 增强的安全特性',
'⚡ 性能优化,响应速度提升 30%',
'🌍 支持多语言切换',
'🌙 深色模式支持',
],
'en-US': [
'🎉 Initial Release',
'✨ Brand new user interface',
'🔐 Enhanced security features',
'⚡ Performance optimization, 30% faster response',
'🌍 Multi-language support',
'🌙 Dark mode support',
],
},
downloads: {
ios: 'https://example.com/riwa-ios-1.0.0.ipa',
android: 'https://example.com/riwa-android-1.0.0.apk',
h5: 'https://app.riwa.com',
},
size: {
ios: '45.2 MB',
android: '38.6 MB',
},
stats: {
total: 12580,
today: 156,
ios: 7234,
android: 5346,
},
},
{
id: 'riwa-wallet',
name: 'Riwa Wallet',
icon: 'https://static.riwa.com/wallet-icon.png',
shortDescription: {
'zh-CN': '安全的数字资产钱包',
'en-US': 'Secure Digital Asset Wallet',
},
description: {
'zh-CN': 'Riwa Wallet 是一个去中心化的数字资产钱包,支持多链资产管理,私钥由您掌控。',
'en-US': 'Riwa Wallet is a decentralized digital asset wallet supporting multi-chain asset management with your keys under your control.',
},
category: 'finance',
version: '2.1.5',
buildNumber: '215',
releaseDate: '2025-12-28',
releaseNotes: {
'zh-CN': [
'🔐 增强了安全性',
'✨ 支持更多区块链网络',
'🐛 修复了若干已知问题',
'⚡ 交易速度优化',
],
'en-US': [
'🔐 Enhanced security',
'✨ Support for more blockchain networks',
'🐛 Fixed several known issues',
'⚡ Transaction speed optimization',
],
},
downloads: {
ios: 'https://example.com/wallet-ios-2.1.5.ipa',
android: 'https://example.com/wallet-android-2.1.5.apk',
},
size: {
ios: '32.8 MB',
android: '28.3 MB',
},
stats: {
total: 8920,
today: 89,
ios: 5230,
android: 3690,
},
},
{
id: 'riwa-chat',
name: 'Riwa Chat',
icon: 'https://static.riwa.com/chat-icon.png',
shortDescription: {
'zh-CN': '加密即时通讯工具',
'en-US': 'Encrypted Instant Messaging',
},
description: {
'zh-CN': 'Riwa Chat 提供端到端加密的即时通讯服务,保护您的隐私安全。',
'en-US': 'Riwa Chat provides end-to-end encrypted instant messaging to protect your privacy.',
},
category: 'social',
version: '3.0.2',
buildNumber: '302',
releaseDate: '2025-12-25',
releaseNotes: {
'zh-CN': [
'💬 优化了消息同步机制',
'📎 支持发送更多类型的文件',
'🎨 界面美化',
'🔊 新增语音消息功能',
],
'en-US': [
'💬 Optimized message sync',
'📎 Support for more file types',
'🎨 UI improvements',
'🔊 Added voice message feature',
],
},
downloads: {
ios: 'https://example.com/chat-ios-3.0.2.ipa',
android: 'https://example.com/chat-android-3.0.2.apk',
h5: 'https://chat.riwa.com',
},
size: {
ios: '52.1 MB',
android: '46.8 MB',
},
stats: {
total: 15430,
today: 203,
ios: 8920,
android: 6510,
},
},
{
id: 'riwa-conference',
name: 'Riwa Conference',
icon: 'https://static.riwa.com/conference-icon.png',
shortDescription: {
'zh-CN': '会议与协作工具',
'en-US': 'Conference and Collaboration Tool',
},
description: {
'zh-CN': 'Riwa Conference 提供端到端加密的即时通讯服务,保护您的隐私安全。',
'en-US': 'Riwa Conference provides end-to-end encrypted instant messaging to protect your privacy.',
},
category: 'social',
version: '1.0.2',
buildNumber: '102',
releaseDate: '2025-12-25',
releaseNotes: {
'zh-CN': [
'🎥 优化了视频会议质量',
'🗓️ 新增会议日程管理功能',
'🔔 提升了通知的及时性',
'🐛 修复了一些已知问题',
],
'en-US': [
'🎥 Improved video conference quality',
'🗓️ Added meeting schedule management',
'🔔 Improved notification timeliness',
'🐛 Fixed some known issues',
],
},
downloads: {
ios: 'https://example.com/conference-ios-1.0.2.ipa',
android: 'https://example.com/conference-android-1.0.2.apk',
h5: 'https://conference.riwa.com',
},
size: {
ios: '51.1 MB',
android: '32.8 MB',
},
stats: {
total: 15430,
today: 203,
ios: 8920,
android: 6510,
},
},
{
id: 'wechat',
name: '微信',
icon: 'https://pp.myapp.com/ma_icon/0/icon_10910_1765531945/256',
shortDescription: {
'zh-CN': '多功能即时通讯工具',
'en-US': 'Multi-functional Instant Messaging',
},
description: {
'zh-CN': '微信是一款跨平台的通讯工具,支持单人、多人参与,通过手机网络发送语音、图片、视频和文字。',
'en-US': 'WeChat is a cross-platform communication tool that supports voice, pictures, videos and text messages.',
},
category: 'social',
version: '8.0.52',
buildNumber: '8052',
releaseDate: '2026-01-01',
releaseNotes: {
'zh-CN': [
'✨ 优化了部分功能体验',
'🐛 修复了一些已知问题',
'⚡ 提升了应用性能',
],
'en-US': [
'✨ Optimized some features',
'🐛 Fixed some known issues',
'⚡ Improved app performance',
],
},
downloads: {
android: 'https://weixin.qq.com/',
h5: 'https://wx.qq.com',
},
size: {
android: '286 MB',
},
stats: {
total: 980000,
today: 2500,
ios: 0,
android: 980000,
},
},
{
id: 'qq-music',
name: 'QQ音乐',
icon: 'https://pp.myapp.com/ma_icon/0/icon_6259_1766454483/256',
shortDescription: {
'zh-CN': '海量正版音乐在线收听',
'en-US': 'Massive Licensed Music Streaming',
},
description: {
'zh-CN': 'QQ音乐是腾讯推出的一款网络音乐服务产品提供海量音乐在线试听、最流行音乐在线首发、歌词翻译等特色功能。',
'en-US': 'QQ Music is a music streaming service by Tencent, offering massive music library, exclusive releases, and lyrics translation.',
},
category: 'entertainment',
version: '13.5.0',
buildNumber: '1350',
releaseDate: '2025-12-29',
releaseNotes: {
'zh-CN': [
'🎵 新增AI歌单推荐功能',
'🎧 优化音质体验',
'✨ 界面全新升级',
'🐛 修复已知问题',
],
'en-US': [
'🎵 Added AI playlist recommendation',
'🎧 Optimized audio quality',
'✨ Brand new interface',
'🐛 Fixed known issues',
],
},
downloads: {
ios: 'https://y.qq.com/download/download.html',
android: 'https://y.qq.com/download/download.html',
h5: 'https://y.qq.com',
},
size: {
ios: '156 MB',
android: '142 MB',
},
stats: {
total: 560000,
today: 1280,
ios: 320000,
android: 240000,
},
},
{
id: 'amap',
name: '高德地图',
icon: 'https://pp.myapp.com/ma_icon/0/icon_7678_1765965797/256',
shortDescription: {
'zh-CN': '专业地图导航服务',
'en-US': 'Professional Map & Navigation',
},
description: {
'zh-CN': '高德地图是中国领先的数字地图内容、导航和位置服务解决方案提供商,拥有导航电子地图甲级测绘资质。',
'en-US': 'AutoNavi is China\'s leading provider of digital map content, navigation and location services.',
},
category: 'tools',
version: '13.19.0',
buildNumber: '1319',
releaseDate: '2025-12-30',
releaseNotes: {
'zh-CN': [
'🗺️ 地图数据更新',
'🚗 导航功能优化',
'🎯 定位精度提升',
'⚡ 性能优化',
],
'en-US': [
'🗺️ Map data updated',
'🚗 Navigation improved',
'🎯 Enhanced location accuracy',
'⚡ Performance optimization',
],
},
downloads: {
ios: 'https://mobile.amap.com/',
android: 'https://mobile.amap.com/',
},
size: {
ios: '298 MB',
android: '265 MB',
},
stats: {
total: 720000,
today: 1850,
ios: 420000,
android: 300000,
},
},
{
id: 'alipay',
name: '支付宝',
icon: 'https://pp.myapp.com/ma_icon/0/icon_5294_1766996795/256',
shortDescription: {
'zh-CN': '生活好 支付宝',
'en-US': 'Alipay - Digital Wallet',
},
description: {
'zh-CN': '支付宝是全球领先的独立第三方支付平台,致力于为用户打造安全、便捷的支付及生活服务平台。',
'en-US': 'Alipay is a leading independent third-party payment platform, committed to creating a secure and convenient payment and life service platform.',
},
category: 'finance',
version: '10.6.36',
buildNumber: '10636',
releaseDate: '2026-01-02',
releaseNotes: {
'zh-CN': [
'💳 支付体验优化',
'🔐 安全性能提升',
'✨ 新增生活服务功能',
'⚡ 应用性能优化',
],
'en-US': [
'💳 Payment experience optimized',
'🔐 Enhanced security',
'✨ Added new life services',
'⚡ App performance improved',
],
},
downloads: {
ios: 'https://render.alipay.com/p/yuyan/180020010001196791/home.html',
android: 'https://render.alipay.com/p/yuyan/180020010001196791/home.html',
},
size: {
ios: '388 MB',
android: '352 MB',
},
stats: {
total: 1200000,
today: 3200,
ios: 680000,
android: 520000,
},
},
{
id: 'jd',
name: '京东',
icon: 'https://pp.myapp.com/ma_icon/0/icon_7193_1766372100/256',
shortDescription: {
'zh-CN': '多快好省 品质保障',
'en-US': 'JD.com - Online Shopping',
},
description: {
'zh-CN': '京东是中国自营式电商企业,为用户提供正品低价、便捷的购物体验,配送速度快、服务有保障。',
'en-US': 'JD.com is China\'s self-operated e-commerce company, providing genuine products, competitive prices, and fast delivery.',
},
category: 'tools',
version: '12.7.2',
buildNumber: '1272',
releaseDate: '2025-12-31',
releaseNotes: {
'zh-CN': [
'🛍️ 购物体验优化',
'📦 物流信息实时更新',
'💰 新增更多优惠活动',
'🐛 修复部分问题',
],
'en-US': [
'🛍️ Shopping experience optimized',
'📦 Real-time logistics updates',
'💰 Added more promotions',
'🐛 Fixed some issues',
],
},
downloads: {
ios: 'https://app.jd.com/',
android: 'https://app.jd.com/',
h5: 'https://m.jd.com',
},
size: {
ios: '268 MB',
android: '235 MB',
},
stats: {
total: 890000,
today: 2100,
ios: 510000,
android: 380000,
},
},
]
// 获取所有应用
export function getAllApps(): AppInfo[] {
return apps
}
// 根据ID获取应用
export function getAppById(id: string): AppInfo | undefined {
return apps.find(app => app.id === id)
}
// 根据分类获取应用
export function getAppsByCategory(categoryId: string): AppInfo[] {
if (categoryId === 'all') {
return apps
}
return apps.filter(app => app.category === categoryId)
}
// 搜索应用
export function searchApps(keyword: string, locale: 'zh-CN' | 'en-US' = 'zh-CN'): AppInfo[] {
const lowerKeyword = keyword.toLowerCase()
return apps.filter(app =>
app.name.toLowerCase().includes(lowerKeyword)
|| app.shortDescription[locale].toLowerCase().includes(lowerKeyword)
|| app.description[locale].toLowerCase().includes(lowerKeyword),
)
}