Commit eff0b628 authored by HJISTC's avatar HJISTC

1.My-card.in MyCard.moe. -> MoeCube.com.

2.OSS -> MoeCube
parent 32d310ca
......@@ -14,7 +14,7 @@ before_deploy:
- unzip OSS_Python_API_20160419.zip
deploy:
provider: script
script: python osscmd uploadfromdir aot oss://mycard/store --id=$ALIYUN_ID --key=$ALIYUN_SECRET
script: python osscmd uploadfromdir aot oss://moecube/store --id=$ALIYUN_ID --key=$ALIYUN_SECRET
skip_cleanup: true
on:
branch: master
......@@ -10,4 +10,4 @@ COPY . /usr/src/app
RUN npm run build
VOLUME /usr/src/app/aot
CMD [ "echo", "mycard-store" ]
CMD [ "echo", "moecube-store" ]
{
"name": "mycard-store",
"name": "moecube-store",
"version": "0.1.0",
"private": true,
"devDependencies": {
......
......@@ -55,7 +55,7 @@ export default class App extends Component {
let rawData = await fetch(config.win32_url).then(res => res.text())
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
}
......@@ -69,7 +69,7 @@ export default class App extends Component {
}
async get_stats_online() {
let rawText = await fetch('https://api.mycard.moe/stats/online').then(res => res.text())
let rawText = await fetch('https://api.moecube.com/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
......@@ -78,7 +78,7 @@ export default class App extends Component {
async get_latest_drawin() {
let data = await fetch(config.drawin_url).then(res => res.json())
data.url = data.url.replace('-mac.zip', '.dmg').replace('https://wudizhanche.mycard.moe/downloads/', 'https://r.my-card.in/downloads/')
data.url = data.url.replace('-mac.zip', '.dmg').replace('https://wudizhanche.moecube.com/downloads/', 'https://cdn01.moecube.com/downloads/')
return data
}
......
export default {
win32_url: 'https://wudizhanche.mycard.moe/downloads/latest.yml',
drawin_url: 'https://wudizhanche.mycard.moe/downloads/latest-mac.json',
win32_url: 'https://wudizhanche.moecube.com/downloads/latest.yml',
drawin_url: 'https://wudizhanche.moecube.com/downloads/latest-mac.json',
ygobbs: {
api_key: 'dc7298a754828b3d26b709f035a0eeceb43e73cbd8c4fa8dec18951f8a95d2bc',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment