From 36ae24fdaf22c1b0c643531cb7974bf61246c95c Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 14 Feb 2026 00:53:19 +0100 Subject: [PATCH] refactor(profile): moved view sections and their logic to separate components --- .../PlayerProfileView/ProfileHistoryList.vue | 239 ++++++++ .../PlayerProfileView/ProfileRecentStats.vue | 90 +++ .../PlayerProfileView/ProfileSumary.vue | 269 +++++++++ src/styles/_global.scss | 2 + src/views/PlayerProfileView.vue | 554 +----------------- 5 files changed, 615 insertions(+), 539 deletions(-) create mode 100644 src/components/PlayerProfileView/ProfileHistoryList.vue create mode 100644 src/components/PlayerProfileView/ProfileRecentStats.vue create mode 100644 src/components/PlayerProfileView/ProfileSumary.vue diff --git a/src/components/PlayerProfileView/ProfileHistoryList.vue b/src/components/PlayerProfileView/ProfileHistoryList.vue new file mode 100644 index 0000000..4ba0278 --- /dev/null +++ b/src/components/PlayerProfileView/ProfileHistoryList.vue @@ -0,0 +1,239 @@ + + + + + diff --git a/src/components/PlayerProfileView/ProfileRecentStats.vue b/src/components/PlayerProfileView/ProfileRecentStats.vue new file mode 100644 index 0000000..dea9fd3 --- /dev/null +++ b/src/components/PlayerProfileView/ProfileRecentStats.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/components/PlayerProfileView/ProfileSumary.vue b/src/components/PlayerProfileView/ProfileSumary.vue new file mode 100644 index 0000000..8e03910 --- /dev/null +++ b/src/components/PlayerProfileView/ProfileSumary.vue @@ -0,0 +1,269 @@ + + + + + diff --git a/src/styles/_global.scss b/src/styles/_global.scss index 196c54d..fbd3956 100644 --- a/src/styles/_global.scss +++ b/src/styles/_global.scss @@ -10,6 +10,8 @@ --clr-bg3: #1d1d1d; --clr-view-bg: #1a1a1a; + --clr-tile: #181818; + --clr-accent: #1085b3; --clr-accent2: #ff3d5d; diff --git a/src/views/PlayerProfileView.vue b/src/views/PlayerProfileView.vue index 3aae801..16e8680 100644 --- a/src/views/PlayerProfileView.vue +++ b/src/views/PlayerProfileView.vue @@ -1,329 +1,15 @@