This repository was archived by the owner on Dec 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
#51 - map of events #56
Open
PrintJaDe
wants to merge
80
commits into
main
Choose a base branch
from
51-map-of-events
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 76 commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
68e8220
Implement login and register, localization feature
PrabuckiDominik cb3a938
Remove suffix
PrabuckiDominik 478614b
Fix workflow test
PrabuckiDominik c4cc684
Add .env.ci
PrabuckiDominik 476f850
Try to fix workflow
PrabuckiDominik 75ed108
Try to fix workflow
PrabuckiDominik b187077
Try to fix workflow
PrabuckiDominik 627985f
Implement reset password, add Spatie's activity log
PrabuckiDominik e9075b5
Fix TestCase
PrabuckiDominik 5b77ff6
Implement login.
PrintJaDe e3a13c3
Implement login.
PrintJaDe 93ecf56
**Add routes, components, and layouts for authentication pages**
PrintJaDe 9bee6dd
**Refactor authentication components and layouts; update routes**
PrintJaDe 7b23f67
**Refactor authentication components and layouts; update routes**
PrintJaDe dae2e16
**Refactor and enhance authentication components and layouts**
PrintJaDe 1f50e08
Merge remote-tracking branch 'origin/main' into 11-add-sign-in-page
PrintJaDe edc6532
Merge remote-tracking branch 'origin/11-add-sign-in-page' into 11-add…
PrintJaDe c0f5163
Integrate shared layout and enhance form handling for authentication …
PrintJaDe 6aafc93
Refactor authentication pages: remove unused `LoginPage.vue`, add `Fo…
PrintJaDe 9de6608
Remove obsolete migration files for `activity_log` table updates.
PrintJaDe 1d123dd
Merge branch 'main' of https://github.com/blumilksoftware/interns2025…
PrintJaDe 7f252ea
Integrate `AppHead` component for enhanced meta handling, update Face…
PrintJaDe 0c48dd4
Refactor authentication pages: extract `useApiForm` composable, add u…
PrintJaDe 9076706
Refactor `web.php` routes for `LoginPage` and update notification mes…
PrintJaDe 962fdd2
Refactor: Replace `Welcome` with `HomePage`, update route to point to…
PrintJaDe bc007ee
Refactor: Replace `Link` with `InertiaLink`, streamline form handling…
PrintJaDe 4b102e9
Refactor authentication views: implement `AuthLayout`, improve form h…
PrintJaDe 589b525
Refactor authentication views and components: improve styling, apply …
PrintJaDe c358b5e
Refactor layout components: simplify `AuthLayout.vue` and improve res…
PrintJaDe 809d459
Integrate `@heroicons/vue` for icon support, refactor password inputs…
PrintJaDe c5ad8bb
Merge branch 'main' of https://github.com/blumilksoftware/interns2025…
PrintJaDe 8ba7c91
Integrate `AppHead` component into authentication pages for enhanced …
PrintJaDe ad5e58c
Apply suggestions from code review
PrintJaDe 4e0cfac
Apply tailwind config suggestions.
PrintJaDe 6d203f6
Refactoring BaseInput.vue PasswordInput.vue according to suggestion a…
PrintJaDe ac3ac82
fixing tailwind.config.js, added placeholder and placeholder on focus.
PrintJaDe 968606c
added outline and removed placeholders.
PrintJaDe 99a7c48
Merge branch '11-add-sign-in-page' into 48-homepage
PrintJaDe 3a03abb
draft for home page
PrintJaDe c061499
Refactor `HomePage.vue` layout for enhanced usability, create `Genera…
PrintJaDe 575c83b
Extract `navbar.vue` component, refactor `HomePage.vue` and `EventPag…
PrintJaDe 966499c
Add `leaflet` and `vue-i18n` libraries, integrate a map component usi…
PrintJaDe 07b7628
Merge remote-tracking branch 'origin/main' into 48-homepage
PrintJaDe f91c67f
Add `prettier-plugin-tailwindcss`, update map tile layer in `Map.vue`…
PrintJaDe e3a9949
Add brand icons for social media sites fixed missing icons fixed resp…
PrintJaDe 1819da8
fxing tailwind classes
PrintJaDe 20ced46
fixed icons having wrong color
PrintJaDe 3b881f1
fixed icons having wrong color
PrintJaDe 7450dc4
fixing icons in event search bar
PrintJaDe 76b5952
Add theme support for Input, fixed styling for map buttons.
PrintJaDe 54d0e6e
Merge branch '48-homepage' into 51-map-of-events
PrintJaDe dc8481d
fixed events
PrintJaDe 0723733
fixed fade and login
PrintJaDe 9289535
fixes
PrintJaDe af1c65e
Merge remote-tracking branch 'origin/main' into 51-map-of-events
PrintJaDe 9f49f09
Merge branch '48-homepage' into 51-map-of-events
PrintJaDe d8cb03f
fixed event name
PrintJaDe 4eb1374
Squashed commit of the following:
PrintJaDe bac1813
Added centering map function on EventPAge, updated map to show events…
PrintJaDe aa4b03e
Merge branch '51-map-of-events' of https://github.com/blumilksoftware…
PrintJaDe fdf50e9
Refactored event-related components, added `/EventList` route, and im…
PrintJaDe 042192e
Replaced `eventMapPopup` utility with a new `EventPopUp` Vue componen…
PrintJaDe ff259cd
Refactored `EventPage` for better data handling and UI improvements, …
PrintJaDe 1519f1e
Refactored `EventList` and `EventPage` components for enhanced data h…
PrintJaDe 967629f
Refactored `ProfilePage` and related components. Added `useAuth` and …
PrintJaDe 6a0d4d7
Refactored `ProfilePage` and related components. Added `useAuth` and …
PrintJaDe 0d9ce35
Added `AuthProps` and `UserDetail` TypeScript interfaces for improved…
PrintJaDe 910e229
Merge branch 'main' of https://github.com/blumilksoftware/interns2025…
PrintJaDe 862401b
Standardized route definitions in `web.php` for consistent formatting…
PrintJaDe b61f633
fixed code according to review
PrintJaDe e6923e9
Refactored `EventPage`, `EventList`, and `HomePage` components for co…
PrintJaDe 598db46
Fixing according to review
PrintJaDe dce9303
Update resources/js/Pages/EventPage.vue
PrintJaDe 0d9f124
Apply suggestions from code review
PrintJaDe db21132
Repalcing console logs with an ALerts and added computed for event ow…
PrintJaDe 36c5c60
Merge remote-tracking branch 'origin/51-map-of-events' into 51-map-of…
PrintJaDe be9f194
Update resources/js/Pages/EventPage.vue
PrintJaDe 54f2964
Updated participant count display in `EventPage` component by adding …
PrintJaDe aaa6f07
Merge remote-tracking branch 'origin/51-map-of-events' into 51-map-of…
PrintJaDe 3e1fed2
Update resources/js/composables/useAuth.ts
PrintJaDe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| <script setup lang="ts"> | ||
|
|
||
| withDefaults( | ||
| defineProps<{ | ||
| id: number | string | ||
| imageUrl?: string | undefined | ||
| start: string | ||
| isPaid: boolean | ||
| title: string | ||
| location?: string | null | ||
| ageCategory?: string | null | ||
| }>(), | ||
| { | ||
| imageUrl: 'https://picsum.photos/200/300', | ||
| location: 'Brak lokalizacji', | ||
| ageCategory: 'Brak', | ||
| }, | ||
| ) | ||
| </script> | ||
|
|
||
| <template> | ||
| <InertiaLink | ||
PrintJaDe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| :href="`/event/${id}`" | ||
| class="block max-w-sm bg-white rounded-2xl shadow-lg overflow-hidden hover:shadow-xl transition delay-100 duration-300 hover:scale-105" | ||
| > | ||
| <img | ||
| :src="imageUrl" | ||
| alt="Event Banner" | ||
| class="w-full h-48 object-cover" | ||
| > | ||
|
|
||
| <div class="p-4 space-y-2"> | ||
| <div class="flex items-center justify-between"> | ||
| <div class="text-sm text-gray-500">{{ start }}</div> | ||
| <span | ||
| class="text-xs font-semibold px-2 py-1 rounded-full" | ||
| :class="[isPaid ? 'bg-blue-100 text-blue-600' : 'bg-green-100 text-green-600']" | ||
| > | ||
| {{ isPaid ? 'Płatny' : 'Darmowy' }} | ||
| </span> | ||
| </div> | ||
|
|
||
| <h3 class="text-lg font-bold text-gray-900">{{ title }}</h3> | ||
|
|
||
| <p class="text-sm text-gray-600 flex items-center"> | ||
| {{ location }} | ||
| </p> | ||
|
|
||
| <p class="text-sm text-gray-600"> | ||
| Ograniczenie wiekowe: | ||
| <span class="font-medium">{{ ageCategory }}</span> | ||
| </p> | ||
| </div> | ||
| </InertiaLink> | ||
| </template> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| <script setup lang="ts"> | ||
| import { Link as InertiaLink } from '@inertiajs/vue3' | ||
| import { formatDate, formatTime } from '@/utilities/formatDate' | ||
| import BaseButton from '@/Components/BaseButton.vue' | ||
| import type { EventMarker } from '@/types/events' | ||
|
|
||
| defineProps<{ event: EventMarker }>() | ||
| </script> | ||
|
|
||
| <template> | ||
| <div class="bg-white rounded-xl shadow-lg size-full overflow-hidden"> | ||
| <img | ||
| :src="event.image_url ?? '/images/placeholder.png'" | ||
| :alt="event.title" | ||
| class="w-full h-24 object-cover" | ||
| > | ||
|
|
||
| <div class="px-3 py-2"> | ||
| <div class="space-y-2"> | ||
| <div class="flex items-center justify-between text-sm text-gray-500"> | ||
| <span>{{ formatDate(event.start) }} - {{ formatTime(event.start) }} </span> | ||
| <span | ||
| class="text-xs font-semibold px-2 py-1 rounded-full" | ||
| :class="event.is_paid ? 'bg-blue-100 text-blue-600' : 'bg-green-100 text-green-600'" | ||
| > | ||
| {{ event.is_paid ? 'Płatny' : 'Darmowy' }} | ||
| </span> | ||
| </div> | ||
| <div> | ||
| <h3 class="text-lg font-bold text-gray-900 leading-tight"> | ||
| {{ event.title }} | ||
| </h3> | ||
| </div> | ||
| <div class=""> | ||
| <p class="text-base font-medium text-gray-800"> | ||
| {{ event.location ?? 'Brak lokalizacji' }} | ||
| </p> | ||
| <p class="text-sm font-normal text-gray-500"> | ||
| {{ event.age_category ? `Ogr. wiek.: ${event.age_category}` : 'Brak ograniczeń' }} | ||
| </p> | ||
| </div> | ||
| <div> | ||
| <InertiaLink :href="`/event/${event.id}`"> | ||
| <BaseButton | ||
| type="button" | ||
| class="w-full bg-zinc-800 text-white justify-center font-bold px-10 " | ||
| > | ||
| Zobacz szczegóły | ||
| </BaseButton> | ||
| </InertiaLink> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,47 @@ | ||
| <script setup lang="ts"> | ||
| import { MapPinIcon as DefaultIcon } from '@heroicons/vue/24/solid' | ||
|
|
||
| defineProps<{ | ||
| icon?: any | ||
| title: string | ||
| line1?: string | ||
| line2?: string | ||
| line3?: string | ||
| }>() | ||
| import { UserIcon as DefaultIcon } from '@heroicons/vue/24/outline' | ||
| withDefaults( | ||
| defineProps<{ | ||
| icon?: object | null | ||
| imageUrl?: string | null | ||
| title?: string | null | ||
| infoItems?: string[] | null | ||
| }>(), | ||
| { | ||
| icon: DefaultIcon, | ||
| imageUrl: undefined, | ||
| title: '', | ||
| infoItems: () => [], | ||
| }, | ||
| ) | ||
| </script> | ||
|
|
||
| <template> | ||
| <div class="flex gap-x-6 items-center"> | ||
| <div class="flex sm:gap-x-6 gap-x-3 items-center"> | ||
| <div | ||
| class="flex bg-brand/10 size-20 rounded-2xl items-center justify-center aspect-square" | ||
| class="flex shrink-0 bg-brand/10 sm:size-20 size-10 rounded-2xl items-center justify-center aspect-square overflow-hidden" | ||
| > | ||
| <component :is="icon || DefaultIcon" class="size-10 text-brand" /> | ||
| <img | ||
| v-if="imageUrl" | ||
| :src="imageUrl" | ||
| alt="Obrazek" | ||
| class="object-cover size-full" | ||
| > | ||
| <component | ||
| :is="icon ?? DefaultIcon" | ||
| v-else | ||
| class="sm:size-10 size-5 text-brand" | ||
| /> | ||
| </div> | ||
| <div class="flex flex-col"> | ||
| <h2 class="text-3xl font-bold">{{ title }}</h2> | ||
| <p v-if="line1" class="text-gray-500">{{ line1 }}</p> | ||
| <p v-if="line2" class="text-gray-500">{{ line2 }}</p> | ||
| <p v-if="line3" class="text-gray-500">{{ line3 }}</p> | ||
| <h2 class="sm:text-3xl text-left text-sm font-bold">{{ title }}</h2> | ||
| <p | ||
| v-for="(info, index) in infoItems" | ||
| :key="index" | ||
| class="sm:text-sm text-xs text-left text-gray-500" | ||
| > | ||
| {{ info }} | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| <script setup lang="ts"> | ||
| import { computed } from 'vue' | ||
|
|
||
| const { page, lastPage } = defineProps<{ | ||
| page: number | ||
| lastPage: number | ||
| }>() | ||
|
|
||
| const emit = defineEmits<(e: 'update:page', newPage: number) => void>() | ||
|
|
||
| const canPrev = computed(() => page > 1) | ||
| const canNext = computed(() => page < lastPage) | ||
|
|
||
| function goPrev() { | ||
| if (canPrev.value) emit('update:page', page - 1) | ||
| } | ||
|
|
||
| function goNext() { | ||
| if (canNext.value) emit('update:page', page + 1) | ||
| } | ||
| </script> | ||
|
|
||
| <template> | ||
| <div v-if="lastPage > 1" class="flex justify-center items-center gap-4 mt-4"> | ||
| <button | ||
| class="px-4 py-2 bg-gray-200 rounded disabled:opacity-50" | ||
| :disabled="!canPrev" | ||
| @click="goPrev" | ||
| > | ||
| Poprzednia | ||
| </button> | ||
| <span>Strona {{ page }} z {{ lastPage }}</span> | ||
| <button | ||
| class="px-4 py-2 bg-gray-200 rounded disabled:opacity-50" | ||
| :disabled="!canNext" | ||
| @click="goNext" | ||
| > | ||
| Następna | ||
| </button> | ||
| </div> | ||
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.