diff --git a/public/assets/passes/generic.png b/public/assets/passes/generic.png new file mode 100644 index 0000000..05e24f1 Binary files /dev/null and b/public/assets/passes/generic.png differ diff --git a/src/components/CardBoxGameStat.vue b/src/components/CardBoxGameStat.vue index 1911bdb..5bf17b9 100644 --- a/src/components/CardBoxGameStat.vue +++ b/src/components/CardBoxGameStat.vue @@ -1,11 +1,13 @@ diff --git a/src/components/Cards/CardBoxNews.vue b/src/components/Cards/CardBoxNews.vue index 759e74a..0614214 100644 --- a/src/components/Cards/CardBoxNews.vue +++ b/src/components/Cards/CardBoxNews.vue @@ -39,7 +39,7 @@ function getCardStyle(cover) { } function openNewsView() { - router.push(`/news/${props.id}`); // Navigate to the dedicated news view with the news title as the route parameter + router.push(`/news/${props.id}`); } diff --git a/src/components/Cards/ProfileCard.vue b/src/components/Cards/ProfileCard.vue index 5362e9c..e1827ca 100644 --- a/src/components/Cards/ProfileCard.vue +++ b/src/components/Cards/ProfileCard.vue @@ -1,55 +1,42 @@ diff --git a/src/components/Tables/TablePaseli.vue b/src/components/Tables/TablePaseli.vue index 8045776..3b4be12 100644 --- a/src/components/Tables/TablePaseli.vue +++ b/src/components/Tables/TablePaseli.vue @@ -43,15 +43,17 @@ const pagesList = computed(() => { User Value - Game + Machine + Reason Timestamp - {{ transaction.userId }} + {{ transaction.user }} {{ transaction.value }} - {{ transaction.game }} + {{ transaction.machine }} + {{ transaction.reason }} {{ transaction.timestamp }} diff --git a/src/components/Tables/TableRivals.vue b/src/components/Tables/TableRivals.vue new file mode 100644 index 0000000..211a998 --- /dev/null +++ b/src/components/Tables/TableRivals.vue @@ -0,0 +1,73 @@ + + + diff --git a/src/constants/greetings.json b/src/constants/greetings.json index b522321..ef5735a 100644 --- a/src/constants/greetings.json +++ b/src/constants/greetings.json @@ -88,5 +88,50 @@ "author": "barru", "header": "What's good, ?", "comment": "As long as you're around, everything's great 😄" + }, + { + "author": "yaladre", + "header": "Ready to kick it up a notch, ?", + "comment": "Get pumped up!" + }, + { + "author": "caldenza", + "header": "Alone in the night again, ?", + "comment": "Honestly, just go play Minecraft tbh" + }, + { + "author": "caldenza", + "header": "Did you make sure to restart the Mango, ?", + "comment": "It's not the mango. It's always the mango. God damnit." + }, + { + "author": "azui.573", + "header": "Welcome home, .", + "comment": "Ready to crush those rankings?" + }, + { + "author": "azui.573", + "header": "Introducing... !", + "comment": "Live from the RESIDENT PARTY!" + }, + { + "author": "Shilofax", + "header": "Make it make money, ", + "comment": "GOOOOOOOOOOOOOLD" + }, + { + "author": "daydensteve", + "header": "Welcome, .", + "comment": "PhaseII, here for all your net needs!" + }, + { + "author": "sierrathebluejay", + "header": "Welcome to the party, .", + "comment": "We've been waiting for you!" + }, + { + "author": "sierrathebluejay", + "header": "Wild appeared!", + "comment": "They're super effective!" } ] \ No newline at end of file diff --git a/src/constants/index.js b/src/constants/index.js index eb23865..5f15202 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -326,6 +326,7 @@ export const gameData = [ name: "BeatStream", icon: null, cardBG: null, + noRivals: true, versions: [ { id: VersionConstants.BEATSTREAM, @@ -342,6 +343,9 @@ export const gameData = [ name: "The ⭐ Bishi Bashi", icon: null, cardBG: null, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.BISHI_BASHI_NEW, @@ -349,18 +353,25 @@ export const gameData = [ icon: null, cardBG: null, skip: true, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.DANCE_EVOLUTION, name: "DanceEvolution", icon: null, cardBG: null, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.DANCE_RUSH, name: "DanceRush", icon: null, cardBG: null, + noRivals: true, versions: [ { id: VersionConstants.DANCE_RUSH_STARDOM, @@ -458,6 +469,9 @@ export const gameData = [ name: "Classic DDR", icon: "/assets/icon/ddr.png", cardBG: "/assets/card/ddr.png", + noRivals: true, + noScores: true, + noRecords: true, versions: [ { id: VersionConstants.DDR_1ST_MIX, @@ -641,15 +655,15 @@ export const gameData = [ }, { id: VersionConstants.DRUMMANIA_V4, - label: "V4", + label: "V4: ROCKxROCK", }, { id: VersionConstants.DRUMMANIA_V5, - label: "V5", + label: "V5: ROCK TO INFINITY!", }, { id: VersionConstants.DRUMMANIA_V6, - label: "V6", + label: "V6: BLAZING!!!!", }, { id: VersionConstants.DRUMMANIA_V7, @@ -667,6 +681,9 @@ export const gameData = [ icon: null, cardBG: null, skip: true, + noRivals: true, + noScores: true, + noRecords: true, versions: [ { id: VersionConstants.EEMALL, @@ -683,6 +700,9 @@ export const gameData = [ name: "Future Tom Tom", icon: null, cardBG: null, + noRivals: true, + noScores: true, + noRecords: true, versions: [ { id: VersionConstants.FUTURETOMTOM, @@ -699,6 +719,7 @@ export const gameData = [ name: "GITADORA (Drums)", icon: null, cardBG: null, + noRivals: true, versions: GITADORA_VERSION_DATA, }, { @@ -706,6 +727,7 @@ export const gameData = [ name: "GITADORA (Guitar)", icon: null, cardBG: null, + noRivals: true, versions: GITADORA_VERSION_DATA, }, { @@ -772,15 +794,15 @@ export const gameData = [ }, { id: VersionConstants.GUITARFREAKS_V4, - label: "V4", + label: "V4: ROCKxROCK", }, { id: VersionConstants.GUITARFREAKS_V5, - label: "V5", + label: "V5: ROCK TO INFINITY!", }, { id: VersionConstants.GUITARFREAKS_V6, - label: "V6", + label: "V6: BLAZING!!!!", }, { id: VersionConstants.GUITARFREAKS_V7, @@ -926,6 +948,9 @@ export const gameData = [ name: "Classic IIDX", icon: "/assets/icon/iidx.png", cardBG: "/assets/card/iidx.png", + noRivals: true, + noScores: true, + noRecords: true, versions: [ { id: VersionConstants.IIDX, @@ -1074,7 +1099,9 @@ export const gameData = [ name: "LovePlus", icon: null, cardBG: null, - skip: true, + noRivals: true, + noScores: true, + noRecords: true, versions: [ { id: VersionConstants.LOVEPLUS_ARCADE, @@ -1092,6 +1119,9 @@ export const gameData = [ icon: null, cardBG: null, skip: true, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.MUSECA, @@ -1139,6 +1169,9 @@ export const gameData = [ icon: null, cardBG: null, skip: true, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.OTOCA, @@ -1146,6 +1179,9 @@ export const gameData = [ icon: null, cardBG: null, skip: true, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.POPN_HELLO, @@ -1153,6 +1189,9 @@ export const gameData = [ icon: "/assets/icon/popn.png", cardBG: "/assets/card/popn.png", skip: true, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.POPN_MUSIC, @@ -1273,6 +1312,9 @@ export const gameData = [ icon: null, cardBG: null, skip: true, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.REFLEC_BEAT, @@ -1312,6 +1354,9 @@ export const gameData = [ icon: null, cardBG: null, skip: true, + noRivals: true, + noScores: true, + noRecords: true, }, { id: GameConstants.SDVX, @@ -1353,11 +1398,10 @@ export const arcadeList = [ id: 0, name: "Speakeasy Smashcade", area: "US-IL", - image: - "https://scontent-ord5-2.xx.fbcdn.net/v/t39.30808-6/345607186_2854756104656166_4038613677498709113_n.png?stp=dst-jpg&_nc_cat=103&ccb=1-7&_nc_sid=8631f5&_nc_ohc=ps88GQTw7pYAX_kG-ZY&_nc_ht=scontent-ord5-2.xx&oh=00_AfCeXwmodvTitMUxzk9EDGb-Rl2lGN9PdLFYQPPjD-iphw&oe=6492362F", + image: "https://i.imgur.com/HApAZgW.gif", address: null, show_address: false, - public: false, + public: true, beta: true, paseli: true, infinite_paseli: true, @@ -1394,6 +1438,19 @@ export const arcadeList = [ maintenance: false, admins: ["blade"], }, + { + id: 3, + name: "GhettoCade", + area: "US-IN", + image: "https://ik.imagekit.io/suedbykonami/arcade/card/IMG_7096.jpg", + show_address: false, + public: true, + beta: true, + paseli: true, + infinite_paseli: true, + maintenance: false, + admins: ["Trmazi"], + }, ]; export function getGameInfo(game) { diff --git a/src/constants/userData.js b/src/constants/userData.js new file mode 100644 index 0000000..b74dc27 --- /dev/null +++ b/src/constants/userData.js @@ -0,0 +1,4 @@ +export function dashCode(code) { + code = code.toString(); + return code.replace(/(.{4})(?!$)/g, "$1-"); +} diff --git a/src/css/main.css b/src/css/main.css index 17c8259..248523a 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -16,4 +16,14 @@ .scale-leave-to { opacity: 0; transform: scale(0.9); +} + +img { + pointer-events: none; +} + +body { + -webkit-user-select: none; /* Safari */ + -ms-user-select: none; /* IE 10 and IE 11 */ + user-select: none; /* Standard syntax */ } \ No newline at end of file diff --git a/src/menuAside.js b/src/menuAside.js index 16d551c..b27b5b9 100644 --- a/src/menuAside.js +++ b/src/menuAside.js @@ -11,15 +11,47 @@ import { gameData, arcadeList } from "./constants"; var sortedMenu = []; for (const game of gameData) { if (!game.skip) { + const menuItems = [ + "overview", + "rivals", + "net_records", + "net_scores", + "my_records", + "my_scores", + ]; + var menu = []; + + for (const item of menuItems) { + if (item === "overview") { + menu.push({ label: "Overview", to: `/games/${game.id}` }); + } else if (item == "rivals" && !game.noRivals) { + menu.push({ label: "Rivals", to: `/games/${game.id}/rivals` }); + } else if (item == "net_records" && !game.noRecords) { + menu.push({ + label: "Network Records", + to: `/games/${game.id}/records/all`, + }); + } else if (item == "net_scores" && !game.noScores) { + menu.push({ + label: "Network Scores", + to: `/games/${game.id}/scores/all`, + }); + } else if (item == "my_records" && !game.noRecords) { + menu.push({ + label: "Personal Records", + to: `/games/${game.id}/records/personal`, + }); + } else if (item == "my_scores" && !game.noScores) { + menu.push({ + label: "Personal Scores", + to: `/games/${game.id}/scores/personal`, + }); + } + } + sortedMenu.push({ label: game.shortName ? game.shortName : game.name, - menu: [ - { label: "Overview", to: `/games/${game.id}` }, - { label: "Network Records", to: `/games/${game.id}/records/all` }, - { label: "Network Scores", to: `/games/${game.id}/scores/all` }, - { label: "Personal Records", to: `/games/${game.id}/records/personal` }, - { label: "Personal Scores", to: `/games/${game.id}/scores/personal` }, - ], + menu: menu, }); } } @@ -33,7 +65,7 @@ for (const arcade of arcadeList) { { label: "Overview", to: `/arcade/${arcade.id}` }, { label: "Event Settings", to: `/arcade/${arcade.id}/events` }, { label: "Machine List", to: `/arcade/${arcade.id}/machines` }, - { label: "PASELI Transactions", to: `/arcade/${arcade.id}/paseli` }, + { label: "PASELI", to: `/arcade/${arcade.id}/paseli` }, ], }); } diff --git a/src/menuNavBar.js b/src/menuNavBar.js index 744da5b..f559d66 100644 --- a/src/menuNavBar.js +++ b/src/menuNavBar.js @@ -5,6 +5,7 @@ import { mdiServerNetwork, mdiBrushOutline, mdiFlagCheckered, + mdiCardAccountDetailsOutline, } from "@mdi/js"; export default [ @@ -26,6 +27,11 @@ export default [ label: "Integrations", to: "/profile/integrate", }, + { + icon: mdiCardAccountDetailsOutline, + label: "Login Cards", + to: "/profile/cards", + }, ], }, { diff --git a/src/router/index.js b/src/router/index.js index 340f6cf..dfc91b8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -74,6 +74,14 @@ const routes = [ name: "profile_integrations", component: () => import("@/views/Profile/IntegrationView.vue"), }, + { + meta: { + title: "Login Cards", + }, + path: "/profile/cards", + name: "profile_cards", + component: () => import("@/views/Profile/CardsView.vue"), + }, { meta: { title: "Goals", @@ -164,6 +172,17 @@ const routes = [ hotReload: true, // disables Hot Reload }, }, + { + meta: { + title: "Rivals", + }, + path: "/games/:game/rivals", + name: "game_rivals", + component: () => import("@/views/Game/RivalsView.vue"), + options: { + hotReload: true, // disables Hot Reload + }, + }, { meta: { title: "Error", diff --git a/src/views/Arcade/PaseliView.vue b/src/views/Arcade/PaseliView.vue index 6089054..8e94cf2 100644 --- a/src/views/Arcade/PaseliView.vue +++ b/src/views/Arcade/PaseliView.vue @@ -1,6 +1,6 @@ @@ -30,12 +31,21 @@ var transactions = [ + + + + + + - diff --git a/src/views/ErrorView.vue b/src/views/ErrorView.vue index 9cd2f35..d55a8df 100644 --- a/src/views/ErrorView.vue +++ b/src/views/ErrorView.vue @@ -17,7 +17,7 @@ import LayoutGuest from "@/layouts/LayoutGuest.vue";

PhaseII

- Spinnin' since 2021 + Broken since 2021


404 - File not found

diff --git a/src/views/Game/GameView.vue b/src/views/Game/GameView.vue index 5b8ffc0..949c125 100644 --- a/src/views/Game/GameView.vue +++ b/src/views/Game/GameView.vue @@ -7,6 +7,7 @@ import SectionTitleLine from "@/components/SectionTitleLine.vue"; import GameTitleLine from "@/components/GameTitleLine.vue"; import LayoutAuthenticated from "@/layouts/LayoutAuthenticated.vue"; import CardBox from "@/components/CardBox.vue"; +import CardBoxWidget from "@/components/CardBoxWidget.vue"; import FormControl from "@/components/FormControl.vue"; import ProfileCard from "@/components/Cards/ProfileCard.vue"; import TablePlayers from "@/components/Tables/TablePlayers.vue"; @@ -21,9 +22,25 @@ const versionForm = reactive({ currentVersion: null, }); +const profile = { + id: 1, + name: "Trmazi", + extid: 12345678, + avatar: + "https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/", + last: { + arcade: "GhettoCade", + date: "7/16/2023", + }, +}; + gameID = $route.params.id; thisGame = getGameInfo(gameID); +if (!thisGame.versions) { + versionForm.currentVersion = 1; +} + if (!thisGame) { $router.push({ name: "ErrorPage", @@ -74,9 +91,18 @@ function getCardStyle() {
- + +
+ + + +
diff --git a/src/views/Game/PlayerView.vue b/src/views/Game/PlayerView.vue index 33532f3..83d31b4 100644 --- a/src/views/Game/PlayerView.vue +++ b/src/views/Game/PlayerView.vue @@ -69,6 +69,18 @@ const settings = [ }, ]; +const profile = { + id: 1, + name: "Trmazi", + extid: 12345678, + avatar: + "https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/", + last: { + arcade: "GhettoCade", + date: "7/16/2023", + }, +}; + const userSettings = reactive({ username: "TRMAZI", fastSlow: true, @@ -92,6 +104,10 @@ if (!thisGame) { }); } +if (!thisGame.versions) { + versionForm.currentVersion = 1; +} + function getSources() { var sources = null; if (!versionForm.currentVersion) { @@ -117,21 +133,17 @@ function getCardStyle() {
-
- - -
-
+ +

Select Version

@@ -148,13 +160,11 @@ function getCardStyle() { >
- +
+ +import { reactive } from "vue"; +import { useRoute, useRouter } from "vue-router"; +import { mdiSwordCross, mdiPlus, mdiBackburger } from "@mdi/js"; +import SectionMain from "@/components/SectionMain.vue"; +import CardBox from "@/components/CardBox.vue"; +import BaseButton from "@/components/BaseButton.vue"; +import ProfileCard from "@/components/Cards/ProfileCard.vue"; +import LayoutAuthenticated from "@/layouts/LayoutAuthenticated.vue"; +import SectionTitleLine from "@/components/SectionTitleLine.vue"; +import FormField from "@/components/FormField.vue"; +import FormControl from "@/components/FormControl.vue"; +import TableRivals from "@/components/Tables/TableRivals.vue"; +import { getGameInfo } from "@/constants"; + +const $route = useRoute(); +const $router = useRouter(); +var gameID = null; +var thisGame = null; + +const profile = { + id: 1, + name: "Trmazi", + extid: 12345678, + avatar: + "https://static.wikia.nocookie.net/dancedancerevolutionddr/images/3/3b/Yuni_img1.gif/", + last: { + arcade: "GhettoCade", + date: "7/16/2023", + }, +}; + +const rivals = [ + { + id: 1, + name: "TRMAZI", + rivalID: "1234-5678", + }, + { + id: 2, + name: "BLADE", + rivalID: "1454-5687", + }, + { + id: 3, + name: "HO!", + rivalID: "5364-5568", + }, +]; + +const versionForm = reactive({ + currentVersion: null, +}); + +const filterForm = reactive({ + filter: null, +}); + +gameID = $route.params.game; +thisGame = getGameInfo(gameID); + +if (!thisGame.versions) { + versionForm.currentVersion = 1; +} + +if (!thisGame) { + $router.push({ + name: "ErrorPage", + params: { + catchAll: "404", + }, + }); +} + +function filterUsers() { + if (filterForm.filter) { + return rivals.filter( + (rival) => + rival.name.toLowerCase().includes(filterForm.filter.toLowerCase()) || + rival.rivalID.toLowerCase().includes(filterForm.filter.toLowerCase()) + ); + } +} + +function getSources() { + var sources = null; + if (!versionForm.currentVersion) { + sources = thisGame.cardBG; + } else { + sources = `/assets/games/${thisGame.id}/card/${versionForm.currentVersion}.png`; + } + return sources; +} + +function getCardStyle() { + return ` + background-image: url('${getSources()}'); + background-size: cover; + background-repeat: no-repeat; + `; +} + + + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 9ae09ad..f9e5e59 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -51,6 +51,33 @@ const setGoals = [ deadline: "1 Week", }, ]; + +const gameStats = [ + { + id: GameConstants.IIDX, + username: "DJ. TRMAZI", + type: "ranking", + value: "#22 of 330", + }, + { + id: GameConstants.DDR, + username: "TRMAZI", + type: "scores", + value: 233, + }, + { + id: GameConstants.POPN_MUSIC, + username: "TRMAZI", + type: "plays", + value: 69, + }, + { + id: GameConstants.SDVX, + username: "TRMAZI", + type: "scores", + value: 420, + }, +];