From bc712a933bedd6f4d1dd7d3d4170675f98552525 Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 3 Aug 2024 19:05:06 +0900 Subject: [PATCH] iframe load --- public | 2 +- readme.md | 1 + src/App.vue | 136 +++++++++++++++++++++++++++++++++++++++------------- 3 files changed, 105 insertions(+), 34 deletions(-) diff --git a/public b/public index fbb036c..ceda2fa 160000 --- a/public +++ b/public @@ -1 +1 @@ -Subproject commit fbb036ce082fda6cb5ab9e73dd8a5fb649f95bf1 +Subproject commit ceda2fab6ea8819848317b8cc7a5a3a1f3ab4a9e diff --git a/readme.md b/readme.md index 684cefd..ae3fd1c 100644 --- a/readme.md +++ b/readme.md @@ -7,3 +7,4 @@ $ nvm use 16 $ yarn install $ yarn dev ``` + diff --git a/src/App.vue b/src/App.vue index 6f612da..3f957e1 100755 --- a/src/App.vue +++ b/src/App.vue @@ -92,7 +92,7 @@
- + @@ -126,7 +126,7 @@
- +
@@ -187,43 +187,81 @@
- - + + - - + + - - + + + + + - + - - M {{ planet }} - - - - + galaxy + neutron + sun + earth + moon +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Lv0spacejump
Lv0w, s, a, dmove
Lv11attack
Lv22skill
Lv33burst
+ + + + +
+
+
+ + + + + + + + E {{ game_exp }}
@@ -960,11 +998,14 @@ export default { sevens: "", game: "", game_lv: "", + game_exp: 0, api_url: "", bsky_mode: false, did: "", card_origin_status: false, planet_status: false, + game_login: false, + game_screen: false, planet: 0, useragent: window.navigator.userAgent.toLowerCase(), iframe_status: false, @@ -1005,7 +1046,7 @@ export default { .then(response => (this.rcards = response)); } else if (loc === 'svn'){ this.cards = ""; - let url = this.api_url + "sevs?itemsPerPage=4000"; + let url = this.api_url + "sevs?itemsPerPage=8000"; axios .get(url) .then(response => (this.sevens = response)); @@ -1038,11 +1079,16 @@ export default { this.model_critical = this.record.data.find((v) => v.username == loc).model_critical; this.model_critical_d = this.record.data.find((v) => v.username == loc).model_critical_d; this.user_room = this.record.data.find((v) => v.username == loc).room; + this.game_login = this.record.data.find((v) => v.username == loc).login; + this.game_exp = this.record.data.find((v) => v.username == loc).game_exp; + if (this.username === "syui") { + this.game_login = true; + } if (this.planet > 0){ this.planet_status = true; } - let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=4000"; + let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=8000"; axios .get("/json/card.json") .then(response => (this.rcards = response)); @@ -1082,7 +1128,7 @@ export default { }, page() { this.id = this.record.data.find((v) => v.username == this.userid).id; - let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=4000"; + let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=8000"; axios .get(url,{ crossdomain: true }) .then(response => (this.ucard = response)); @@ -1091,7 +1137,7 @@ export default { sort(){ if (this.premium) { this.premium = false; - let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=4000"; + let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=8000"; } return this.cards.data.sort((a, b) => { return b.cp - a.cp; @@ -1117,7 +1163,7 @@ export default { }, cardinfo(){ this.cards = ""; - let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=4000"; + let url = this.api_url + "users/" + this.id + "/card?itemsPerPage=8000"; axios .get(url,{ crossdomain: true }) .then(response => (this.cards = response)); @@ -1127,6 +1173,13 @@ export default { this.info = false; } }, + gamescreen(){ + if (this.game_screen == true) { + this.game_screen = false; + } else { + this.game_screen = true; + } + }, cardtime(){ this.cards.data = this.cards.data.slice().reverse(); this.time = true; @@ -1834,7 +1887,24 @@ span.card-planet { padding: 23px 0; } +span.game-card { + background-image: url(/card/card_0.webp); + background-size: cover; + background-position: center; + display: inline-block; + width: 200px; + border-radius: 3px; + padding: 23px 0; +} + .card-planet table thead { background-color: #fff; } +/* +iframe.game-app { + width:160px; + height:210px; + padding-bottom:14px; +} +*/