+
+
{{ $t('falukant.moneyHistory.title') }}
+
+
+ {{ $t('falukant.moneyHistory.filter') }}
+
+ {{ $t('falukant.moneyHistory.search') }}
-
-
-
-
-
-
\ No newline at end of file
+ },
+};
+
+
+
\ No newline at end of file
diff --git a/frontend/src/views/falukant/OverviewView.vue b/frontend/src/views/falukant/OverviewView.vue
index 659a61c..736c95e 100644
--- a/frontend/src/views/falukant/OverviewView.vue
+++ b/frontend/src/views/falukant/OverviewView.vue
@@ -11,9 +11,17 @@
{{ falukantUser?.character.definedFirstName.name }} {{
falukantUser?.character.definedLastName.name }}
+
+ {{ $t('falukant.overview.metadata.nobleTitle') }}
+ {{ $t('falukant.titles.' + falukantUser?.character.gender + '.' + falukantUser?.character.nobleTitle.labelTr) }}
+
{{ $t('falukant.overview.metadata.money') }}
- {{ falukantUser?.money }}
+
+ {{ moneyValue != null
+ ? moneyValue.toLocaleString(locale, { style: 'currency', currency: 'EUR' })
+ : '---' }}
+
{{ $t('falukant.overview.metadata.age') }}
@@ -150,7 +158,7 @@ export default {
const ageGroup = this.getAgeGroup(age);
const genderData = AVATAR_POSITIONS[gender] || {};
const position = genderData.positions?.[ageGroup] || { x: 0, y: 0 };
- const width = genderData.width || 100;
+ const width = genderData.width || 100;
const height = genderData.height || 100;
return {
backgroundImage: `url(${imageUrl})`,
@@ -160,6 +168,13 @@ export default {
height: `${height}px`,
};
},
+ moneyValue() {
+ const m = this.falukantUser?.money;
+ return typeof m === 'string' ? parseFloat(m) : m;
+ },
+ locale() {
+ return window.navigator.language || 'en-US';
+ },
},
async mounted() {
await this.fetchFalukantUser();
@@ -171,7 +186,6 @@ export default {
}
if (this.daemonSocket) {
this.daemonSocket.addEventListener('message', (event) => {
- console.log('incoming event', event);
try {
if (event.data === "ping") return;
const message = JSON.parse(event.data);
@@ -182,6 +196,8 @@ export default {
console.error('Error processing WebSocket message in FalukantOverviewView:', error);
}
});
+ } else {
+ console.log('no daemon socket');
}
},
beforeUnmount() {
@@ -281,4 +297,8 @@ export default {
background-size: cover;
image-rendering: crisp-edges;
}
+
+h2 {
+ padding-top: 20px;
+}
diff --git a/outputs/generated/000000_985862166_ddim50_PS7.5_13_years_old_red_haired_girl_in_puberty_with_violet_eyes_and_a_lot_of_freckles_on_face_and_chest_stays_on_beach_of_a_lake_and_wash_[generated].jpg b/outputs/generated/000000_985862166_ddim50_PS7.5_13_years_old_red_haired_girl_in_puberty_with_violet_eyes_and_a_lot_of_freckles_on_face_and_chest_stays_on_beach_of_a_lake_and_wash_[generated].jpg
new file mode 100644
index 0000000..3079013
Binary files /dev/null and b/outputs/generated/000000_985862166_ddim50_PS7.5_13_years_old_red_haired_girl_in_puberty_with_violet_eyes_and_a_lot_of_freckles_on_face_and_chest_stays_on_beach_of_a_lake_and_wash_[generated].jpg differ