mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 01:04:21 +01:00
This commit is contained in:
parent
612dff8b8c
commit
b76b3b3e0f
8 changed files with 28 additions and 22 deletions
|
|
@ -4,11 +4,12 @@ import {showMessage} from "../dialog/message";
|
|||
import {bindSyncCloudListEvent, getSyncCloudList} from "../sync/syncGuide";
|
||||
import {hasClosestByClassName} from "../protyle/util/hasClosest";
|
||||
import {processSync} from "../dialog/processSystem";
|
||||
import {getCloudURL} from "./util/about";
|
||||
|
||||
const renderProvider = (provider: number) => {
|
||||
if (provider === 0) {
|
||||
if (needSubscribe("")) {
|
||||
return `<div class="b3-label b3-label--inner">${window.siyuan.config.system.container === "ios" ? window.siyuan.languages._kernel[122] : window.siyuan.languages._kernel[29]}</div>
|
||||
return `<div class="b3-label b3-label--inner">${window.siyuan.config.system.container === "ios" ? window.siyuan.languages._kernel[122] : window.siyuan.languages._kernel[29].replace("${url}", getCloudURL("subscribe/siyuan"))}</div>
|
||||
<div class="b3-label b3-label--noborder">
|
||||
${window.siyuan.languages.cloudIntro1}
|
||||
<div class="b3-label__text">
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import {confirmDialog} from "../../dialog/confirmDialog";
|
|||
import {replaceFileName} from "../../editor/rename";
|
||||
import {getDisplayName, movePathTo, pathPosix} from "../../util/pathName";
|
||||
import {App} from "../../index";
|
||||
import {getCloudURL} from "../../config/util/about";
|
||||
|
||||
export class Inbox extends Model {
|
||||
private element: Element;
|
||||
|
|
@ -303,7 +304,7 @@ ${(Lute.New()).MarkdownStr("", data.shorthandContent)}
|
|||
相关功能可打开帮助文档搜索 <code>收集箱</code> 查看使用说明
|
||||
</li>
|
||||
<li class="b3-list--empty">
|
||||
${window.siyuan.config.system.container === "ios" ? window.siyuan.languages._kernel[122] : window.siyuan.languages._kernel[29]}
|
||||
${window.siyuan.config.system.container === "ios" ? window.siyuan.languages._kernel[122] : window.siyuan.languages._kernel[29].replace("${url}", getCloudURL("subscribe/siyuan"))}
|
||||
</li>
|
||||
</ul>`;
|
||||
loadingElement.classList.add("fn__none");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import {showMessage} from "../dialog/message";
|
||||
import {getCloudURL} from "../config/util/about";
|
||||
|
||||
export const needSubscribe = (tip = window.siyuan.languages._kernel[29]) => {
|
||||
if (window.siyuan.user && (window.siyuan.user.userSiYuanProExpireTime === -1 || window.siyuan.user.userSiYuanProExpireTime > 0)) {
|
||||
|
|
@ -8,6 +9,9 @@ export const needSubscribe = (tip = window.siyuan.languages._kernel[29]) => {
|
|||
if (tip === window.siyuan.languages._kernel[29] && window.siyuan.config.system.container === "ios") {
|
||||
showMessage(window.siyuan.languages._kernel[122]);
|
||||
} else {
|
||||
if (tip === window.siyuan.languages._kernel[29]) {
|
||||
tip = window.siyuan.languages._kernel[29].replace("${url}", getCloudURL("subscribe/siyuan"));
|
||||
}
|
||||
showMessage(tip);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue