Skip to content

Commit

Permalink
refactor(Stats): Add the currency_count & country_count stats (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Feb 2, 2025
1 parent 19a358a commit a14e72b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,11 @@
"Community": "Community",
"Confirm": "Confirm",
"Country": "Country",
"Countries": "Countries",
"Crop": "Crop",
"Cropped": "Cropped",
"Currency": "Currency",
"Currencies": "Currencies",
"CurrencyMissing": "Currency missing",
"Dashboard": "Dashboard",
"Display": "Display",
Expand Down
8 changes: 8 additions & 0 deletions src/views/Stats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<v-col cols="6" sm="4" md="3" lg="2">
<StatCard :value="stats.price_type_category_tag_count" :subtitle="$t('Stats.WithCategory')" />
</v-col>
<v-col cols="6" sm="4" md="3" lg="2">
<StatCard :value="stats.price_currency_count" :subtitle="$t('Common.Currencies')" />
</v-col>
</v-row>

<br>
Expand Down Expand Up @@ -49,6 +52,9 @@
<v-col cols="6" sm="4" md="3" lg="2">
<StatCard :value="stats.location_type_online_count" :subtitle="$t('Common.Online')" />
</v-col>
<v-col cols="6" sm="4" md="3" lg="2">
<StatCard :value="stats.location_type_osm_country_count" :subtitle="$t('Common.Countries')" />
</v-col>
</v-row>

<br>
Expand Down Expand Up @@ -132,12 +138,14 @@ export default {
price_count: 0,
price_type_product_code_count: 0,
price_type_category_tag_count: 0,
price_currency_count: 0,
product_count: 0,
product_with_price_count: 0,
location_count: 0,
location_with_price_count: 0,
location_type_osm_count: 0,
location_type_online_count: 0,
location_type_osm_country_count: 0,
proof_count: 0,
proof_with_price_count: 0,
proof_type_price_tag_count: 0,
Expand Down

0 comments on commit a14e72b

Please sign in to comment.