mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 12:38:07 +01:00
🎨 Improve text https://github.com/siyuan-note/siyuan/issues/14447
This commit is contained in:
parent
69642e3bac
commit
3ebfdf6c5b
21 changed files with 77 additions and 72 deletions
|
|
@ -11,7 +11,7 @@ import {isKernelInMobile} from "../util/functions";
|
|||
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].replace("${url}", getCloudURL("subscribe/siyuan"))}</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].replaceAll("${accountServer}", getCloudURL(""))}</div>
|
||||
<div class="b3-label b3-label--inner">
|
||||
${window.siyuan.languages.cloudIntro1}
|
||||
<div class="b3-label__text">
|
||||
|
|
@ -41,7 +41,7 @@ const renderProvider = (provider: number) => {
|
|||
</div>`;
|
||||
}
|
||||
if (!isPaidUser()) {
|
||||
return `<div class="b3-label b3-label--inner">${window.siyuan.languages["_kernel"][214]}</div>`;
|
||||
return `<div class="b3-label b3-label--inner">${window.siyuan.languages["_kernel"][214].replaceAll("${accountServer}", getCloudURL(""))}</div>`;
|
||||
}
|
||||
if (provider === 2) {
|
||||
return `<div class="b3-label b3-label--inner">
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@ export const setAccessAuthCode = () => {
|
|||
|
||||
export const getCloudURL = (key: string) => {
|
||||
const origin = window.siyuan.config.cloudRegion === 0 ? "https://ld246.com" : "https://liuyun.io";
|
||||
if (!key || "" === key) {
|
||||
return origin;
|
||||
}
|
||||
return `${origin}/${key}`;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue