some fixes

This commit is contained in:
Doar Mihai
2026-03-25 20:39:10 +02:00
parent 4db544bcc2
commit b5f948433b
8 changed files with 164 additions and 10 deletions
+11 -1
View File
@@ -182,7 +182,17 @@
responsive: true,
maintainAspectRatio: true,
cutout: '65%',
plugins: { legend: { display: false }, tooltip: { backgroundColor: 'rgba(17,24,39,0.95)', padding: 10, cornerRadius: 8 } },
plugins: {
legend: { display: false },
tooltip: {
backgroundColor: 'rgba(17,24,39,0.95)',
padding: 10,
cornerRadius: 8,
callbacks: {
label: (ctx) => `${ctx.label}: ${ctx.parsed.toLocaleString()} sessions`
}
}
},
},
});
}
@@ -76,8 +76,9 @@
cornerRadius: 8,
callbacks: {
label: (ctx) => {
const countryName = ctx.raw?.feature?.properties?.name || 'Unknown';
const val = ctx.raw?.value || 0;
return val > 0 ? `${ctx.label}: ${val.toLocaleString()} visitors` : `${ctx.label}: 0`;
return val > 0 ? `${countryName}: ${val.toLocaleString()} visitors` : `${countryName}: 0 visitors`;
}
}
}
+1 -1
View File
@@ -21,7 +21,7 @@
<div class="mb-6">
<x-input-label for="domain" :value="__('Domain')" />
<x-text-input id="domain" name="domain" type="text" class="mt-1 block w-full" :value="old('domain')" required placeholder="example.com" />
<p class="mt-1 text-sm text-gray-500">{{ __('Enter the domain without http:// or https://') }}</p>
<p class="mt-1 text-sm text-gray-500">{{ __('Enter your domain in any format (e.g., example.com, www.example.com, https://example.com)') }}</p>
<x-input-error class="mt-2" :messages="$errors->get('domain')" />
</div>
+1 -1
View File
@@ -22,7 +22,7 @@
<div class="mb-6">
<x-input-label for="domain" :value="__('Domain')" />
<x-text-input id="domain" name="domain" type="text" class="mt-1 block w-full" :value="old('domain', $website->domain)" required />
<p class="mt-1 text-sm text-gray-500">{{ __('Enter the domain without http:// or https://') }}</p>
<p class="mt-1 text-sm text-gray-500">{{ __('Enter your domain in any format (e.g., example.com, www.example.com, https://example.com)') }}</p>
<x-input-error class="mt-2" :messages="$errors->get('domain')" />
</div>