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
eff0b628
Commit
eff0b628
authored
Mar 29, 2017
by
HJISTC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.My-card.in MyCard.moe. -> MoeCube.com.
2.OSS -> MoeCube
parent
32d310ca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
.travis.yml
.travis.yml
+1
-1
Dockerfile
Dockerfile
+1
-1
package.json
package.json
+1
-1
src/App.js
src/App.js
+3
-3
src/config.js
src/config.js
+2
-2
No files found.
.travis.yml
View file @
eff0b628
...
@@ -14,7 +14,7 @@ before_deploy:
...
@@ -14,7 +14,7 @@ before_deploy:
-
unzip OSS_Python_API_20160419.zip
-
unzip OSS_Python_API_20160419.zip
deploy
:
deploy
:
provider
:
script
provider
:
script
script
:
python osscmd uploadfromdir aot oss://m
ycard
/store --id=$ALIYUN_ID --key=$ALIYUN_SECRET
script
:
python osscmd uploadfromdir aot oss://m
oecube
/store --id=$ALIYUN_ID --key=$ALIYUN_SECRET
skip_cleanup
:
true
skip_cleanup
:
true
on
:
on
:
branch
:
master
branch
:
master
Dockerfile
View file @
eff0b628
...
@@ -10,4 +10,4 @@ COPY . /usr/src/app
...
@@ -10,4 +10,4 @@ COPY . /usr/src/app
RUN
npm run build
RUN
npm run build
VOLUME
/usr/src/app/aot
VOLUME
/usr/src/app/aot
CMD
[ "echo", "m
ycard
-store" ]
CMD
[ "echo", "m
oecube
-store" ]
package.json
View file @
eff0b628
{
{
"name"
:
"m
ycard
-store"
,
"name"
:
"m
oecube
-store"
,
"version"
:
"0.1.0"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"private"
:
true
,
"devDependencies"
:
{
"devDependencies"
:
{
...
...
src/App.js
View file @
eff0b628
...
@@ -55,7 +55,7 @@ export default class App extends Component {
...
@@ -55,7 +55,7 @@ export default class App extends Component {
let
rawData
=
await
fetch
(
config
.
win32_url
).
then
(
res
=>
res
.
text
())
let
rawData
=
await
fetch
(
config
.
win32_url
).
then
(
res
=>
res
.
text
())
let
data
=
yaml
.
safeLoad
(
rawData
)
let
data
=
yaml
.
safeLoad
(
rawData
)
data
.
url
=
'
https://
r.my-card.in
/downloads/
'
+
data
.
path
data
.
url
=
'
https://
cdn01.moecube.com
/downloads/
'
+
data
.
path
return
data
return
data
}
}
...
@@ -69,7 +69,7 @@ export default class App extends Component {
...
@@ -69,7 +69,7 @@ export default class App extends Component {
}
}
async
get_stats_online
()
{
async
get_stats_online
()
{
let
rawText
=
await
fetch
(
'
https://api.m
ycard.moe
/stats/online
'
).
then
(
res
=>
res
.
text
())
let
rawText
=
await
fetch
(
'
https://api.m
oecube.com
/stats/online
'
).
then
(
res
=>
res
.
text
())
let
document
=
new
DOMParser
().
parseFromString
(
rawText
,
'
text/xml
'
)
let
document
=
new
DOMParser
().
parseFromString
(
rawText
,
'
text/xml
'
)
let
node
=
document
.
querySelector
(
'
#content > table > tbody > tr:nth-child(2) > td:nth-child(2)
'
)
||
{}
let
node
=
document
.
querySelector
(
'
#content > table > tbody > tr:nth-child(2) > td:nth-child(2)
'
)
||
{}
// eslint-disable-next-line
// eslint-disable-next-line
...
@@ -78,7 +78,7 @@ export default class App extends Component {
...
@@ -78,7 +78,7 @@ export default class App extends Component {
async
get_latest_drawin
()
{
async
get_latest_drawin
()
{
let
data
=
await
fetch
(
config
.
drawin_url
).
then
(
res
=>
res
.
json
())
let
data
=
await
fetch
(
config
.
drawin_url
).
then
(
res
=>
res
.
json
())
data
.
url
=
data
.
url
.
replace
(
'
-mac.zip
'
,
'
.dmg
'
).
replace
(
'
https://wudizhanche.m
ycard.moe/downloads/
'
,
'
https://r.my-card.in
/downloads/
'
)
data
.
url
=
data
.
url
.
replace
(
'
-mac.zip
'
,
'
.dmg
'
).
replace
(
'
https://wudizhanche.m
oecube.com/downloads/
'
,
'
https://cdn01.moecube.com
/downloads/
'
)
return
data
return
data
}
}
...
...
src/config.js
View file @
eff0b628
export
default
{
export
default
{
win32_url
:
'
https://wudizhanche.m
ycard.moe
/downloads/latest.yml
'
,
win32_url
:
'
https://wudizhanche.m
oecube.com
/downloads/latest.yml
'
,
drawin_url
:
'
https://wudizhanche.m
ycard.moe
/downloads/latest-mac.json
'
,
drawin_url
:
'
https://wudizhanche.m
oecube.com
/downloads/latest-mac.json
'
,
ygobbs
:
{
ygobbs
:
{
api_key
:
'
dc7298a754828b3d26b709f035a0eeceb43e73cbd8c4fa8dec18951f8a95d2bc
'
,
api_key
:
'
dc7298a754828b3d26b709f035a0eeceb43e73cbd8c4fa8dec18951f8a95d2bc
'
,
...
...
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