mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-14 23:11:51 +08:00
Custom url for issues link
This commit is contained in:
parent
4d527e6e6b
commit
6dc555ee08
@ -11,7 +11,7 @@
|
||||
if(touchEnabled){
|
||||
this.tutorialOuter.classList.add("touch-enabled")
|
||||
}
|
||||
this.linkGithub = document.getElementById("link-github")
|
||||
this.linkIssues = document.getElementById("link-issues")
|
||||
this.linkEmail = document.getElementById("link-email")
|
||||
|
||||
var tutorialTitle = document.getElementById("tutorial-title")
|
||||
@ -29,7 +29,13 @@
|
||||
this.endButton.innerText = strings.tutorial.ok
|
||||
this.endButton.setAttribute("alt", strings.tutorial.ok)
|
||||
|
||||
pageEvents.add(this.linkGithub, ["click", "touchend"], this.linkButton.bind(this))
|
||||
var versionUrl = "https://github.com/bui/taiko-web/"
|
||||
if(gameConfig._version){
|
||||
versionUrl = gameConfig._version.url
|
||||
}
|
||||
this.getLink(this.linkIssues).href = versionUrl + "issues"
|
||||
|
||||
pageEvents.add(this.linkIssues, ["click", "touchend"], this.linkButton.bind(this))
|
||||
pageEvents.add(this.linkEmail, ["click", "touchend"], this.linkButton.bind(this))
|
||||
pageEvents.once(this.endButton, ["mousedown", "touchstart"]).then(this.onEnd.bind(this))
|
||||
pageEvents.keyOnce(this, 13, "down").then(this.onEnd.bind(this))
|
||||
@ -141,7 +147,6 @@
|
||||
}
|
||||
|
||||
var issueBody = strings.issueTemplate + "\n\n\n\n" + diag
|
||||
this.getLink(this.linkGithub).href += "?body=" + encodeURIComponent(issueBody)
|
||||
this.getLink(this.linkEmail).href += "?body=" + encodeURIComponent(issueBody.replace(/\n/g, "<br>\r\n"))
|
||||
}
|
||||
getLink(target){
|
||||
@ -153,7 +158,7 @@
|
||||
clean(){
|
||||
cancelTouch = true
|
||||
this.gamepad.clean()
|
||||
pageEvents.remove(this.linkGithub, ["click", "touchend"])
|
||||
pageEvents.remove(this.linkIssues, ["click", "touchend"])
|
||||
pageEvents.remove(this.linkEmail, ["click", "touchend"])
|
||||
pageEvents.remove(this.endButton, ["mousedown", "touchstart"])
|
||||
if(this.textarea){
|
||||
@ -164,7 +169,7 @@
|
||||
delete this.diagTxt
|
||||
delete this.version
|
||||
delete this.tutorialOuter
|
||||
delete this.linkGithub
|
||||
delete this.linkIssues
|
||||
delete this.linkEmail
|
||||
delete this.textarea
|
||||
}
|
||||
|
@ -78,7 +78,7 @@
|
||||
bugReporting: [
|
||||
"このシミュレータは現在開発中です。",
|
||||
"バグが発生した場合は、報告してください。",
|
||||
"GitHubかメールでバグを報告してください。"
|
||||
"Gitリポジトリかメールでバグを報告してください。"
|
||||
],
|
||||
diagnosticWarning: "以下の端末診断情報も併せて報告してください!",
|
||||
issueTemplate: "###### 下記の問題を説明してください。 スクリーンショットと診断情報を含めてください。"
|
||||
@ -169,7 +169,7 @@ function StringsEn(){
|
||||
bugReporting: [
|
||||
"This simulator is still in development.",
|
||||
"Please report any bugs you find.",
|
||||
"You can report bugs either via GitHub or email."
|
||||
"You can report bugs either via our Git repository or email."
|
||||
],
|
||||
diagnosticWarning: "Be sure to include the following diagnostic data!",
|
||||
issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information."
|
||||
@ -260,7 +260,7 @@ function StringsCn(){
|
||||
bugReporting: [
|
||||
"This simulator is still in development.",
|
||||
"Please report any bugs you find.",
|
||||
"You can report bugs either via GitHub or email."
|
||||
"You can report bugs either via our Git repository or email."
|
||||
],
|
||||
diagnosticWarning: "Be sure to include the following diagnostic data!",
|
||||
issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information."
|
||||
@ -351,7 +351,7 @@ function StringsTw(){
|
||||
bugReporting: [
|
||||
"This simulator is still in development.",
|
||||
"Please report any bugs you find.",
|
||||
"You can report bugs either via GitHub or email."
|
||||
"You can report bugs either via our Git repository or email."
|
||||
],
|
||||
diagnosticWarning: "Be sure to include the following diagnostic data!",
|
||||
issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information."
|
||||
@ -442,7 +442,7 @@ function StringsKo(){
|
||||
bugReporting: [
|
||||
"This simulator is still in development.",
|
||||
"Please report any bugs you find.",
|
||||
"You can report bugs either via GitHub or email."
|
||||
"You can report bugs either via our Git repository or email."
|
||||
],
|
||||
diagnosticWarning: "Be sure to include the following diagnostic data!",
|
||||
issueTemplate: "###### Describe the problem you are having below. Please include a screenshot and the diagnostic information."
|
||||
|
@ -4,8 +4,8 @@
|
||||
<div id="tutorial-content"></div>
|
||||
<div id="diag-txt"></div>
|
||||
<div id="about-link-btns">
|
||||
<div id="link-github" class="taibtn stroke-sub link-btn" alt="GitHub">
|
||||
<a href="https://github.com/bui/taiko-web/issues/new" target="_blank">GitHub</a>
|
||||
<div id="link-issues" class="taibtn stroke-sub link-btn" alt="Issues">
|
||||
<a target="_blank">Issues</a>
|
||||
</div>
|
||||
<div id="link-email" class="taibtn stroke-sub link-btn" alt="taiko@bui.pm">
|
||||
<a href="mailto:taiko@bui.pm">taiko@bui.pm</a>
|
||||
|
Loading…
Reference in New Issue
Block a user