Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
perf(publish): Select an account, enter the content, and then cancel all channels. A prompt will be given indicating that your content is temporarily stored by us
gaoSir09b428d437f8
diff --git a/@types/resources.d.ts b/@types/resources.d.tsindex 16f8fc9d..30ec8531 100644--- a/@types/resources.d.ts+++ b/@types/resources.d.ts@@ -1991,11 +1991,12 @@ interface Resources {"delete": "删除"},"tips": {- "workSaved": "请选择要发布的账户",+ "workSaved": "你的工作被保存了,请选择账号,继续发布","pcNotSupported": "Web不支持该平台,请下载App进行发布","accountOffline": "该账号已离线,无法发布","tiktokForbidden": "该平台暂不支持发布",- "xhsOffline": "小红书账号已离线,请下载App进行操作"+ "xhsOffline": "小红书账号已离线,请下载App进行操作",+ "selectAccount": "请选择要发布的账户"},"status": {"publishFailed": "发布失败",@@ -2018,11 +2019,16 @@ interface Resources {"page": "页面","pagePlaceholder": "请选择页面","privacyStatus": "隐私状态",+ "selectPrivacyStatus": "请选择隐私状态","public": "公开","unlisted": "不公开","private": "私人","region": "国区","regionPlaceholder": "请选择国区",+ "license": "许可证",+ "licensePlaceholder": "请选择许可证",+ "standardYouTubeLicense": "标准 YouTube 许可证",+ "creativeCommonsLicense": "知识共享许可证","category": "视频分类","categoryPlaceholder": "请选择视频分类","categoryPlaceholderDisabled": "请先选择国区",diff --git a/src/app/i18n/locales/en/publish.json b/src/app/i18n/locales/en/publish.jsonindex 313d73a3..fdf96cf2 100644--- a/src/app/i18n/locales/en/publish.json+++ b/src/app/i18n/locales/en/publish.json@@ -13,7 +13,8 @@"delete": "Delete"},"tips": {- "workSaved": "Please select the account to publish",+ "workSaved": "Your work has been saved. Select a Channel to create a post",+ "selectAccount": "Please select the account to publish","pcNotSupported": "Web does not support this platform, please download the App to publish","accountOffline": "This account is offline and cannot be published","tiktokForbidden": "This platform does not support publishing yet",diff --git a/src/app/i18n/locales/zh-CN/publish.json b/src/app/i18n/locales/zh-CN/publish.jsonindex b19686f0..507aac8b 100644--- a/src/app/i18n/locales/zh-CN/publish.json+++ b/src/app/i18n/locales/zh-CN/publish.json@@ -13,11 +13,12 @@"delete": "删除"},"tips": {- "workSaved": "请选择要发布的账户",+ "workSaved": "你的工作被保存了,请选择账号,继续发布","pcNotSupported": "Web不支持该平台,请下载App进行发布","accountOffline": "该账号已离线,无法发布","tiktokForbidden": "该平台暂不支持发布",- "xhsOffline": "小红书账号已离线,请下载App进行操作"+ "xhsOffline": "小红书账号已离线,请下载App进行操作",+ "selectAccount": "请选择要发布的账户"},"status": {"publishFailed": "发布失败",diff --git a/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx b/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsxindex 0cd5646f..66032cd2 100644--- a/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx+++ b/src/components/PublishDialog/compoents/PlatParamsSetting/index.tsx@@ -98,7 +98,7 @@ const PlatParamsSetting = memo(className={platConfig.commonPubParamsConfig.desMax <pubItem.params.des.length- ? 'platParamsSetting-textOverflow'+ ? "platParamsSetting-textOverflow": ""}>diff --git a/src/components/PublishDialog/index.tsx b/src/components/PublishDialog/index.tsxindex ad67bbb4..dc54f0e1 100644--- a/src/components/PublishDialog/index.tsx+++ b/src/components/PublishDialog/index.tsx@@ -716,10 +716,27 @@ const PublishDialog = memo(</>)}- {pubListChoosed.length === 0 && (- <div className="publishDialog-con-tips">+ {pubListChoosed.length === 0 &&+ pubList.some(+ (v) =>+ v.params.des ||+ v.params.video ||+ (v.params.images && v.params.images.length > 0),+ ) ? (+ <div+ className="publishDialog-con-tips"+ style={{ height: "400px" }}+ >{t("tips.workSaved")}</div>+ ) : (+ <>+ {pubListChoosed.length === 0 && (+ <div className="publishDialog-con-tips">+ {t("tips.selectAccount")}+ </div>+ )}+ </>)}</div></div>@@ -823,7 +840,7 @@ const PublishDialog = memo(: undefined,color:moderationResult === true ||- moderationResult === false+ moderationResult === false? "#fff": undefined,}}diff --git a/src/components/PublishDialog/publishDialog.module.scss b/src/components/PublishDialog/publishDialog.module.scssindex d594bc5c..d6b078e9 100644--- a/src/components/PublishDialog/publishDialog.module.scss+++ b/src/components/PublishDialog/publishDialog.module.scss@@ -86,6 +86,9 @@ $assistantWidth: 380px;}&-tips {+ display: flex;+ align-items: center;+ justify-content: center;text-align: center;color: var(--grayColor7);}