feat: refactoring sync module (#13293)

pull/13320/head
jiangweidong 2024-05-29 18:44:32 +08:00 committed by GitHub
parent 0b65e3ffda
commit d718398791
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 108 additions and 21 deletions

View File

@ -158,6 +158,7 @@
"AttrValue": "Attribute value",
"Audits": "Audits",
"Auth": "Authentication",
"AuthConfig": "Authentication",
"AuthLimit": "Login restriction",
"AuthSAMLCertHelpText": "Save after uploading the certificate key, then view sp metadata",
"AuthSAMLKeyHelpText": "Sp certificates and keys are used for encrypted communication with idp",
@ -207,7 +208,6 @@
"CACertificate": "Ca certificate",
"CAS": "CAS",
"CMPP2": "Cmpp v2.0",
"CTYunPrivate": "Tianyi private cloud",
"CalculationResults": "Error in cron expression",
"CanDragSelect": "Select time period by dragging mouse",
"Cancel": "Cancel",
@ -257,6 +257,7 @@
"CloudRegionTip": "The region was not obtained, please check the account",
"CloudSource": "Sync source",
"CloudSync": "Cloud provider",
"CloudSyncConfig": "Cloud sync settings",
"CloudUpdate": "Update the asset - cloud",
"Cluster": "Cluster",
"CollectionSucceed": "Collection successful",
@ -827,6 +828,7 @@
"Port": "Port",
"Ports": "Port",
"Preferences": "Preferences",
"PrepareSyncTask": "Preparing to perform synchronization task...",
"Primary": "Primary",
"Priority": "Priority",
"PrivateCloud": "Private cloud",
@ -881,6 +883,8 @@
"RegularlyPerform": "Periodic execution",
"Reject": "Reject",
"Rejected": "Rejected",
"ReleaseAssets": "Release assets",
"ReleaseAssetsHelpTips": "Whether to automatically delete assets synchronized through this task and released on the cloud at the end of the task",
"ReleasedCount": "Released",
"RelevantApp": "Application",
"RelevantAsset": "Assets",
@ -1004,6 +1008,7 @@
"SelectLabelFilter": "Select tag for search",
"SelectPlatforms": "Select platform",
"SelectProperties": "Attributes",
"SelectProviderMsg": "Please select a cloud platform",
"SelectResource": "Select resources",
"SelectTemplate": "Select template",
"SelectValueOrCreateNew": "Select tag value or create new one",
@ -1067,6 +1072,7 @@
"Startswith": "Starts with...",
"State": "Status",
"StateClosed": "Is closed",
"StatePrivate": "State private",
"Status": "Status",
"StatusGreen": "Recently in good condition",
"StatusRed": "Last task execution failed",
@ -1095,6 +1101,7 @@
"SupportedProtocol": "Protocols",
"SupportedProtocolHelpText": "Set supported protocols for the asset, you can modify the custom configurations, such as sftp directory, rdp ad domain, etc., by clicking on the set button",
"Sync": "Sync",
"SyncAction": "Synchronized action",
"SyncDelete": "Sync deletion",
"SyncDeleteSelected": "Sync deletion selected",
"SyncErrorMsg": "Sync failed",
@ -1105,11 +1112,15 @@
"SyncInstanceTaskList": "Synchronization task",
"SyncInstanceTaskUpdate": "Update the sync task",
"SyncProtocolToAsset": "Sync protocols to assets",
"SyncManual": "Manual sync",
"SyncOnline": "Online sync",
"SyncRegion": "Sync region",
"SyncSelected": "Sync selected",
"SyncSetting": "Sync settings",
"SyncStrategy": "Sync policy",
"SyncSuccessMsg": "Sync succeeded",
"SyncTask": "Sync tasks",
"SyncTiming": "Timing sync",
"SyncUpdateAccountInfo": "Sync new secret to accounts",
"SyncUser": "Sync users",
"SyncedCount": "Synchronized",
@ -1178,6 +1189,9 @@
"TotalJobFailed": "Failed execution actions",
"TotalJobLog": "Total job executions",
"TotalJobRunning": "Running jobs",
"TotalSyncAsset": "Number of assets",
"TotalSyncRegion": "Number of regions",
"TotalSyncStrategy": "Number of strategies",
"Transfer": "Transfer",
"Tuesday": "Tue",
"TwoAssignee": "Subscribe to authorization id",

View File

@ -152,6 +152,7 @@
"AttrValue": "プロパティ値",
"Audits": "監査台",
"Auth": "認証設定",
"AuthConfig": "資格認定構成",
"AuthLimit": "ログイン制限",
"AuthSAMLCertHelpText": "証明書キーをアップロードした後で保存し、SP Metadataを確認してください",
"AuthSAMLKeyHelpText": "SP 証明書とキーはIDPとの暗号化通信用です",
@ -261,6 +262,8 @@
"CloudRegionTip": "地域が取得できませんでした。アカウントを確認してください",
"CloudSource": "同期ソース",
"CloudSync": "クラウド同期",
"CloudSyncConfig": "クラウド同期構成",
"Clouds": "クラウド プラットフォーム",
"CloudUpdate": "資産の更新-クラウドプラットフォーム",
"Cluster": "クラスター",
"CollectionSucceed": "お気に入り登録成功",
@ -725,6 +728,10 @@
"NoPermission": "権限なし",
"NoPermission403": "403 権限がありません",
"NoPermissionVew": "現在のページを表示する権限がありません",
"NoPublished": "未発表",
"NoResourceImport": "インポートできるリソースがありません",
"NoSQLProtocol": "非リレーショナルデータベース",
"NoSystemUserWasSelected": "選択されていないシステムユーザー",
"NoUnreadMsg": "未読メッセージなし",
"Node": "ノード",
"NodeAmount": "ノード数",
@ -830,6 +837,9 @@
"PolicyName": "ポリシー名称",
"Port": "ポート",
"Ports": "ポート",
"PrepareSyncTask": "同期タスクの実行準備中...",
"PrimaryProtocol": "主要協議は、資産にとって最も基本的で最も一般的に使用されるプロトコルであり、1つのみ設定でき、必ず設定する必要があります",
"PriorityHelpMessage": "1-100、1最低優先度、100最高優先度。複数のユーザーを許可する場合、優先度の高いシステムユーザーはデフォルトのログインユーザーになります",
"Preferences": "好みの設定",
"Primary": "主な",
"Priority": "優先順位",
@ -999,6 +1009,8 @@
"Select": "選択",
"SelectAdhoc": "コマンドの選択",
"SelectAll": "全選択",
"SelectCreateMethod": "作り方を選ぶ", ,
"SelectProviderMsg": "クラウドプラットフォームを選択してください",
"SelectAtLeastOneAssetOrNodeErrMsg": "アセットまたはノードは少なくとも一つ選択してください",
"SelectAttrs": "属性の選択",
"SelectByAttr": "プロパティフィルタ",
@ -1097,21 +1109,33 @@
"SuperAdmin": "スーパー管理者",
"SuperOrgAdmin": "スーパー管理者+組織管理",
"Support": "サポート",
"SupportedProtocol": "サポートされるプロトコル",
"SupportedProtocolHelpText": "資産がサポートするプロトコルを設定します。設定ボタンをクリックして、SFTPディレクトリ、RDP ADドメインなどのプロトコルのカスタム構成を変更します。",
"SwitchPage": "ビューを切り替える",
"SwitchToUser": "Suユーザー",
"SwitchToUserListTips": "次のユーザーからアセットに接続すると、現在のシステムユーザーログインを使用して切り替えます。",
"SymbolSet": "特殊記号集合",
"SymbolSetHelpText": "このタイプのデータベースでサポートされている特殊記号の集合を入力してください。生成されたランダムパスワードにこのようなデータベースでサポートされていない特殊文字があると、変更計画は失敗します",
"Sync": "同期する",
"SyncAction": "同期アクション",
"SyncDelete": "同期削除",
"SupportedProtocol": "サポートされているプロトコル",
"SupportedProtocolHelpText": "資産がサポートするプロトコルを設定します。設定ボタンをクリックして、プロトコルのカスタム設定を変更することができます。例えば、SFTPディレクトリやRDP ADドメインなど",
"Sync": "同期化",
"SyncDelete": "同時に削除",
"SyncDeleteSelected": "選択を同期削除",
"SyncErrorMsg": "同期失敗:",
"SyncInstanceTaskCreate": "同期タスクを作成",
"SyncInstanceTaskDetail": "同期タスクの詳細",
"SyncInstanceTaskHistoryAssetList": "インスタンスリストの同期",
"SyncInstanceTaskHistoryList": "履歴リストを同期する",
"SyncInstanceTaskHistoryList": "履歴リストの同期",
"SyncManual": "手動同期",
"SyncOnline": "オンライン同期",
"SyncRegion": "地域を同期",
"SyncSelected": "選択した同期",
"SyncInstanceTaskList": "同期タスクリスト",
"SyncInstanceTaskUpdate": "同期タスクの更新",
"SyncProtocolToAsset": "同期プロトコルを資産へ",
"SyncSelected": "選択したものを同期",
"SyncSetting": "同期設定",
"SyncTiming": "タイミング同期",
"SyncStrategy": "同期方針",
"SyncSuccessMsg": "同期成功",
"SyncTask": "同期化シスクリプト",
@ -1183,6 +1207,10 @@
"TotalJobFailed": "実行に失敗したジョブ数",
"TotalJobLog": "タスク実行総数",
"TotalJobRunning": "実行中のジョブ数",
"TotalSyncAsset": "同期資産数(個)",
"TotalSyncRegion": "同期地域数(個)",
"TotalSyncStrategy": "バインドポリシー数(個)",
"True": "はい",
"Transfer": "転送",
"Tuesday": "火曜日",
"TwoAssignee": "二次受理者",
@ -1304,4 +1332,4 @@
"ZoneHelpMessage": "エリアとはアセットの位置で、データセンターやパブリッククラウド、あるいはVPCが該当します。エリアにはゲートウェイを設定でき、ネットワークが直接接続できない場合、ゲートウェイを経由してアセットにログインすることができます",
"ZoneList": "地域リスト",
"ZoneUpdate": "更新エリア"
}
}

View File

@ -8,6 +8,7 @@
"AccessIP": "IP 白名单",
"SuEnabled": "启用开关",
"AccessKey": "访问密钥",
"AccessKeys": "访问密钥",
"AccountTemplateList": "账号模版列表",
"HistoryRecord": "历史记录",
"UserPasswordChangeLog": "用户密码修改日志",
@ -173,12 +174,12 @@
"AttrValue": "属性值",
"Audits": "审计台",
"Auth": "认证设置",
"AuthConfig": "配置认证",
"AuthLimit": "登录限制",
"AuthSAMLCertHelpText": "上传证书密钥后保存, 然后查看 SP Metadata",
"AuthSAMLKeyHelpText": "SP 证书和密钥 是用来和 IDP 加密通信的",
"AuthSaml2UserAttrMapHelpText": "左侧的键为 SAML2 用户属性,右侧的值为认证平台用户属性",
"AuthSecurity": "认证安全",
"PasswordAndSSHKey": "认证设置",
"AuthSettings": "认证配置",
"AddInDetailText": "创建或更新成功后,添加详细信息",
"AuthUserAttrMapHelpText": "左侧的键为 JumpServer 用户属性,右侧的值为认证平台用户属性",
@ -271,6 +272,7 @@
"CloudRegionTip": "未获取到地域,请检查账号",
"CloudSource": "同步源",
"CloudSync": "云同步",
"CloudSyncConfig": "云同步配置",
"CloudUpdate": "更新资产-云平台",
"Cluster": "集群",
"CollectionSucceed": "收藏成功",
@ -302,6 +304,7 @@
"ConceptContent": "我想让你像一个 Python 解释器一样行事。我将给你 Python 代码,你将执行它。不要提供任何解释。除了代码的输出,不要用任何东西来回应。",
"ConceptTitle": "🤔 Python 解释器 ",
"Config": "配置",
"Configured": "已配置",
"Confirm": "确认",
"ConfirmPassword": "确认密码",
"ConnectAssets": "连接资产",
@ -345,8 +348,8 @@
"CriticalLoad": "严重",
"CronExpression": "crontab完整表达式",
"CrontabOfCreateUpdatePage": "例如:每周日 03:05 执行 <5 3 * * 0> <br/> 使用5位 Linux crontab 表达式 <分 时 日 月 星期> <a href=\"https://tool.lu/crontab/\" target=\"_blank\">在线工具</a> <br/> 如果同时设置了定期执行和周期执行,优先使用定期执行",
"CurrentConnections": "当前连接数",
"CurrentConnectionUsers": "当前会话用户数",
"CurrentConnections": "当前连接数",
"CurrentUserVerify": "验证当前用户",
"Custom": "自定义",
"CustomCol": "自定义列表字段",
@ -408,6 +411,7 @@
"DeviceUpdate": "更新资产-网络设备",
"Digit": "数字",
"DingTalk": "钉钉",
"DingTalkOAuth": "钉钉认证",
"DingTalkTest": "测试",
"Disable": "禁用",
"DisplayName": "名称",
@ -476,6 +480,7 @@
"FaviconTip": "提示:网站图标(建议图片大小为: 16px*16px",
"Features": "功能设置",
"FeiShu": "飞书",
"FeiShuOAuth": "飞书认证",
"FeiShuTest": "测试",
"FieldRequiredError": "此字段是必填项",
"FileExplorer": "文件浏览",
@ -512,6 +517,7 @@
"Generate": "生成",
"GenerateAccounts": "重新生成账号",
"GenerateSuccessMsg": "账号生成成功",
"GenericSetting": "通用配置",
"GoHomePage": "去往首页",
"Goto": "转到",
"GrantedAssets": "授权的资产",
@ -564,6 +570,7 @@
"Inactive": "禁用",
"Index": "索引",
"Info": "信息",
"InformationModification": "信息更改",
"InheritPlatformConfig": "继承自平台配置,如需更改,请更改平台中的配置。",
"InitialDeploy": "初始化部署",
"Input": "输入",
@ -609,6 +616,7 @@
"TagList": "标签列表",
"TagUpdate": "更新标签",
"Language": "语言",
"LarkOAuth": "Lark 认证",
"Last30": "最近 30 次",
"Last30Days": "近30天",
"Last7Days": "近7天",
@ -630,7 +638,6 @@
"LockedIP": "已锁定 IP {count} 个",
"Log": "日志",
"LogData": "日志数据",
"LoginLogTotal": "登录成功日志数",
"Logging": "日志记录",
"LoginAssetConfirm": "资产登录复核",
"LoginAssetToday": "今日活跃资产数",
@ -642,9 +649,11 @@
"LoginFrom": "登录来源",
"LoginImageTip": "提示:将会显示在企业版用户登录页面(建议图片大小为: 492*472px",
"LoginLog": "登录日志",
"LoginLogTotal": "登录成功日志数",
"LoginNum": "登录数",
"LoginPasswordSetting": "登录密码",
"LoginRequiredMsg": "账号已退出,请重新登录",
"LoginSSHKeySetting": "登录 SSH 公钥",
"LoginSucceeded": "登录成功",
"LoginTitleTip": "提示:将会显示在企业版用户 SSH 登录 KoKo 登录页面eg: 欢迎使用JumpServer开源堡垒机)",
"LoginUserRanking": "登录账号排名",
@ -678,7 +687,6 @@
"MenuPermissions": "授权管理",
"MenuUsers": "用户管理",
"Message": "消息",
"NotificationConfiguration": "通知设置",
"MessageType": "消息类型",
"MfaLevel": "多因子认证",
"Min": "分钟",
@ -703,6 +711,8 @@
"NewDirectory": "新建目录",
"NewFile": "新建文件",
"NewPassword": "新密码",
"NewPublicKey": "新 SSH 公钥",
"NewSSHKey": "SSH 公钥",
"NewSyncCount": "新同步",
"Next": "下一步",
"No": "否",
@ -712,6 +722,7 @@
"NoPermission": "暂无权限",
"NoPermission403": "403 暂无权限",
"NoPermissionVew": "没有权限查看当前页面",
"NoResourceImport": "没有资源可导入",
"NoUnreadMsg": "暂无未读消息",
"Node": "节点",
"NodeAmount": "节点数量",
@ -722,6 +733,7 @@
"NotSet": "未设置",
"NotSpecialEmoji": "不允许输入特殊表情符号",
"Nothing": "无",
"NotificationConfiguration": "通知设置",
"Notifications": "通知设置",
"Now": "现在",
"Number": "编号",
@ -736,7 +748,6 @@
"OfflineUpload": "离线上传",
"OldPassword": "原密码",
"OldPublicKey": "旧 SSH 公钥",
"NewPublicKey": "新 SSH 公钥",
"OneAssignee": "一级受理人",
"OneAssigneeType": "一级受理人类型",
"OneClickReadMsg": "你确定全部标记为已读吗?",
@ -776,6 +787,7 @@
"PasskeyAddDisableInfo": "你的认证来源是 {source}, 不支持添加 Passkey",
"Passphrase": "密钥密码",
"Password": "密码",
"PasswordAndSSHKey": "认证设置",
"PasswordChangeLog": "改密日志",
"PasswordExpired": "密码过期了",
"PasswordPlaceholder": "请输入密码",
@ -790,11 +802,14 @@
"PauseTaskSendSuccessMsg": "暂停任务已下发,请稍后刷新查看",
"Pending": "待处理",
"PermAccount": "授权账号",
"PermAction": "授权动作",
"PermUserList": "授权用户",
"PermissionCompany": "授权公司",
"PermissionName": "授权规则名称",
"Permissions": "权限",
"PersonalInformationImprovement": "个人信息完善",
"PersonalSettings": "个人设置",
"Phone": "手机",
"Plan": "计划",
"Platform": "平台",
"PlatformCreate": "创建平台",
@ -810,6 +825,8 @@
"PolicyName": "策略名称",
"Port": "端口",
"Ports": "端口",
"Preferences": "偏好设置",
"PrepareSyncTask": "准备执行同步任务中...",
"Priority": "优先级",
"PrivateCloud": "私有云",
"PrivateKey": "私钥",
@ -818,6 +835,7 @@
"PrivilegedOnly": "仅特权账号",
"PrivilegedTemplate": "特权的",
"Product": "产品",
"Profile": "个人信息",
"ProfileSetting": "个人信息设置",
"Project": "项目名",
"Prompt": "提示词",
@ -863,6 +881,8 @@
"RegularlyPerform": "定期执行",
"Reject": "拒绝",
"Rejected": "已拒绝",
"ReleaseAssets": "同步释放资产",
"ReleaseAssetsHelpTips": "是否在任务结束时,自动删除通过此任务同步下来且已经在云上释放的资产",
"ReleasedCount": "已释放",
"RelevantApp": "应用",
"RelevantAsset": "资产",
@ -948,7 +968,6 @@
"SMTP": "邮件服务器",
"SSHKey": "SSH公钥",
"SSHKeyOfProfileSSHUpdatePage": "你可以点击下面的按钮重置并下载 SSH 公钥,或者复制你的 SSH 公钥并提交。",
"LoginSSHKeySetting": "登录 SSH 公钥",
"SSHPort": "SSH 端口",
"SSHSecretKey": "SSH 密钥",
"SafeCommand": "安全命令",
@ -984,6 +1003,7 @@
"SelectTagFilter": "选择标签搜索",
"SelectPlatforms": "选择平台",
"SelectProperties": "选择属性",
"SelectProviderMsg": "请选择一个云平台",
"SelectResource": "选择资源",
"SelectTemplate": "选择模版",
"SelectValueOrCreateNew": "选择标签值或创建新的",
@ -1014,15 +1034,11 @@
"SessionsAudit": "会话审计",
"SessionsNum": "会话数",
"Set": "已设置",
"DingTalkOAuth": "钉钉认证",
"SetFailed": "设置失败",
"FeiShuOAuth": "飞书认证",
"LarkOAuth": "Lark 认证",
"SetMFA": "MFA 认证",
"SlackOAuth": "Slack 认证",
"Configured": "已配置",
"SetSuccess": "设置成功",
"SetToDefault": "设为默认",
"SetToDefaultStorage": "设置为默认存储",
"WeComOAuth": "企业微信认证",
"Setting": "设置",
"SettingInEndpointHelpText": "在 系统设置 / 组件设置 / 服务端点 中配置服务地址和端口",
@ -1037,6 +1053,7 @@
"Skip": "忽略当前资产",
"Skipped": "已跳过",
"Slack": "Slack",
"SlackOAuth": "Slack 认证",
"Source": "来源",
"SourceIP": "源地址",
"SourcePort": "源端口",
@ -1090,6 +1107,7 @@
"SupportedProtocol": "支持的协议",
"SupportedProtocolHelpText": "设置资产支持的协议,点击设置按钮可以为协议修改自定义配置,如 SFTP 目录RDP AD 域等",
"Sync": "同步",
"SyncAction": "同步动作",
"SyncDelete": "同步删除",
"SyncDeleteSelected": "同步删除所选",
"SyncErrorMsg": "同步失败: ",
@ -1099,11 +1117,15 @@
"SyncInstanceTaskHistoryList": "同步历史列表",
"SyncInstanceTaskList": "同步任务列表",
"SyncInstanceTaskUpdate": "更新同步任务",
"SyncManual": "手动同步",
"SyncOnline": "在线同步",
"SyncRegion": "正在同步地域",
"SyncSelected": "同步所选",
"SyncSetting": "同步设置",
"SyncStrategy": "同步策略",
"SyncSuccessMsg": "同步成功",
"SyncTask": "同步任务",
"SyncTiming": "定时同步",
"SyncUpdateAccountInfo": "同步更新账号信息",
"SyncUser": "同步用户",
"SyncedCount": "已同步",
@ -1168,6 +1190,9 @@
"TotalJobFailed": "执行失败作业数",
"TotalJobLog": "作业执行总数",
"TotalJobRunning": "运行中作业数",
"TotalSyncAsset": "同步资产数(个)",
"TotalSyncRegion": "同步地域数(个)",
"TotalSyncStrategy": "绑定策略数(个)",
"Transfer": "传输",
"Tuesday": "周二",
"TwoAssignee": "二级受理人",
@ -1198,7 +1223,6 @@
"UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息",
"UpdatePlatformHelpText": "只有资产的原平台类型与所选平台类型相同时才会进行更新,若更新前后的平台类型不同则不会更新。",
"UpdateSSHKey": "更新SSH公钥",
"NewSSHKey": "SSH 公钥",
"UpdateSelected": "更新所选",
"UpdateSuccessMsg": "更新成功",
"Updated": "已更新",
@ -1233,9 +1257,7 @@
"UserLoginAclUpdate": "更新用户登录控制",
"UserLoginLimit": "用户登录限制",
"UserLoginTrend": "账号登录趋势",
"PersonalSettings": "个人设置",
"UserSession": "用户会话",
"Preferences": "偏好设置",
"UserUpdate": "更新用户",
"Username": "用户名",
"UsernamePlaceholder": "请输入用户名",
@ -1263,6 +1285,7 @@
"Volcengine": "火山引擎",
"Warning": "警告",
"WeCom": "企业微信",
"WeComOAuth": "企业微信认证",
"WeComTest": "测试",
"WebCreate": "创建资产-Web",
"WebHelpMessage": "Web 类型资产依赖于远程应用,请前往系统设置在远程应用中配置",
@ -1279,12 +1302,14 @@
"Workbench": "工作台",
"Workspace": "工作空间",
"Yes": "是",
"YourProfile": "个人信息",
"ZStack": "ZStack",
"Zone": "区域",
"ZoneCreate": "创建区域",
"ZoneEnabled": "启用网关",
"ZoneHelpMessage": "区域是资产所在的位置,可以是机房,公有云 或者 VPC。区域中可以设置网关当网络不能直达的时候可以使用网关跳转登录到资产",
"ZoneList": "区域列表",
"ZoneUpdate": "更新区域"
"ZoneUpdate": "更新区域",
"YourProfile": "个人信息",
"InformationModification": "信息更改",

View File

@ -190,6 +190,7 @@
"Auditor": "審計員",
"Audits": "審計台",
"Auth": "認證設置",
"AuthConfig": "配寘認證資訊",
"AuthLimit": "登入限制",
"AuthMethod": "認證方式",
"AuthSecurity": "認證安全",
@ -301,6 +302,7 @@
"CloudPlatform": "雲平台",
"CloudSource": "同步源",
"CloudSync": "雲同步",
"CloudSyncConfig": "雲同步配寘",
"CloudUpdate": "更新資產-雲平台",
"Clouds": "雲平台",
"Cluster": "集群",
@ -729,7 +731,6 @@
"LockedIP": "已鎖定 IP {count} 個",
"Log": "日誌",
"LogData": "日誌數據",
"LoginLogTotal": "登入成功日誌數",
"Logging": "日誌記錄",
"Login": "用戶登入",
"LoginAssetConfirm": "資產登入覆核",
@ -744,6 +745,7 @@
"LoginIP": "登入IP",
"LoginImageTip": "提示:將會顯示在企業版使用者登入頁面(建議圖片大小為: 492*472px",
"LoginLog": "登入日誌",
"LoginLogTotal": "登入成功日誌數",
"LoginModeHelpMessage": "如果選擇手動登入模式,使用者名稱和密碼可以不填寫",
"LoginModel": "登入模式",
"LoginNum": "登入數",
@ -832,6 +834,7 @@
"NoPermission403": "403 暫無權限",
"NoPermissionVew": "沒有權限查看當前頁面",
"NoPublished": "未發布",
"NoResourceImport": "沒有資源可導入",
"NoSQLProtocol": "非關係資料庫",
"NoSystemUserWasSelected": "未選擇系統用戶",
"NoUnreadMsg": "暫無未讀消息",
@ -963,6 +966,7 @@
"PleaseSelect": "請選擇",
"PolicyName": "策略名稱",
"Ports": "埠",
"PrepareSyncTask": "準備執行同步任務中...",
"Primary": "主要",
"PrimaryProtocol": "主要協議, 資產最基本最常用的協議,只能且必須設置一個",
"PriorityHelpMessage": "1-100, 1最低優先度100最高優先度。授權多個用戶時高優先度的系統用戶將會作為默認登入用戶",
@ -1037,6 +1041,8 @@
"RelNot": "非",
"RelOr": "或",
"Relation": "關係",
"ReleaseAssets": "同步釋放資產",
"ReleaseAssetsHelpTips": "是否在任務結束時,自動删除通過此任務同步下來且已經在雲上釋放的資產",
"ReleasedCount": "已釋放",
"RelevantApp": "應用",
"RelevantAsset": "資產",
@ -1166,6 +1172,7 @@
"SelectLabelFilter": "選擇標籤搜索",
"SelectPlatforms": "選擇平台",
"SelectProperties": "選擇屬性",
"SelectProviderMsg": "請選擇一個雲平臺",
"SelectResource": "選擇資源",
"SelectTemplate": "選擇模板",
"SelectValueOrCreateNew": "選擇標籤值或創建新的",
@ -1267,6 +1274,7 @@
"SymbolSet": "特殊符號集合",
"SymbolSetHelpText": "請輸入此類型資料庫支持的特殊符號集合,若生成的隨機密碼中有此類資料庫不支持的特殊字元,改密計劃將會失敗",
"Sync": "同步",
"SyncAction": "同步動作",
"SyncDelete": "同步刪除",
"SyncInstanceTaskCreate": "創建同步任務",
"SyncInstanceTaskDetail": "同步任務詳情",
@ -1274,12 +1282,16 @@
"SyncInstanceTaskHistoryList": "同步歷史列表",
"SyncInstanceTaskList": "同步任務列表",
"SyncInstanceTaskUpdate": "更新同步任務",
"SyncManual": "手動同步",
"SyncOnline": "線上同步",
"SyncProtocolToAsset": "同步協議到資產",
"SyncRegion": "正在同步地域",
"SyncSelected": "同步所選",
"SyncSetting": "同步設定",
"SyncStrategy": "同步策略",
"SyncSuccessMsg": "同步成功",
"SyncTask": "同步任務",
"SyncTiming": "定時同步",
"SyncUpdateAccountInfo": "同步更新帳號資訊",
"SyncUser": "同步用戶",
"SyncedCount": "已同步",
@ -1365,6 +1377,9 @@
"TotalJobFailed": "執行失敗作業數",
"TotalJobLog": "作業執行總數",
"TotalJobRunning": "運行中作業數",
"TotalSyncAsset": "同步資產數(個)",
"TotalSyncRegion": "同步地域數(個)",
"TotalSyncStrategy": "綁定策略數(個)",
"Transfer": "傳輸",
"True": "是",
"Tuesday": "週二",

View File

@ -3,6 +3,7 @@ from channels.db import database_sync_to_async
from channels.routing import ProtocolTypeRouter, URLRouter
from django.core.asgi import get_asgi_application
from django.core.handlers.asgi import ASGIRequest
from django.conf import settings
from authentication.backends.drf import (
SignatureAuthentication,
@ -20,6 +21,10 @@ urlpatterns = ops_urlpatterns + \
setting_urlpatterns + \
terminal_urlpatterns
if settings.XPACK_ENABLED:
from xpack.plugins.cloud.urls.ws_urls import urlpatterns as xcloud_urlpatterns
urlpatterns += xcloud_urlpatterns
@database_sync_to_async
def get_signature_user(scope):