@svadmin/core 0.28.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/i18n.svelte.ts +0 -268
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svadmin/core",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "author": "zuohuadong",
5
5
  "repository": {
6
6
  "type": "git",
@@ -144,19 +144,6 @@ const baseLocales: Record<string, Record<string, string>> = {
144
144
  'devtools.title': '开发者工具 (Ctrl+Shift+D)',
145
145
  // Validation
146
146
  // Chat
147
- 'chat.title': 'AI 助手',
148
- 'chat.typing': '输入中...',
149
- 'chat.clear': '清空',
150
- 'chat.welcome': '我可以帮你做什么?',
151
- 'chat.welcomeDesc': '可以询问当前后台、资源和库存运营数据。',
152
- 'chat.thinking': '思考中...',
153
- 'chat.placeholder': '输入消息...',
154
- 'chat.shortcutHint': '切换',
155
- 'chat.error': '抱歉,处理时出现问题,请重试。',
156
- 'chat.approvalRequired': '需要确认',
157
- 'chat.suggestion1': '如何新建一条资源记录?',
158
- 'chat.suggestion2': '解释当前数据模型',
159
- 'chat.suggestion3': '帮我写一个筛选条件',
160
147
  'chat.contextInfo': '当前上下文:{resource}',
161
148
  'chat.actionButton': '执行',
162
149
  'chat.historyRestored': '已恢复聊天记录',
@@ -385,127 +372,6 @@ const baseLocales: Record<string, Record<string, string>> = {
385
372
  'task.status.dead_lettered': '死信',
386
373
  'task.status.retry_scheduled': '等待重试',
387
374
  'task.status.leased': '已领取',
388
- // Public Profile
389
- 'publicProfile.title': '公开资料',
390
- 'publicProfile.projects': '项目',
391
- 'publicProfile.activity': '动态',
392
- 'publicProfile.teams': '团队',
393
- 'publicProfile.profile': '资料',
394
- 'publicProfile.viewProfile': '查看资料',
395
- 'publicProfile.followers': '关注者',
396
- 'publicProfile.following': '关注中',
397
- 'publicProfile.editProfile': '编辑资料',
398
- 'publicProfile.sendMessage': '发消息',
399
- 'publicProfile.addFriend': '添加好友',
400
- 'publicProfile.projects2Col': '项目 (两列)',
401
- 'publicProfile.projects3Col': '项目 (三列)',
402
- 'publicProfile.noProjects': '暂无项目',
403
- 'publicProfile.noActivity': '暂无动态',
404
- 'publicProfile.noTeams': '暂无团队',
405
- 'publicProfile.joinedDate': '加入于 {date}',
406
- 'publicProfile.projectMembers': '{count} 名成员',
407
- 'publicProfile.projectTasks': '{count} 个任务',
408
- 'publicProfile.activityPosted': '发布了内容',
409
- 'publicProfile.activityCommented': '评论了',
410
- 'publicProfile.activityJoined': '加入了',
411
- 'publicProfile.activityCreated': '创建了',
412
- // Profile variants
413
- 'profile.company': '公司资料',
414
- 'profile.companyDescription': '公司简介和统计信息',
415
- 'profile.gamer': '玩家资料',
416
- 'profile.gamerDescription': '游戏成就和统计',
417
- 'profile.default': '个人资料',
418
- 'profile.defaultDescription': '个人简介和活动',
419
- 'profile.companyName': '公司名称',
420
- 'profile.industry': '行业',
421
- 'profile.employees': '员工数',
422
- 'profile.founded': '成立时间',
423
- 'profile.website': '网站',
424
- 'profile.gamerTag': '玩家标签',
425
- 'profile.level': '等级',
426
- 'profile.rank': '排名',
427
- 'profile.gamesPlayed': '游戏场次',
428
- 'profile.winRate': '胜率',
429
- // Account extensions
430
- 'account.getStarted': '入门指南',
431
- 'account.getStartedDescription': '按照步骤完成初始设置,快速上手平台功能。',
432
- 'account.companyProfile': '公司信息',
433
- 'account.companyProfileDescription': '管理公司基本信息和品牌设置。',
434
- 'account.settingsPlain': '基本设置',
435
- 'account.settingsPlainDescription': '管理基本账户设置。',
436
- 'account.settingsSidebar': '侧栏设置',
437
- 'account.settingsSidebarDescription': '配置侧边栏布局和行为。',
438
- 'account.settingsEnterprise': '企业设置',
439
- 'account.settingsEnterpriseDescription': '管理企业级配置和策略。',
440
- 'account.importMembers': '导入成员',
441
- 'account.importMembersDescription': '从 CSV 文件批量导入团队成员。',
442
- 'account.membersStarter': '成员概览',
443
- 'account.membersStarterDescription': '查看和管理工作区成员。',
444
- 'account.securityLog': '安全日志',
445
- 'account.securityLogDescription': '查看账户安全相关的操作记录。',
446
- 'account.step': '第 {current} 步(共 {total} 步)',
447
- 'account.completeSetup': '完成设置',
448
- 'account.uploadAvatar': '上传头像',
449
- 'account.connectProvider': '连接服务',
450
- 'account.setupProfile': '完善资料',
451
- 'account.setupTeam': '邀请团队',
452
- 'account.skipSetup': '跳过设置',
453
- 'account.nextStep': '下一步',
454
- 'account.prevStep': '上一步',
455
- 'account.finishSetup': '完成设置',
456
- 'account.dragOrClick': '拖拽文件或点击上传',
457
- 'account.supportedFormats': '支持 CSV、XLSX 格式',
458
- 'account.downloadTemplate': '下载模板',
459
- 'account.startImport': '开始导入',
460
- 'account.importProgress': '导入进度',
461
- 'account.importComplete': '导入完成',
462
- 'account.imported': '已导入 {count} 条记录',
463
- 'account.member': '成员',
464
- 'account.role': '角色',
465
- 'account.status': '状态',
466
- 'account.joined': '加入时间',
467
- 'account.active': '活跃',
468
- 'account.invited': '已邀请',
469
- 'account.inactive': '未激活',
470
- 'account.inviteMember': '邀请成员',
471
- 'account.removeMember': '移除成员',
472
- // Network
473
- 'network.userCards': '用户卡片',
474
- 'network.userCardsDescription': '以卡片形式浏览用户列表。',
475
- 'network.teamCrew': '团队花名册',
476
- 'network.teamCrewDescription': '以表格形式查看团队成员信息。',
477
- 'network.connect': '关注',
478
- 'network.connected': '已关注',
479
- 'network.nftCollection': 'NFT 收藏',
480
- 'network.nftCount': '{count} 件藏品',
481
- 'network.floorPrice': '地板价',
482
- 'network.volume': '交易量',
483
- 'network.viewCollection': '查看收藏',
484
- // Auth
485
- 'auth.twoFactorSetup': '设置双重验证',
486
- 'auth.twoFactorVerify': '验证身份',
487
- 'auth.twoFactorRecovery': '恢复代码',
488
- 'auth.twoFactorScanQR': '使用验证器应用扫描二维码',
489
- 'auth.twoFactorEnterCode': '输入 6 位验证码',
490
- 'auth.twoFactorVerifySuccess': '双重验证已成功启用',
491
- 'auth.twoFactorSaveRecovery': '请妥善保存以下恢复代码',
492
- 'auth.twoFactorRecoveryHint': '当您无法使用验证器时,可使用恢复代码登录。每个代码只能使用一次。',
493
- 'auth.twoFactorDisable': '关闭双重验证',
494
- 'auth.twoFactorDisableConfirm': '确认要关闭双重验证吗?这将降低账户安全性。',
495
- // Security Log
496
- 'securityLog.event': '事件',
497
- 'securityLog.ip': 'IP 地址',
498
- 'securityLog.device': '设备',
499
- 'securityLog.location': '位置',
500
- 'securityLog.time': '时间',
501
- 'securityLog.loginSuccess': '登录成功',
502
- 'securityLog.loginFailed': '登录失败',
503
- 'securityLog.passwordChanged': '密码已修改',
504
- 'securityLog.twoFactorEnabled': '已启用双重验证',
505
- 'securityLog.twoFactorDisabled': '已关闭双重验证',
506
- 'securityLog.apiKeyCreated': 'API 密钥已创建',
507
- 'securityLog.apiKeyRevoked': 'API 密钥已吊销',
508
- 'securityLog.sessionRevoked': '会话已注销',
509
375
  },
510
376
  'en': {
511
377
  'common.list': 'List',
@@ -648,19 +514,6 @@ const baseLocales: Record<string, Record<string, string>> = {
648
514
  'devtools.title': 'DevTools (Ctrl+Shift+D)',
649
515
  // Validation
650
516
  // Chat
651
- 'chat.title': 'AI Assistant',
652
- 'chat.typing': 'Typing...',
653
- 'chat.clear': 'Clear',
654
- 'chat.welcome': 'How can I help?',
655
- 'chat.welcomeDesc': 'Ask me anything about your admin panel, resources, and inventory operations.',
656
- 'chat.thinking': 'Thinking...',
657
- 'chat.placeholder': 'Type a message...',
658
- 'chat.shortcutHint': 'to toggle',
659
- 'chat.error': 'Sorry, something went wrong. Please try again.',
660
- 'chat.approvalRequired': 'Approval required',
661
- 'chat.suggestion1': 'How do I create a new resource?',
662
- 'chat.suggestion2': 'Explain the data model',
663
- 'chat.suggestion3': 'Help me write a filter query',
664
517
  'chat.contextInfo': 'Current context: {resource}',
665
518
  'chat.actionButton': 'Execute',
666
519
  'chat.historyRestored': 'Chat history restored',
@@ -889,127 +742,6 @@ const baseLocales: Record<string, Record<string, string>> = {
889
742
  'task.status.dead_lettered': 'Dead lettered',
890
743
  'task.status.retry_scheduled': 'Retry scheduled',
891
744
  'task.status.leased': 'Leased',
892
- // Public Profile
893
- 'publicProfile.title': 'Public Profile',
894
- 'publicProfile.projects': 'Projects',
895
- 'publicProfile.activity': 'Activity',
896
- 'publicProfile.teams': 'Teams',
897
- 'publicProfile.profile': 'Profile',
898
- 'publicProfile.viewProfile': 'View Profile',
899
- 'publicProfile.followers': 'Followers',
900
- 'publicProfile.following': 'Following',
901
- 'publicProfile.editProfile': 'Edit Profile',
902
- 'publicProfile.sendMessage': 'Send Message',
903
- 'publicProfile.addFriend': 'Add Friend',
904
- 'publicProfile.projects2Col': 'Projects (2 Columns)',
905
- 'publicProfile.projects3Col': 'Projects (3 Columns)',
906
- 'publicProfile.noProjects': 'No projects yet',
907
- 'publicProfile.noActivity': 'No activity yet',
908
- 'publicProfile.noTeams': 'No teams yet',
909
- 'publicProfile.joinedDate': 'Joined {date}',
910
- 'publicProfile.projectMembers': '{count} members',
911
- 'publicProfile.projectTasks': '{count} tasks',
912
- 'publicProfile.activityPosted': 'posted',
913
- 'publicProfile.activityCommented': 'commented on',
914
- 'publicProfile.activityJoined': 'joined',
915
- 'publicProfile.activityCreated': 'created',
916
- // Profile variants
917
- 'profile.company': 'Company Profile',
918
- 'profile.companyDescription': 'Company overview and statistics',
919
- 'profile.gamer': 'Gamer Profile',
920
- 'profile.gamerDescription': 'Gaming achievements and stats',
921
- 'profile.default': 'Default Profile',
922
- 'profile.defaultDescription': 'Personal overview and activity',
923
- 'profile.companyName': 'Company Name',
924
- 'profile.industry': 'Industry',
925
- 'profile.employees': 'Employees',
926
- 'profile.founded': 'Founded',
927
- 'profile.website': 'Website',
928
- 'profile.gamerTag': 'Gamer Tag',
929
- 'profile.level': 'Level',
930
- 'profile.rank': 'Rank',
931
- 'profile.gamesPlayed': 'Games Played',
932
- 'profile.winRate': 'Win Rate',
933
- // Account extensions
934
- 'account.getStarted': 'Get Started',
935
- 'account.getStartedDescription': 'Follow the steps to complete your initial setup and get up to speed quickly.',
936
- 'account.companyProfile': 'Company Profile',
937
- 'account.companyProfileDescription': 'Manage company information and branding.',
938
- 'account.settingsPlain': 'Basic Settings',
939
- 'account.settingsPlainDescription': 'Manage basic account settings.',
940
- 'account.settingsSidebar': 'Sidebar Settings',
941
- 'account.settingsSidebarDescription': 'Configure sidebar layout and behavior.',
942
- 'account.settingsEnterprise': 'Enterprise Settings',
943
- 'account.settingsEnterpriseDescription': 'Manage enterprise-level configuration and policies.',
944
- 'account.importMembers': 'Import Members',
945
- 'account.importMembersDescription': 'Bulk import team members from a CSV file.',
946
- 'account.membersStarter': 'Members Overview',
947
- 'account.membersStarterDescription': 'View and manage workspace members.',
948
- 'account.securityLog': 'Security Log',
949
- 'account.securityLogDescription': 'View security-related activity logs for your account.',
950
- 'account.step': 'Step {current} of {total}',
951
- 'account.completeSetup': 'Complete Setup',
952
- 'account.uploadAvatar': 'Upload Avatar',
953
- 'account.connectProvider': 'Connect Provider',
954
- 'account.setupProfile': 'Set Up Profile',
955
- 'account.setupTeam': 'Invite Team',
956
- 'account.skipSetup': 'Skip Setup',
957
- 'account.nextStep': 'Next Step',
958
- 'account.prevStep': 'Previous Step',
959
- 'account.finishSetup': 'Finish Setup',
960
- 'account.dragOrClick': 'Drag file or click to upload',
961
- 'account.supportedFormats': 'Supports CSV, XLSX formats',
962
- 'account.downloadTemplate': 'Download Template',
963
- 'account.startImport': 'Start Import',
964
- 'account.importProgress': 'Import Progress',
965
- 'account.importComplete': 'Import Complete',
966
- 'account.imported': 'Imported {count} records',
967
- 'account.member': 'Member',
968
- 'account.role': 'Role',
969
- 'account.status': 'Status',
970
- 'account.joined': 'Joined',
971
- 'account.active': 'Active',
972
- 'account.invited': 'Invited',
973
- 'account.inactive': 'Inactive',
974
- 'account.inviteMember': 'Invite Member',
975
- 'account.removeMember': 'Remove Member',
976
- // Network
977
- 'network.userCards': 'User Cards',
978
- 'network.userCardsDescription': 'Browse users in card layout.',
979
- 'network.teamCrew': 'Team Crew',
980
- 'network.teamCrewDescription': 'View team members in table layout.',
981
- 'network.connect': 'Follow',
982
- 'network.connected': 'Following',
983
- 'network.nftCollection': 'NFT Collection',
984
- 'network.nftCount': '{count} items',
985
- 'network.floorPrice': 'Floor Price',
986
- 'network.volume': 'Volume',
987
- 'network.viewCollection': 'View Collection',
988
- // Auth
989
- 'auth.twoFactorSetup': 'Set Up Two-Factor Auth',
990
- 'auth.twoFactorVerify': 'Verify Identity',
991
- 'auth.twoFactorRecovery': 'Recovery Codes',
992
- 'auth.twoFactorScanQR': 'Scan the QR code with your authenticator app',
993
- 'auth.twoFactorEnterCode': 'Enter 6-digit verification code',
994
- 'auth.twoFactorVerifySuccess': 'Two-factor authentication enabled successfully',
995
- 'auth.twoFactorSaveRecovery': 'Save these recovery codes in a safe place',
996
- 'auth.twoFactorRecoveryHint': 'You can use recovery codes to log in when you cannot access your authenticator. Each code can only be used once.',
997
- 'auth.twoFactorDisable': 'Disable Two-Factor Auth',
998
- 'auth.twoFactorDisableConfirm': 'Are you sure you want to disable two-factor authentication? This will reduce your account security.',
999
- // Security Log
1000
- 'securityLog.event': 'Event',
1001
- 'securityLog.ip': 'IP Address',
1002
- 'securityLog.device': 'Device',
1003
- 'securityLog.location': 'Location',
1004
- 'securityLog.time': 'Time',
1005
- 'securityLog.loginSuccess': 'Login Successful',
1006
- 'securityLog.loginFailed': 'Login Failed',
1007
- 'securityLog.passwordChanged': 'Password Changed',
1008
- 'securityLog.twoFactorEnabled': '2FA Enabled',
1009
- 'securityLog.twoFactorDisabled': '2FA Disabled',
1010
- 'securityLog.apiKeyCreated': 'API Key Created',
1011
- 'securityLog.apiKeyRevoked': 'API Key Revoked',
1012
- 'securityLog.sessionRevoked': 'Session Revoked',
1013
745
  },
1014
746
  };
1015
747