This commit is contained in:
parent
30680d7959
commit
c45f3eeb8d
5 changed files with 15 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"freeSub": "Free Trial Subscription",
|
||||
"sortByUpdateTimeDesc": "Descending by update time",
|
||||
"sortByUpdateTimeAsc": "Ascending by update time",
|
||||
"sortByDownloadsDesc": "Descending by downloads",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"freeSub": "Abonnement d'essai gratuit",
|
||||
"sortByUpdateTimeDesc": "Descendant par heure de mise à jour",
|
||||
"sortByUpdateTimeAsc": "Croissant par heure de mise à jour",
|
||||
"sortByDownloadsDesc": "Décroissant par téléchargements",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"freeSub": "免費試用訂閱",
|
||||
"sortByUpdateTimeDesc": "更新時間降序",
|
||||
"sortByUpdateTimeAsc": "更新時間升序",
|
||||
"sortByDownloadsDesc": "下載次數降序",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"freeSub": "免费试用订阅",
|
||||
"sortByUpdateTimeDesc": "更新时间降序",
|
||||
"sortByUpdateTimeAsc": "更新时间升序",
|
||||
"sortByDownloadsDesc": "下载次数降序",
|
||||
|
|
|
@ -29,10 +29,10 @@ export const account = {
|
|||
${window.siyuan.languages.account2}
|
||||
<div><a href="https://b3log.org/siyuan/pricing.html" target="_blank">${window.siyuan.languages.account7}</a></div>
|
||||
<div class="fn__hr--b"></div>
|
||||
<a href="https://ld246.com/sponsor" target="_blank" class="b3-chip b3-chip--primary">
|
||||
<span class="b3-chip b3-chip--primary" id="trialSub">
|
||||
<svg class="ft__secondary"><use xlink:href="#iconVIP"></use></svg>
|
||||
${window.siyuan.languages.sponsor}
|
||||
</a>
|
||||
${window.siyuan.languages.freeSub}
|
||||
</>
|
||||
<div class="fn__hr--b"></div>`;
|
||||
if (window.siyuan.user) {
|
||||
let userTitlesHTML = "";
|
||||
|
@ -157,6 +157,14 @@ ${window.siyuan.languages.account2}
|
|||
</div>`;
|
||||
},
|
||||
bindEvent: () => {
|
||||
const trialSubElement = account.element.querySelector("#trialSub");
|
||||
if (trialSubElement) {
|
||||
trialSubElement.addEventListener("click", () => {
|
||||
fetchPost("/api/account/startFreeTrial", () => {
|
||||
account.element.querySelector("#refresh").dispatchEvent(new Event("click"));
|
||||
});
|
||||
});
|
||||
}
|
||||
const agreeLoginElement = account.element.querySelector("#agreeLogin") as HTMLInputElement;
|
||||
const userNameElement = account.element.querySelector("#userName") as HTMLInputElement;
|
||||
if (!userNameElement) {
|
||||
|
|
Loading…
Add table
Reference in a new issue