Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-01-13 22:49:18 +08:00
commit 2ddc610cf5
7 changed files with 12 additions and 7 deletions

View file

@ -10,7 +10,7 @@ import {processSync} from "../dialog/processSystem";
import {needSubscribe} from "../util/needSubscribe";
import {syncGuide} from "../sync/syncGuide";
import {hideElements} from "../protyle/ui/hideElements";
import {getCloudURL} from "./util/about";
import {getCloudURL, getIndexURL} from "./util/about";
const genSVGBG = () => {
let html = "";
@ -30,7 +30,7 @@ export const account = {
element: undefined as Element,
genHTML: (onlyPayHTML = false) => {
const payHTML = `
<a class="b3-button b3-button--big" href="${getCloudURL("subscribe/siyuan")}" target="_blank">
<a class="b3-button b3-button--big" href="${getIndexURL("pricing.html")}" target="_blank">
<svg><use xlink:href="#iconVIP"></use></svg>${window.siyuan.languages.account1}
</a>
<div class="fn__hr--b"></div>

View file

@ -35,3 +35,8 @@ export const getCloudURL = (key: string) => {
const origin = window.siyuan.config.cloudRegion === 0 ? "https://ld246.com" : "https://liuyun.io";
return `${origin}/${key}`;
};
export const getIndexURL = (key: string) => {
const lang = 'zh_CN' === window.siyuan.config.lang ? "" : "/en";
return 'https://b3log.org/siyuan' + `${lang}/${key}`;
}