mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 19:56:10 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
2ddc610cf5
7 changed files with 12 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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}`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue