const simpleModal = (contentHtml, rejectText, resolveText) => ({ contentHtml: typeof contentHtml === 'function' ? contentHtml : () => contentHtml, rejectText, resolveText, }); /* eslint sort-keys: "error" */ export default { autoSyncWorkspace: simpleModal( config => `
您将启动文档空间 ${config.name}的自动同步。
启动后无法自定义提交信息。
你确定吗?
您将要删除评论。你确定吗?
', '取消', '确认删除', ), discussionDeletion: simpleModal( '您将要删除批注。你确定吗?
', '取消', '确认删除', ), fileRestoration: simpleModal( '您将要恢复一些更改。你确定吗?
', '取消', '确认恢复', ), folderDeletion: simpleModal( config => `您将删除文件夹${config.item.name}。它的文件将移至回收站。你确定吗?
`, '取消', '确认删除', ), imgStorageDeletion: simpleModal( '您将要删除图床,你确定吗?
', '取消', '确认删除', ), pathConflict: simpleModal( config => `${config.item.name}已经存在。您要添加后缀吗?
`, '取消', '确认添加', ), paymentSuccess: simpleModal( '您的赞助将在一分钟内活跃。
', '好的', ), providerRedirection: simpleModal( config => `您将跳转到 ${config.name} 授权页面。
`, '取消', '确认跳转', ), removeWorkspace: simpleModal( config => `您将要在本地删除文档空间${config.name}。你确定吗?
`, '取消', '确认删除', ), reset: simpleModal( '这将在本地清理所有文档空间,你确定吗?
', '取消', '确认清理', ), shareHtml: simpleModal( config => `给文档 "${config.name}" 创建了分享链接如下:
${config.url}
关闭该窗口后可以到发布中查看分享链接。
将给文档 "${config.name}" 创建分享链接,创建后将会把文档公开发布到GiteeGist中。您确定吗?
`, '取消', '确认分享', ), signInForComment: simpleModal( `您必须使用 Google 登录才能开始评论。
您必须使用 Google 登录才能赞助。
此功能仅限于赞助商,因为它依赖于服务器资源。
', '好的,我明白了', ), stopAutoSyncWorkspace: simpleModal( config => `您将关闭文档空间 ${config.name} 的自动同步。
关闭后您需要手动触发同步,但可以自定义提交信息。
你确定吗?
${config.item.name}包含非法字符。你想去掉它们吗?
`, '取消', '确认去掉', ), tempFileDeletion: simpleModal( config => `您将永久删除临时文件${config.item.name}。你确定吗?
`, '取消', '确认删除', ), tempFolderDeletion: simpleModal( '您将永久删除所有临时文件。你确定吗?
', '取消', '确认删除', ), trashDeletion: simpleModal( '回收站中的文件在不活动7天后会自动删除。
', '好的', ), unauthorizedName: simpleModal( config => `${config.item.name}>是未经授权的名称。
`, '好的', ), workspaceGoogleRedirection: simpleModal( 'StackEdit中文版需要完整的Google Drive访问才能打开此文档空间。
', '取消', '确认授权', ), };