Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
6dc555ee
Commit
6dc555ee
authored
Jan 25, 2019
by
LoveEevee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Custom url for issues link
parent
4d527e6e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
public/src/js/about.js
public/src/js/about.js
+10
-5
public/src/js/strings.js
public/src/js/strings.js
+5
-5
public/src/views/about.html
public/src/views/about.html
+2
-2
No files found.
public/src/js/about.js
View file @
6dc555ee
...
...
@@ -11,7 +11,7 @@
if
(
touchEnabled
){
this
.
tutorialOuter
.
classList
.
add
(
"
touch-enabled
"
)
}
this
.
link
Github
=
document
.
getElementById
(
"
link-github
"
)
this
.
link
Issues
=
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
.
link
Github
,
[
"
click
"
,
"
touchend
"
])
pageEvents
.
remove
(
this
.
link
Issues
,
[
"
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
.
link
Github
delete
this
.
link
Issues
delete
this
.
linkEmail
delete
this
.
textarea
}
...
...
public/src/js/strings.js
View file @
6dc555ee
...
...
@@ -78,7 +78,7 @@
bugReporting
:
[
"
このシミュレータは現在開発中です。
"
,
"
バグが発生した場合は、報告してください。
"
,
"
Git
Hub
かメールでバグを報告してください。
"
"
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.
"
...
...
public/src/views/about.html
View file @
6dc555ee
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment