Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
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
MyCard
Moecube Store
Commits
e3ac43c9
Commit
e3ac43c9
authored
Mar 08, 2017
by
HJISTC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix downloading
parent
4287d5d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/App.js
src/App.js
+11
-7
No files found.
src/App.js
View file @
e3ac43c9
...
...
@@ -72,7 +72,7 @@ export default class App extends Component {
}
async
get_stats_online
()
{
let
rawText
=
await
fetch
(
'
https://
chat
.mycard.moe/stats/online
'
).
then
(
res
=>
res
.
text
())
let
rawText
=
await
fetch
(
'
https://
api
.mycard.moe/stats/online
'
).
then
(
res
=>
res
.
text
())
let
document
=
new
DOMParser
().
parseFromString
(
rawText
,
'
text/xml
'
)
let
node
=
document
.
querySelector
(
'
#content > table > tbody > tr:nth-child(2) > td:nth-child(2)
'
)
||
{}
// eslint-disable-next-line
...
...
@@ -278,9 +278,11 @@ export default class App extends Component {
<
Content
className
=
"
App-Content2
"
>
<
Col
span
=
"
14
"
>
<
p
id
=
"
Welcome
"
><
FormattedMessage
id
=
{
"
Welcome
"
}
/></
p
>
<
Button
id
=
"
downloadbot
"
type
=
"
primary
"
icon
=
"
download
"
size
=
'
large
'
onClick
=
{()
=>
window
.
open
(
latest
[
this
.
state
.
platform
].
url
)}
>
<
a
href
=
{
latest
[
this
.
state
.
platform
].
url
}
>
<
Button
id
=
"
downloadbot
"
type
=
"
primary
"
icon
=
"
download
"
size
=
'
large
'
>
<
FormattedMessage
id
=
{
"
Download
"
}
/
>
<
/Button
>
<
/a
>
<
/Col
>
<
Col
span
=
"
10
"
>
<
p
id
=
"
requirments
"
><
FormattedMessage
id
=
{
"
SystemRequirements
"
}
/></
p
>
...
...
@@ -290,9 +292,11 @@ export default class App extends Component {
<
Content
className
=
"
App-Content2
"
>
<
Col
span
=
"
24
"
>
<
p
id
=
"
Welcome
"
><
FormattedMessage
id
=
{
"
Welcome
"
}
/></
p
>
<
Button
id
=
"
downloadbot
"
type
=
"
primary
"
icon
=
"
download
"
size
=
'
large
'
onClick
=
{()
=>
window
.
open
(
latest
[
this
.
state
.
platform
].
url
)}
>
<
a
href
=
{
latest
[
this
.
state
.
platform
].
url
}
>
<
Button
id
=
"
downloadbot
"
type
=
"
primary
"
icon
=
"
download
"
size
=
'
large
'
>
<
FormattedMessage
id
=
{
"
Download
"
}
/
>
<
/Button
>
<
/a
>
<
p
id
=
"
requirments
"
><
FormattedMessage
id
=
{
"
SystemRequirements
"
}
/></
p
>
<
/Col
>
<
/Content
>
...
...
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