refactor(events): replace parties concept with events throughout the application

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
This commit is contained in:
Kevin BATAILLE
2025-08-28 13:20:51 +02:00
parent 2f80fe8321
commit 30f3ecc6ad
218 changed files with 864 additions and 787 deletions

View File

@@ -1,10 +1,10 @@
<!-- Party Finder Section -->
<section style="padding: 0;">
<!-- Event Finder Section -->
<section>
<div class="container">
<div class="party-finder animate-fadeInUp">
<div class="event-finder">
<div class="finder-header">
<h2 class="finder-title">Find Your Perfect Event</h2>
<p class="finder-subtitle">Discover afterwork parties tailored to your preferences</p>
<p class="finder-subtitle">Discover afterwork events tailored to your preferences</p>
</div>
<form class="finder-form">
@@ -81,7 +81,7 @@
</section>
<script>
// Party Finder Functionality
// Event Finder Functionality
document.addEventListener("DOMContentLoaded", function() {
const priceMin = document.getElementById('price-min');
const priceMax = document.getElementById('price-max');

View File

@@ -1,14 +1,14 @@
<%= link_to party_path(party.slug, party), class: "group block p-4 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-purple-300 dark:hover:border-purple-600 hover:shadow-md transition-all duration-200" do %>
<%= link_to event_path(event.slug, event), class: "group block p-4 rounded-lg border border-slate-200 dark:border-slate-700 hover:border-purple-300 dark:hover:border-purple-600 hover:shadow-md transition-all duration-200" do %>
<div class="flex items-center space-x-4">
<div class="w-16 h-16 bg-slate-200 dark:bg-slate-700 rounded-lg overflow-hidden flex-shrink-0">
<%= image_tag party.image, alt: party.name, class: "w-full h-full object-cover" if party.image.present? %>
<%= image_tag event.image, alt: event.name, class: "w-full h-full object-cover" if event.image.present? %>
</div>
<div class="flex-1 min-w-0">
<h3 class="text-lg font-semibold text-slate-900 dark:text-slate-100 group-hover:text-purple-600 dark:group-hover:text-purple-400 transition-colors duration-200">
<%= party.name %>
<%= event.name %>
</h3>
<p class="text-sm text-slate-600 dark:text-slate-400">
<%= l(party.start_time, format: :short) %>
<%= l(event.start_time, format: :short) %>
</p>
</div>
</div>

0
app/views/components/_footer.html.erb Normal file → Executable file
View File

0
app/views/components/_header.html.erb Normal file → Executable file
View File

0
app/views/components/_metric_card.html.erb Normal file → Executable file
View File

0
app/views/components/_ticket_card.html.erb Normal file → Executable file
View File