Commit 24719f2c authored by Tang Xinwei's avatar Tang Xinwei

Revert "cars页面增加期间使用率统计"

This reverts commit 4df00855.
parent 70426323
Pipeline #22659 passed with stages
in 1 minute and 2 seconds
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/ygopro-arena-web.iml" filepath="$PROJECT_DIR$/.idea/ygopro-arena-web.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
This diff is collapsed.
...@@ -16,11 +16,13 @@ export default class Api { ...@@ -16,11 +16,13 @@ export default class Api {
static clkUrl = `${URL}/clktrack` static clkUrl = `${URL}/clktrack`
static getMonthlyHistory(opt) { static getMonthlyWinRate() {
const url = `https://sapi.moecube.com:444/ygopro/arena/historyScore`;
return Vue.http.get(url, { params: opt }); let monthlyWinRateUrl = 'https://sapi.moecube.com:444/ygopro/analytics/matchup/type?source=mycard-athletic'
return Vue.http.get(monthlyWinRateUrl)
} }
// https://sapi.moecube.com:444/ygopro/arena/historyScore?username=id&season=yyyy-mm
static getDownloadUrl(url) { static getDownloadUrl(url) {
url = url.slice(7) url = url.slice(7)
...@@ -39,15 +41,6 @@ export default class Api { ...@@ -39,15 +41,6 @@ export default class Api {
const url = `${URL}/user?${request}`; const url = `${URL}/user?${request}`;
return Vue.http.get(url); return Vue.http.get(url);
} }
static getUserInfoMonth(opt) {
var request = query.stringify(opt);
const url = `${URL}/user?${request}`;
return Vue.http.get(url);
}
// https://sapi.moecube.com:444/ygopro/arena/historyScore?username=id&season=yyyy-mm
static getUsers(opt) { static getUsers(opt) {
var request = query.stringify(opt); var request = query.stringify(opt);
...@@ -56,12 +49,9 @@ export default class Api { ...@@ -56,12 +49,9 @@ export default class Api {
} }
static getUserDueHistory(opt) { static getUserDueHistory(opt) {
return Vue.http.get(`${URL}/history`, {'params': opt}); return Vue.http.get(`${URL}/history`, { 'params': opt });
} }
static getDownloadUrls() { static getDownloadUrls() {
return Vue.http.get('https://api.github.com/repos/mycard/mycard/releases/latest') return Vue.http.get('https://api.github.com/repos/mycard/mycard/releases/latest')
} }
...@@ -77,72 +67,72 @@ export default class Api { ...@@ -77,72 +67,72 @@ export default class Api {
} }
static getDeckInfo(opt) { static getDeckInfo(opt) {
return Vue.http.get(`${URL}/deckinfo`, {'params': opt}); return Vue.http.get(`${URL}/deckinfo`, { 'params': opt });
} }
static saveDeck(opt) { static saveDeck(opt) {
const url = `${URL}/deckinfo` const url = `${URL}/deckinfo`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static saveDeckDemo(opt) { static saveDeckDemo(opt) {
const url = `${URL}/deckdemo` const url = `${URL}/deckdemo`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static getReport(opt) { static getReport(opt) {
return Vue.http.get(`${URL}/report`, {'params': opt}); return Vue.http.get(`${URL}/report`, { 'params': opt });
} }
static getVoteList(opt) { static getVoteList(opt) {
return Vue.http.get(`${URL}/votes`, {'params': opt}); return Vue.http.get(`${URL}/votes`, { 'params': opt });
} }
static saveVote(opt) { static saveVote(opt) {
const url = `${URL}/votes` const url = `${URL}/votes`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static voteStatus(opt) { static voteStatus(opt) {
const url = `${URL}/voteStatus` const url = `${URL}/voteStatus`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static getVote(opt) { static getVote(opt) {
return Vue.http.get(`${URL}/vote`, {'params': opt}); return Vue.http.get(`${URL}/vote`, { 'params': opt });
} }
static submitVote(opt) { static submitVote(opt) {
const url = `${URL}/submitVote` const url = `${URL}/submitVote`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static saveAds(opt) { static saveAds(opt) {
const url = `${URL}/ads` const url = `${URL}/ads`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static getAdsList(opt) { static getAdsList(opt) {
return Vue.http.get(`${URL}/ads`, {'params': opt}); return Vue.http.get(`${URL}/ads`, { 'params': opt });
} }
static adsStatus(opt) { static adsStatus(opt) {
const url = `${URL}/adsStatus` const url = `${URL}/adsStatus`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static getAd(opt) { static getAd(opt) {
return Vue.http.get(`${URL}/getAd`, {'params': opt}); return Vue.http.get(`${URL}/getAd`, { 'params': opt });
} }
static adClick(opt) { static adClick(opt) {
const url = `${URL}/adClick` const url = `${URL}/adClick`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static adImpl(opt) { static adImpl(opt) {
const url = `${URL}/adImpl` const url = `${URL}/adImpl`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static getFirstWin(opt) { static getFirstWin(opt) {
...@@ -153,21 +143,21 @@ export default class Api { ...@@ -153,21 +143,21 @@ export default class Api {
static adSwitchChange(opt) { static adSwitchChange(opt) {
const url = `${URL}/adSwitchChange` const url = `${URL}/adSwitchChange`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static saveActivity(opt) { static saveActivity(opt) {
const url = `${URL}/activity` const url = `${URL}/activity`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static saveLabel(opt) { static saveLabel(opt) {
const url = `${URL}/label` const url = `${URL}/label`
return Vue.http.post(url, opt, {'emulateJSON': true}); return Vue.http.post(url, opt, { 'emulateJSON': true });
} }
static getLabel(opt) { static getLabel(opt) {
return Vue.http.get(`${URL}/label`, {'params': {}}); return Vue.http.get(`${URL}/label`, { 'params': {} });
} }
} }
...@@ -491,6 +491,7 @@ ...@@ -491,6 +491,7 @@
type: this.type, type: this.type,
page: this.page, page: this.page,
username: this.username, username: this.username,
type: this.type,
from_date: this.from_date, from_date: this.from_date,
to_date: this.to_date to_date: this.to_date
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -41,7 +41,6 @@ module.exports = { ...@@ -41,7 +41,6 @@ module.exports = {
dueHistory: '最近决斗记录', dueHistory: '最近决斗记录',
athleticDueHistory: '竞技场决斗记录', athleticDueHistory: '竞技场决斗记录',
entertainDueHistory: '娱乐场决斗记录', entertainDueHistory: '娱乐场决斗记录',
monthlyHistory: '每月决斗记录',
tagInfo: '绿色表示获胜方,红色则表示掉线。', tagInfo: '绿色表示获胜方,红色则表示掉线。',
rates: '卡组胜率', rates: '卡组胜率',
......
...@@ -38,7 +38,6 @@ module.exports = { ...@@ -38,7 +38,6 @@ module.exports = {
deck: "卡组", deck: "卡组",
count: "使用数", count: "使用数",
PickRate : "使用率",
topTags: "热门标签", topTags: "热门标签",
playerA: '玩家A', playerA: '玩家A',
...@@ -60,7 +59,6 @@ module.exports = { ...@@ -60,7 +59,6 @@ module.exports = {
cardName: "Card Name", cardName: "Card Name",
used: "Used", used: "Used",
PickRate:"Pick Rate",
put1: "Put one ", put1: "Put one ",
put2: "Put two ", put2: "Put two ",
put3: "Put three ", put3: "Put three ",
......
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