Skip to content

Commit

Permalink
fix: url
Browse files Browse the repository at this point in the history
  • Loading branch information
whes1015 committed Jan 29, 2024
1 parent 37ca5bb commit 561dde5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions src/change.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta property="og:site_name" content="探索科技 | ExpTech Studio" />
<meta
property="og:url"
content="https://exptech.com.tw/api/v1/file/exptech/register.html"
content="https://api.exptech.com.tw/file/exptech/register.html"
/>
<meta property="og:type" content="website" />
<meta property="og:title" content="更改密碼" />
Expand All @@ -21,10 +21,10 @@

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary" />
<meta property="twitter:domain" content="exptech.com.tw" />
<meta property="twitter:domain" content="api.exptech.com.tw" />
<meta
property="twitter:url"
content="https://exptech.com.tw/api/v1/file/exptech/register.html"
content="https://api.exptech.com.tw/file/exptech/register.html"
/>
<meta name="twitter:title" content="更改密碼" />
<meta name="twitter:description" content="更改 ExpTech 密碼" />
Expand Down Expand Up @@ -103,7 +103,7 @@
<div class="success-description">將在五秒後跳轉回登入畫面</div>
</div>
</div>
<a class="info" href="https://exptech.com.tw/f?v=discord"
<a class="info" href="https://exptech.com.tw/discord"
>Discord 伺服器</a
>
</main>
Expand Down Expand Up @@ -171,7 +171,7 @@

submit.disabled = true;

fetch("https://exptech.com.tw/api/v1/et/change", {
fetch("https://api.exptech.com.tw/api/v1/et/change", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
Expand Down
4 changes: 2 additions & 2 deletions src/check.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</div>
</div>
</div>
<a class="info" href="https://exptech.com.tw/f?v=discord">Discord 伺服器</a>
<a class="info" href="https://exptech.com.tw/discord">Discord 伺服器</a>
<a id="login"></a>
</main>

Expand All @@ -107,7 +107,7 @@
const urlSearchParams = new URLSearchParams(window.location.search);
const params = Object.fromEntries(urlSearchParams.entries());

fetch(`https://exptech.com.tw/api/v1/et/register?code=${params.code}`, {
fetch(`https://api.exptech.com.tw/api/v1/et/register?code=${params.code}`, {
method: "GET",
headers: { "Content-Type": "application/json" },
})
Expand Down
10 changes: 5 additions & 5 deletions src/forget.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta property="og:site_name" content="探索科技 | ExpTech Studio" />
<meta
property="og:url"
content="https://exptech.com.tw/api/v1/file/exptech/register.html"
content="https://api.exptech.com.tw/file/exptech/register.html"
/>
<meta property="og:type" content="website" />
<meta property="og:title" content="忘記密碼" />
Expand All @@ -21,10 +21,10 @@

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary" />
<meta property="twitter:domain" content="exptech.com.tw" />
<meta property="twitter:domain" content="api.exptech.com.tw" />
<meta
property="twitter:url"
content="https://exptech.com.tw/api/v1/file/exptech/register.html"
content="https://api.exptech.com.tw/file/exptech/register.html"
/>
<meta name="twitter:title" content="忘記密碼" />
<meta name="twitter:description" content="忘記 ExpTech 密碼" />
Expand Down Expand Up @@ -100,7 +100,7 @@
<div class="success-description">將在五秒後跳轉回登入畫面</div>
</div>
</div>
<a class="info" href="https://exptech.com.tw/f?v=discord"
<a class="info" href="https://exptech.com.tw/discord"
>Discord 伺服器</a
>
</main>
Expand All @@ -124,7 +124,7 @@

submit.disabled = true;

fetch("https://exptech.com.tw/api/v1/et/forget", {
fetch("https://api.exptech.com.tw/api/v1/et/forget", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email: values.email }),
Expand Down
8 changes: 4 additions & 4 deletions src/login.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ html(lang="zh-Hant")

//- Facebook Meta Tags
meta(property="og:site_name", content="探索科技 | ExpTech Studio")
meta(property="og:url", content="https://exptech.com.tw/api/v1/file/exptech/login.html")
meta(property="og:url", content="https://api.exptech.com.tw/file/exptech/login.html")
meta(property="og:type", content="website")
meta(property="og:title", content="登入")
meta(property="og:description", content="登入管理你的 ExpTech 帳號")
meta(property="og:image", content="https://cdn.jsdelivr.net/gh/ExpTechTW/API@master/image/Icon/ExpTech.png")

//- Twitter Meta Tags
meta(name="twitter:card", content="summary")
meta(property="twitter:domain", content="exptech.com.tw")
meta(property="twitter:url", content="https://exptech.com.tw/api/v1/file/exptech/login.html")
meta(property="twitter:domain", content="api.exptech.com.tw")
meta(property="twitter:url", content="https://api.exptech.com.tw/file/exptech/login.html")
meta(name="twitter:title", content="登入")
meta(name="twitter:description", content="登入管理你的 ExpTech 帳號")
meta(name="twitter:image", content="https://cdn.jsdelivr.net/gh/ExpTechTW/API@master/image/Icon/ExpTech.png")
Expand Down Expand Up @@ -45,6 +45,6 @@ html(lang="zh-Hant")
| 如果這不是你的電腦,請使用私密瀏覽視窗登入。
button#register(type="button") 註冊帳號
button#submit(type="submit") 登入
a.info(href="https://exptech.com.tw/f?v=discord") Discord 伺服器
a.info(href="https://exptech.com.tw/discord") Discord 伺服器

script(src="./scripts/login.js")
8 changes: 4 additions & 4 deletions src/register.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ html(lang="zh-Hant")

//- Facebook Meta Tags
meta(property="og:site_name", content="探索科技 | ExpTech Studio")
meta(property="og:url", content="https://exptech.com.tw/api/v1/file/exptech/register.html")
meta(property="og:url", content="https://api.exptech.com.tw/file/exptech/register.html")
meta(property="og:type", content="website")
meta(property="og:title", content="註冊")
meta(property="og:description", content="註冊 ExpTech 帳號")
meta(property="og:image", content="https://cdn.jsdelivr.net/gh/ExpTechTW/API@master/image/Icon/ExpTech.png")

//- Twitter Meta Tags
meta(name="twitter:card", content="summary")
meta(property="twitter:domain", content="exptech.com.tw")
meta(property="twitter:url", content="https://exptech.com.tw/api/v1/file/exptech/register.html")
meta(property="twitter:domain", content="api.exptech.com.tw")
meta(property="twitter:url", content="https://api.exptech.com.tw/file/exptech/register.html")
meta(name="twitter:title", content="註冊")
meta(name="twitter:description", content="註冊 ExpTech 帳號")
meta(name="twitter:image", content="https://cdn.jsdelivr.net/gh/ExpTechTW/API@master/image/Icon/ExpTech.png")
Expand Down Expand Up @@ -51,6 +51,6 @@ html(lang="zh-Hant")
.success-title.title 發送成功
.success-description 已寄驗證信到你電子郵件地址請查收
.success-description 將在五秒後跳轉回登入畫面
a.info(href="https://exptech.com.tw/f?v=discord") Discord 伺服器
a.info(href="https://exptech.com.tw/discord") Discord 伺服器

script(src="./scripts/register.js")
2 changes: 1 addition & 1 deletion src/user.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ html(lang="zh-Hant")

//- Twitter Meta Tags
meta(name="twitter:card", content="summary")
meta(property="twitter:domain", content="exptech.com.tw")
meta(property="twitter:domain", content="api.exptech.com.tw")
meta(property="twitter:url", content="https://api.exptech.com.tw/file/exptech/user.html")
meta(name="twitter:title", content="用戶資訊面板")
meta(name="twitter:description", content="管理你的 ExpTech 帳號")
Expand Down

0 comments on commit 561dde5

Please sign in to comment.