diff --git a/.env.development b/.env.development
index 9ca9a27..aba9151 100644
--- a/.env.development
+++ b/.env.development
@@ -1,4 +1,4 @@
-VITE_APP_VERSION="3.0.5"
+VITE_APP_VERSION="3.0.6"
VITE_API_URL="http://10.5.7.5:8000/"
VITE_API_KEY="your_api_key_should_be_here"
VITE_ASSET_PATH="/assets"
diff --git a/.env.production b/.env.production
index 6b8231f..9ae16d2 100644
--- a/.env.production
+++ b/.env.production
@@ -1,4 +1,4 @@
-VITE_APP_VERSION="3.0.5"
+VITE_APP_VERSION="3.0.6"
VITE_API_URL="https://restfulsleep.phaseii.network"
VITE_API_KEY="your_api_key_should_be_here"
VITE_ASSET_PATH="https://cdn.phaseii.network/file/PhaseII/web-assets"
diff --git a/public/data-sources/changelog.json b/public/data-sources/changelog.json
index 271b814..db2dd0a 100644
--- a/public/data-sources/changelog.json
+++ b/public/data-sources/changelog.json
@@ -3,5 +3,6 @@
"3.0.2": ["- (Feature) Added new greetings", "- (Feature) Added new user background", "- (Feature) Added toggle for disabling/enabling this popup", "- (Feature) Added version info to footer", "- (Feature) Fill in more profile data on personal profile view", "- (Fix) DDR stats now work again", "- (Fix) DDR player weight can now be set (kinda)"],
"3.0.3": ["- (Feature) Discord avatars are now reactive!", "- (Feature) New profile badges! I'll be working on a backend for these soon™️", "- (Optimization) Fix this box's formatting on mobile."],
"3.0.4": ["- (Feature) Add performance event flag settings for SOUND VOLTEX EXCEED GEAR"],
- "3.0.5": ["- (Feature) Add profile badges based on Discord server roles. Expands Discord linking capabilities."]
+ "3.0.5": ["- (Feature) Add profile badges based on Discord server roles. Expands Discord linking capabilities."],
+ "3.0.6": ["- (Major) Replace non-standard game cards with a standardized and new header card. May break some layouts so PLEASE REPORT BUGS!", "- (Feature) Create song detail page, not yet completed or reactive.", "- (Bugfix) Fix issue where deleteSession fails if the session has already been deleted.", "- (Minor) Edit ring color on red buttons", "- (Admin) Add Arcades admin page", "- (Bugfix) Fix incorrect prop types for Notes Radar"]
}
\ No newline at end of file
diff --git a/src/colors.js b/src/colors.js
index 01e61e2..691381c 100644
--- a/src/colors.js
+++ b/src/colors.js
@@ -95,7 +95,7 @@ export const getButtonColor = (
lightDark: "border-gray-100 dark:border-slate-800",
contrast: "border-gray-800 dark:border-white",
success: "border-emerald-600 dark:border-emerald-800",
- danger: "border-red-600 dark:border-ruby-950",
+ danger: "border-red-600 dark:border-red-950",
warning: "border-yellow-600 dark:border-yellow-950",
info: "border-blue-600 dark:border-blue-950",
},
diff --git a/src/components/CardBoxWidget.vue b/src/components/CardBoxWidget.vue
index b641b1b..4d927e3 100644
--- a/src/components/CardBoxWidget.vue
+++ b/src/components/CardBoxWidget.vue
@@ -50,6 +50,10 @@ defineProps({
type: String,
default: null,
},
+ smallContent: {
+ type: Boolean,
+ default: false,
+ },
});
@@ -82,7 +86,9 @@ defineProps({
:prefix="prefix"
:suffix="suffix"
/>
-
+
diff --git a/src/components/Cards/GameHeader.vue b/src/components/Cards/GameHeader.vue
new file mode 100644
index 0000000..1677a8d
--- /dev/null
+++ b/src/components/Cards/GameHeader.vue
@@ -0,0 +1,153 @@
+
+
+
+
+
diff --git a/src/components/Charts/UserNotesRadar.vue b/src/components/Charts/UserNotesRadar.vue
index 227fdef..237634c 100644
--- a/src/components/Charts/UserNotesRadar.vue
+++ b/src/components/Charts/UserNotesRadar.vue
@@ -26,7 +26,7 @@ ChartJS.register(
const props = defineProps({
profile: {
- type: Number,
+ type: String,
default: null,
},
game: {
diff --git a/src/components/GameTitleLine.vue b/src/components/GameTitleLine.vue
index fff2b81..d334cec 100644
--- a/src/components/GameTitleLine.vue
+++ b/src/components/GameTitleLine.vue
@@ -17,16 +17,18 @@ const hasSlot = computed(() => useSlots().default);
-
-
-
-
+
diff --git a/src/components/SectionTitleLine.vue b/src/components/SectionTitleLine.vue
index 7034b3f..7b252f8 100644
--- a/src/components/SectionTitleLine.vue
+++ b/src/components/SectionTitleLine.vue
@@ -25,7 +25,7 @@ const hasSlot = computed(() => useSlots().default);
{
label: "Arcades",
to: "/admin/arcades",
},
- {
- label: "Machines",
- to: "/admin/machines",
- },
{
label: "Cards",
to: "/admin/cards",
diff --git a/src/router/index.js b/src/router/index.js
index be08163..c725396 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -173,14 +173,6 @@ const routes = [
name: "admin_arcades",
component: () => import("@/views/Admin/ArcadesView.vue"),
},
- {
- meta: {
- title: "Machines",
- },
- path: "/admin/machines",
- name: "admin_machines",
- component: () => import("@/views/Admin/MachinesView.vue"),
- },
{
meta: {
title: "Cards",
@@ -325,6 +317,17 @@ const routes = [
hotReload: true, // disables Hot Reload
},
},
+ {
+ meta: {
+ title: "Song Overview",
+ },
+ path: "/games/:game/song/:songId",
+ name: "song_overview",
+ component: () => import("@/views/Game/SongView.vue"),
+ options: {
+ hotReload: true, // disables Hot Reload
+ },
+ },
{
meta: {
title: "View Scores",
diff --git a/src/stores/api/admin.js b/src/stores/api/admin.js
index e68d43a..8196b5a 100644
--- a/src/stores/api/admin.js
+++ b/src/stores/api/admin.js
@@ -10,6 +10,16 @@ export async function APIAdminDashboard() {
}
}
+export async function APIAdminArcades() {
+ try {
+ const data = await mainStore.callApi(`/admin/arcades`);
+ return data.data;
+ } catch (error) {
+ console.log("Error loading arcades:", error);
+ throw error;
+ }
+}
+
export async function checkArcadeName(arcadeName) {
try {
const data = await mainStore.callApi(
diff --git a/src/stores/main.js b/src/stores/main.js
index 1d15cc5..03dabfc 100644
--- a/src/stores/main.js
+++ b/src/stores/main.js
@@ -208,6 +208,11 @@ export const useMainStore = defineStore("main", {
},
async deleteUserSession() {
+ if (!loadUserAuthKey()) {
+ this.userLoaded = false;
+ return null;
+ }
+
const request = {
sessionId: loadUserAuthKey(),
};
diff --git a/src/views/Admin/ArcadesView.vue b/src/views/Admin/ArcadesView.vue
index 2c61d53..9efc4ad 100644
--- a/src/views/Admin/ArcadesView.vue
+++ b/src/views/Admin/ArcadesView.vue
@@ -1,30 +1,200 @@
+
+ Arcade Management
+ Enter an arcade to manage it
+
+
-
-
-
-
-
+
+
+
+
+
+ Click row to open arcade
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
{{ arcade.name }}
+
+ {{ arcade.description }}
+
+ Managed by {{ arcade.owners }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/Admin/MachinesView.vue b/src/views/Admin/MachinesView.vue
deleted file mode 100644
index 2c61d53..0000000
--- a/src/views/Admin/MachinesView.vue
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/Game/EditView.vue b/src/views/Game/EditView.vue
index 8b75263..7f80914 100644
--- a/src/views/Game/EditView.vue
+++ b/src/views/Game/EditView.vue
@@ -1,10 +1,11 @@
+
+
+
+
+
+
+
+
+
+
MY BABY MAMA
+ ANQUETTE
+
+
+
+
+
+
+
+
+ Unclaimed
+ SIRO - 877,010
+ CHRS4LFE - 1,000,000 MFC
+
+
+
+
+
+
+ Select Chart
+
+
+
+
+
+
+
+
+
+
+