<template> <div class="p-2 bg-gradient-to-r from-blue-900 to-blue-700 rounded-lg…
- Usercode
<div class="flex justify-between items-center mx-2"> <div class="text-sm">Prix total :</div> <div class="text-2xl font-bold text-amber-400 mx-2"> {{ totalPrice.toFixed(2) }}<font-awesome-icon :icon="['fas', 'fa-euro']" class="w-6"/> </div> <div class="text-sm">Prix restant :</div> <div class="text-2xl font-bold text-amber-400 mx-2"> {{ totalLeftoverPrice.toFixed(2) }}<font-awesome-icon :icon="['fas', 'fa-euro']" class="w-6"/> </div> </div> </div> <div v-if="userPayments.length"> <h2 class="text-lg font-semibold">Paiements des utilisateurs</h2> <div v-for="user in userPayments" :key="user.id" class="p-2 bg-gray-800 text-white rounded-lg my-2"> {{ user.pseudo }} a payé : <span class="font-bold text-green-400">{{ user.totalPaid }}€</span> </div> </div> </div> <div class="flex flex-col items-center p-4 bg-gray-900 text-white rounded-lg shadow-lg"> <h2 class="text-lg font-semibold mb-4">Répartition des paiements</h2> <pre>{{ JSON.stringify(pieChartUserPayments, null, 2) }}</pre> <PieChart width="300" height="300"> <Pie dataKey="value" :data="pieChartUserPayments" cx="50%" cy="50%" outerRadius="100" :label="({ name, value }) => `${name}: ${value}€`" > <Cell v-for="(user, index) in pieChartUserPayments" :key="user.name" :fill="colors[index % colors.length]" /> </Pie> <Tooltip /> <Legend /> </PieChart> <div class="mt-4 text-center"> <p><span class="font-bold text-amber-400">Prix Total :</span> {{ totalPrice.toFixed(2) }}€</p> <p><span class="font-bold text-red-400">Prix Restant :</span> {{ totalLeftoverPrice.toFixed(2) }}€</p> </div> </div> Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.