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: ...@@ -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://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 skip_cleanup: true
on: on:
branch: master branch: master
...@@ -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", "mycard-store" ] CMD [ "echo", "moecube-store" ]
{ {
"name": "mycard-store", "name": "moecube-store",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
......
...@@ -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.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 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.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 return data
} }
......
export default { export default {
win32_url: 'https://wudizhanche.mycard.moe/downloads/latest.yml', win32_url: 'https://wudizhanche.moecube.com/downloads/latest.yml',
drawin_url: 'https://wudizhanche.mycard.moe/downloads/latest-mac.json', drawin_url: 'https://wudizhanche.moecube.com/downloads/latest-mac.json',
ygobbs: { ygobbs: {
api_key: 'dc7298a754828b3d26b709f035a0eeceb43e73cbd8c4fa8dec18951f8a95d2bc', 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